Class ReplicationUpdateParameters
java.lang.Object
com.azure.resourcemanager.containerregistry.models.ReplicationUpdateParameters
- All Implemented Interfaces:
com.azure.json.JsonSerializable<ReplicationUpdateParameters>
public final class ReplicationUpdateParameters
extends Object
implements com.azure.json.JsonSerializable<ReplicationUpdateParameters>
The parameters for updating a replication.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of ReplicationUpdateParameters class. -
Method Summary
Modifier and TypeMethodDescriptionstatic ReplicationUpdateParametersfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of ReplicationUpdateParameters from the JsonReader.Get the regionEndpointEnabled property: Specifies whether the replication's regional endpoint is enabled.tags()Get the tags property: The tags for the replication.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.withRegionEndpointEnabled(Boolean regionEndpointEnabled) Set the regionEndpointEnabled property: Specifies whether the replication's regional endpoint is enabled.Set the tags property: The tags for the replication.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
-
ReplicationUpdateParameters
public ReplicationUpdateParameters()Creates an instance of ReplicationUpdateParameters class.
-
-
Method Details
-
tags
Get the tags property: The tags for the replication.- Returns:
- the tags value.
-
withTags
Set the tags property: The tags for the replication.- Parameters:
tags- the tags value to set.- Returns:
- the ReplicationUpdateParameters object itself.
-
regionEndpointEnabled
Get the regionEndpointEnabled property: Specifies whether the replication's regional endpoint is enabled. Requests will not be routed to a replication whose regional endpoint is disabled, however its data will continue to be synced with other replications.- Returns:
- the regionEndpointEnabled value.
-
withRegionEndpointEnabled
Set the regionEndpointEnabled property: Specifies whether the replication's regional endpoint is enabled. Requests will not be routed to a replication whose regional endpoint is disabled, however its data will continue to be synced with other replications.- Parameters:
regionEndpointEnabled- the regionEndpointEnabled value to set.- Returns:
- the ReplicationUpdateParameters 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<ReplicationUpdateParameters>- Throws:
IOException
-
fromJson
public static ReplicationUpdateParameters fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of ReplicationUpdateParameters from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of ReplicationUpdateParameters 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 ReplicationUpdateParameters.
-