Class PendingUploadRequestDto

java.lang.Object
com.azure.resourcemanager.machinelearning.models.PendingUploadRequestDto
All Implemented Interfaces:
com.azure.json.JsonSerializable<PendingUploadRequestDto>

public final class PendingUploadRequestDto extends Object implements com.azure.json.JsonSerializable<PendingUploadRequestDto>
The PendingUploadRequestDto model.
  • Constructor Details

    • PendingUploadRequestDto

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

    • pendingUploadId

      public String pendingUploadId()
      Get the pendingUploadId property: If PendingUploadId = null then random guid will be used.
      Returns:
      the pendingUploadId value.
    • withPendingUploadId

      public PendingUploadRequestDto withPendingUploadId(String pendingUploadId)
      Set the pendingUploadId property: If PendingUploadId = null then random guid will be used.
      Parameters:
      pendingUploadId - the pendingUploadId value to set.
      Returns:
      the PendingUploadRequestDto object itself.
    • pendingUploadType

      public PendingUploadType pendingUploadType()
      Get the pendingUploadType property: TemporaryBlobReference is the only supported type.
      Returns:
      the pendingUploadType value.
    • withPendingUploadType

      public PendingUploadRequestDto withPendingUploadType(PendingUploadType pendingUploadType)
      Set the pendingUploadType property: TemporaryBlobReference is the only supported type.
      Parameters:
      pendingUploadType - the pendingUploadType value to set.
      Returns:
      the PendingUploadRequestDto object itself.
    • validate

      public void validate()
      Validates the instance.
      Throws:
      IllegalArgumentException - thrown if the instance is not valid.
    • toJson

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

      public static PendingUploadRequestDto fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      Reads an instance of PendingUploadRequestDto from the JsonReader.
      Parameters:
      jsonReader - The JsonReader being read.
      Returns:
      An instance of PendingUploadRequestDto 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 PendingUploadRequestDto.