Class UserSourceInfo

java.lang.Object
com.azure.resourcemanager.appplatform.models.UserSourceInfo
All Implemented Interfaces:
com.azure.json.JsonSerializable<UserSourceInfo>
Direct Known Subclasses:
BuildResultUserSourceInfo, CustomContainerUserSourceInfo, UploadedUserSourceInfo

public class UserSourceInfo extends Object implements com.azure.json.JsonSerializable<UserSourceInfo>
Source information for a deployment.
  • Constructor Summary

    Constructors
    Constructor
    Description
    Creates an instance of UserSourceInfo class.
  • Method Summary

    Modifier and Type
    Method
    Description
    fromJson(com.azure.json.JsonReader jsonReader)
    Reads an instance of UserSourceInfo from the JsonReader.
    com.azure.json.JsonWriter
    toJson(com.azure.json.JsonWriter jsonWriter)
    Get the type property: Type of the source uploaded.
    void
    Validates the instance.
    Get the version property: Version of the source.
    Set the version property: Version of the source.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface com.azure.json.JsonSerializable

    toJson, toJson, toJsonBytes, toJsonString
  • Constructor Details

    • UserSourceInfo

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

    • type

      public String type()
      Get the type property: Type of the source uploaded.
      Returns:
      the type value.
    • version

      public String version()
      Get the version property: Version of the source.
      Returns:
      the version value.
    • withVersion

      public UserSourceInfo withVersion(String version)
      Set the version property: Version of the source.
      Parameters:
      version - the version value to set.
      Returns:
      the UserSourceInfo 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<UserSourceInfo>
      Throws:
      IOException
    • fromJson

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