/**
 * Copyright (c) Microsoft Corporation. All rights reserved.
 * Licensed under the MIT License. See License.txt in the project root for
 * license information.
 *
 * Code generated by Microsoft (R) AutoRest Code Generator.
 */

package com.microsoft.azure.batch.protocol.models;

import com.fasterxml.jackson.annotation.JsonProperty;

/**
 * Options for rebooting a Compute Node.
 */
public class NodeRebootParameter {
    /**
     * When to reboot the Compute Node and what to do with currently running
     * Tasks.
     * The default value is requeue. Possible values include: 'requeue',
     * 'terminate', 'taskCompletion', 'retainedData'.
     */
    @JsonProperty(value = "nodeRebootOption")
    private ComputeNodeRebootOption nodeRebootOption;

    /**
     * Get the default value is requeue. Possible values include: 'requeue', 'terminate', 'taskCompletion', 'retainedData'.
     *
     * @return the nodeRebootOption value
     */
    public ComputeNodeRebootOption nodeRebootOption() {
        return this.nodeRebootOption;
    }

    /**
     * Set the default value is requeue. Possible values include: 'requeue', 'terminate', 'taskCompletion', 'retainedData'.
     *
     * @param nodeRebootOption the nodeRebootOption value to set
     * @return the NodeRebootParameter object itself.
     */
    public NodeRebootParameter withNodeRebootOption(ComputeNodeRebootOption nodeRebootOption) {
        this.nodeRebootOption = nodeRebootOption;
        return this;
    }

}
