你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

AzureFirewallNatRCAction Class

  • java.lang.Object
    • com.azure.resourcemanager.network.models.AzureFirewallNatRCAction

Implements

public final class AzureFirewallNatRCAction
implements JsonSerializable<AzureFirewallNatRCAction>

AzureFirewall NAT Rule Collection Action.

Constructor Summary

Constructor Description
AzureFirewallNatRCAction()

Creates an instance of AzureFirewallNatRCAction class.

Method Summary

Modifier and Type Method and Description
static AzureFirewallNatRCAction fromJson(JsonReader jsonReader)

Reads an instance of AzureFirewallNatRCAction from the JsonReader.

JsonWriter toJson(JsonWriter jsonWriter)
AzureFirewallNatRCActionType type()

Get the type property: The type of action.

void validate()

Validates the instance.

AzureFirewallNatRCAction withType(AzureFirewallNatRCActionType type)

Set the type property: The type of action.

Methods inherited from java.lang.Object

Constructor Details

AzureFirewallNatRCAction

public AzureFirewallNatRCAction()

Creates an instance of AzureFirewallNatRCAction class.

Method Details

fromJson

public static AzureFirewallNatRCAction fromJson(JsonReader jsonReader)

Reads an instance of AzureFirewallNatRCAction from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of AzureFirewallNatRCAction 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 AzureFirewallNatRCAction.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

type

public AzureFirewallNatRCActionType type()

Get the type property: The type of action.

Returns:

the type value.

validate

public void validate()

Validates the instance.

withType

public AzureFirewallNatRCAction withType(AzureFirewallNatRCActionType type)

Set the type property: The type of action.

Parameters:

type - the type value to set.

Returns:

the AzureFirewallNatRCAction object itself.

Applies to