BgpConnectionProperties Class

  • java.lang.Object
    • com.azure.resourcemanager.network.fluent.models.BgpConnectionProperties

Implements

public final class BgpConnectionProperties
implements JsonSerializable<BgpConnectionProperties>

Properties of the bgp connection.

Constructor Summary

Constructor Description
BgpConnectionProperties()

Creates an instance of BgpConnectionProperties class.

Method Summary

Modifier and Type Method and Description
HubBgpConnectionStatus connectionState()

Get the connectionState property: The current state of the VirtualHub to Peer.

static BgpConnectionProperties fromJson(JsonReader jsonReader)

Reads an instance of BgpConnectionProperties from the JsonReader.

SubResource hubVirtualNetworkConnection()

Get the hubVirtualNetworkConnection property: The reference to the HubVirtualNetworkConnection resource.

Long peerAsn()

Get the peerAsn property: Peer ASN.

String peerIp()

Get the peerIp property: Peer IP.

ProvisioningState provisioningState()

Get the provisioningState property: The provisioning state of the resource.

RoutingConfiguration routingConfiguration()

Get the routingConfiguration property: The routing configuration indicating the associated and propagated route tables for this connection.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

BgpConnectionProperties withHubVirtualNetworkConnection(SubResource hubVirtualNetworkConnection)

Set the hubVirtualNetworkConnection property: The reference to the HubVirtualNetworkConnection resource.

BgpConnectionProperties withPeerAsn(Long peerAsn)

Set the peerAsn property: Peer ASN.

BgpConnectionProperties withPeerIp(String peerIp)

Set the peerIp property: Peer IP.

BgpConnectionProperties withRoutingConfiguration(RoutingConfiguration routingConfiguration)

Set the routingConfiguration property: The routing configuration indicating the associated and propagated route tables for this connection.

Methods inherited from java.lang.Object

Constructor Details

BgpConnectionProperties

public BgpConnectionProperties()

Creates an instance of BgpConnectionProperties class.

Method Details

connectionState

public HubBgpConnectionStatus connectionState()

Get the connectionState property: The current state of the VirtualHub to Peer.

Returns:

the connectionState value.

fromJson

public static BgpConnectionProperties fromJson(JsonReader jsonReader)

Reads an instance of BgpConnectionProperties from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

hubVirtualNetworkConnection

public SubResource hubVirtualNetworkConnection()

Get the hubVirtualNetworkConnection property: The reference to the HubVirtualNetworkConnection resource.

Returns:

the hubVirtualNetworkConnection value.

peerAsn

public Long peerAsn()

Get the peerAsn property: Peer ASN.

Returns:

the peerAsn value.

peerIp

public String peerIp()

Get the peerIp property: Peer IP.

Returns:

the peerIp value.

provisioningState

public ProvisioningState provisioningState()

Get the provisioningState property: The provisioning state of the resource.

Returns:

the provisioningState value.

routingConfiguration

public RoutingConfiguration routingConfiguration()

Get the routingConfiguration property: The routing configuration indicating the associated and propagated route tables for this connection.

Returns:

the routingConfiguration value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withHubVirtualNetworkConnection

public BgpConnectionProperties withHubVirtualNetworkConnection(SubResource hubVirtualNetworkConnection)

Set the hubVirtualNetworkConnection property: The reference to the HubVirtualNetworkConnection resource.

Parameters:

hubVirtualNetworkConnection - the hubVirtualNetworkConnection value to set.

Returns:

the BgpConnectionProperties object itself.

withPeerAsn

public BgpConnectionProperties withPeerAsn(Long peerAsn)

Set the peerAsn property: Peer ASN.

Parameters:

peerAsn - the peerAsn value to set.

Returns:

the BgpConnectionProperties object itself.

withPeerIp

public BgpConnectionProperties withPeerIp(String peerIp)

Set the peerIp property: Peer IP.

Parameters:

peerIp - the peerIp value to set.

Returns:

the BgpConnectionProperties object itself.

withRoutingConfiguration

public BgpConnectionProperties withRoutingConfiguration(RoutingConfiguration routingConfiguration)

Set the routingConfiguration property: The routing configuration indicating the associated and propagated route tables for this connection.

Parameters:

routingConfiguration - the routingConfiguration value to set.

Returns:

the BgpConnectionProperties object itself.

Applies to