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 Summary
ConstructorsConstructorDescriptionCreates an instance of PeeringLocationPropertiesExchange class. -
Method Summary
Modifier and TypeMethodDescriptionfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of PeeringLocationPropertiesExchange from the JsonReader.Get the peeringFacilities property: The list of exchange peering facilities at the peering location.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.withPeeringFacilities(List<ExchangePeeringFacility> peeringFacilities) Set the peeringFacilities property: The list of exchange peering facilities at the peering location.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
-
PeeringLocationPropertiesExchange
public PeeringLocationPropertiesExchange()Creates an instance of PeeringLocationPropertiesExchange class.
-
-
Method Details
-
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
- Specified by:
toJsonin interfacecom.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.
-