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 Summary
ConstructorsConstructorDescriptionCreates an instance of PendingUploadRequestDto class. -
Method Summary
Modifier and TypeMethodDescriptionstatic PendingUploadRequestDtofromJson(com.azure.json.JsonReader jsonReader) Reads an instance of PendingUploadRequestDto from the JsonReader.Get the pendingUploadId property: If PendingUploadId = null then random guid will be used.Get the pendingUploadType property: TemporaryBlobReference is the only supported type.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.withPendingUploadId(String pendingUploadId) Set the pendingUploadId property: If PendingUploadId = null then random guid will be used.withPendingUploadType(PendingUploadType pendingUploadType) Set the pendingUploadType property: TemporaryBlobReference is the only supported type.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
PendingUploadRequestDto
public PendingUploadRequestDto()Creates an instance of PendingUploadRequestDto class.
-
-
Method Details
-
pendingUploadId
Get the pendingUploadId property: If PendingUploadId = null then random guid will be used.- Returns:
- the pendingUploadId value.
-
withPendingUploadId
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
Get the pendingUploadType property: TemporaryBlobReference is the only supported type.- Returns:
- the pendingUploadType value.
-
withPendingUploadType
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
- Specified by:
toJsonin interfacecom.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.
-