Class GenerateUploadUriParameter

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

public final class GenerateUploadUriParameter extends Object implements com.azure.json.JsonSerializable<GenerateUploadUriParameter>
Properties for generating an upload URI.
  • Constructor Details

    • GenerateUploadUriParameter

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

    • blobName

      public String blobName()
      Get the blobName property: The blob name of the upload URI.
      Returns:
      the blobName value.
    • withBlobName

      public GenerateUploadUriParameter withBlobName(String blobName)
      Set the blobName property: The blob name of the upload URI.
      Parameters:
      blobName - the blobName value to set.
      Returns:
      the GenerateUploadUriParameter 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<GenerateUploadUriParameter>
      Throws:
      IOException
    • fromJson

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