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: If not specified, the default is 'Free'.

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: If not specified, the default is 'Free'.

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: 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: 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