Class IotHubLocationDescription
java.lang.Object
com.azure.resourcemanager.iothub.models.IotHubLocationDescription
Public representation of one of the locations where a resource is provisioned.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionlocation()
Get the location property: The name of the Azure region.role()
Get the role property: The role of the region, can be either primary or secondary.void
validate()
Validates the instance.withLocation
(String location) Set the location property: The name of the Azure region.Set the role property: The role of the region, can be either primary or secondary.
-
Constructor Details
-
IotHubLocationDescription
public IotHubLocationDescription()
-
-
Method Details
-
location
Get the location property: The name of the Azure region.- Returns:
- the location value.
-
withLocation
Set the location property: The name of the Azure region.- Parameters:
location
- the location value to set.- Returns:
- the IotHubLocationDescription object itself.
-
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.
-