Package com.azure.compute.batch.models
Class BatchJobTerminateContent
java.lang.Object
com.azure.compute.batch.models.BatchJobTerminateContent
- All Implemented Interfaces:
com.azure.json.JsonSerializable<BatchJobTerminateContent>
public final class BatchJobTerminateContent
extends Object
implements com.azure.json.JsonSerializable<BatchJobTerminateContent>
Parameters for terminating an Azure Batch Job.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of BatchJobTerminateContent class. -
Method Summary
Modifier and TypeMethodDescriptionstatic BatchJobTerminateContent
fromJson
(com.azure.json.JsonReader jsonReader) Reads an instance of BatchJobTerminateContent from the JsonReader.Get the terminationReason property: The text you want to appear as the Job's TerminationReason.setTerminationReason
(String terminationReason) Set the terminationReason property: The text you want to appear as the Job's TerminationReason.com.azure.json.JsonWriter
toJson
(com.azure.json.JsonWriter jsonWriter) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
BatchJobTerminateContent
public BatchJobTerminateContent()Creates an instance of BatchJobTerminateContent class.
-
-
Method Details
-
getTerminationReason
Get the terminationReason property: The text you want to appear as the Job's TerminationReason. The default is 'UserTerminate'.- Returns:
- the terminationReason value.
-
setTerminationReason
Set the terminationReason property: The text you want to appear as the Job's TerminationReason. The default is 'UserTerminate'.- Parameters:
terminationReason
- the terminationReason value to set.- Returns:
- the BatchJobTerminateContent object itself.
-
toJson
- Specified by:
toJson
in interfacecom.azure.json.JsonSerializable<BatchJobTerminateContent>
- Throws:
IOException
-
fromJson
public static BatchJobTerminateContent fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of BatchJobTerminateContent from the JsonReader.- Parameters:
jsonReader
- The JsonReader being read.- Returns:
- An instance of BatchJobTerminateContent if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
- Throws:
IOException
- If an error occurs while reading the BatchJobTerminateContent.
-