Class ManagedClusterNodeProvisioningProfile
java.lang.Object
com.azure.resourcemanager.containerservice.models.ManagedClusterNodeProvisioningProfile
- All Implemented Interfaces:
com.azure.json.JsonSerializable<ManagedClusterNodeProvisioningProfile>
public final class ManagedClusterNodeProvisioningProfile
extends Object
implements com.azure.json.JsonSerializable<ManagedClusterNodeProvisioningProfile>
The ManagedClusterNodeProvisioningProfile model.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of ManagedClusterNodeProvisioningProfile class. -
Method Summary
Modifier and TypeMethodDescriptionGet the defaultNodePools property: The set of default Karpenter NodePools (CRDs) configured for node provisioning.fromJson(com.azure.json.JsonReader jsonReader) Reads an instance of ManagedClusterNodeProvisioningProfile from the JsonReader.mode()Get the mode property: The node provisioning mode.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.withDefaultNodePools(NodeProvisioningDefaultNodePools defaultNodePools) Set the defaultNodePools property: The set of default Karpenter NodePools (CRDs) configured for node provisioning.withMode(NodeProvisioningMode mode) Set the mode property: The node provisioning mode.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
-
ManagedClusterNodeProvisioningProfile
public ManagedClusterNodeProvisioningProfile()Creates an instance of ManagedClusterNodeProvisioningProfile class.
-
-
Method Details
-
mode
Get the mode property: The node provisioning mode. If not specified, the default is Manual.- Returns:
- the mode value.
-
withMode
Set the mode property: The node provisioning mode. If not specified, the default is Manual.- Parameters:
mode- the mode value to set.- Returns:
- the ManagedClusterNodeProvisioningProfile object itself.
-
defaultNodePools
Get the defaultNodePools property: The set of default Karpenter NodePools (CRDs) configured for node provisioning. This field has no effect unless mode is 'Auto'. Warning: Changing this from Auto to None on an existing cluster will cause the default Karpenter NodePools to be deleted, which will drain and delete the nodes associated with those pools. It is strongly recommended to not do this unless there are idle nodes ready to take the pods evicted by that action. If not specified, the default is Auto. For more information see aka.ms/aks/nap#node-pools.- Returns:
- the defaultNodePools value.
-
withDefaultNodePools
public ManagedClusterNodeProvisioningProfile withDefaultNodePools(NodeProvisioningDefaultNodePools defaultNodePools) Set the defaultNodePools property: The set of default Karpenter NodePools (CRDs) configured for node provisioning. This field has no effect unless mode is 'Auto'. Warning: Changing this from Auto to None on an existing cluster will cause the default Karpenter NodePools to be deleted, which will drain and delete the nodes associated with those pools. It is strongly recommended to not do this unless there are idle nodes ready to take the pods evicted by that action. If not specified, the default is Auto. For more information see aka.ms/aks/nap#node-pools.- Parameters:
defaultNodePools- the defaultNodePools value to set.- Returns:
- the ManagedClusterNodeProvisioningProfile 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<ManagedClusterNodeProvisioningProfile>- Throws:
IOException
-
fromJson
public static ManagedClusterNodeProvisioningProfile fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of ManagedClusterNodeProvisioningProfile from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of ManagedClusterNodeProvisioningProfile 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 ManagedClusterNodeProvisioningProfile.
-