Class VpnLinkBgpSettings
- java.lang.Object
-
- com.azure.resourcemanager.network.models.VpnLinkBgpSettings
-
public final class VpnLinkBgpSettings extends Object
BGP settings details for a link.
-
-
Constructor Summary
Constructors Constructor Description VpnLinkBgpSettings()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Longasn()Get the asn property: The BGP speaker's ASN.StringbgpPeeringAddress()Get the bgpPeeringAddress property: The BGP peering address and BGP identifier of this BGP speaker.voidvalidate()Validates the instance.VpnLinkBgpSettingswithAsn(Long asn)Set the asn property: The BGP speaker's ASN.VpnLinkBgpSettingswithBgpPeeringAddress(String bgpPeeringAddress)Set the bgpPeeringAddress property: The BGP peering address and BGP identifier of this BGP speaker.
-
-
-
Method Detail
-
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.
-
-