public void setInstanceTypes(java.util.Collection<String> instanceTypes) {
        if (instanceTypes == null) {
            this.instanceTypes = null;
            return;
        }

        this.instanceTypes = new java.util.ArrayList<String>(instanceTypes);
    }
<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>.
aws-java-sdk-eks/src/main/java/com/amazonaws/services/eks/model/Nodegroup.java