ReplicationInner Class

public final class ReplicationInner
extends Resource

An object that represents a replication for a container registry.

Constructor Summary

Constructor Description
ReplicationInner()

Creates an instance of ReplicationInner class.

Method Summary

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

Reads an instance of ReplicationInner from the JsonReader.

String id()

Get the id property: Fully qualified resource Id for the resource.

String name()

Get the name property: The name of the resource.

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.

SystemData systemData()

Get the systemData property: Metadata pertaining to creation and last modification of the resource.

JsonWriter toJson(JsonWriter jsonWriter)
String type()

Get the type property: The type of the resource.

void validate()

Validates the instance.

ReplicationInner withLocation(String location)
ReplicationInner withRegionEndpointEnabled(Boolean regionEndpointEnabled)

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

ReplicationInner withTags(Map<String,String> tags)
ReplicationInner 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 ProxyResource

Methods inherited from Resource

Methods inherited from java.lang.Object

Constructor Details

ReplicationInner

public ReplicationInner()

Creates an instance of ReplicationInner class.

Method Details

fromJson

public static ReplicationInner fromJson(JsonReader jsonReader)

Reads an instance of ReplicationInner from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of ReplicationInner if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.

Throws:

IOException

- If the deserialized JSON object was missing any required properties.

id

public String id()

Get the id property: Fully qualified resource Id for the resource.

Overrides:

ReplicationInner.id()

Returns:

the id value.

name

public String name()

Get the name property: The name of the resource.

Overrides:

ReplicationInner.name()

Returns:

the name value.

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.

systemData

public SystemData systemData()

Get the systemData property: Metadata pertaining to creation and last modification of the resource.

Returns:

the systemData value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Overrides:

ReplicationInner.toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

type

public String type()

Get the type property: The type of the resource.

Overrides:

ReplicationInner.type()

Returns:

the type value.

validate

public void validate()

Validates the instance.

withLocation

public ReplicationInner withLocation(String location)

Overrides:

ReplicationInner.withLocation(String location)

Parameters:

location

withRegionEndpointEnabled

public ReplicationInner 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 ReplicationInner object itself.

withTags

public ReplicationInner withTags(Map tags)

Overrides:

ReplicationInner.withTags(Map<String,String> tags)

Parameters:

tags

withZoneRedundancy

public ReplicationInner 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 ReplicationInner 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