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 Details

    • BatchJobTerminateContent

      public BatchJobTerminateContent()
      Creates an instance of BatchJobTerminateContent class.
  • Method Details

    • getTerminationReason

      public String 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

      public BatchJobTerminateContent setTerminationReason(String terminationReason)
      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

      public com.azure.json.JsonWriter toJson(com.azure.json.JsonWriter jsonWriter) throws IOException
      Specified by:
      toJson in interface com.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.