VirtualNetworkLinkInner Class

public final class VirtualNetworkLinkInner
extends Resource

Describes a link to virtual network for a Private DNS zone.

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: The 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.

String name()

Get the name property: The name of the resource.

ProvisioningState provisioningState()

Get the provisioningState property: The provisioning state of the resource.

Boolean registrationEnabled()

Get the registrationEnabled property: Is auto-registration of virtual machine records in the virtual network in the Private DNS zone enabled?.

ResolutionPolicy resolutionPolicy()

Get the resolutionPolicy property: The resolution policy on the virtual network link.

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 of the virtual network.

VirtualNetworkLinkState virtualNetworkLinkState()

Get the virtualNetworkLinkState property: The status of the virtual network link to the Private DNS zone.

VirtualNetworkLinkInner withEtag(String etag)

Set the etag property: The ETag of the virtual network link.

VirtualNetworkLinkInner withLocation(String location)
VirtualNetworkLinkInner withRegistrationEnabled(Boolean registrationEnabled)

Set the registrationEnabled property: Is auto-registration of virtual machine records in the virtual network in the Private DNS zone enabled?.

VirtualNetworkLinkInner withResolutionPolicy(ResolutionPolicy resolutionPolicy)

Set the resolutionPolicy property: The resolution policy on the virtual network link.

VirtualNetworkLinkInner withTags(Map<String,String> tags)
VirtualNetworkLinkInner withVirtualNetwork(SubResource virtualNetwork)

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

Methods inherited from ProxyResource

Methods inherited from Resource

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: The 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.

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 provisioning state of the resource. This is a read-only property and any attempt to set this value will be ignored.

Returns:

the provisioningState value.

registrationEnabled

public Boolean registrationEnabled()

Get the registrationEnabled property: Is auto-registration of virtual machine records in the virtual network in the Private DNS zone enabled?.

Returns:

the registrationEnabled value.

resolutionPolicy

public ResolutionPolicy resolutionPolicy()

Get the resolutionPolicy property: The resolution policy on the virtual network link. Only applicable for virtual network links to privatelink zones, and for A,AAAA,CNAME queries. When set to 'NxDomainRedirect', Azure DNS resolver falls back to public resolution if private dns query resolution results in non-existent domain response.

Returns:

the resolutionPolicy 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 of the virtual network.

Returns:

the virtualNetwork value.

virtualNetworkLinkState

public VirtualNetworkLinkState virtualNetworkLinkState()

Get the virtualNetworkLinkState property: The status of the virtual network link to the Private DNS zone. Possible values are 'InProgress' and 'Done'. This is a read-only property and any attempt to set this value will be ignored.

Returns:

the virtualNetworkLinkState value.

withEtag

public VirtualNetworkLinkInner withEtag(String etag)

Set the etag property: The ETag of the virtual network link.

Parameters:

etag - the etag value to set.

Returns:

the VirtualNetworkLinkInner object itself.

withLocation

public VirtualNetworkLinkInner withLocation(String location)

Overrides:

VirtualNetworkLinkInner.withLocation(String location)

Parameters:

location

withRegistrationEnabled

public VirtualNetworkLinkInner withRegistrationEnabled(Boolean registrationEnabled)

Set the registrationEnabled property: Is auto-registration of virtual machine records in the virtual network in the Private DNS zone enabled?.

Parameters:

registrationEnabled - the registrationEnabled value to set.

Returns:

the VirtualNetworkLinkInner object itself.

withResolutionPolicy

public VirtualNetworkLinkInner withResolutionPolicy(ResolutionPolicy resolutionPolicy)

Set the resolutionPolicy property: The resolution policy on the virtual network link. Only applicable for virtual network links to privatelink zones, and for A,AAAA,CNAME queries. When set to 'NxDomainRedirect', Azure DNS resolver falls back to public resolution if private dns query resolution results in non-existent domain response.

Parameters:

resolutionPolicy - the resolutionPolicy value to set.

Returns:

the VirtualNetworkLinkInner object itself.

withTags

public VirtualNetworkLinkInner withTags(Map tags)

Overrides:

VirtualNetworkLinkInner.withTags(Map<String,String> tags)

Parameters:

tags

withVirtualNetwork

public VirtualNetworkLinkInner withVirtualNetwork(SubResource virtualNetwork)

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

Parameters:

virtualNetwork - the virtualNetwork value to set.

Returns:

the VirtualNetworkLinkInner object itself.

Applies to