DnsSecurityRuleInner Class

public final class DnsSecurityRuleInner
extends Resource

Describes a DNS security rule.

Constructor Summary

Constructor Description
DnsSecurityRuleInner()

Creates an instance of DnsSecurityRuleInner class.

Method Summary

Modifier and Type Method and Description
DnsSecurityRuleAction action()

Get the action property: The action to take on DNS requests that match the DNS security rule.

List<SubResource> dnsResolverDomainLists()

Get the dnsResolverDomainLists property: DNS resolver policy domains lists that the DNS security rule applies to.

DnsSecurityRuleState dnsSecurityRuleState()

Get the dnsSecurityRuleState property: The state of DNS security rule.

String etag()

Get the etag property: ETag of the DNS security rule.

static DnsSecurityRuleInner fromJson(JsonReader jsonReader)

Reads an instance of DnsSecurityRuleInner 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.

int priority()

Get the priority property: The priority of the DNS security rule.

ProvisioningState provisioningState()

Get the provisioningState property: The current provisioning state of the DNS security rule.

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.

DnsSecurityRuleInner withAction(DnsSecurityRuleAction action)

Set the action property: The action to take on DNS requests that match the DNS security rule.

DnsSecurityRuleInner withDnsResolverDomainLists(List<SubResource> dnsResolverDomainLists)

Set the dnsResolverDomainLists property: DNS resolver policy domains lists that the DNS security rule applies to.

DnsSecurityRuleInner withDnsSecurityRuleState(DnsSecurityRuleState dnsSecurityRuleState)

Set the dnsSecurityRuleState property: The state of DNS security rule.

DnsSecurityRuleInner withLocation(String location)
DnsSecurityRuleInner withPriority(int priority)

Set the priority property: The priority of the DNS security rule.

DnsSecurityRuleInner withTags(Map<String,String> tags)

Methods inherited from ProxyResource

Methods inherited from Resource

Methods inherited from java.lang.Object

Constructor Details

DnsSecurityRuleInner

public DnsSecurityRuleInner()

Creates an instance of DnsSecurityRuleInner class.

Method Details

action

public DnsSecurityRuleAction action()

Get the action property: The action to take on DNS requests that match the DNS security rule.

Returns:

the action value.

dnsResolverDomainLists

public List<SubResource> dnsResolverDomainLists()

Get the dnsResolverDomainLists property: DNS resolver policy domains lists that the DNS security rule applies to.

Returns:

the dnsResolverDomainLists value.

dnsSecurityRuleState

public DnsSecurityRuleState dnsSecurityRuleState()

Get the dnsSecurityRuleState property: The state of DNS security rule.

Returns:

the dnsSecurityRuleState value.

etag

public String etag()

Get the etag property: ETag of the DNS security rule.

Returns:

the etag value.

fromJson

public static DnsSecurityRuleInner fromJson(JsonReader jsonReader)

Reads an instance of DnsSecurityRuleInner from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

DnsSecurityRuleInner.id()

Returns:

the id value.

name

public String name()

Get the name property: The name of the resource.

Overrides:

DnsSecurityRuleInner.name()

Returns:

the name value.

priority

public int priority()

Get the priority property: The priority of the DNS security rule.

Returns:

the priority value.

provisioningState

public ProvisioningState provisioningState()

Get the provisioningState property: The current provisioning state of the DNS security rule. 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:

DnsSecurityRuleInner.toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

type

public String type()

Get the type property: The type of the resource.

Overrides:

DnsSecurityRuleInner.type()

Returns:

the type value.

validate

public void validate()

Validates the instance.

withAction

public DnsSecurityRuleInner withAction(DnsSecurityRuleAction action)

Set the action property: The action to take on DNS requests that match the DNS security rule.

Parameters:

action - the action value to set.

Returns:

the DnsSecurityRuleInner object itself.

withDnsResolverDomainLists

public DnsSecurityRuleInner withDnsResolverDomainLists(List<SubResource> dnsResolverDomainLists)

Set the dnsResolverDomainLists property: DNS resolver policy domains lists that the DNS security rule applies to.

Parameters:

dnsResolverDomainLists - the dnsResolverDomainLists value to set.

Returns:

the DnsSecurityRuleInner object itself.

withDnsSecurityRuleState

public DnsSecurityRuleInner withDnsSecurityRuleState(DnsSecurityRuleState dnsSecurityRuleState)

Set the dnsSecurityRuleState property: The state of DNS security rule.

Parameters:

dnsSecurityRuleState - the dnsSecurityRuleState value to set.

Returns:

the DnsSecurityRuleInner object itself.

withLocation

public DnsSecurityRuleInner withLocation(String location)

Overrides:

DnsSecurityRuleInner.withLocation(String location)

Parameters:

location

withPriority

public DnsSecurityRuleInner withPriority(int priority)

Set the priority property: The priority of the DNS security rule.

Parameters:

priority - the priority value to set.

Returns:

the DnsSecurityRuleInner object itself.

withTags

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

Overrides:

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

Parameters:

tags

Applies to