ManagedClusterCostAnalysis Class

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

Implements

public final class ManagedClusterCostAnalysis
implements JsonSerializable<ManagedClusterCostAnalysis>

The cost analysis configuration for the cluster.

Constructor Summary

Constructor Description
ManagedClusterCostAnalysis()

Creates an instance of ManagedClusterCostAnalysis class.

Method Summary

Modifier and Type Method and Description
Boolean enabled()

Get the enabled property: The Managed Cluster sku.tier must be set to 'Standard' or 'Premium' to enable this feature.

static ManagedClusterCostAnalysis fromJson(JsonReader jsonReader)

Reads an instance of ManagedClusterCostAnalysis from the JsonReader.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

ManagedClusterCostAnalysis withEnabled(Boolean enabled)

Set the enabled property: The Managed Cluster sku.tier must be set to 'Standard' or 'Premium' to enable this feature.

Methods inherited from java.lang.Object

Constructor Details

ManagedClusterCostAnalysis

public ManagedClusterCostAnalysis()

Creates an instance of ManagedClusterCostAnalysis class.

Method Details

enabled

public Boolean enabled()

Get the enabled property: The Managed Cluster sku.tier must be set to 'Standard' or 'Premium' to enable this feature. Enabling this will add Kubernetes Namespace and Deployment details to the Cost Analysis views in the Azure portal. If not specified, the default is false. For more information see aka.ms/aks/docs/cost-analysis.

Returns:

the enabled value.

fromJson

public static ManagedClusterCostAnalysis fromJson(JsonReader jsonReader)

Reads an instance of ManagedClusterCostAnalysis from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withEnabled

public ManagedClusterCostAnalysis withEnabled(Boolean enabled)

Set the enabled property: The Managed Cluster sku.tier must be set to 'Standard' or 'Premium' to enable this feature. Enabling this will add Kubernetes Namespace and Deployment details to the Cost Analysis views in the Azure portal. If not specified, the default is false. For more information see aka.ms/aks/docs/cost-analysis.

Parameters:

enabled - the enabled value to set.

Returns:

the ManagedClusterCostAnalysis object itself.

Applies to