AzureFirewallSku Class

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

Implements

public final class AzureFirewallSku
implements JsonSerializable<AzureFirewallSku>

SKU of an Azure Firewall.

Constructor Summary

Constructor Description
AzureFirewallSku()

Creates an instance of AzureFirewallSku class.

Method Summary

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

Reads an instance of AzureFirewallSku from the JsonReader.

AzureFirewallSkuName name()

Get the name property: Name of an Azure Firewall SKU.

AzureFirewallSkuTier tier()

Get the tier property: Tier of an Azure Firewall.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

AzureFirewallSku withName(AzureFirewallSkuName name)

Set the name property: Name of an Azure Firewall SKU.

AzureFirewallSku withTier(AzureFirewallSkuTier tier)

Set the tier property: Tier of an Azure Firewall.

Methods inherited from java.lang.Object

Constructor Details

AzureFirewallSku

public AzureFirewallSku()

Creates an instance of AzureFirewallSku class.

Method Details

fromJson

public static AzureFirewallSku fromJson(JsonReader jsonReader)

Reads an instance of AzureFirewallSku from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

name

public AzureFirewallSkuName name()

Get the name property: Name of an Azure Firewall SKU.

Returns:

the name value.

tier

public AzureFirewallSkuTier tier()

Get the tier property: Tier of an Azure Firewall.

Returns:

the tier value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withName

public AzureFirewallSku withName(AzureFirewallSkuName name)

Set the name property: Name of an Azure Firewall SKU.

Parameters:

name - the name value to set.

Returns:

the AzureFirewallSku object itself.

withTier

public AzureFirewallSku withTier(AzureFirewallSkuTier tier)

Set the tier property: Tier of an Azure Firewall.

Parameters:

tier - the tier value to set.

Returns:

the AzureFirewallSku object itself.

Applies to