NatGatewaySku Class

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

Implements

public final class NatGatewaySku
implements JsonSerializable<NatGatewaySku>

SKU of nat gateway.

Constructor Summary

Constructor Description
NatGatewaySku()

Creates an instance of NatGatewaySku class.

Method Summary

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

Reads an instance of NatGatewaySku from the JsonReader.

NatGatewaySkuName name()

Get the name property: Name of Nat Gateway SKU.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

NatGatewaySku withName(NatGatewaySkuName name)

Set the name property: Name of Nat Gateway SKU.

Methods inherited from java.lang.Object

Constructor Details

NatGatewaySku

public NatGatewaySku()

Creates an instance of NatGatewaySku class.

Method Details

fromJson

public static NatGatewaySku fromJson(JsonReader jsonReader)

Reads an instance of NatGatewaySku from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

name

public NatGatewaySkuName name()

Get the name property: Name of Nat Gateway SKU.

Returns:

the name value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withName

public NatGatewaySku withName(NatGatewaySkuName name)

Set the name property: Name of Nat Gateway SKU.

Parameters:

name - the name value to set.

Returns:

the NatGatewaySku object itself.

Applies to