Class ContainerRegistryBasicCredentials

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

public final class ContainerRegistryBasicCredentials extends ContainerRegistryCredentials
The basic authentication properties for the container registry resource.
  • Constructor Details

    • ContainerRegistryBasicCredentials

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

    • type

      public String type()
      Get the type property: The credential type of the container registry credentials.
      Overrides:
      type in class ContainerRegistryCredentials
      Returns:
      the type value.
    • server

      public String server()
      Get the server property: The login server of the Container Registry.
      Returns:
      the server value.
    • withServer

      public ContainerRegistryBasicCredentials withServer(String server)
      Set the server property: The login server of the Container Registry.
      Parameters:
      server - the server value to set.
      Returns:
      the ContainerRegistryBasicCredentials object itself.
    • username

      public String username()
      Get the username property: The username of the Container Registry.
      Returns:
      the username value.
    • withUsername

      public ContainerRegistryBasicCredentials withUsername(String username)
      Set the username property: The username of the Container Registry.
      Parameters:
      username - the username value to set.
      Returns:
      the ContainerRegistryBasicCredentials object itself.
    • password

      public String password()
      Get the password property: The password of the Container Registry.
      Returns:
      the password value.
    • withPassword

      public ContainerRegistryBasicCredentials withPassword(String password)
      Set the password property: The password of the Container Registry.
      Parameters:
      password - the password value to set.
      Returns:
      the ContainerRegistryBasicCredentials object itself.
    • validate

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

      public static ContainerRegistryBasicCredentials fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      Reads an instance of ContainerRegistryBasicCredentials from the JsonReader.
      Parameters:
      jsonReader - The JsonReader being read.
      Returns:
      An instance of ContainerRegistryBasicCredentials if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
      Throws:
      IllegalStateException - If the deserialized JSON object was missing any required properties.
      IOException - If an error occurs while reading the ContainerRegistryBasicCredentials.