BgpSettings Class
- java.
lang. Object - com.
azure. resourcemanager. network. models. BgpSettings
- com.
Implements
public final class BgpSettings
implements JsonSerializable<BgpSettings>
BGP settings details.
Constructor Summary
Constructor | Description |
---|---|
BgpSettings() |
Creates an instance of Bgp |
Method Summary
Modifier and Type | Method and Description |
---|---|
Long |
asn()
Get the asn property: The BGP speaker's ASN. |
String |
bgpPeeringAddress()
Get the bgp |
List<Ip |
bgpPeeringAddresses()
Get the bgp |
static
Bgp |
fromJson(JsonReader jsonReader)
Reads an instance of Bgp |
Integer |
peerWeight()
Get the peer |
Json |
toJson(JsonWriter jsonWriter) |
void |
validate()
Validates the instance. |
Bgp |
withAsn(Long asn)
Set the asn property: The BGP speaker's ASN. |
Bgp |
withBgpPeeringAddress(String bgpPeeringAddress)
Set the bgp |
Bgp |
withBgpPeeringAddresses(List<IpConfigurationBgpPeeringAddress> bgpPeeringAddresses)
Set the bgp |
Bgp |
withPeerWeight(Integer peerWeight)
Set the peer |
Methods inherited from java.lang.Object
Constructor Details
BgpSettings
public BgpSettings()
Creates an instance of BgpSettings class.
Method Details
asn
public Long asn()
Get the asn property: The BGP speaker's ASN.
Returns:
bgpPeeringAddress
public String bgpPeeringAddress()
Get the bgpPeeringAddress property: The BGP peering address and BGP identifier of this BGP speaker.
Returns:
bgpPeeringAddresses
public List
Get the bgpPeeringAddresses property: BGP peering address with IP configuration ID for virtual network gateway.
Returns:
fromJson
public static BgpSettings fromJson(JsonReader jsonReader)
Reads an instance of BgpSettings from the JsonReader.
Parameters:
Returns:
Throws:
peerWeight
public Integer peerWeight()
Get the peerWeight property: The weight added to routes learned from this BGP speaker.
Returns:
toJson
validate
public void validate()
Validates the instance.
withAsn
public BgpSettings withAsn(Long asn)
Set the asn property: The BGP speaker's ASN.
Parameters:
Returns:
withBgpPeeringAddress
public BgpSettings withBgpPeeringAddress(String bgpPeeringAddress)
Set the bgpPeeringAddress property: The BGP peering address and BGP identifier of this BGP speaker.
Parameters:
Returns:
withBgpPeeringAddresses
public BgpSettings withBgpPeeringAddresses(List
Set the bgpPeeringAddresses property: BGP peering address with IP configuration ID for virtual network gateway.
Parameters:
Returns:
withPeerWeight
public BgpSettings withPeerWeight(Integer peerWeight)
Set the peerWeight property: The weight added to routes learned from this BGP speaker.
Parameters:
Returns:
Applies to
Azure SDK for Java