Class BgpSettings
- java.lang.Object
-
- com.azure.resourcemanager.network.models.BgpSettings
-
public final class BgpSettings extends Object
BGP settings details.
-
-
Constructor Summary
Constructors Constructor Description BgpSettings()
-
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.List<IpConfigurationBgpPeeringAddress>bgpPeeringAddresses()Get the bgpPeeringAddresses property: BGP peering address with IP configuration ID for virtual network gateway.IntegerpeerWeight()Get the peerWeight property: The weight added to routes learned from this BGP speaker.voidvalidate()Validates the instance.BgpSettingswithAsn(Long asn)Set the asn property: The BGP speaker's ASN.BgpSettingswithBgpPeeringAddress(String bgpPeeringAddress)Set the bgpPeeringAddress property: The BGP peering address and BGP identifier of this BGP speaker.BgpSettingswithBgpPeeringAddresses(List<IpConfigurationBgpPeeringAddress> bgpPeeringAddresses)Set the bgpPeeringAddresses property: BGP peering address with IP configuration ID for virtual network gateway.BgpSettingswithPeerWeight(Integer peerWeight)Set the peerWeight property: The weight added to routes learned from this BGP speaker.
-
-
-
Method Detail
-
asn
public Long asn()
Get the asn property: The BGP speaker's ASN.- Returns:
- the asn value.
-
withAsn
public BgpSettings withAsn(Long asn)
Set the asn property: The BGP speaker's ASN.- Parameters:
asn- the asn value to set.- Returns:
- the BgpSettings 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 BgpSettings 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 BgpSettings object itself.
-
peerWeight
public Integer peerWeight()
Get the peerWeight property: The weight added to routes learned from this BGP speaker.- Returns:
- the peerWeight value.
-
withPeerWeight
public BgpSettings withPeerWeight(Integer peerWeight)
Set the peerWeight property: The weight added to routes learned from this BGP speaker.- Parameters:
peerWeight- the peerWeight value to set.- Returns:
- the BgpSettings object itself.
-
bgpPeeringAddresses
public List<IpConfigurationBgpPeeringAddress> bgpPeeringAddresses()
Get the bgpPeeringAddresses property: BGP peering address with IP configuration ID for virtual network gateway.- Returns:
- the bgpPeeringAddresses value.
-
withBgpPeeringAddresses
public BgpSettings withBgpPeeringAddresses(List<IpConfigurationBgpPeeringAddress> bgpPeeringAddresses)
Set the bgpPeeringAddresses property: BGP peering address with IP configuration ID for virtual network gateway.- Parameters:
bgpPeeringAddresses- the bgpPeeringAddresses value to set.- Returns:
- the BgpSettings object itself.
-
validate
public void validate()
Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
-