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 Summary
ConstructorsConstructorDescriptionCreates an instance of PeeringPropertiesExchange class. -
Method Summary
Modifier and TypeMethodDescriptionGet the connections property: The set of connections that constitute an exchange peering.static PeeringPropertiesExchangefromJson(com.azure.json.JsonReader jsonReader) Reads an instance of PeeringPropertiesExchange from the JsonReader.com.azure.core.management.SubResourcepeerAsn()Get the peerAsn property: The reference of the peer ASN.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.withConnections(List<ExchangeConnection> connections) Set the connections property: The set of connections that constitute an exchange peering.withPeerAsn(com.azure.core.management.SubResource peerAsn) Set the peerAsn property: The reference of the peer ASN.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
-
PeeringPropertiesExchange
public PeeringPropertiesExchange()Creates an instance of PeeringPropertiesExchange class.
-
-
Method Details
-
connections
Get the connections property: The set of connections that constitute an exchange peering.- Returns:
- the connections value.
-
withConnections
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
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
- Specified by:
toJsonin interfacecom.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.
-