Class BlobReferenceForConsumptionDto
java.lang.Object
com.azure.resourcemanager.machinelearning.models.BlobReferenceForConsumptionDto
- All Implemented Interfaces:
com.azure.json.JsonSerializable<BlobReferenceForConsumptionDto>
public final class BlobReferenceForConsumptionDto
extends Object
implements com.azure.json.JsonSerializable<BlobReferenceForConsumptionDto>
The BlobReferenceForConsumptionDto model.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of BlobReferenceForConsumptionDto class. -
Method Summary
Modifier and TypeMethodDescriptionblobUri()Get the blobUri property: Blob URI path for client to upload data.Get the credential property: Credential info to access storage account.fromJson(com.azure.json.JsonReader jsonReader) Reads an instance of BlobReferenceForConsumptionDto from the JsonReader.Get the storageAccountArmId property: Arm ID of the storage account to use.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.withBlobUri(String blobUri) Set the blobUri property: Blob URI path for client to upload data.withCredential(PendingUploadCredentialDto credential) Set the credential property: Credential info to access storage account.withStorageAccountArmId(String storageAccountArmId) Set the storageAccountArmId property: Arm ID of the storage account to use.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
-
BlobReferenceForConsumptionDto
public BlobReferenceForConsumptionDto()Creates an instance of BlobReferenceForConsumptionDto class.
-
-
Method Details
-
blobUri
Get the blobUri property: Blob URI path for client to upload data. Example: https://blob.windows.core.net/Container/Path.- Returns:
- the blobUri value.
-
withBlobUri
Set the blobUri property: Blob URI path for client to upload data. Example: https://blob.windows.core.net/Container/Path.- Parameters:
blobUri- the blobUri value to set.- Returns:
- the BlobReferenceForConsumptionDto object itself.
-
storageAccountArmId
Get the storageAccountArmId property: Arm ID of the storage account to use.- Returns:
- the storageAccountArmId value.
-
withStorageAccountArmId
Set the storageAccountArmId property: Arm ID of the storage account to use.- Parameters:
storageAccountArmId- the storageAccountArmId value to set.- Returns:
- the BlobReferenceForConsumptionDto object itself.
-
credential
Get the credential property: Credential info to access storage account.- Returns:
- the credential value.
-
withCredential
Set the credential property: Credential info to access storage account.- Parameters:
credential- the credential value to set.- Returns:
- the BlobReferenceForConsumptionDto 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<BlobReferenceForConsumptionDto>- Throws:
IOException
-
fromJson
public static BlobReferenceForConsumptionDto fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of BlobReferenceForConsumptionDto from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of BlobReferenceForConsumptionDto 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 BlobReferenceForConsumptionDto.
-