Class CustomContainerUserSourceInfo

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

public final class CustomContainerUserSourceInfo extends UserSourceInfo
Custom container user source info.
  • Constructor Details

    • CustomContainerUserSourceInfo

      public CustomContainerUserSourceInfo()
      Creates an instance of CustomContainerUserSourceInfo 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.
    • customContainer

      public CustomContainer customContainer()
      Get the customContainer property: Custom container payload.
      Returns:
      the customContainer value.
    • withCustomContainer

      public CustomContainerUserSourceInfo withCustomContainer(CustomContainer customContainer)
      Set the customContainer property: Custom container payload.
      Parameters:
      customContainer - the customContainer value to set.
      Returns:
      the CustomContainerUserSourceInfo object itself.
    • withVersion

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