DnsSecurityRuleInner Class
- java.
lang. Object - com.
azure. core. management. ProxyResource - com.
azure. core. management. Resource - com.
azure. resourcemanager. dnsresolver. fluent. models. DnsSecurityRuleInner
- com.
- com.
- com.
public final class DnsSecurityRuleInner
extends Resource
Describes a DNS security rule.
Constructor Summary
| Constructor | Description |
|---|---|
| DnsSecurityRuleInner() |
Creates an instance of Dns |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
|
Dns |
action()
Get the action property: The action to take on DNS requests that match the DNS security rule. |
|
List<Sub |
dnsResolverDomainLists()
Get the dns |
|
Dns |
dnsSecurityRuleState()
Get the dns |
| String |
etag()
Get the etag property: ETag of the DNS security rule. |
|
static
Dns |
fromJson(JsonReader jsonReader)
Reads an instance of Dns |
| 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. |
|
Provisioning |
provisioningState()
Get the provisioning |
|
System |
systemData()
Get the system |
|
Json |
toJson(JsonWriter jsonWriter) |
| String |
type()
Get the type property: The type of the resource. |
| void |
validate()
Validates the instance. |
|
Dns |
withAction(DnsSecurityRuleAction action)
Set the action property: The action to take on DNS requests that match the DNS security rule. |
|
Dns |
withDnsResolverDomainLists(List<SubResource> dnsResolverDomainLists)
Set the dns |
|
Dns |
withDnsSecurityRuleState(DnsSecurityRuleState dnsSecurityRuleState)
Set the dns |
|
Dns |
withLocation(String location) |
|
Dns |
withPriority(int priority)
Set the priority property: The priority of the DNS security rule. |
|
Dns |
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:
dnsResolverDomainLists
public List<SubResource> dnsResolverDomainLists()
Get the dnsResolverDomainLists property: DNS resolver policy domains lists that the DNS security rule applies to.
Returns:
dnsSecurityRuleState
public DnsSecurityRuleState dnsSecurityRuleState()
Get the dnsSecurityRuleState property: The state of DNS security rule.
Returns:
etag
public String etag()
Get the etag property: ETag of the DNS security rule.
Returns:
fromJson
public static DnsSecurityRuleInner fromJson(JsonReader jsonReader)
Reads an instance of DnsSecurityRuleInner from the JsonReader.
Parameters:
Returns:
Throws:
id
public String id()
Get the id property: Fully qualified resource Id for the resource.
Overrides:
DnsSecurityRuleInner.id()Returns:
name
public String name()
Get the name property: The name of the resource.
Overrides:
DnsSecurityRuleInner.name()Returns:
priority
public int priority()
Get the priority property: The priority of the DNS security rule.
Returns:
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:
systemData
public SystemData systemData()
Get the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information.
Returns:
toJson
public JsonWriter toJson(JsonWriter jsonWriter)
Overrides:
DnsSecurityRuleInner.toJson(JsonWriter jsonWriter)Parameters:
Throws:
type
public String type()
Get the type property: The type of the resource.
Overrides:
DnsSecurityRuleInner.type()Returns:
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:
Returns:
withDnsResolverDomainLists
public DnsSecurityRuleInner withDnsResolverDomainLists(List<SubResource> dnsResolverDomainLists)
Set the dnsResolverDomainLists property: DNS resolver policy domains lists that the DNS security rule applies to.
Parameters:
Returns:
withDnsSecurityRuleState
public DnsSecurityRuleInner withDnsSecurityRuleState(DnsSecurityRuleState dnsSecurityRuleState)
Set the dnsSecurityRuleState property: The state of DNS security rule.
Parameters:
Returns:
withLocation
public DnsSecurityRuleInner withLocation(String location)
Overrides:
DnsSecurityRuleInner.withLocation(String location)Parameters:
withPriority
public DnsSecurityRuleInner withPriority(int priority)
Set the priority property: The priority of the DNS security rule.
Parameters:
Returns:
withTags
public DnsSecurityRuleInner withTags(Map<String,String> tags)
Overrides:
DnsSecurityRuleInner.withTags(Map<String,String> tags)Parameters: