TrafficManagerGeographicHierarchyInner Class
- java.
lang. Object - com.
azure. core. management. ProxyResource - com.
azure. resourcemanager. trafficmanager. fluent. models. TrafficManagerGeographicHierarchyInner
- com.
- com.
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 Traffic |
Method Summary
Modifier and Type | Method and Description |
---|---|
static
Traffic |
fromJson(JsonReader jsonReader)
Reads an instance of Traffic |
Region |
geographicHierarchy()
Get the geographic |
String |
id()
Get the id property: Fully qualified resource Id for the resource. |
String |
name()
Get the name property: The name of the resource. |
Json |
toJson(JsonWriter jsonWriter) |
String |
type()
Get the type property: The type of the resource. |
void |
validate()
Validates the instance. |
Traffic |
withGeographicHierarchy(Region geographicHierarchy)
Set the geographic |
Traffic |
withId(String id)
Set the id property: Fully qualified resource Id for the resource. |
Traffic |
withName(String name)
Set the name property: The name of the resource. |
Traffic |
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:
Returns:
Throws:
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:
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:
name
public String name()
Get the name property: The name of the resource.
Overrides:
TrafficManagerGeographicHierarchyInner.name()Returns:
toJson
public JsonWriter toJson(JsonWriter jsonWriter)
Overrides:
TrafficManagerGeographicHierarchyInner.toJson(JsonWriter jsonWriter)Parameters:
Throws:
type
public String type()
Get the type property: The type of the resource. Ex- Microsoft.Network/trafficManagerProfiles.
Overrides:
TrafficManagerGeographicHierarchyInner.type()Returns:
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:
Returns:
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:
Returns:
withName
public TrafficManagerGeographicHierarchyInner withName(String name)
Set the name property: The name of the resource.
Parameters:
Returns:
withType
public TrafficManagerGeographicHierarchyInner withType(String type)
Set the type property: The type of the resource. Ex- Microsoft.Network/trafficManagerProfiles.
Parameters:
Returns:
Applies to
Azure SDK for Java