Class ForwardingRuleInner
- java.lang.Object
-
- com.azure.core.management.ProxyResource
-
- com.azure.resourcemanager.dnsresolver.fluent.models.ForwardingRuleInner
-
public final class ForwardingRuleInner extends com.azure.core.management.ProxyResource
Describes a forwarding rule within a DNS forwarding ruleset.
-
-
Constructor Summary
Constructors Constructor Description ForwardingRuleInner()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
domainName()
Get the domainName property: The domain name for the forwarding rule.String
etag()
Get the etag property: ETag of the forwarding rule.ForwardingRuleState
forwardingRuleState()
Get the forwardingRuleState property: The state of forwarding rule.Map<String,String>
metadata()
Get the metadata property: Metadata attached to the forwarding rule.ProvisioningState
provisioningState()
Get the provisioningState property: The current provisioning state of the forwarding rule.com.azure.core.management.SystemData
systemData()
Get the systemData property: Metadata pertaining to creation and last modification of the resource.List<TargetDnsServer>
targetDnsServers()
Get the targetDnsServers property: DNS servers to forward the DNS query to.void
validate()
Validates the instance.ForwardingRuleInner
withDomainName(String domainName)
Set the domainName property: The domain name for the forwarding rule.ForwardingRuleInner
withForwardingRuleState(ForwardingRuleState forwardingRuleState)
Set the forwardingRuleState property: The state of forwarding rule.ForwardingRuleInner
withMetadata(Map<String,String> metadata)
Set the metadata property: Metadata attached to the forwarding rule.ForwardingRuleInner
withTargetDnsServers(List<TargetDnsServer> targetDnsServers)
Set the targetDnsServers property: DNS servers to forward the DNS query to.
-
-
-
Method Detail
-
etag
public String etag()
Get the etag property: ETag of the forwarding rule.- Returns:
- the etag value.
-
systemData
public com.azure.core.management.SystemData systemData()
Get the systemData property: Metadata pertaining to creation and last modification of the resource.- Returns:
- the systemData value.
-
domainName
public String domainName()
Get the domainName property: The domain name for the forwarding rule.- Returns:
- the domainName value.
-
withDomainName
public ForwardingRuleInner withDomainName(String domainName)
Set the domainName property: The domain name for the forwarding rule.- Parameters:
domainName
- the domainName value to set.- Returns:
- the ForwardingRuleInner object itself.
-
targetDnsServers
public List<TargetDnsServer> targetDnsServers()
Get the targetDnsServers property: DNS servers to forward the DNS query to.- Returns:
- the targetDnsServers value.
-
withTargetDnsServers
public ForwardingRuleInner withTargetDnsServers(List<TargetDnsServer> targetDnsServers)
Set the targetDnsServers property: DNS servers to forward the DNS query to.- Parameters:
targetDnsServers
- the targetDnsServers value to set.- Returns:
- the ForwardingRuleInner object itself.
-
metadata
public Map<String,String> metadata()
Get the metadata property: Metadata attached to the forwarding rule.- Returns:
- the metadata value.
-
withMetadata
public ForwardingRuleInner withMetadata(Map<String,String> metadata)
Set the metadata property: Metadata attached to the forwarding rule.- Parameters:
metadata
- the metadata value to set.- Returns:
- the ForwardingRuleInner object itself.
-
forwardingRuleState
public ForwardingRuleState forwardingRuleState()
Get the forwardingRuleState property: The state of forwarding rule.- Returns:
- the forwardingRuleState value.
-
withForwardingRuleState
public ForwardingRuleInner withForwardingRuleState(ForwardingRuleState forwardingRuleState)
Set the forwardingRuleState property: The state of forwarding rule.- Parameters:
forwardingRuleState
- the forwardingRuleState value to set.- Returns:
- the ForwardingRuleInner object itself.
-
provisioningState
public ProvisioningState provisioningState()
Get the provisioningState property: The current provisioning state of the forwarding rule. This is a read-only property and any attempt to set this value will be ignored.- Returns:
- the provisioningState value.
-
validate
public void validate()
Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-
-