Class PeeringLocationPropertiesExchange

java.lang.Object
com.azure.resourcemanager.peering.models.PeeringLocationPropertiesExchange
All Implemented Interfaces:
com.azure.json.JsonSerializable<PeeringLocationPropertiesExchange>

public final class PeeringLocationPropertiesExchange extends Object implements com.azure.json.JsonSerializable<PeeringLocationPropertiesExchange>
The properties that define an exchange peering location.
  • Constructor Details

    • PeeringLocationPropertiesExchange

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

    • peeringFacilities

      public List<ExchangePeeringFacility> peeringFacilities()
      Get the peeringFacilities property: The list of exchange peering facilities at the peering location.
      Returns:
      the peeringFacilities value.
    • withPeeringFacilities

      public PeeringLocationPropertiesExchange withPeeringFacilities(List<ExchangePeeringFacility> peeringFacilities)
      Set the peeringFacilities property: The list of exchange peering facilities at the peering location.
      Parameters:
      peeringFacilities - the peeringFacilities value to set.
      Returns:
      the PeeringLocationPropertiesExchange 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<PeeringLocationPropertiesExchange>
      Throws:
      IOException
    • fromJson

      public static PeeringLocationPropertiesExchange fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      Reads an instance of PeeringLocationPropertiesExchange from the JsonReader.
      Parameters:
      jsonReader - The JsonReader being read.
      Returns:
      An instance of PeeringLocationPropertiesExchange 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 PeeringLocationPropertiesExchange.