Class PeeringLocationPropertiesDirect

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

public final class PeeringLocationPropertiesDirect extends Object implements com.azure.json.JsonSerializable<PeeringLocationPropertiesDirect>
The properties that define a direct peering location.
  • Constructor Details

    • PeeringLocationPropertiesDirect

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

    • peeringFacilities

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

      public PeeringLocationPropertiesDirect withPeeringFacilities(List<DirectPeeringFacility> peeringFacilities)
      Set the peeringFacilities property: The list of direct peering facilities at the peering location.
      Parameters:
      peeringFacilities - the peeringFacilities value to set.
      Returns:
      the PeeringLocationPropertiesDirect object itself.
    • bandwidthOffers

      public List<PeeringBandwidthOffer> bandwidthOffers()
      Get the bandwidthOffers property: The list of bandwidth offers available at the peering location.
      Returns:
      the bandwidthOffers value.
    • withBandwidthOffers

      public PeeringLocationPropertiesDirect withBandwidthOffers(List<PeeringBandwidthOffer> bandwidthOffers)
      Set the bandwidthOffers property: The list of bandwidth offers available at the peering location.
      Parameters:
      bandwidthOffers - the bandwidthOffers value to set.
      Returns:
      the PeeringLocationPropertiesDirect 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<PeeringLocationPropertiesDirect>
      Throws:
      IOException
    • fromJson

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