TrafficManagerGeographicHierarchyInner Class

public final class TrafficManagerGeographicHierarchyInner
extends ProxyResource

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

Constructor Summary

Constructor Description
TrafficManagerGeographicHierarchyInner()

Creates an instance of TrafficManagerGeographicHierarchyInner class.

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.

TrafficManagerGeographicHierarchyInner withGeographicHierarchy(Region geographicHierarchy)

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

TrafficManagerGeographicHierarchyInner withId(String id)

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

TrafficManagerGeographicHierarchyInner withName(String name)

Set the name property: The name of the resource.

TrafficManagerGeographicHierarchyInner withType(String type)

Set the type property: The type of the resource.

Methods inherited from ProxyResource

Methods inherited from java.lang.Object

Constructor Details

TrafficManagerGeographicHierarchyInner

public TrafficManagerGeographicHierarchyInner()

Creates an instance of TrafficManagerGeographicHierarchyInner class.

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 the deserialized JSON object was missing any required properties.

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.

withGeographicHierarchy

public TrafficManagerGeographicHierarchyInner withGeographicHierarchy(Region geographicHierarchy)

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

Parameters:

geographicHierarchy - the geographicHierarchy value to set.

Returns:

the TrafficManagerGeographicHierarchyInner object itself.

withId

public TrafficManagerGeographicHierarchyInner withId(String id)

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

Parameters:

id - the id value to set.

Returns:

the TrafficManagerGeographicHierarchyInner object itself.

withName

public TrafficManagerGeographicHierarchyInner withName(String name)

Set the name property: The name of the resource.

Parameters:

name - the name value to set.

Returns:

the TrafficManagerGeographicHierarchyInner object itself.

withType

public TrafficManagerGeographicHierarchyInner withType(String type)

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

Parameters:

type - the type value to set.

Returns:

the TrafficManagerGeographicHierarchyInner object itself.

Applies to