Class GeographicHierarchyProperties
java.lang.Object
com.azure.resourcemanager.trafficmanager.fluent.models.GeographicHierarchyProperties
- All Implemented Interfaces:
com.azure.json.JsonSerializable<GeographicHierarchyProperties>
public final class GeographicHierarchyProperties
extends Object
implements com.azure.json.JsonSerializable<GeographicHierarchyProperties>
Class representing the properties of the Geographic hierarchy used with the Geographic traffic routing method.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of GeographicHierarchyProperties class. -
Method Summary
Modifier and TypeMethodDescriptionfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of GeographicHierarchyProperties from the JsonReader.Get the geographicHierarchy property: The region at the root of the hierarchy from all the regions in the hierarchy can be retrieved.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.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.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
GeographicHierarchyProperties
public GeographicHierarchyProperties()Creates an instance of GeographicHierarchyProperties class.
-
-
Method Details
-
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.
-
withGeographicHierarchy
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 GeographicHierarchyProperties object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<GeographicHierarchyProperties>- Throws:
IOException
-
fromJson
public static GeographicHierarchyProperties fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of GeographicHierarchyProperties from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of GeographicHierarchyProperties 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 GeographicHierarchyProperties.
-