IotHubLocationDescription Class
- java.
lang. Object - com.
azure. resourcemanager. iothub. models. IotHubLocationDescription
- com.
public final class IotHubLocationDescription
Public representation of one of the locations where a resource is provisioned.
Constructor Summary
Constructor | Description |
---|---|
IotHubLocationDescription() |
Creates an instance of Iot |
Method Summary
Modifier and Type | Method and Description |
---|---|
String |
location()
Get the location property: The name of the Azure region. |
Iot |
role()
Get the role property: The role of the region, can be either primary or secondary. |
void |
validate()
Validates the instance. |
Iot |
withLocation(String location)
Set the location property: The name of the Azure region. |
Iot |
withRole(IotHubReplicaRoleType role)
Set the role property: The role of the region, can be either primary or secondary. |
Methods inherited from java.lang.Object
Constructor Details
IotHubLocationDescription
public IotHubLocationDescription()
Creates an instance of IotHubLocationDescription class.
Method Details
location
public String location()
Get the location property: The name of the Azure region.
Returns:
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:
validate
public void validate()
Validates the instance.
withLocation
public IotHubLocationDescription withLocation(String location)
Set the location property: The name of the Azure region.
Parameters:
Returns:
withRole
public IotHubLocationDescription withRole(IotHubReplicaRoleType role)
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:
Returns:
Applies to
Azure SDK for Java
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for