Class ContainerRegistryProperties

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

public final class ContainerRegistryProperties extends Object implements com.azure.json.JsonSerializable<ContainerRegistryProperties>
Container registry resource payload.
  • Constructor Details

    • ContainerRegistryProperties

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

    • credentials

      public ContainerRegistryCredentials credentials()
      Get the credentials property: The credentials of the container registry resource.
      Returns:
      the credentials value.
    • withCredentials

      public ContainerRegistryProperties withCredentials(ContainerRegistryCredentials credentials)
      Set the credentials property: The credentials of the container registry resource.
      Parameters:
      credentials - the credentials value to set.
      Returns:
      the ContainerRegistryProperties object itself.
    • provisioningState

      public ContainerRegistryProvisioningState provisioningState()
      Get the provisioningState property: State of the Container Registry.
      Returns:
      the provisioningState value.
    • 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<ContainerRegistryProperties>
      Throws:
      IOException
    • fromJson

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