Class UploadedUserSourceInfo

java.lang.Object
com.azure.resourcemanager.appplatform.models.UserSourceInfo
com.azure.resourcemanager.appplatform.models.UploadedUserSourceInfo
All Implemented Interfaces:
com.azure.json.JsonSerializable<UserSourceInfo>
Direct Known Subclasses:
JarUploadedUserSourceInfo, NetCoreZipUploadedUserSourceInfo, SourceUploadedUserSourceInfo, WarUploadedUserSourceInfo

public class UploadedUserSourceInfo extends UserSourceInfo
Source with uploaded location.
  • Constructor Details

    • UploadedUserSourceInfo

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

    • type

      public String type()
      Get the type property: Type of the source uploaded.
      Overrides:
      type in class UserSourceInfo
      Returns:
      the type value.
    • relativePath

      public String relativePath()
      Get the relativePath property: Relative path of the storage which stores the source.
      Returns:
      the relativePath value.
    • withRelativePath

      public UploadedUserSourceInfo withRelativePath(String relativePath)
      Set the relativePath property: Relative path of the storage which stores the source.
      Parameters:
      relativePath - the relativePath value to set.
      Returns:
      the UploadedUserSourceInfo object itself.
    • withVersion

      public UploadedUserSourceInfo withVersion(String version)
      Set the version property: Version of the source.
      Overrides:
      withVersion in class UserSourceInfo
      Parameters:
      version - the version value to set.
      Returns:
      the UserSourceInfo object itself.
    • validate

      public void validate()
      Validates the instance.
      Overrides:
      validate in class UserSourceInfo
      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<UserSourceInfo>
      Overrides:
      toJson in class UserSourceInfo
      Throws:
      IOException
    • fromJson

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