// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.

package com.azure.resourcemanager.networkcloud.models;

import com.azure.core.annotation.Fluent;
import com.fasterxml.jackson.annotation.JsonProperty;

/**
 * BareMetalMachineCordonParameters represents the body of the request to evacuate workloads from node on a bare metal
 * machine.
 */
@Fluent
public final class BareMetalMachineCordonParameters {
    /*
     * The indicator of whether to evacuate the node workload when the bare metal machine is cordoned.
     */
    @JsonProperty(value = "evacuate")
    private BareMetalMachineEvacuate evacuate;

    /** Creates an instance of BareMetalMachineCordonParameters class. */
    public BareMetalMachineCordonParameters() {
    }

    /**
     * Get the evacuate property: The indicator of whether to evacuate the node workload when the bare metal machine is
     * cordoned.
     *
     * @return the evacuate value.
     */
    public BareMetalMachineEvacuate evacuate() {
        return this.evacuate;
    }

    /**
     * Set the evacuate property: The indicator of whether to evacuate the node workload when the bare metal machine is
     * cordoned.
     *
     * @param evacuate the evacuate value to set.
     * @return the BareMetalMachineCordonParameters object itself.
     */
    public BareMetalMachineCordonParameters withEvacuate(BareMetalMachineEvacuate evacuate) {
        this.evacuate = evacuate;
        return this;
    }

    /**
     * Validates the instance.
     *
     * @throws IllegalArgumentException thrown if the instance is not valid.
     */
    public void validate() {
    }
}
