public final class Region extends Object
| Constructor and Description |
|---|
Region() |
| Modifier and Type | Method and Description |
|---|---|
String |
code()
Get the code property: The code of the region.
|
String |
name()
Get the name property: The name of the region.
|
List<Region> |
regions()
Get the regions property: The list of Regions grouped under this Region in the Geographic Hierarchy.
|
void |
validate()
Validates the instance.
|
Region |
withCode(String code)
Set the code property: The code of the region.
|
Region |
withName(String name)
Set the name property: The name of the region.
|
Region |
withRegions(List<Region> regions)
Set the regions property: The list of Regions grouped under this Region in the Geographic Hierarchy.
|
public String code()
public Region withCode(String code)
code - the code value to set.public String name()
public Region withName(String name)
name - the name value to set.public List<Region> regions()
public Region withRegions(List<Region> regions)
regions - the regions value to set.public void validate()
IllegalArgumentException - thrown if the instance is not valid.Copyright © 2021 Microsoft Corporation. All rights reserved.