/**
 * 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 when terminating a Job.
 */
public class JobTerminateParameter {
    /**
     * The text you want to appear as the Job's TerminateReason. The default is
     * 'UserTerminate'.
     */
    @JsonProperty(value = "terminateReason")
    private String terminateReason;

    /**
     * Get the terminateReason value.
     *
     * @return the terminateReason value
     */
    public String terminateReason() {
        return this.terminateReason;
    }

    /**
     * Set the terminateReason value.
     *
     * @param terminateReason the terminateReason value to set
     * @return the JobTerminateParameter object itself.
     */
    public JobTerminateParameter withTerminateReason(String terminateReason) {
        this.terminateReason = terminateReason;
        return this;
    }

}
