Region Class

  • java.lang.Object
    • com.microsoft.azure.management.trafficmanager.Region

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

java.lang.Object.clone java.lang.Object.equals java.lang.Object.finalize java.lang.Object.getClass java.lang.Object.hashCode java.lang.Object.notify java.lang.Object.notifyAll java.lang.Object.toString java.lang.Object.wait java.lang.Object.wait java.lang.Object.wait

Constructor Details

Region

public Region()

Method Details

code

public String code()

Get the code of the region.

Returns:

the code value

name

public String name()

Get the name of the region.

Returns:

the name value

regions

public List regions()

Get the list of Regions grouped under this Region in the Geographic Hierarchy.

Returns:

the regions value

withCode

public Region withCode(String code)

Set the code of the region.

Parameters:

code - the code value to set

Returns:

the Region object itself.

withName

public Region withName(String name)

Set the name of the region.

Parameters:

name - the name value to set

Returns:

the Region object itself.

withRegions

public Region withRegions(List regions)

Set the list of Regions grouped under this Region in the Geographic Hierarchy.

Parameters:

regions - the regions value to set

Returns:

the Region object itself.

Applies to