Class IotHubLocationDescription

java.lang.Object
com.azure.resourcemanager.iothub.models.IotHubLocationDescription

public final class IotHubLocationDescription extends Object
Public representation of one of the locations where a resource is provisioned.
  • Constructor Details

    • IotHubLocationDescription

      public IotHubLocationDescription()
  • Method Details

    • location

      public String location()
      Get the location property: The name of the Azure region.
      Returns:
      the location value.
    • withLocation

      public IotHubLocationDescription withLocation(String location)
      Set the location property: The name of the Azure region.
      Parameters:
      location - the location value to set.
      Returns:
      the IotHubLocationDescription object itself.
    • role

      public IotHubReplicaRoleType role()
      Get the role property: 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.
      Returns:
      the role value.
    • withRole

      Set the role property: 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.
      Parameters:
      role - the role value to set.
      Returns:
      the IotHubLocationDescription object itself.
    • validate

      public void validate()
      Validates the instance.
      Throws:
      IllegalArgumentException - thrown if the instance is not valid.