public Integer getDesiredSize() {
        return this.desiredSize;
    }
<p>
The current number of nodes that the managed node group should maintain.
</p>
<important>
<p>
If you use the Kubernetes <a href="https://github.com/kubernetes/autoscaler#kubernetes-autoscaler">Cluster
Autoscaler</a>, you shouldn't change the <code>desiredSize</code> value directly, as this can cause the Cluster
Autoscaler to suddenly scale up or scale down.
</p>
</important>
<p>
Whenever this parameter changes, the number of worker nodes in the node group is updated to the specified size.
If this parameter is given a value that is smaller than the current number of running worker nodes, the necessary
number of worker nodes are terminated to match the given value. When using CloudFormation, no action occurs if
you remove this parameter from your CFN template.
</p>
<p>
This parameter can be different from <code>minSize</code> in some cases, such as when starting with extra hosts
for testing. This parameter can also be different when you want to start with an estimated number of needed
hosts, but let the Cluster Autoscaler reduce the number if there are too many. When the Cluster Autoscaler is
used, the <code>desiredSize</code> parameter is altered by the Cluster Autoscaler (but can be out-of-date for
short periods of time). the Cluster Autoscaler doesn't scale a managed node group lower than <code>minSize</code>
or higher than <code>maxSize</code>.
</p>

@return The current number of nodes that the managed node group should maintain.</p> <important>
        <p>
        If you use the Kubernetes <a
        href="https://github.com/kubernetes/autoscaler#kubernetes-autoscaler">Cluster Autoscaler</a>, you
        shouldn't change the <code>desiredSize</code> value directly, as this can cause the Cluster Autoscaler to
        suddenly scale up or scale down.
        </p>
        </important>
        <p>
        Whenever this parameter changes, the number of worker nodes in the node group is updated to the specified
        size. If this parameter is given a value that is smaller than the current number of running worker nodes,
        the necessary number of worker nodes are terminated to match the given value. When using CloudFormation,
        no action occurs if you remove this parameter from your CFN template.
        </p>
        <p>
        This parameter can be different from <code>minSize</code> in some cases, such as when starting with extra
        hosts for testing. This parameter can also be different when you want to start with an estimated number
        of needed hosts, but let the Cluster Autoscaler reduce the number if there are too many. When the Cluster
        Autoscaler is used, the <code>desiredSize</code> parameter is altered by the Cluster Autoscaler (but can
        be out-of-date for short periods of time). the Cluster Autoscaler doesn't scale a managed node group
        lower than <code>minSize</code> or higher than <code>maxSize</code>.
aws-java-sdk-eks/src/main/java/com/amazonaws/services/eks/model/NodegroupScalingConfig.java