Class ConnectedRegistryProperties

java.lang.Object
com.azure.resourcemanager.containerregistry.fluent.models.ConnectedRegistryProperties
All Implemented Interfaces:
com.azure.json.JsonSerializable<ConnectedRegistryProperties>

public final class ConnectedRegistryProperties extends Object implements com.azure.json.JsonSerializable<ConnectedRegistryProperties>
The properties of a connected registry.
  • Constructor Details

    • ConnectedRegistryProperties

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

    • provisioningState

      public ProvisioningState provisioningState()
      Get the provisioningState property: Provisioning state of the resource.
      Returns:
      the provisioningState value.
    • mode

      public ConnectedRegistryMode mode()
      Get the mode property: The mode of the connected registry resource that indicates the permissions of the registry.
      Returns:
      the mode value.
    • withMode

      Set the mode property: The mode of the connected registry resource that indicates the permissions of the registry.
      Parameters:
      mode - the mode value to set.
      Returns:
      the ConnectedRegistryProperties object itself.
    • version

      public String version()
      Get the version property: The current version of ACR runtime on the connected registry.
      Returns:
      the version value.
    • connectionState

      public ConnectionState connectionState()
      Get the connectionState property: The current connection state of the connected registry.
      Returns:
      the connectionState value.
    • lastActivityTime

      public OffsetDateTime lastActivityTime()
      Get the lastActivityTime property: The last activity time of the connected registry.
      Returns:
      the lastActivityTime value.
    • activation

      public ActivationProperties activation()
      Get the activation property: The activation properties of the connected registry.
      Returns:
      the activation value.
    • parent

      public ParentProperties parent()
      Get the parent property: The parent of the connected registry.
      Returns:
      the parent value.
    • withParent

      public ConnectedRegistryProperties withParent(ParentProperties parent)
      Set the parent property: The parent of the connected registry.
      Parameters:
      parent - the parent value to set.
      Returns:
      the ConnectedRegistryProperties object itself.
    • clientTokenIds

      public List<String> clientTokenIds()
      Get the clientTokenIds property: The list of the ACR token resource IDs used to authenticate clients to the connected registry.
      Returns:
      the clientTokenIds value.
    • withClientTokenIds

      public ConnectedRegistryProperties withClientTokenIds(List<String> clientTokenIds)
      Set the clientTokenIds property: The list of the ACR token resource IDs used to authenticate clients to the connected registry.
      Parameters:
      clientTokenIds - the clientTokenIds value to set.
      Returns:
      the ConnectedRegistryProperties object itself.
    • loginServer

      public LoginServerProperties loginServer()
      Get the loginServer property: The login server properties of the connected registry.
      Returns:
      the loginServer value.
    • withLoginServer

      public ConnectedRegistryProperties withLoginServer(LoginServerProperties loginServer)
      Set the loginServer property: The login server properties of the connected registry.
      Parameters:
      loginServer - the loginServer value to set.
      Returns:
      the ConnectedRegistryProperties object itself.
    • logging

      public LoggingProperties logging()
      Get the logging property: The logging properties of the connected registry.
      Returns:
      the logging value.
    • withLogging

      public ConnectedRegistryProperties withLogging(LoggingProperties logging)
      Set the logging property: The logging properties of the connected registry.
      Parameters:
      logging - the logging value to set.
      Returns:
      the ConnectedRegistryProperties object itself.
    • statusDetails

      public List<StatusDetailProperties> statusDetails()
      Get the statusDetails property: The list of current statuses of the connected registry.
      Returns:
      the statusDetails value.
    • notificationsList

      public List<String> notificationsList()
      Get the notificationsList property: The list of notifications subscription information for the connected registry.
      Returns:
      the notificationsList value.
    • withNotificationsList

      public ConnectedRegistryProperties withNotificationsList(List<String> notificationsList)
      Set the notificationsList property: The list of notifications subscription information for the connected registry.
      Parameters:
      notificationsList - the notificationsList value to set.
      Returns:
      the ConnectedRegistryProperties object itself.
    • garbageCollection

      public GarbageCollectionProperties garbageCollection()
      Get the garbageCollection property: The garbage collection properties of the connected registry.
      Returns:
      the garbageCollection value.
    • withGarbageCollection

      public ConnectedRegistryProperties withGarbageCollection(GarbageCollectionProperties garbageCollection)
      Set the garbageCollection property: The garbage collection properties of the connected registry.
      Parameters:
      garbageCollection - the garbageCollection value to set.
      Returns:
      the ConnectedRegistryProperties 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<ConnectedRegistryProperties>
      Throws:
      IOException
    • fromJson

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