ReplicationProperties Class
- java.
lang. Object - com.
azure. resourcemanager. containerregistry. fluent. models. ReplicationProperties
- com.
Implements
public final class ReplicationProperties
implements JsonSerializable<ReplicationProperties>
The properties of a replication.
Constructor Summary
| Constructor | Description |
|---|---|
| ReplicationProperties() |
Creates an instance of Replication |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
|
static
Replication |
fromJson(JsonReader jsonReader)
Reads an instance of Replication |
|
Provisioning |
provisioningState()
Get the provisioning |
| Boolean |
regionEndpointEnabled()
Get the region |
| Status |
status()
Get the status property: The status of the replication at the time the operation was called. |
|
Json |
toJson(JsonWriter jsonWriter) |
| void |
validate()
Validates the instance. |
|
Replication |
withRegionEndpointEnabled(Boolean regionEndpointEnabled)
Set the region |
|
Replication |
withZoneRedundancy(ZoneRedundancy zoneRedundancy)
Set the zone |
|
Zone |
zoneRedundancy()
Get the zone |
Methods inherited from java.lang.Object
Constructor Details
ReplicationProperties
public ReplicationProperties()
Creates an instance of ReplicationProperties class.
Method Details
fromJson
public static ReplicationProperties fromJson(JsonReader jsonReader)
Reads an instance of ReplicationProperties from the JsonReader.
Parameters:
Returns:
Throws:
provisioningState
public ProvisioningState provisioningState()
Get the provisioningState property: The provisioning state of the replication at the time the operation was called.
Returns:
regionEndpointEnabled
public Boolean 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:
status
public Status status()
Get the status property: The status of the replication at the time the operation was called.
Returns:
toJson
validate
public void validate()
Validates the instance.
withRegionEndpointEnabled
public ReplicationProperties withRegionEndpointEnabled(Boolean regionEndpointEnabled)
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:
Returns:
withZoneRedundancy
public ReplicationProperties withZoneRedundancy(ZoneRedundancy zoneRedundancy)
Set the zoneRedundancy property: Whether or not zone redundancy is enabled for this container registry replication.
Parameters:
Returns:
zoneRedundancy
public ZoneRedundancy zoneRedundancy()
Get the zoneRedundancy property: Whether or not zone redundancy is enabled for this container registry replication.
Returns: