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 Details

    • ManagedClusterNodeProvisioningProfile

      public ManagedClusterNodeProvisioningProfile()
      Creates an instance of ManagedClusterNodeProvisioningProfile class.
  • Method Details

    • mode

      public NodeProvisioningMode 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

      public NodeProvisioningDefaultNodePools 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

      public com.azure.json.JsonWriter toJson(com.azure.json.JsonWriter jsonWriter) throws IOException
      Specified by:
      toJson in interface com.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.