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

public final class RegistryInfo extends Object implements com.azure.json.JsonSerializable<RegistryInfo>
Container App registry information.
  • Constructor Details

    • RegistryInfo

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

    • registryUrl

      public String registryUrl()
      Get the registryUrl property: registry server Url.
      Returns:
      the registryUrl value.
    • withRegistryUrl

      public RegistryInfo withRegistryUrl(String registryUrl)
      Set the registryUrl property: registry server Url.
      Parameters:
      registryUrl - the registryUrl value to set.
      Returns:
      the RegistryInfo object itself.
    • registryUsername

      public String registryUsername()
      Get the registryUsername property: registry username.
      Returns:
      the registryUsername value.
    • withRegistryUsername

      public RegistryInfo withRegistryUsername(String registryUsername)
      Set the registryUsername property: registry username.
      Parameters:
      registryUsername - the registryUsername value to set.
      Returns:
      the RegistryInfo object itself.
    • registryPassword

      public String registryPassword()
      Get the registryPassword property: registry secret.
      Returns:
      the registryPassword value.
    • withRegistryPassword

      public RegistryInfo withRegistryPassword(String registryPassword)
      Set the registryPassword property: registry secret.
      Parameters:
      registryPassword - the registryPassword value to set.
      Returns:
      the RegistryInfo 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<RegistryInfo>
      Throws:
      IOException
    • fromJson

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