Partager via


BgpSettings Class

  • java.lang.Object
    • com.azure.resourcemanager.network.models.BgpSettings

Implements

public final class BgpSettings
implements JsonSerializable<BgpSettings>

BGP settings details.

Constructor Summary

Constructor Description
BgpSettings()

Creates an instance of BgpSettings class.

Method Summary

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.

static BgpSettings fromJson(JsonReader jsonReader)

Reads an instance of BgpSettings from the JsonReader.

Integer peerWeight()

Get the peerWeight property: The weight added to routes learned from this BGP speaker.

JsonWriter toJson(JsonWriter jsonWriter)
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.

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:

the asn value.

bgpPeeringAddress

public String bgpPeeringAddress()

Get the bgpPeeringAddress property: The BGP peering address and BGP identifier of this BGP speaker.

Returns:

the bgpPeeringAddress value.

bgpPeeringAddresses

public List bgpPeeringAddresses()

Get the bgpPeeringAddresses property: BGP peering address with IP configuration ID for virtual network gateway.

Returns:

the bgpPeeringAddresses value.

fromJson

public static BgpSettings fromJson(JsonReader jsonReader)

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.

peerWeight

public Integer peerWeight()

Get the peerWeight property: The weight added to routes learned from this BGP speaker.

Returns:

the peerWeight value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

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.

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.

withBgpPeeringAddresses

public BgpSettings withBgpPeeringAddresses(List 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.

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.

Applies to