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

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

    • RegistryProperties

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

    • loginServer

      public String loginServer()
      Get the loginServer property: The URL that can be used to log into the container registry.
      Returns:
      the loginServer value.
    • creationDate

      public OffsetDateTime creationDate()
      Get the creationDate property: The creation date of the container registry in ISO8601 format.
      Returns:
      the creationDate value.
    • provisioningState

      public ProvisioningState provisioningState()
      Get the provisioningState property: The provisioning state of the container registry at the time the operation was called.
      Returns:
      the provisioningState value.
    • status

      public Status status()
      Get the status property: The status of the container registry at the time the operation was called.
      Returns:
      the status value.
    • adminUserEnabled

      public Boolean adminUserEnabled()
      Get the adminUserEnabled property: The value that indicates whether the admin user is enabled.
      Returns:
      the adminUserEnabled value.
    • withAdminUserEnabled

      public RegistryProperties withAdminUserEnabled(Boolean adminUserEnabled)
      Set the adminUserEnabled property: The value that indicates whether the admin user is enabled.
      Parameters:
      adminUserEnabled - the adminUserEnabled value to set.
      Returns:
      the RegistryProperties object itself.
    • networkRuleSet

      public NetworkRuleSet networkRuleSet()
      Get the networkRuleSet property: The network rule set for a container registry.
      Returns:
      the networkRuleSet value.
    • withNetworkRuleSet

      public RegistryProperties withNetworkRuleSet(NetworkRuleSet networkRuleSet)
      Set the networkRuleSet property: The network rule set for a container registry.
      Parameters:
      networkRuleSet - the networkRuleSet value to set.
      Returns:
      the RegistryProperties object itself.
    • policies

      public Policies policies()
      Get the policies property: The policies for a container registry.
      Returns:
      the policies value.
    • withPolicies

      public RegistryProperties withPolicies(Policies policies)
      Set the policies property: The policies for a container registry.
      Parameters:
      policies - the policies value to set.
      Returns:
      the RegistryProperties object itself.
    • encryption

      public EncryptionProperty encryption()
      Get the encryption property: The encryption settings of container registry.
      Returns:
      the encryption value.
    • withEncryption

      public RegistryProperties withEncryption(EncryptionProperty encryption)
      Set the encryption property: The encryption settings of container registry.
      Parameters:
      encryption - the encryption value to set.
      Returns:
      the RegistryProperties object itself.
    • dataEndpointEnabled

      public Boolean dataEndpointEnabled()
      Get the dataEndpointEnabled property: Enable a single data endpoint per region for serving data.
      Returns:
      the dataEndpointEnabled value.
    • withDataEndpointEnabled

      public RegistryProperties withDataEndpointEnabled(Boolean dataEndpointEnabled)
      Set the dataEndpointEnabled property: Enable a single data endpoint per region for serving data.
      Parameters:
      dataEndpointEnabled - the dataEndpointEnabled value to set.
      Returns:
      the RegistryProperties object itself.
    • dataEndpointHostNames

      public List<String> dataEndpointHostNames()
      Get the dataEndpointHostNames property: List of host names that will serve data when dataEndpointEnabled is true.
      Returns:
      the dataEndpointHostNames value.
    • privateEndpointConnections

      public List<PrivateEndpointConnectionInner> privateEndpointConnections()
      Get the privateEndpointConnections property: List of private endpoint connections for a container registry.
      Returns:
      the privateEndpointConnections value.
    • publicNetworkAccess

      public PublicNetworkAccess publicNetworkAccess()
      Get the publicNetworkAccess property: Whether or not public network access is allowed for the container registry.
      Returns:
      the publicNetworkAccess value.
    • withPublicNetworkAccess

      public RegistryProperties withPublicNetworkAccess(PublicNetworkAccess publicNetworkAccess)
      Set the publicNetworkAccess property: Whether or not public network access is allowed for the container registry.
      Parameters:
      publicNetworkAccess - the publicNetworkAccess value to set.
      Returns:
      the RegistryProperties object itself.
    • networkRuleBypassOptions

      public NetworkRuleBypassOptions networkRuleBypassOptions()
      Get the networkRuleBypassOptions property: Whether to allow trusted Azure services to access a network restricted registry.
      Returns:
      the networkRuleBypassOptions value.
    • withNetworkRuleBypassOptions

      public RegistryProperties withNetworkRuleBypassOptions(NetworkRuleBypassOptions networkRuleBypassOptions)
      Set the networkRuleBypassOptions property: Whether to allow trusted Azure services to access a network restricted registry.
      Parameters:
      networkRuleBypassOptions - the networkRuleBypassOptions value to set.
      Returns:
      the RegistryProperties object itself.
    • zoneRedundancy

      public ZoneRedundancy zoneRedundancy()
      Get the zoneRedundancy property: Whether or not zone redundancy is enabled for this container registry.
      Returns:
      the zoneRedundancy value.
    • withZoneRedundancy

      public RegistryProperties withZoneRedundancy(ZoneRedundancy zoneRedundancy)
      Set the zoneRedundancy property: Whether or not zone redundancy is enabled for this container registry.
      Parameters:
      zoneRedundancy - the zoneRedundancy value to set.
      Returns:
      the RegistryProperties 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<RegistryProperties>
      Throws:
      IOException
    • fromJson

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