Class GetBlobReferenceSasRequestDto
java.lang.Object
com.azure.resourcemanager.machinelearning.models.GetBlobReferenceSasRequestDto
- All Implemented Interfaces:
com.azure.json.JsonSerializable<GetBlobReferenceSasRequestDto>
public final class GetBlobReferenceSasRequestDto
extends Object
implements com.azure.json.JsonSerializable<GetBlobReferenceSasRequestDto>
BlobReferenceSASRequest for getBlobReferenceSAS API.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of GetBlobReferenceSasRequestDto class. -
Method Summary
Modifier and TypeMethodDescriptionassetId()Get the assetId property: Id of the asset to be accessed.blobUri()Get the blobUri property: Blob uri of the asset to be accessed.fromJson(com.azure.json.JsonReader jsonReader) Reads an instance of GetBlobReferenceSasRequestDto from the JsonReader.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.withAssetId(String assetId) Set the assetId property: Id of the asset to be accessed.withBlobUri(String blobUri) Set the blobUri property: Blob uri of the asset to be accessed.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
-
GetBlobReferenceSasRequestDto
public GetBlobReferenceSasRequestDto()Creates an instance of GetBlobReferenceSasRequestDto class.
-
-
Method Details
-
assetId
Get the assetId property: Id of the asset to be accessed.- Returns:
- the assetId value.
-
withAssetId
Set the assetId property: Id of the asset to be accessed.- Parameters:
assetId- the assetId value to set.- Returns:
- the GetBlobReferenceSasRequestDto object itself.
-
blobUri
Get the blobUri property: Blob uri of the asset to be accessed.- Returns:
- the blobUri value.
-
withBlobUri
Set the blobUri property: Blob uri of the asset to be accessed.- Parameters:
blobUri- the blobUri value to set.- Returns:
- the GetBlobReferenceSasRequestDto 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<GetBlobReferenceSasRequestDto>- Throws:
IOException
-
fromJson
public static GetBlobReferenceSasRequestDto fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of GetBlobReferenceSasRequestDto from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of GetBlobReferenceSasRequestDto 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 GetBlobReferenceSasRequestDto.
-