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 Details

    • PRIMARY

      public static final IotHubReplicaRoleType PRIMARY
      Static value primary for IotHubReplicaRoleType.
    • SECONDARY

      public static final IotHubReplicaRoleType SECONDARY
      Static value secondary for IotHubReplicaRoleType.
  • Constructor Details

    • IotHubReplicaRoleType

      public IotHubReplicaRoleType()
  • Method Details

    • fromString

      public static IotHubReplicaRoleType fromString(String name)
      Creates or finds a IotHubReplicaRoleType from its string representation.
      Parameters:
      name - a name to look for.
      Returns:
      the corresponding IotHubReplicaRoleType.
    • values

      public static Collection<IotHubReplicaRoleType> values()
      Gets known IotHubReplicaRoleType values.
      Returns:
      known IotHubReplicaRoleType values.