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 Details

    • GetBlobReferenceSasRequestDto

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

    • assetId

      public String assetId()
      Get the assetId property: Id of the asset to be accessed.
      Returns:
      the assetId value.
    • withAssetId

      public GetBlobReferenceSasRequestDto withAssetId(String assetId)
      Set the assetId property: Id of the asset to be accessed.
      Parameters:
      assetId - the assetId value to set.
      Returns:
      the GetBlobReferenceSasRequestDto object itself.
    • blobUri

      public String blobUri()
      Get the blobUri property: Blob uri of the asset to be accessed.
      Returns:
      the blobUri value.
    • withBlobUri

      public GetBlobReferenceSasRequestDto withBlobUri(String blobUri)
      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

      public com.azure.json.JsonWriter toJson(com.azure.json.JsonWriter jsonWriter) throws IOException
      Specified by:
      toJson in interface com.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.