DnsResolverInner Class

public final class DnsResolverInner
extends Resource

Describes a DNS resolver.

Constructor Summary

Constructor Description
DnsResolverInner()

Creates an instance of DnsResolverInner class.

Method Summary

Modifier and Type Method and Description
DnsResolverState dnsResolverState()

Get the dnsResolverState property: The current status of the DNS resolver.

String etag()

Get the etag property: "If etag is provided in the response body, it may also be provided as a header per the normal etag convention.

static DnsResolverInner fromJson(JsonReader jsonReader)

Reads an instance of DnsResolverInner 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 current provisioning state of the DNS resolver.

String resourceGuid()

Get the resourceGuid property: The resourceGuid property of the DNS resolver resource.

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.

SubResource virtualNetwork()

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

DnsResolverInner withLocation(String location)
DnsResolverInner withTags(Map<String,String> tags)
DnsResolverInner withVirtualNetwork(SubResource virtualNetwork)

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

Methods inherited from ProxyResource

Methods inherited from Resource

Methods inherited from java.lang.Object

Constructor Details

DnsResolverInner

public DnsResolverInner()

Creates an instance of DnsResolverInner class.

Method Details

dnsResolverState

public DnsResolverState dnsResolverState()

Get the dnsResolverState property: The current status of the DNS resolver. This is a read-only property and any attempt to set this value will be ignored.

Returns:

the dnsResolverState value.

etag

public String etag()

Get the etag property: "If etag is provided in the response body, it may also be provided as a header per the normal etag convention. Entity tags are used for comparing two or more entities from the same requested resource. HTTP/1.1 uses entity tags in the etag (section 14.19), If-Match (section 14.24), If-None-Match (section 14.26), and If-Range (section 14.27) header fields.").

Returns:

the etag value.

fromJson

public static DnsResolverInner fromJson(JsonReader jsonReader)

Reads an instance of DnsResolverInner from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of DnsResolverInner 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:

DnsResolverInner.id()

Returns:

the id value.

name

public String name()

Get the name property: The name of the resource.

Overrides:

DnsResolverInner.name()

Returns:

the name value.

provisioningState

public ProvisioningState provisioningState()

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

Returns:

the provisioningState value.

resourceGuid

public String resourceGuid()

Get the resourceGuid property: The resourceGuid property of the DNS resolver resource.

Returns:

the resourceGuid 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:

DnsResolverInner.toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

type

public String type()

Get the type property: The type of the resource.

Overrides:

DnsResolverInner.type()

Returns:

the type value.

virtualNetwork

public SubResource virtualNetwork()

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

Returns:

the virtualNetwork value.

withLocation

public DnsResolverInner withLocation(String location)

Overrides:

DnsResolverInner.withLocation(String location)

Parameters:

location

withTags

public DnsResolverInner withTags(Map<String,String> tags)

Overrides:

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

Parameters:

tags

withVirtualNetwork

public DnsResolverInner 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 DnsResolverInner object itself.

Applies to