public DescribeInstanceTypesRequest withInstanceTypes(String... instanceTypes) {
        if (this.instanceTypes == null) {
            setInstanceTypes(new com.amazonaws.internal.SdkInternalList<String>(instanceTypes.length));
        }
        for (String ele : instanceTypes) {
            this.instanceTypes.add(ele);
        }
        return this;
    }
<p>
The instance types.
</p>
<p>
<b>NOTE:</b> This method appends the values to the existing list (if any). Use
{@link #setInstanceTypes(java.util.Collection)} or {@link #withInstanceTypes(java.util.Collection)} if you want
to override the existing values.
</p>

@param instanceTypes
       The instance types.
@return Returns a reference to this object so that method calls can be chained together.
@see InstanceType
aws-java-sdk-ec2/src/main/java/com/amazonaws/services/ec2/model/DescribeInstanceTypesRequest.java