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 Details

    • GeographicHierarchyProperties

      public GeographicHierarchyProperties()
      Creates an instance of GeographicHierarchyProperties class.
  • Method Details

    • 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.
    • withGeographicHierarchy

      public GeographicHierarchyProperties 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 GeographicHierarchyProperties object itself.
    • validate

      public void validate()
      Validates the instance.
      Throws:
      IllegalArgumentException - thrown if the instance is not valid.
    • toJson

      public com.azure.json.JsonWriter toJson(com.azure.json.JsonWriter jsonWriter) throws IOException
      Specified by:
      toJson in interface com.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.