com.microsoft.azure.batch.protocol.models.JobTerminateParameter Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of azure-batch Show documentation
Show all versions of azure-batch Show documentation
This package contains the root module of Microsoft Azure Batch SDK.
/**
* 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;
}
}