Class VpnLinkBgpSettings

java.lang.Object
com.azure.resourcemanager.network.models.VpnLinkBgpSettings
All Implemented Interfaces:
com.azure.json.JsonSerializable<VpnLinkBgpSettings>

public final class VpnLinkBgpSettings extends Object implements com.azure.json.JsonSerializable<VpnLinkBgpSettings>
BGP settings details for a link.
  • Constructor Details

    • VpnLinkBgpSettings

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

    • asn

      public Long asn()
      Get the asn property: The BGP speaker's ASN.
      Returns:
      the asn value.
    • withAsn

      public VpnLinkBgpSettings withAsn(Long asn)
      Set the asn property: The BGP speaker's ASN.
      Parameters:
      asn - the asn value to set.
      Returns:
      the VpnLinkBgpSettings object itself.
    • bgpPeeringAddress

      public String bgpPeeringAddress()
      Get the bgpPeeringAddress property: The BGP peering address and BGP identifier of this BGP speaker.
      Returns:
      the bgpPeeringAddress value.
    • withBgpPeeringAddress

      public VpnLinkBgpSettings withBgpPeeringAddress(String bgpPeeringAddress)
      Set the bgpPeeringAddress property: The BGP peering address and BGP identifier of this BGP speaker.
      Parameters:
      bgpPeeringAddress - the bgpPeeringAddress value to set.
      Returns:
      the VpnLinkBgpSettings 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<VpnLinkBgpSettings>
      Throws:
      IOException
    • fromJson

      public static VpnLinkBgpSettings fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      Reads an instance of VpnLinkBgpSettings from the JsonReader.
      Parameters:
      jsonReader - The JsonReader being read.
      Returns:
      An instance of VpnLinkBgpSettings 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 VpnLinkBgpSettings.