Class ForwardingRulePatch
java.lang.Object
com.azure.resourcemanager.dnsresolver.models.ForwardingRulePatch
Describes a forwarding rule for PATCH operation.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionGet the forwardingRuleState property: The state of forwarding rule.metadata()
Get the metadata property: Metadata attached to the forwarding rule.Get the targetDnsServers property: DNS servers to forward the DNS query to.void
validate()
Validates the instance.withForwardingRuleState
(ForwardingRuleState forwardingRuleState) Set the forwardingRuleState property: The state of forwarding rule.withMetadata
(Map<String, String> metadata) Set the metadata property: Metadata attached to the forwarding rule.withTargetDnsServers
(List<TargetDnsServer> targetDnsServers) Set the targetDnsServers property: DNS servers to forward the DNS query to.
-
Constructor Details
-
ForwardingRulePatch
public ForwardingRulePatch()
-
-
Method Details
-
targetDnsServers
Get the targetDnsServers property: DNS servers to forward the DNS query to.- Returns:
- the targetDnsServers value.
-
withTargetDnsServers
Set the targetDnsServers property: DNS servers to forward the DNS query to.- Parameters:
targetDnsServers
- the targetDnsServers value to set.- Returns:
- the ForwardingRulePatch object itself.
-
metadata
Get the metadata property: Metadata attached to the forwarding rule.- Returns:
- the metadata value.
-
withMetadata
Set the metadata property: Metadata attached to the forwarding rule.- Parameters:
metadata
- the metadata value to set.- Returns:
- the ForwardingRulePatch object itself.
-
forwardingRuleState
Get the forwardingRuleState property: The state of forwarding rule.- Returns:
- the forwardingRuleState value.
-
withForwardingRuleState
Set the forwardingRuleState property: The state of forwarding rule.- Parameters:
forwardingRuleState
- the forwardingRuleState value to set.- Returns:
- the ForwardingRulePatch object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-