public DescribeInstanceTypesRequest withInstanceTypes(InstanceType... instanceTypes) {
        com.amazonaws.internal.SdkInternalList<String> instanceTypesCopy = new com.amazonaws.internal.SdkInternalList<String>(instanceTypes.length);
        for (InstanceType value : instanceTypes) {
            instanceTypesCopy.add(value.toString());
        }
        if (getInstanceTypes() == null) {
            setInstanceTypes(instanceTypesCopy);
        } else {
            getInstanceTypes().addAll(instanceTypesCopy);
        }
        return this;
    }
<p>
The instance types.
</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