BgpConnectionInner Class

public final class BgpConnectionInner
extends SubResourceModel

Virtual Appliance Site resource.

Constructor Summary

Constructor Description
BgpConnectionInner()

Creates an instance of BgpConnectionInner class.

Method Summary

Modifier and Type Method and Description
HubBgpConnectionStatus connectionState()

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

String etag()

Get the etag property: A unique read-only string that changes whenever the resource is updated.

static BgpConnectionInner fromJson(JsonReader jsonReader)

Reads an instance of BgpConnectionInner 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)
String type()

Get the type property: Resource type.

void validate()

Validates the instance.

BgpConnectionInner withHubVirtualNetworkConnection(SubResource hubVirtualNetworkConnection)

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

BgpConnectionInner withId(String id)
BgpConnectionInner withName(String name)

Set the name property: Name of the resource.

BgpConnectionInner withPeerAsn(Long peerAsn)

Set the peerAsn property: Peer ASN.

BgpConnectionInner withPeerIp(String peerIp)

Set the peerIp property: Peer IP.

BgpConnectionInner withRoutingConfiguration(RoutingConfiguration routingConfiguration)

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

Methods inherited from SubResource

id

Methods inherited from SubResourceModel

Methods inherited from java.lang.Object

Constructor Details

BgpConnectionInner

public BgpConnectionInner()

Creates an instance of BgpConnectionInner class.

Method Details

connectionState

public HubBgpConnectionStatus connectionState()

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

Returns:

the connectionState value.

etag

public String etag()

Get the etag property: A unique read-only string that changes whenever the resource is updated.

Returns:

the etag value.

fromJson

public static BgpConnectionInner fromJson(JsonReader jsonReader)

Reads an instance of BgpConnectionInner from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

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)

Overrides:

BgpConnectionInner.toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

type

public String type()

Get the type property: Resource type.

Overrides:

BgpConnectionInner.type()

Returns:

the type value.

validate

public void validate()

Validates the instance.

Overrides:

BgpConnectionInner.validate()

withHubVirtualNetworkConnection

public BgpConnectionInner withHubVirtualNetworkConnection(SubResource hubVirtualNetworkConnection)

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

Parameters:

hubVirtualNetworkConnection - the hubVirtualNetworkConnection value to set.

Returns:

the BgpConnectionInner object itself.

withId

public BgpConnectionInner withId(String id)

Overrides:

BgpConnectionInner.withId(String id)

Parameters:

id

withName

public BgpConnectionInner withName(String name)

Set the name property: Name of the resource.

Overrides:

BgpConnectionInner.withName(String name)

Parameters:

name

withPeerAsn

public BgpConnectionInner withPeerAsn(Long peerAsn)

Set the peerAsn property: Peer ASN.

Parameters:

peerAsn - the peerAsn value to set.

Returns:

the BgpConnectionInner object itself.

withPeerIp

public BgpConnectionInner withPeerIp(String peerIp)

Set the peerIp property: Peer IP.

Parameters:

peerIp - the peerIp value to set.

Returns:

the BgpConnectionInner object itself.

withRoutingConfiguration

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

Applies to