TrafficManagerGeographicHierarchyInner Class

public final class TrafficManagerGeographicHierarchyInner
extends ProxyResource

Class representing the Geographic hierarchy used with the Geographic traffic routing method.

Method Summary

Modifier and Type Method and Description
static TrafficManagerGeographicHierarchyInner fromJson(JsonReader jsonReader)

Reads an instance of TrafficManagerGeographicHierarchyInner from the JsonReader.

Region geographicHierarchy()

Get the geographicHierarchy property: The region at the root of the hierarchy from all the regions in the hierarchy can be retrieved.

String id()

Get the id property: Fully qualified resource Id for the resource.

String name()

Get the name property: The name of the resource.

JsonWriter toJson(JsonWriter jsonWriter)
String type()

Get the type property: The type of the resource.

void validate()

Validates the instance.

Methods inherited from ProxyResource

Methods inherited from java.lang.Object

Method Details

fromJson

public static TrafficManagerGeographicHierarchyInner fromJson(JsonReader jsonReader)

Reads an instance of TrafficManagerGeographicHierarchyInner from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of TrafficManagerGeographicHierarchyInner 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 TrafficManagerGeographicHierarchyInner.

geographicHierarchy

public Region geographicHierarchy()

Get the geographicHierarchy property: The region at the root of the hierarchy from all the regions in the hierarchy can be retrieved.

Returns:

the geographicHierarchy value.

id

public String id()

Get the id property: Fully qualified resource Id for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/trafficManagerProfiles/{resourceName}.

Overrides:

TrafficManagerGeographicHierarchyInner.id()

Returns:

the id value.

name

public String name()

Get the name property: The name of the resource.

Overrides:

TrafficManagerGeographicHierarchyInner.name()

Returns:

the name value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Overrides:

TrafficManagerGeographicHierarchyInner.toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

type

public String type()

Get the type property: The type of the resource. Ex- Microsoft.Network/trafficManagerProfiles.

Overrides:

TrafficManagerGeographicHierarchyInner.type()

Returns:

the type value.

validate

public void validate()

Validates the instance.

Applies to