Class ContainerRepositoryProperties

java.lang.Object
com.azure.containers.containerregistry.models.ContainerRepositoryProperties
All Implemented Interfaces:
com.azure.json.JsonSerializable<ContainerRepositoryProperties>

public class ContainerRepositoryProperties extends Object implements com.azure.json.JsonSerializable<ContainerRepositoryProperties>
Properties of this repository.
  • Constructor Details

    • ContainerRepositoryProperties

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

    • getRegistryLoginServer

      public String getRegistryLoginServer()
      Get the registryLoginServer property: Registry login server name. This is likely to be similar to {registry-name}.azurecr.io.
      Returns:
      the registryLoginServer value.
    • getName

      public String getName()
      Get the name property: Image name.
      Returns:
      the name value.
    • getCreatedOn

      public OffsetDateTime getCreatedOn()
      Get the createdOn property: Image created time.
      Returns:
      the createdOn value.
    • getLastUpdatedOn

      public OffsetDateTime getLastUpdatedOn()
      Get the lastUpdatedOn property: Image last update time.
      Returns:
      the lastUpdatedOn value.
    • getManifestCount

      public int getManifestCount()
      Get the manifestCount property: Number of the manifests.
      Returns:
      the manifestCount value.
    • getTagCount

      public int getTagCount()
      Get the tagCount property: Number of the tags.
      Returns:
      the tagCount value.
    • isDeleteEnabled

      public Boolean isDeleteEnabled()
      Get the deleteEnabled property: Delete enabled.
      Returns:
      the deleteEnabled value.
    • setDeleteEnabled

      public ContainerRepositoryProperties setDeleteEnabled(Boolean deleteEnabled)
      Set the deleteEnabled property: Delete enabled.
      Parameters:
      deleteEnabled - the deleteEnabled value to set.
      Returns:
      the ContainerRepositoryProperties object itself.
    • isWriteEnabled

      public Boolean isWriteEnabled()
      Get the writeEnabled property: Write enabled.
      Returns:
      the writeEnabled value.
    • setWriteEnabled

      public ContainerRepositoryProperties setWriteEnabled(Boolean writeEnabled)
      Set the writeEnabled property: Write enabled.
      Parameters:
      writeEnabled - the writeEnabled value to set.
      Returns:
      the ContainerRepositoryProperties object itself.
    • isListEnabled

      public Boolean isListEnabled()
      Get the listEnabled property: List enabled.
      Returns:
      the listEnabled value.
    • setListEnabled

      public ContainerRepositoryProperties setListEnabled(Boolean listEnabled)
      Set the listEnabled property: List enabled.
      Parameters:
      listEnabled - the listEnabled value to set.
      Returns:
      the ContainerRepositoryProperties object itself.
    • isReadEnabled

      public Boolean isReadEnabled()
      Get the readEnabled property: Read enabled.
      Returns:
      the readEnabled value.
    • setReadEnabled

      public ContainerRepositoryProperties setReadEnabled(Boolean readEnabled)
      Set the readEnabled property: Read enabled.
      Parameters:
      readEnabled - the readEnabled value to set.
      Returns:
      the ContainerRepositoryProperties object itself.
    • toJson

      public com.azure.json.JsonWriter toJson(com.azure.json.JsonWriter jsonWriter) throws IOException
      Specified by:
      toJson in interface com.azure.json.JsonSerializable<ContainerRepositoryProperties>
      Throws:
      IOException
    • fromJson

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