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