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 Details

    • DirectPeeringFacility

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

    • address

      public String address()
      Get the address property: The address of the direct peering facility.
      Returns:
      the address value.
    • withAddress

      public DirectPeeringFacility withAddress(String address)
      Set the address property: The address of the direct peering facility.
      Parameters:
      address - the address value to set.
      Returns:
      the DirectPeeringFacility object itself.
    • directPeeringType

      public DirectPeeringType directPeeringType()
      Get the directPeeringType property: The type of the direct peering.
      Returns:
      the directPeeringType value.
    • withDirectPeeringType

      public DirectPeeringFacility withDirectPeeringType(DirectPeeringType directPeeringType)
      Set the directPeeringType property: The type of the direct peering.
      Parameters:
      directPeeringType - the directPeeringType value to set.
      Returns:
      the DirectPeeringFacility object itself.
    • peeringDBFacilityId

      public Integer peeringDBFacilityId()
      Get the peeringDBFacilityId property: The PeeringDB.com ID of the facility.
      Returns:
      the peeringDBFacilityId value.
    • withPeeringDBFacilityId

      public DirectPeeringFacility withPeeringDBFacilityId(Integer peeringDBFacilityId)
      Set the peeringDBFacilityId property: The PeeringDB.com ID of the facility.
      Parameters:
      peeringDBFacilityId - the peeringDBFacilityId value to set.
      Returns:
      the DirectPeeringFacility object itself.
    • peeringDBFacilityLink

      public String peeringDBFacilityLink()
      Get the peeringDBFacilityLink property: The PeeringDB.com URL of the facility.
      Returns:
      the peeringDBFacilityLink value.
    • withPeeringDBFacilityLink

      public DirectPeeringFacility withPeeringDBFacilityLink(String peeringDBFacilityLink)
      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

      public com.azure.json.JsonWriter toJson(com.azure.json.JsonWriter jsonWriter) throws IOException
      Specified by:
      toJson in interface com.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.