BgpConnectionInner Class

public final class BgpConnectionInner
extends SubResource

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.

String name()

Get the name property: Name of the connection.

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.

JsonWriter toJson(JsonWriter jsonWriter)
String type()

Get the type property: Connection 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 connection.

BgpConnectionInner withPeerAsn(Long peerAsn)

Set the peerAsn property: Peer ASN.

BgpConnectionInner withPeerIp(String peerIp)

Set the peerIp property: Peer IP.

Methods inherited from SubResource

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.

name

public String name()

Get the name property: Name of the connection.

Returns:

the name 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.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Overrides:

BgpConnectionInner.toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

type

public String type()

Get the type property: Connection type.

Returns:

the type value.

validate

public void validate()

Validates the instance.

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 connection.

Parameters:

name - the name value to set.

Returns:

the BgpConnectionInner object itself.

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.

Applies to