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 Summary
ConstructorsConstructorDescriptionCreates an instance of PeeringLocationPropertiesDirect class. -
Method Summary
Modifier and TypeMethodDescriptionGet the bandwidthOffers property: The list of bandwidth offers available at the peering location.fromJson(com.azure.json.JsonReader jsonReader) Reads an instance of PeeringLocationPropertiesDirect from the JsonReader.Get the peeringFacilities property: The list of direct peering facilities at the peering location.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.withBandwidthOffers(List<PeeringBandwidthOffer> bandwidthOffers) Set the bandwidthOffers property: The list of bandwidth offers available at the peering location.withPeeringFacilities(List<DirectPeeringFacility> peeringFacilities) Set the peeringFacilities property: The list of direct 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
-
PeeringLocationPropertiesDirect
public PeeringLocationPropertiesDirect()Creates an instance of PeeringLocationPropertiesDirect class.
-
-
Method Details
-
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
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
- Specified by:
toJsonin interfacecom.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.
-