Partager via


ArmDisasterRecoveryInner Class

public final class ArmDisasterRecoveryInner
extends ProxyResource

Single item in List or Get Alias(Disaster Recovery configuration) operation.

Constructor Summary

Constructor Description
ArmDisasterRecoveryInner()

Creates an instance of ArmDisasterRecoveryInner class.

Method Summary

Modifier and Type Method and Description
String alternateName()

Get the alternateName property: Alternate name specified when alias and namespace names are same.

static ArmDisasterRecoveryInner fromJson(JsonReader jsonReader)

Reads an instance of ArmDisasterRecoveryInner from the JsonReader.

String id()

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

String location()

Get the location property: The geo-location where the resource lives.

String name()

Get the name property: The name of the resource.

String partnerNamespace()

Get the partnerNamespace property: ARM Id of the Primary/Secondary eventhub namespace name, which is part of GEO DR pairing.

Long pendingReplicationOperationsCount()

Get the pendingReplicationOperationsCount property: Number of entities pending to be replicated.

ProvisioningStateDR provisioningState()

Get the provisioningState property: Provisioning state of the Alias(Disaster Recovery configuration) - possible values 'Accepted' or 'Succeeded' or 'Failed'.

RoleDisasterRecovery role()

Get the role property: role of namespace in GEO DR - possible values 'Primary' or 'PrimaryNotReplicating' or 'Secondary'.

SystemData systemData()

Get the systemData property: The system meta data relating to this resource.

JsonWriter toJson(JsonWriter jsonWriter)
String type()

Get the type property: The type of the resource.

void validate()

Validates the instance.

ArmDisasterRecoveryInner withAlternateName(String alternateName)

Set the alternateName property: Alternate name specified when alias and namespace names are same.

ArmDisasterRecoveryInner withPartnerNamespace(String partnerNamespace)

Set the partnerNamespace property: ARM Id of the Primary/Secondary eventhub namespace name, which is part of GEO DR pairing.

Methods inherited from ProxyResource

Methods inherited from java.lang.Object

Constructor Details

ArmDisasterRecoveryInner

public ArmDisasterRecoveryInner()

Creates an instance of ArmDisasterRecoveryInner class.

Method Details

alternateName

public String alternateName()

Get the alternateName property: Alternate name specified when alias and namespace names are same.

Returns:

the alternateName value.

fromJson

public static ArmDisasterRecoveryInner fromJson(JsonReader jsonReader)

Reads an instance of ArmDisasterRecoveryInner from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of ArmDisasterRecoveryInner 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:

ArmDisasterRecoveryInner.id()

Returns:

the id value.

location

public String location()

Get the location property: The geo-location where the resource lives.

Returns:

the location value.

name

public String name()

Get the name property: The name of the resource.

Overrides:

ArmDisasterRecoveryInner.name()

Returns:

the name value.

partnerNamespace

public String partnerNamespace()

Get the partnerNamespace property: ARM Id of the Primary/Secondary eventhub namespace name, which is part of GEO DR pairing.

Returns:

the partnerNamespace value.

pendingReplicationOperationsCount

public Long pendingReplicationOperationsCount()

Get the pendingReplicationOperationsCount property: Number of entities pending to be replicated.

Returns:

the pendingReplicationOperationsCount value.

provisioningState

public ProvisioningStateDR provisioningState()

Get the provisioningState property: Provisioning state of the Alias(Disaster Recovery configuration) - possible values 'Accepted' or 'Succeeded' or 'Failed'.

Returns:

the provisioningState value.

role

public RoleDisasterRecovery role()

Get the role property: role of namespace in GEO DR - possible values 'Primary' or 'PrimaryNotReplicating' or 'Secondary'.

Returns:

the role value.

systemData

public SystemData systemData()

Get the systemData property: The system meta data relating to this resource.

Returns:

the systemData value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Overrides:

ArmDisasterRecoveryInner.toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

type

public String type()

Get the type property: The type of the resource.

Overrides:

ArmDisasterRecoveryInner.type()

Returns:

the type value.

validate

public void validate()

Validates the instance.

withAlternateName

public ArmDisasterRecoveryInner withAlternateName(String alternateName)

Set the alternateName property: Alternate name specified when alias and namespace names are same.

Parameters:

alternateName - the alternateName value to set.

Returns:

the ArmDisasterRecoveryInner object itself.

withPartnerNamespace

public ArmDisasterRecoveryInner withPartnerNamespace(String partnerNamespace)

Set the partnerNamespace property: ARM Id of the Primary/Secondary eventhub namespace name, which is part of GEO DR pairing.

Parameters:

partnerNamespace - the partnerNamespace value to set.

Returns:

the ArmDisasterRecoveryInner object itself.

Applies to