public final class BgpSettings extends Object
| Constructor and Description |
|---|
BgpSettings() |
| Modifier and Type | Method and Description |
|---|---|
Long |
asn()
Get the asn property: The BGP speaker's ASN.
|
String |
bgpPeeringAddress()
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.
|
Integer |
peerWeight()
Get the peerWeight property: The weight added to routes learned from this BGP speaker.
|
void |
validate()
Validates the instance.
|
BgpSettings |
withAsn(Long asn)
Set the asn property: The BGP speaker's ASN.
|
BgpSettings |
withBgpPeeringAddress(String bgpPeeringAddress)
Set the bgpPeeringAddress property: The BGP peering address and BGP identifier of this BGP speaker.
|
BgpSettings |
withBgpPeeringAddresses(List<IpConfigurationBgpPeeringAddress> bgpPeeringAddresses)
Set the bgpPeeringAddresses property: BGP peering address with IP configuration ID for virtual network gateway.
|
BgpSettings |
withPeerWeight(Integer peerWeight)
Set the peerWeight property: The weight added to routes learned from this BGP speaker.
|
public Long asn()
public BgpSettings withAsn(Long asn)
asn - the asn value to set.public String bgpPeeringAddress()
public BgpSettings withBgpPeeringAddress(String bgpPeeringAddress)
bgpPeeringAddress - the bgpPeeringAddress value to set.public Integer peerWeight()
public BgpSettings withPeerWeight(Integer peerWeight)
peerWeight - the peerWeight value to set.public List<IpConfigurationBgpPeeringAddress> bgpPeeringAddresses()
public BgpSettings withBgpPeeringAddresses(List<IpConfigurationBgpPeeringAddress> bgpPeeringAddresses)
bgpPeeringAddresses - the bgpPeeringAddresses value to set.public void validate()
IllegalArgumentException - thrown if the instance is not valid.Copyright © 2021 Microsoft Corporation. All rights reserved.