public Nodegroup withTaints(java.util.Collection<Taint> taints) {
        setTaints(taints);
        return this;
    }
<p>
The Kubernetes taints to be applied to the nodes in the node group when they are created. Effect is one of
<code>No_Schedule</code>, <code>Prefer_No_Schedule</code>, or <code>No_Execute</code>. Kubernetes taints can be
used together with tolerations to control how workloads are scheduled to your nodes. For more information, see <a
href="https://docs.aws.amazon.com/eks/latest/userguide/node-taints-managed-node-groups.html">Node taints on
managed node groups</a>.
</p>

@param taints
       The Kubernetes taints to be applied to the nodes in the node group when they are created. Effect is one of
       <code>No_Schedule</code>, <code>Prefer_No_Schedule</code>, or <code>No_Execute</code>. Kubernetes taints
       can be used together with tolerations to control how workloads are scheduled to your nodes. For more
       information, see <a
       href="https://docs.aws.amazon.com/eks/latest/userguide/node-taints-managed-node-groups.html">Node taints
       on managed node groups</a>.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-eks/src/main/java/com/amazonaws/services/eks/model/Nodegroup.java