Class PeeringPropertiesExchange

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

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

    • PeeringPropertiesExchange

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

    • connections

      public List<ExchangeConnection> connections()
      Get the connections property: The set of connections that constitute an exchange peering.
      Returns:
      the connections value.
    • withConnections

      public PeeringPropertiesExchange withConnections(List<ExchangeConnection> connections)
      Set the connections property: The set of connections that constitute an exchange peering.
      Parameters:
      connections - the connections value to set.
      Returns:
      the PeeringPropertiesExchange object itself.
    • peerAsn

      public com.azure.core.management.SubResource peerAsn()
      Get the peerAsn property: The reference of the peer ASN.
      Returns:
      the peerAsn value.
    • withPeerAsn

      public PeeringPropertiesExchange withPeerAsn(com.azure.core.management.SubResource peerAsn)
      Set the peerAsn property: The reference of the peer ASN.
      Parameters:
      peerAsn - the peerAsn value to set.
      Returns:
      the PeeringPropertiesExchange 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<PeeringPropertiesExchange>
      Throws:
      IOException
    • fromJson

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