Class ManagedClusterCostAnalysis
java.lang.Object
com.azure.resourcemanager.containerservice.models.ManagedClusterCostAnalysis
- All Implemented Interfaces:
com.azure.json.JsonSerializable<ManagedClusterCostAnalysis>
public final class ManagedClusterCostAnalysis
extends Object
implements com.azure.json.JsonSerializable<ManagedClusterCostAnalysis>
The cost analysis configuration for the cluster.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of ManagedClusterCostAnalysis class. -
Method Summary
Modifier and TypeMethodDescriptionenabled()Get the enabled property: The Managed Cluster sku.tier must be set to 'Standard' or 'Premium' to enable this feature.static ManagedClusterCostAnalysisfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of ManagedClusterCostAnalysis from the JsonReader.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.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 class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
ManagedClusterCostAnalysis
public ManagedClusterCostAnalysis()Creates an instance of ManagedClusterCostAnalysis class.
-
-
Method Details
-
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.
-
withEnabled
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.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<ManagedClusterCostAnalysis>- Throws:
IOException
-
fromJson
public static ManagedClusterCostAnalysis fromJson(com.azure.json.JsonReader jsonReader) throws IOException 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.
-