ForwardingRuleInner Class
- java.
lang. Object - com.
azure. core. management. ProxyResource - com.
azure. resourcemanager. dnsresolver. fluent. models. ForwardingRuleInner
- com.
- com.
public final class ForwardingRuleInner
extends ProxyResource
Describes a forwarding rule within a DNS forwarding ruleset.
Constructor Summary
| Constructor | Description |
|---|---|
| ForwardingRuleInner() |
Creates an instance of Forwarding |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
| String |
domainName()
Get the domain |
| String |
etag()
Get the etag property: "If etag is provided in the response body, it may also be provided as a header per the normal etag convention. |
|
Forwarding |
forwardingRuleState()
Get the forwarding |
|
static
Forwarding |
fromJson(JsonReader jsonReader)
Reads an instance of Forwarding |
| String |
id()
Get the id property: Fully qualified resource Id for the resource. |
| Map<String,String> |
metadata()
Get the metadata property: Metadata attached to the forwarding rule. |
| String |
name()
Get the name property: The name of the resource. |
|
Provisioning |
provisioningState()
Get the provisioning |
|
System |
systemData()
Get the system |
|
List<Target |
targetDnsServers()
Get the target |
|
Json |
toJson(JsonWriter jsonWriter) |
| String |
type()
Get the type property: The type of the resource. |
|
Forwarding |
withDomainName(String domainName)
Set the domain |
|
Forwarding |
withForwardingRuleState(ForwardingRuleState forwardingRuleState)
Set the forwarding |
|
Forwarding |
withMetadata(Map<String,String> metadata)
Set the metadata property: Metadata attached to the forwarding rule. |
|
Forwarding |
withTargetDnsServers(List<TargetDnsServer> targetDnsServers)
Set the target |
Methods inherited from ProxyResource
Methods inherited from java.lang.Object
Constructor Details
ForwardingRuleInner
public ForwardingRuleInner()
Creates an instance of ForwardingRuleInner class.
Method Details
domainName
public String domainName()
Get the domainName property: The domain name for the forwarding rule.
Returns:
etag
public String etag()
Get the etag property: "If etag is provided in the response body, it may also be provided as a header per the normal etag convention. Entity tags are used for comparing two or more entities from the same requested resource. HTTP/1.1 uses entity tags in the etag (section 14.19), If-Match (section 14.24), If-None-Match (section 14.26), and If-Range (section 14.27) header fields.").
Returns:
forwardingRuleState
public ForwardingRuleState forwardingRuleState()
Get the forwardingRuleState property: The state of forwarding rule.
Returns:
fromJson
public static ForwardingRuleInner fromJson(JsonReader jsonReader)
Reads an instance of ForwardingRuleInner from the JsonReader.
Parameters:
Returns:
Throws:
id
public String id()
Get the id property: Fully qualified resource Id for the resource.
Overrides:
ForwardingRuleInner.id()Returns:
metadata
public Map<String,String> metadata()
Get the metadata property: Metadata attached to the forwarding rule.
Returns:
name
public String name()
Get the name property: The name of the resource.
Overrides:
ForwardingRuleInner.name()Returns:
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:
systemData
public SystemData systemData()
Get the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information.
Returns:
targetDnsServers
public List<TargetDnsServer> targetDnsServers()
Get the targetDnsServers property: DNS servers to forward the DNS query to.
Returns:
toJson
public JsonWriter toJson(JsonWriter jsonWriter)
Overrides:
ForwardingRuleInner.toJson(JsonWriter jsonWriter)Parameters:
Throws:
type
public String type()
Get the type property: The type of the resource.
Overrides:
ForwardingRuleInner.type()Returns:
withDomainName
public ForwardingRuleInner withDomainName(String domainName)
Set the domainName property: The domain name for the forwarding rule.
Parameters:
Returns:
withForwardingRuleState
public ForwardingRuleInner withForwardingRuleState(ForwardingRuleState forwardingRuleState)
Set the forwardingRuleState property: The state of forwarding rule.
Parameters:
Returns:
withMetadata
public ForwardingRuleInner withMetadata(Map<String,String> metadata)
Set the metadata property: Metadata attached to the forwarding rule.
Parameters:
Returns:
withTargetDnsServers
public ForwardingRuleInner withTargetDnsServers(List<TargetDnsServer> targetDnsServers)
Set the targetDnsServers property: DNS servers to forward the DNS query to.
Parameters:
Returns: