VirtualRouterPeeringInner Class

public final class VirtualRouterPeeringInner
extends SubResourceModel

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.

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

void validate()

Validates the instance.

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

Set the name property: Name of the resource.

VirtualRouterPeeringInner withPeerAsn(Long peerAsn)

Set the peerAsn property: Peer ASN.

VirtualRouterPeeringInner withPeerIp(String peerIp)

Set the peerIp property: Peer IP.

Methods inherited from SubResource

id

Methods inherited from SubResourceModel

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.

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

Overrides:

VirtualRouterPeeringInner.type()

Returns:

the type value.

validate

public void validate()

Validates the instance.

Overrides:

VirtualRouterPeeringInner.validate()

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

Overrides:

VirtualRouterPeeringInner.withName(String name)

Parameters:

name

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