Partilhar via


ApplicationGatewaySku Class

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

Implements

public final class ApplicationGatewaySku
implements JsonSerializable<ApplicationGatewaySku>

SKU of an application gateway.

Constructor Summary

Constructor Description
ApplicationGatewaySku()

Creates an instance of ApplicationGatewaySku class.

Method Summary

Modifier and Type Method and Description
Integer capacity()

Get the capacity property: Capacity (instance count) of an application gateway.

ApplicationGatewaySkuFamily family()

Get the family property: Family of an application gateway SKU.

static ApplicationGatewaySku fromJson(JsonReader jsonReader)

Reads an instance of ApplicationGatewaySku from the JsonReader.

ApplicationGatewaySkuName name()

Get the name property: Name of an application gateway SKU.

ApplicationGatewayTier tier()

Get the tier property: Tier of an application gateway.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

ApplicationGatewaySku withCapacity(Integer capacity)

Set the capacity property: Capacity (instance count) of an application gateway.

ApplicationGatewaySku withFamily(ApplicationGatewaySkuFamily family)

Set the family property: Family of an application gateway SKU.

ApplicationGatewaySku withName(ApplicationGatewaySkuName name)

Set the name property: Name of an application gateway SKU.

ApplicationGatewaySku withTier(ApplicationGatewayTier tier)

Set the tier property: Tier of an application gateway.

Methods inherited from java.lang.Object

Constructor Details

ApplicationGatewaySku

public ApplicationGatewaySku()

Creates an instance of ApplicationGatewaySku class.

Method Details

capacity

public Integer capacity()

Get the capacity property: Capacity (instance count) of an application gateway.

Returns:

the capacity value.

family

public ApplicationGatewaySkuFamily family()

Get the family property: Family of an application gateway SKU.

Returns:

the family value.

fromJson

public static ApplicationGatewaySku fromJson(JsonReader jsonReader)

Reads an instance of ApplicationGatewaySku from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

name

public ApplicationGatewaySkuName name()

Get the name property: Name of an application gateway SKU.

Returns:

the name value.

tier

public ApplicationGatewayTier tier()

Get the tier property: Tier of an application gateway.

Returns:

the tier value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withCapacity

public ApplicationGatewaySku withCapacity(Integer capacity)

Set the capacity property: Capacity (instance count) of an application gateway.

Parameters:

capacity - the capacity value to set.

Returns:

the ApplicationGatewaySku object itself.

withFamily

public ApplicationGatewaySku withFamily(ApplicationGatewaySkuFamily family)

Set the family property: Family of an application gateway SKU.

Parameters:

family - the family value to set.

Returns:

the ApplicationGatewaySku object itself.

withName

public ApplicationGatewaySku withName(ApplicationGatewaySkuName name)

Set the name property: Name of an application gateway SKU.

Parameters:

name - the name value to set.

Returns:

the ApplicationGatewaySku object itself.

withTier

public ApplicationGatewaySku withTier(ApplicationGatewayTier tier)

Set the tier property: Tier of an application gateway.

Parameters:

tier - the tier value to set.

Returns:

the ApplicationGatewaySku object itself.

Applies to