VirtualNetworkLinkInner Class

public final class VirtualNetworkLinkInner
extends ProxyResource

Describes a virtual network link.

Constructor Summary

Constructor Description
VirtualNetworkLinkInner()

Creates an instance of VirtualNetworkLinkInner class.

Method Summary

Modifier and Type Method and Description
String etag()

Get the etag property: ETag of the virtual network link.

static VirtualNetworkLinkInner fromJson(JsonReader jsonReader)

Reads an instance of VirtualNetworkLinkInner from the JsonReader.

String id()

Get the id property: Fully qualified resource Id for the resource.

Map<String,String> metadata()

Get the metadata property: Metadata attached to the virtual network link.

String name()

Get the name property: The name of the resource.

ProvisioningState provisioningState()

Get the provisioningState property: The current provisioning state of the virtual network link.

SystemData systemData()

Get the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information.

JsonWriter toJson(JsonWriter jsonWriter)
String type()

Get the type property: The type of the resource.

void validate()

Validates the instance.

SubResource virtualNetwork()

Get the virtualNetwork property: The reference to the virtual network.

VirtualNetworkLinkInner withMetadata(Map<String,String> metadata)

Set the metadata property: Metadata attached to the virtual network link.

VirtualNetworkLinkInner withVirtualNetwork(SubResource virtualNetwork)

Set the virtualNetwork property: The reference to the virtual network.

Methods inherited from ProxyResource

Methods inherited from java.lang.Object

Constructor Details

VirtualNetworkLinkInner

public VirtualNetworkLinkInner()

Creates an instance of VirtualNetworkLinkInner class.

Method Details

etag

public String etag()

Get the etag property: ETag of the virtual network link.

Returns:

the etag value.

fromJson

public static VirtualNetworkLinkInner fromJson(JsonReader jsonReader)

Reads an instance of VirtualNetworkLinkInner from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of VirtualNetworkLinkInner if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.

Throws:

IOException

- If the deserialized JSON object was missing any required properties.

id

public String id()

Get the id property: Fully qualified resource Id for the resource.

Overrides:

VirtualNetworkLinkInner.id()

Returns:

the id value.

metadata

public Map<String,String> metadata()

Get the metadata property: Metadata attached to the virtual network link.

Returns:

the metadata value.

name

public String name()

Get the name property: The name of the resource.

Overrides:

VirtualNetworkLinkInner.name()

Returns:

the name value.

provisioningState

public ProvisioningState provisioningState()

Get the provisioningState property: The current provisioning state of the virtual network link. This is a read-only property and any attempt to set this value will be ignored.

Returns:

the provisioningState value.

systemData

public SystemData systemData()

Get the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information.

Returns:

the systemData value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Overrides:

VirtualNetworkLinkInner.toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

type

public String type()

Get the type property: The type of the resource.

Overrides:

VirtualNetworkLinkInner.type()

Returns:

the type value.

validate

public void validate()

Validates the instance.

virtualNetwork

public SubResource virtualNetwork()

Get the virtualNetwork property: The reference to the virtual network. This cannot be changed after creation.

Returns:

the virtualNetwork value.

withMetadata

public VirtualNetworkLinkInner withMetadata(Map<String,String> metadata)

Set the metadata property: Metadata attached to the virtual network link.

Parameters:

metadata - the metadata value to set.

Returns:

the VirtualNetworkLinkInner object itself.

withVirtualNetwork

public VirtualNetworkLinkInner withVirtualNetwork(SubResource virtualNetwork)

Set the virtualNetwork property: The reference to the virtual network. This cannot be changed after creation.

Parameters:

virtualNetwork - the virtualNetwork value to set.

Returns:

the VirtualNetworkLinkInner object itself.

Applies to