Region Class
- java.
lang. Object - com.
microsoft. azure. management. trafficmanager. Region
- com.
public class Region
Class representing a region in the Geographic hierarchy used with the Geographic traffic routing method.
Constructor Summary
Constructor | Description | |
---|---|---|
Region() |
Method Summary
Modifier and Type | Method and Description |
---|---|
java.lang.String |
code()
Get the code of the region. |
java.lang.String |
name()
Get the name of the region. |
java.util.List<Region> |
regions()
Get the list of Regions grouped under this Region in the Geographic Hierarchy. |
Region |
withCode(String code)
Set the code of the region. |
Region |
withName(String name)
Set the name of the region. |
Region |
withRegions(List<Region> regions)
Set the list of Regions grouped under this Region in the Geographic Hierarchy. |
Methods inherited from java.lang.Object
Constructor Details
Region
public Region()
Method Details
code
public String code()
Get the code of the region.
Returns:
name
public String name()
Get the name of the region.
Returns:
regions
public List
Get the list of Regions grouped under this Region in the Geographic Hierarchy.
Returns:
withCode
public Region withCode(String code)
Set the code of the region.
Parameters:
Returns:
withName
public Region withName(String name)
Set the name of the region.
Parameters:
Returns:
withRegions
public Region withRegions(List
Set the list of Regions grouped under this Region in the Geographic Hierarchy.
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