Class BgpSettings
java.lang.Object
com.azure.resourcemanager.network.models.BgpSettings
- All Implemented Interfaces:
com.azure.json.JsonSerializable<BgpSettings>
public final class BgpSettings
extends Object
implements com.azure.json.JsonSerializable<BgpSettings>
BGP settings details.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionasn()Get the asn property: The BGP speaker's ASN.Get the bgpPeeringAddress property: The BGP peering address and BGP identifier of this BGP speaker.Get the bgpPeeringAddresses property: BGP peering address with IP configuration ID for virtual network gateway.static BgpSettingsfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of BgpSettings from the JsonReader.Get the peerWeight property: The weight added to routes learned from this BGP speaker.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.Set the asn property: The BGP speaker's ASN.withBgpPeeringAddress(String bgpPeeringAddress) Set the bgpPeeringAddress property: The BGP peering address and BGP identifier of this BGP speaker.withBgpPeeringAddresses(List<IpConfigurationBgpPeeringAddress> bgpPeeringAddresses) Set the bgpPeeringAddresses property: BGP peering address with IP configuration ID for virtual network gateway.withPeerWeight(Integer peerWeight) Set the peerWeight property: The weight added to routes learned from this BGP speaker.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
BgpSettings
public BgpSettings()Creates an instance of BgpSettings class.
-
-
Method Details
-
asn
Get the asn property: The BGP speaker's ASN.- Returns:
- the asn value.
-
withAsn
Set the asn property: The BGP speaker's ASN.- Parameters:
asn- the asn value to set.- Returns:
- the BgpSettings object itself.
-
bgpPeeringAddress
Get the bgpPeeringAddress property: The BGP peering address and BGP identifier of this BGP speaker.- Returns:
- the bgpPeeringAddress value.
-
withBgpPeeringAddress
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
Get the peerWeight property: The weight added to routes learned from this BGP speaker.- Returns:
- the peerWeight value.
-
withPeerWeight
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
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.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<BgpSettings>- Throws:
IOException
-
fromJson
Reads an instance of BgpSettings from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of BgpSettings 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 BgpSettings.
-