Class ResourceUploadDefinition

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

public final class ResourceUploadDefinition extends Object implements com.azure.json.JsonSerializable<ResourceUploadDefinition>
Resource upload definition payload.
  • Constructor Details

    • ResourceUploadDefinition

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

    • relativePath

      public String relativePath()
      Get the relativePath property: Source relative path.
      Returns:
      the relativePath value.
    • withRelativePath

      public ResourceUploadDefinition withRelativePath(String relativePath)
      Set the relativePath property: Source relative path.
      Parameters:
      relativePath - the relativePath value to set.
      Returns:
      the ResourceUploadDefinition object itself.
    • uploadUrl

      public String uploadUrl()
      Get the uploadUrl property: Upload URL.
      Returns:
      the uploadUrl value.
    • withUploadUrl

      public ResourceUploadDefinition withUploadUrl(String uploadUrl)
      Set the uploadUrl property: Upload URL.
      Parameters:
      uploadUrl - the uploadUrl value to set.
      Returns:
      the ResourceUploadDefinition 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<ResourceUploadDefinition>
      Throws:
      IOException
    • fromJson

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