你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

ManagedClusterSku Class

  • java.lang.Object
    • com.azure.resourcemanager.containerservice.models.ManagedClusterSku

Implements

public final class ManagedClusterSku
implements JsonSerializable<ManagedClusterSku>

The SKU of a Managed Cluster.

Constructor Summary

Constructor Description
ManagedClusterSku()

Creates an instance of ManagedClusterSku class.

Method Summary

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

Reads an instance of ManagedClusterSku from the JsonReader.

ManagedClusterSkuName name()

Get the name property: The name of a managed cluster SKU.

ManagedClusterSkuTier tier()

Get the tier property: The tier of a managed cluster SKU.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

ManagedClusterSku withName(ManagedClusterSkuName name)

Set the name property: The name of a managed cluster SKU.

ManagedClusterSku withTier(ManagedClusterSkuTier tier)

Set the tier property: The tier of a managed cluster SKU.

Methods inherited from java.lang.Object

Constructor Details

ManagedClusterSku

public ManagedClusterSku()

Creates an instance of ManagedClusterSku class.

Method Details

fromJson

public static ManagedClusterSku fromJson(JsonReader jsonReader)

Reads an instance of ManagedClusterSku from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

name

public ManagedClusterSkuName name()

Get the name property: The name of a managed cluster SKU.

Returns:

the name value.

tier

public ManagedClusterSkuTier tier()

Get the tier property: The tier of a managed cluster SKU. If not specified, the default is 'Free'. See [AKS Pricing Tier](https://learn.microsoft.com/azure/aks/free-standard-pricing-tiers) for more details.

Returns:

the tier value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withName

public ManagedClusterSku withName(ManagedClusterSkuName name)

Set the name property: The name of a managed cluster SKU.

Parameters:

name - the name value to set.

Returns:

the ManagedClusterSku object itself.

withTier

public ManagedClusterSku withTier(ManagedClusterSkuTier tier)

Set the tier property: The tier of a managed cluster SKU. If not specified, the default is 'Free'. See [AKS Pricing Tier](https://learn.microsoft.com/azure/aks/free-standard-pricing-tiers) for more details.

Parameters:

tier - the tier value to set.

Returns:

the ManagedClusterSku object itself.

Applies to