Region Class

  • java.lang.Object
    • com.azure.resourcemanager.trafficmanager.models.Region

Implements

public final class Region
implements JsonSerializable<Region>

Class representing a region in the Geographic hierarchy used with the Geographic traffic routing method.

Method Summary

Modifier and Type Method and Description
String code()

Get the code property: The code of the region.

static Region fromJson(JsonReader jsonReader)

Reads an instance of Region from the JsonReader.

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.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

Methods inherited from java.lang.Object

Method Details

code

public String code()

Get the code property: The code of the region.

Returns:

the code value.

fromJson

public static Region fromJson(JsonReader jsonReader)

Reads an instance of Region from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of Region if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.

Throws:

IOException

- If an error occurs while reading the Region.

name

public String name()

Get the name property: The name of the region.

Returns:

the name value.

regions

public List<Region> regions()

Get the regions property: The list of Regions grouped under this Region in the Geographic Hierarchy.

Returns:

the regions value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

Applies to