Class IotHubReplicaRoleType
java.lang.Object
com.azure.core.util.ExpandableStringEnum<IotHubReplicaRoleType>
com.azure.resourcemanager.iothub.models.IotHubReplicaRoleType
public final class IotHubReplicaRoleType
extends com.azure.core.util.ExpandableStringEnum<IotHubReplicaRoleType>
The role of the region, can be either primary or secondary. The primary region is where the IoT hub is currently
provisioned. The secondary region is the Azure disaster recovery (DR) paired region and also the region where the IoT
hub can failover to.
-
Field Summary
Modifier and TypeFieldDescriptionstatic final IotHubReplicaRoleType
Static value primary for IotHubReplicaRoleType.static final IotHubReplicaRoleType
Static value secondary for IotHubReplicaRoleType. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic IotHubReplicaRoleType
fromString
(String name) Creates or finds a IotHubReplicaRoleType from its string representation.static Collection<IotHubReplicaRoleType>
values()
Gets known IotHubReplicaRoleType values.Methods inherited from class com.azure.core.util.ExpandableStringEnum
equals, fromString, hashCode, toString, values
-
Field Details
-
PRIMARY
Static value primary for IotHubReplicaRoleType. -
SECONDARY
Static value secondary for IotHubReplicaRoleType.
-
-
Constructor Details
-
IotHubReplicaRoleType
public IotHubReplicaRoleType()
-
-
Method Details
-
fromString
Creates or finds a IotHubReplicaRoleType from its string representation.- Parameters:
name
- a name to look for.- Returns:
- the corresponding IotHubReplicaRoleType.
-
values
Gets known IotHubReplicaRoleType values.- Returns:
- known IotHubReplicaRoleType values.
-