Class ForwardingRulePatchProperties
- java.lang.Object
-
- com.azure.resourcemanager.dnsresolver.fluent.models.ForwardingRulePatchProperties
-
public final class ForwardingRulePatchProperties extends Object
Represents the updatable properties of a forwarding rule within a DNS forwarding ruleset.
-
-
Constructor Summary
Constructors Constructor Description ForwardingRulePatchProperties()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description 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.List<TargetDnsServer>
targetDnsServers()
Get the targetDnsServers property: DNS servers to forward the DNS query to.void
validate()
Validates the instance.ForwardingRulePatchProperties
withForwardingRuleState(ForwardingRuleState forwardingRuleState)
Set the forwardingRuleState property: The state of forwarding rule.ForwardingRulePatchProperties
withMetadata(Map<String,String> metadata)
Set the metadata property: Metadata attached to the forwarding rule.ForwardingRulePatchProperties
withTargetDnsServers(List<TargetDnsServer> targetDnsServers)
Set the targetDnsServers property: DNS servers to forward the DNS query to.
-
-
-
Method Detail
-
targetDnsServers
public List<TargetDnsServer> targetDnsServers()
Get the targetDnsServers property: DNS servers to forward the DNS query to.- Returns:
- the targetDnsServers value.
-
withTargetDnsServers
public ForwardingRulePatchProperties 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 ForwardingRulePatchProperties object itself.
-
metadata
public Map<String,String> metadata()
Get the metadata property: Metadata attached to the forwarding rule.- Returns:
- the metadata value.
-
withMetadata
public ForwardingRulePatchProperties withMetadata(Map<String,String> metadata)
Set the metadata property: Metadata attached to the forwarding rule.- Parameters:
metadata
- the metadata value to set.- Returns:
- the ForwardingRulePatchProperties object itself.
-
forwardingRuleState
public ForwardingRuleState forwardingRuleState()
Get the forwardingRuleState property: The state of forwarding rule.- Returns:
- the forwardingRuleState value.
-
withForwardingRuleState
public ForwardingRulePatchProperties withForwardingRuleState(ForwardingRuleState forwardingRuleState)
Set the forwardingRuleState property: The state of forwarding rule.- Parameters:
forwardingRuleState
- the forwardingRuleState value to set.- Returns:
- the ForwardingRulePatchProperties object itself.
-
validate
public void validate()
Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-
-