public Nodegroup withInstanceTypes(java.util.Collection<String> instanceTypes) {
        setInstanceTypes(instanceTypes);
        return this;
    }
<p>
If the node group wasn't deployed with a launch template, then this is the instance type that is associated with
the node group. If the node group was deployed with a launch template, then this is <code>null</code>.
</p>

@param instanceTypes
       If the node group wasn't deployed with a launch template, then this is the instance type that is
       associated with the node group. If the node group was deployed with a launch template, then this is
       <code>null</code>.
@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