ReplicationProperties Class

  • java.lang.Object
    • com.azure.resourcemanager.containerregistry.fluent.models.ReplicationProperties

Implements

public final class ReplicationProperties
implements JsonSerializable<ReplicationProperties>

The properties of a replication.

Constructor Summary

Constructor Description
ReplicationProperties()

Creates an instance of ReplicationProperties class.

Method Summary

Modifier and Type Method and Description
static ReplicationProperties fromJson(JsonReader jsonReader)

Reads an instance of ReplicationProperties from the JsonReader.

ProvisioningState provisioningState()

Get the provisioningState property: The provisioning state of the replication at the time the operation was called.

Boolean regionEndpointEnabled()

Get the regionEndpointEnabled property: Specifies whether the replication's regional endpoint is enabled.

Status status()

Get the status property: The status of the replication at the time the operation was called.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

ReplicationProperties withRegionEndpointEnabled(Boolean regionEndpointEnabled)

Set the regionEndpointEnabled property: Specifies whether the replication's regional endpoint is enabled.

ReplicationProperties withZoneRedundancy(ZoneRedundancy zoneRedundancy)

Set the zoneRedundancy property: Whether or not zone redundancy is enabled for this container registry replication.

ZoneRedundancy zoneRedundancy()

Get the zoneRedundancy property: Whether or not zone redundancy is enabled for this container registry replication.

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:

jsonReader - The JsonReader being read.

Returns:

An instance of ReplicationProperties 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 ReplicationProperties.

provisioningState

public ProvisioningState provisioningState()

Get the provisioningState property: The provisioning state of the replication at the time the operation was called.

Returns:

the provisioningState value.

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:

the regionEndpointEnabled value.

status

public Status status()

Get the status property: The status of the replication at the time the operation was called.

Returns:

the status value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

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:

regionEndpointEnabled - the regionEndpointEnabled value to set.

Returns:

the ReplicationProperties object itself.

withZoneRedundancy

public ReplicationProperties withZoneRedundancy(ZoneRedundancy zoneRedundancy)

Set the zoneRedundancy property: Whether or not zone redundancy is enabled for this container registry replication.

Parameters:

zoneRedundancy - the zoneRedundancy value to set.

Returns:

the ReplicationProperties object itself.

zoneRedundancy

public ZoneRedundancy zoneRedundancy()

Get the zoneRedundancy property: Whether or not zone redundancy is enabled for this container registry replication.

Returns:

the zoneRedundancy value.

Applies to

Azure SDK for Java

Latest