VirtualRouterPeeringInner Class

public final class VirtualRouterPeeringInner
extends SubResource

Virtual Router Peering resource.

Constructor Summary

Constructor Description
VirtualRouterPeeringInner()

Creates an instance of VirtualRouterPeeringInner class.

Method Summary

Modifier and Type Method and Description
String etag()

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

static VirtualRouterPeeringInner fromJson(JsonReader jsonReader)

Reads an instance of VirtualRouterPeeringInner from the JsonReader.

String name()

Get the name property: Name of the virtual router peering that is unique within a virtual router.

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: Peering type.

void validate()

Validates the instance.

VirtualRouterPeeringInner withId(String id)
VirtualRouterPeeringInner withName(String name)

Set the name property: Name of the virtual router peering that is unique within a virtual router.

VirtualRouterPeeringInner withPeerAsn(Long peerAsn)

Set the peerAsn property: Peer ASN.

VirtualRouterPeeringInner withPeerIp(String peerIp)

Set the peerIp property: Peer IP.

Methods inherited from SubResource

Methods inherited from java.lang.Object

Constructor Details

VirtualRouterPeeringInner

public VirtualRouterPeeringInner()

Creates an instance of VirtualRouterPeeringInner class.

Method Details

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 VirtualRouterPeeringInner fromJson(JsonReader jsonReader)

Reads an instance of VirtualRouterPeeringInner from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

name

public String name()

Get the name property: Name of the virtual router peering that is unique within a virtual router.

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:

VirtualRouterPeeringInner.toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

type

public String type()

Get the type property: Peering type.

Returns:

the type value.

validate

public void validate()

Validates the instance.

withId

public VirtualRouterPeeringInner withId(String id)

Overrides:

VirtualRouterPeeringInner.withId(String id)

Parameters:

id

withName

public VirtualRouterPeeringInner withName(String name)

Set the name property: Name of the virtual router peering that is unique within a virtual router.

Parameters:

name - the name value to set.

Returns:

the VirtualRouterPeeringInner object itself.

withPeerAsn

public VirtualRouterPeeringInner withPeerAsn(Long peerAsn)

Set the peerAsn property: Peer ASN.

Parameters:

peerAsn - the peerAsn value to set.

Returns:

the VirtualRouterPeeringInner object itself.

withPeerIp

public VirtualRouterPeeringInner withPeerIp(String peerIp)

Set the peerIp property: Peer IP.

Parameters:

peerIp - the peerIp value to set.

Returns:

the VirtualRouterPeeringInner object itself.

Applies to