Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the MIT License. See License.txt in the project root for license information. Code generated by Microsoft (R) AutoRest Code Generator.
/** * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for * license information. * * Code generated by Microsoft (R) AutoRest Code Generator. */
package com.microsoft.azure.management.eventhub.implementation; import com.microsoft.azure.management.eventhub.ProvisioningStateDR; import com.microsoft.azure.management.eventhub.RoleDisasterRecovery; import com.fasterxml.jackson.annotation.JsonProperty; import com.microsoft.rest.serializer.JsonFlatten; import com.microsoft.azure.ProxyResource;
Single item in List or Get Alias(Disaster Recovery configuration) operation.
/** * Single item in List or Get Alias(Disaster Recovery configuration) operation. */
@JsonFlatten public class ArmDisasterRecoveryInner extends ProxyResource {
Provisioning state of the Alias(Disaster Recovery configuration) - possible values 'Accepted' or 'Succeeded' or 'Failed'. Possible values include: 'Accepted', 'Succeeded', 'Failed'.
/** * Provisioning state of the Alias(Disaster Recovery configuration) - * possible values 'Accepted' or 'Succeeded' or 'Failed'. Possible values * include: 'Accepted', 'Succeeded', 'Failed'. */
@JsonProperty(value = "properties.provisioningState", access = JsonProperty.Access.WRITE_ONLY) private ProvisioningStateDR provisioningState;
ARM Id of the Primary/Secondary eventhub namespace name, which is part of GEO DR pairing.
/** * ARM Id of the Primary/Secondary eventhub namespace name, which is part * of GEO DR pairing. */
@JsonProperty(value = "properties.partnerNamespace") private String partnerNamespace;
Alternate name specified when alias and namespace names are same.
/** * Alternate name specified when alias and namespace names are same. */
@JsonProperty(value = "properties.alternateName") private String alternateName;
role of namespace in GEO DR - possible values 'Primary' or 'PrimaryNotReplicating' or 'Secondary'. Possible values include: 'Primary', 'PrimaryNotReplicating', 'Secondary'.
/** * role of namespace in GEO DR - possible values 'Primary' or * 'PrimaryNotReplicating' or 'Secondary'. Possible values include: * 'Primary', 'PrimaryNotReplicating', 'Secondary'. */
@JsonProperty(value = "properties.role", access = JsonProperty.Access.WRITE_ONLY) private RoleDisasterRecovery role;
Number of entities pending to be replicated.
/** * Number of entities pending to be replicated. */
@JsonProperty(value = "properties.pendingReplicationOperationsCount", access = JsonProperty.Access.WRITE_ONLY) private Long pendingReplicationOperationsCount;
Get provisioning state of the Alias(Disaster Recovery configuration) - possible values 'Accepted' or 'Succeeded' or 'Failed'. Possible values include: 'Accepted', 'Succeeded', 'Failed'.
Returns:the provisioningState value
/** * Get provisioning state of the Alias(Disaster Recovery configuration) - possible values 'Accepted' or 'Succeeded' or 'Failed'. Possible values include: 'Accepted', 'Succeeded', 'Failed'. * * @return the provisioningState value */
public ProvisioningStateDR provisioningState() { return this.provisioningState; }
Get aRM Id of the Primary/Secondary eventhub namespace name, which is part of GEO DR pairing.
Returns:the partnerNamespace value
/** * Get aRM Id of the Primary/Secondary eventhub namespace name, which is part of GEO DR pairing. * * @return the partnerNamespace value */
public String partnerNamespace() { return this.partnerNamespace; }
Set aRM Id of the Primary/Secondary eventhub namespace name, which is part of GEO DR pairing.
Params:
  • partnerNamespace – the partnerNamespace value to set
Returns:the ArmDisasterRecoveryInner object itself.
/** * Set aRM Id of the Primary/Secondary eventhub namespace name, which is part of GEO DR pairing. * * @param partnerNamespace the partnerNamespace value to set * @return the ArmDisasterRecoveryInner object itself. */
public ArmDisasterRecoveryInner withPartnerNamespace(String partnerNamespace) { this.partnerNamespace = partnerNamespace; return this; }
Get alternate name specified when alias and namespace names are same.
Returns:the alternateName value
/** * Get alternate name specified when alias and namespace names are same. * * @return the alternateName value */
public String alternateName() { return this.alternateName; }
Set alternate name specified when alias and namespace names are same.
Params:
  • alternateName – the alternateName value to set
Returns:the ArmDisasterRecoveryInner object itself.
/** * Set alternate name specified when alias and namespace names are same. * * @param alternateName the alternateName value to set * @return the ArmDisasterRecoveryInner object itself. */
public ArmDisasterRecoveryInner withAlternateName(String alternateName) { this.alternateName = alternateName; return this; }
Get role of namespace in GEO DR - possible values 'Primary' or 'PrimaryNotReplicating' or 'Secondary'. Possible values include: 'Primary', 'PrimaryNotReplicating', 'Secondary'.
Returns:the role value
/** * Get role of namespace in GEO DR - possible values 'Primary' or 'PrimaryNotReplicating' or 'Secondary'. Possible values include: 'Primary', 'PrimaryNotReplicating', 'Secondary'. * * @return the role value */
public RoleDisasterRecovery role() { return this.role; }
Get number of entities pending to be replicated.
Returns:the pendingReplicationOperationsCount value
/** * Get number of entities pending to be replicated. * * @return the pendingReplicationOperationsCount value */
public Long pendingReplicationOperationsCount() { return this.pendingReplicationOperationsCount; } }