VpnLinkBgpSettings Class

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

Implements

public final class VpnLinkBgpSettings
implements JsonSerializable<VpnLinkBgpSettings>

BGP settings details for a link.

Constructor Summary

Constructor Description
VpnLinkBgpSettings()

Creates an instance of VpnLinkBgpSettings 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.

static VpnLinkBgpSettings fromJson(JsonReader jsonReader)

Reads an instance of VpnLinkBgpSettings from the JsonReader.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

VpnLinkBgpSettings withAsn(Long asn)

Set the asn property: The BGP speaker's ASN.

VpnLinkBgpSettings withBgpPeeringAddress(String bgpPeeringAddress)

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

Methods inherited from java.lang.Object

Constructor Details

VpnLinkBgpSettings

public VpnLinkBgpSettings()

Creates an instance of VpnLinkBgpSettings 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.

fromJson

public static VpnLinkBgpSettings fromJson(JsonReader jsonReader)

Reads an instance of VpnLinkBgpSettings from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of VpnLinkBgpSettings 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 VpnLinkBgpSettings.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withAsn

public VpnLinkBgpSettings withAsn(Long asn)

Set the asn property: The BGP speaker's ASN.

Parameters:

asn - the asn value to set.

Returns:

the VpnLinkBgpSettings object itself.

withBgpPeeringAddress

public VpnLinkBgpSettings 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 VpnLinkBgpSettings object itself.

Applies to