public Nodegroup withCapacityType(String capacityType) {
        setCapacityType(capacityType);
        return this;
    }
<p>
The capacity type of your managed node group.
</p>

@param capacityType
       The capacity type of your managed node group.
@return Returns a reference to this object so that method calls can be chained together.
@see CapacityTypes
aws-java-sdk-eks/src/main/java/com/amazonaws/services/eks/model/Nodegroup.java