Class DirectPeeringFacility
java.lang.Object
com.azure.resourcemanager.peering.models.DirectPeeringFacility
- All Implemented Interfaces:
com.azure.json.JsonSerializable<DirectPeeringFacility>
public final class DirectPeeringFacility
extends Object
implements com.azure.json.JsonSerializable<DirectPeeringFacility>
The properties that define a direct peering facility.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddress()Get the address property: The address of the direct peering facility.Get the directPeeringType property: The type of the direct peering.static DirectPeeringFacilityfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of DirectPeeringFacility from the JsonReader.Get the peeringDBFacilityId property: The PeeringDB.com ID of the facility.Get the peeringDBFacilityLink property: The PeeringDB.com URL of the facility.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.withAddress(String address) Set the address property: The address of the direct peering facility.withDirectPeeringType(DirectPeeringType directPeeringType) Set the directPeeringType property: The type of the direct peering.withPeeringDBFacilityId(Integer peeringDBFacilityId) Set the peeringDBFacilityId property: The PeeringDB.com ID of the facility.withPeeringDBFacilityLink(String peeringDBFacilityLink) Set the peeringDBFacilityLink property: The PeeringDB.com URL of the facility.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
-
DirectPeeringFacility
public DirectPeeringFacility()Creates an instance of DirectPeeringFacility class.
-
-
Method Details
-
address
Get the address property: The address of the direct peering facility.- Returns:
- the address value.
-
withAddress
Set the address property: The address of the direct peering facility.- Parameters:
address- the address value to set.- Returns:
- the DirectPeeringFacility object itself.
-
directPeeringType
Get the directPeeringType property: The type of the direct peering.- Returns:
- the directPeeringType value.
-
withDirectPeeringType
Set the directPeeringType property: The type of the direct peering.- Parameters:
directPeeringType- the directPeeringType value to set.- Returns:
- the DirectPeeringFacility object itself.
-
peeringDBFacilityId
Get the peeringDBFacilityId property: The PeeringDB.com ID of the facility.- Returns:
- the peeringDBFacilityId value.
-
withPeeringDBFacilityId
Set the peeringDBFacilityId property: The PeeringDB.com ID of the facility.- Parameters:
peeringDBFacilityId- the peeringDBFacilityId value to set.- Returns:
- the DirectPeeringFacility object itself.
-
peeringDBFacilityLink
Get the peeringDBFacilityLink property: The PeeringDB.com URL of the facility.- Returns:
- the peeringDBFacilityLink value.
-
withPeeringDBFacilityLink
Set the peeringDBFacilityLink property: The PeeringDB.com URL of the facility.- Parameters:
peeringDBFacilityLink- the peeringDBFacilityLink value to set.- Returns:
- the DirectPeeringFacility 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<DirectPeeringFacility>- Throws:
IOException
-
fromJson
public static DirectPeeringFacility fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of DirectPeeringFacility from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of DirectPeeringFacility 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 DirectPeeringFacility.
-