VirtualNetworkGatewaySku Class

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

Implements

public final class VirtualNetworkGatewaySku
implements JsonSerializable<VirtualNetworkGatewaySku>

VirtualNetworkGatewaySku details.

Constructor Summary

Constructor Description
VirtualNetworkGatewaySku()

Creates an instance of VirtualNetworkGatewaySku class.

Method Summary

Modifier and Type Method and Description
Integer capacity()

Get the capacity property: The capacity.

static VirtualNetworkGatewaySku fromJson(JsonReader jsonReader)

Reads an instance of VirtualNetworkGatewaySku from the JsonReader.

VirtualNetworkGatewaySkuName name()

Get the name property: Gateway SKU name.

VirtualNetworkGatewaySkuTier tier()

Get the tier property: Gateway SKU tier.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

VirtualNetworkGatewaySku withName(VirtualNetworkGatewaySkuName name)

Set the name property: Gateway SKU name.

VirtualNetworkGatewaySku withTier(VirtualNetworkGatewaySkuTier tier)

Set the tier property: Gateway SKU tier.

Methods inherited from java.lang.Object

Constructor Details

VirtualNetworkGatewaySku

public VirtualNetworkGatewaySku()

Creates an instance of VirtualNetworkGatewaySku class.

Method Details

capacity

public Integer capacity()

Get the capacity property: The capacity.

Returns:

the capacity value.

fromJson

public static VirtualNetworkGatewaySku fromJson(JsonReader jsonReader)

Reads an instance of VirtualNetworkGatewaySku from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

name

public VirtualNetworkGatewaySkuName name()

Get the name property: Gateway SKU name.

Returns:

the name value.

tier

public VirtualNetworkGatewaySkuTier tier()

Get the tier property: Gateway SKU tier.

Returns:

the tier value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withName

public VirtualNetworkGatewaySku withName(VirtualNetworkGatewaySkuName name)

Set the name property: Gateway SKU name.

Parameters:

name - the name value to set.

Returns:

the VirtualNetworkGatewaySku object itself.

withTier

public VirtualNetworkGatewaySku withTier(VirtualNetworkGatewaySkuTier tier)

Set the tier property: Gateway SKU tier.

Parameters:

tier - the tier value to set.

Returns:

the VirtualNetworkGatewaySku object itself.

Applies to