ForwardingRuleInner Class

public final class ForwardingRuleInner
extends ProxyResource

Describes a forwarding rule within a DNS forwarding ruleset.

Constructor Summary

Constructor Description
ForwardingRuleInner()

Creates an instance of ForwardingRuleInner class.

Method Summary

Modifier and Type Method and 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.

static ForwardingRuleInner fromJson(JsonReader jsonReader)

Reads an instance of ForwardingRuleInner from the JsonReader.

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.

ProvisioningState provisioningState()

Get the provisioningState property: The current provisioning state of the forwarding rule.

SystemData systemData()

Get the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information.

List<TargetDnsServer> targetDnsServers()

Get the targetDnsServers property: DNS servers to forward the DNS query to.

JsonWriter toJson(JsonWriter jsonWriter)
String type()

Get the type property: The type of the resource.

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.

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:

the domainName value.

etag

public String etag()

Get the etag property: ETag of the forwarding rule.

Returns:

the etag value.

forwardingRuleState

public ForwardingRuleState forwardingRuleState()

Get the forwardingRuleState property: The state of forwarding rule.

Returns:

the forwardingRuleState value.

fromJson

public static ForwardingRuleInner fromJson(JsonReader jsonReader)

Reads an instance of ForwardingRuleInner from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of ForwardingRuleInner if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.

Throws:

IOException

- If the deserialized JSON object was missing any required properties.

id

public String id()

Get the id property: Fully qualified resource Id for the resource.

Overrides:

ForwardingRuleInner.id()

Returns:

the id value.

metadata

public Map<String,String> metadata()

Get the metadata property: Metadata attached to the forwarding rule.

Returns:

the metadata value.

name

public String name()

Get the name property: The name of the resource.

Overrides:

ForwardingRuleInner.name()

Returns:

the name value.

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.

systemData

public SystemData systemData()

Get the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information.

Returns:

the systemData value.

targetDnsServers

public List<TargetDnsServer> targetDnsServers()

Get the targetDnsServers property: DNS servers to forward the DNS query to.

Returns:

the targetDnsServers value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Overrides:

ForwardingRuleInner.toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

type

public String type()

Get the type property: The type of the resource.

Overrides:

ForwardingRuleInner.type()

Returns:

the type value.

validate

public void validate()

Validates the instance.

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.

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.

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.

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.

Applies to