AzureFirewallNatRuleCollection Class

public final class AzureFirewallNatRuleCollection
extends SubResource

NAT rule collection resource.

Constructor Summary

Constructor Description
AzureFirewallNatRuleCollection()

Creates an instance of AzureFirewallNatRuleCollection class.

Method Summary

Modifier and Type Method and Description
AzureFirewallNatRCAction action()

Get the action property: The action type of a NAT rule collection.

String etag()

Get the etag property: A unique read-only string that changes whenever the resource is updated.

static AzureFirewallNatRuleCollection fromJson(JsonReader jsonReader)

Reads an instance of AzureFirewallNatRuleCollection from the JsonReader.

String name()

Get the name property: The name of the resource that is unique within the Azure firewall.

Integer priority()

Get the priority property: Priority of the NAT rule collection resource.

ProvisioningState provisioningState()

Get the provisioningState property: The provisioning state of the NAT rule collection resource.

List<AzureFirewallNatRule> rules()

Get the rules property: Collection of rules used by a NAT rule collection.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

AzureFirewallNatRuleCollection withAction(AzureFirewallNatRCAction action)

Set the action property: The action type of a NAT rule collection.

AzureFirewallNatRuleCollection withId(String id)
AzureFirewallNatRuleCollection withName(String name)

Set the name property: The name of the resource that is unique within the Azure firewall.

AzureFirewallNatRuleCollection withPriority(Integer priority)

Set the priority property: Priority of the NAT rule collection resource.

AzureFirewallNatRuleCollection withRules(List<AzureFirewallNatRule> rules)

Set the rules property: Collection of rules used by a NAT rule collection.

Methods inherited from SubResource

Methods inherited from java.lang.Object

Constructor Details

AzureFirewallNatRuleCollection

public AzureFirewallNatRuleCollection()

Creates an instance of AzureFirewallNatRuleCollection class.

Method Details

action

public AzureFirewallNatRCAction action()

Get the action property: The action type of a NAT rule collection.

Returns:

the action value.

etag

public String etag()

Get the etag property: A unique read-only string that changes whenever the resource is updated.

Returns:

the etag value.

fromJson

public static AzureFirewallNatRuleCollection fromJson(JsonReader jsonReader)

Reads an instance of AzureFirewallNatRuleCollection from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

Throws:

IOException

- If an error occurs while reading the AzureFirewallNatRuleCollection.

name

public String name()

Get the name property: The name of the resource that is unique within the Azure firewall. This name can be used to access the resource.

Returns:

the name value.

priority

public Integer priority()

Get the priority property: Priority of the NAT rule collection resource.

Returns:

the priority value.

provisioningState

public ProvisioningState provisioningState()

Get the provisioningState property: The provisioning state of the NAT rule collection resource.

Returns:

the provisioningState value.

rules

public List rules()

Get the rules property: Collection of rules used by a NAT rule collection.

Returns:

the rules value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Overrides:

AzureFirewallNatRuleCollection.toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withAction

public AzureFirewallNatRuleCollection withAction(AzureFirewallNatRCAction action)

Set the action property: The action type of a NAT rule collection.

Parameters:

action - the action value to set.

Returns:

the AzureFirewallNatRuleCollection object itself.

withId

public AzureFirewallNatRuleCollection withId(String id)

Overrides:

AzureFirewallNatRuleCollection.withId(String id)

Parameters:

id

withName

public AzureFirewallNatRuleCollection withName(String name)

Set the name property: The name of the resource that is unique within the Azure firewall. This name can be used to access the resource.

Parameters:

name - the name value to set.

Returns:

the AzureFirewallNatRuleCollection object itself.

withPriority

public AzureFirewallNatRuleCollection withPriority(Integer priority)

Set the priority property: Priority of the NAT rule collection resource.

Parameters:

priority - the priority value to set.

Returns:

the AzureFirewallNatRuleCollection object itself.

withRules

public AzureFirewallNatRuleCollection withRules(List rules)

Set the rules property: Collection of rules used by a NAT rule collection.

Parameters:

rules - the rules value to set.

Returns:

the AzureFirewallNatRuleCollection object itself.

Applies to