Class RegistryUpdateParameters
java.lang.Object
com.azure.resourcemanager.containerregistry.models.RegistryUpdateParameters
- All Implemented Interfaces:
com.azure.json.JsonSerializable<RegistryUpdateParameters>
public final class RegistryUpdateParameters
extends Object
implements com.azure.json.JsonSerializable<RegistryUpdateParameters>
The parameters for updating a container registry.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of RegistryUpdateParameters class. -
Method Summary
Modifier and TypeMethodDescriptionGet the adminUserEnabled property: The value that indicates whether the admin user is enabled.Get the dataEndpointEnabled property: Enable a single data endpoint per region for serving data.Get the encryption property: The encryption settings of container registry.static RegistryUpdateParametersfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of RegistryUpdateParameters from the JsonReader.identity()Get the identity property: The identity of the container registry.Get the networkRuleBypassOptions property: Whether to allow trusted Azure services to access a network restricted registry.Get the networkRuleSet property: The network rule set for a container registry.policies()Get the policies property: The policies for a container registry.Get the publicNetworkAccess property: Whether or not public network access is allowed for the container registry.sku()Get the sku property: The SKU of the container registry.tags()Get the tags property: The tags for the container registry.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.withAdminUserEnabled(Boolean adminUserEnabled) Set the adminUserEnabled property: The value that indicates whether the admin user is enabled.withDataEndpointEnabled(Boolean dataEndpointEnabled) Set the dataEndpointEnabled property: Enable a single data endpoint per region for serving data.withEncryption(EncryptionProperty encryption) Set the encryption property: The encryption settings of container registry.withIdentity(IdentityProperties identity) Set the identity property: The identity of the container registry.withNetworkRuleBypassOptions(NetworkRuleBypassOptions networkRuleBypassOptions) Set the networkRuleBypassOptions property: Whether to allow trusted Azure services to access a network restricted registry.withNetworkRuleSet(NetworkRuleSet networkRuleSet) Set the networkRuleSet property: The network rule set for a container registry.withPolicies(Policies policies) Set the policies property: The policies for a container registry.withPublicNetworkAccess(PublicNetworkAccess publicNetworkAccess) Set the publicNetworkAccess property: Whether or not public network access is allowed for the container registry.Set the sku property: The SKU of the container registry.Set the tags property: The tags for the container registry.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
RegistryUpdateParameters
public RegistryUpdateParameters()Creates an instance of RegistryUpdateParameters class.
-
-
Method Details
-
identity
Get the identity property: The identity of the container registry.- Returns:
- the identity value.
-
withIdentity
Set the identity property: The identity of the container registry.- Parameters:
identity- the identity value to set.- Returns:
- the RegistryUpdateParameters object itself.
-
tags
Get the tags property: The tags for the container registry.- Returns:
- the tags value.
-
withTags
Set the tags property: The tags for the container registry.- Parameters:
tags- the tags value to set.- Returns:
- the RegistryUpdateParameters object itself.
-
sku
Get the sku property: The SKU of the container registry.- Returns:
- the sku value.
-
withSku
Set the sku property: The SKU of the container registry.- Parameters:
sku- the sku value to set.- Returns:
- the RegistryUpdateParameters object itself.
-
adminUserEnabled
Get the adminUserEnabled property: The value that indicates whether the admin user is enabled.- Returns:
- the adminUserEnabled value.
-
withAdminUserEnabled
Set the adminUserEnabled property: The value that indicates whether the admin user is enabled.- Parameters:
adminUserEnabled- the adminUserEnabled value to set.- Returns:
- the RegistryUpdateParameters object itself.
-
networkRuleSet
Get the networkRuleSet property: The network rule set for a container registry.- Returns:
- the networkRuleSet value.
-
withNetworkRuleSet
Set the networkRuleSet property: The network rule set for a container registry.- Parameters:
networkRuleSet- the networkRuleSet value to set.- Returns:
- the RegistryUpdateParameters object itself.
-
policies
Get the policies property: The policies for a container registry.- Returns:
- the policies value.
-
withPolicies
Set the policies property: The policies for a container registry.- Parameters:
policies- the policies value to set.- Returns:
- the RegistryUpdateParameters object itself.
-
encryption
Get the encryption property: The encryption settings of container registry.- Returns:
- the encryption value.
-
withEncryption
Set the encryption property: The encryption settings of container registry.- Parameters:
encryption- the encryption value to set.- Returns:
- the RegistryUpdateParameters object itself.
-
dataEndpointEnabled
Get the dataEndpointEnabled property: Enable a single data endpoint per region for serving data.- Returns:
- the dataEndpointEnabled value.
-
withDataEndpointEnabled
Set the dataEndpointEnabled property: Enable a single data endpoint per region for serving data.- Parameters:
dataEndpointEnabled- the dataEndpointEnabled value to set.- Returns:
- the RegistryUpdateParameters object itself.
-
publicNetworkAccess
Get the publicNetworkAccess property: Whether or not public network access is allowed for the container registry.- Returns:
- the publicNetworkAccess value.
-
withPublicNetworkAccess
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 RegistryUpdateParameters object itself.
-
networkRuleBypassOptions
Get the networkRuleBypassOptions property: Whether to allow trusted Azure services to access a network restricted registry.- Returns:
- the networkRuleBypassOptions value.
-
withNetworkRuleBypassOptions
public RegistryUpdateParameters 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 RegistryUpdateParameters object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<RegistryUpdateParameters>- Throws:
IOException
-
fromJson
public static RegistryUpdateParameters fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of RegistryUpdateParameters from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of RegistryUpdateParameters 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 RegistryUpdateParameters.
-