Class OutputFileUploadConfig

java.lang.Object
com.azure.compute.batch.models.OutputFileUploadConfig
All Implemented Interfaces:
com.azure.json.JsonSerializable<OutputFileUploadConfig>

public final class OutputFileUploadConfig extends Object implements com.azure.json.JsonSerializable<OutputFileUploadConfig>
Options for an output file upload operation, including under what conditions to perform the upload.
  • Constructor Details

    • OutputFileUploadConfig

      public OutputFileUploadConfig(OutputFileUploadCondition uploadCondition)
      Creates an instance of OutputFileUploadConfig class.
      Parameters:
      uploadCondition - the uploadCondition value to set.
  • Method Details

    • getUploadCondition

      public OutputFileUploadCondition getUploadCondition()
      Get the uploadCondition property: The conditions under which the Task output file or set of files should be uploaded. The default is taskcompletion.
      Returns:
      the uploadCondition value.
    • toJson

      public com.azure.json.JsonWriter toJson(com.azure.json.JsonWriter jsonWriter) throws IOException
      Specified by:
      toJson in interface com.azure.json.JsonSerializable<OutputFileUploadConfig>
      Throws:
      IOException
    • fromJson

      public static OutputFileUploadConfig fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      Reads an instance of OutputFileUploadConfig from the JsonReader.
      Parameters:
      jsonReader - The JsonReader being read.
      Returns:
      An instance of OutputFileUploadConfig if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
      Throws:
      IllegalStateException - If the deserialized JSON object was missing any required properties.
      IOException - If an error occurs while reading the OutputFileUploadConfig.