Partager via


LoadBalancerSku Class

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

Implements

public final class LoadBalancerSku
implements JsonSerializable<LoadBalancerSku>

SKU of a load balancer.

Constructor Summary

Constructor Description
LoadBalancerSku()

Creates an instance of LoadBalancerSku class.

Method Summary

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

Reads an instance of LoadBalancerSku from the JsonReader.

LoadBalancerSkuName name()

Get the name property: Name of a load balancer SKU.

LoadBalancerSkuTier tier()

Get the tier property: Tier of a load balancer SKU.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

LoadBalancerSku withName(LoadBalancerSkuName name)

Set the name property: Name of a load balancer SKU.

LoadBalancerSku withTier(LoadBalancerSkuTier tier)

Set the tier property: Tier of a load balancer SKU.

Methods inherited from java.lang.Object

Constructor Details

LoadBalancerSku

public LoadBalancerSku()

Creates an instance of LoadBalancerSku class.

Method Details

fromJson

public static LoadBalancerSku fromJson(JsonReader jsonReader)

Reads an instance of LoadBalancerSku from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

name

public LoadBalancerSkuName name()

Get the name property: Name of a load balancer SKU.

Returns:

the name value.

tier

public LoadBalancerSkuTier tier()

Get the tier property: Tier of a load balancer SKU.

Returns:

the tier value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withName

public LoadBalancerSku withName(LoadBalancerSkuName name)

Set the name property: Name of a load balancer SKU.

Parameters:

name - the name value to set.

Returns:

the LoadBalancerSku object itself.

withTier

public LoadBalancerSku withTier(LoadBalancerSkuTier tier)

Set the tier property: Tier of a load balancer SKU.

Parameters:

tier - the tier value to set.

Returns:

the LoadBalancerSku object itself.

Applies to