public StreamConfiguration withEc2InstanceTypes(String... ec2InstanceTypes) {
        if (this.ec2InstanceTypes == null) {
            setEc2InstanceTypes(new java.util.ArrayList<String>(ec2InstanceTypes.length));
        }
        for (String ele : ec2InstanceTypes) {
            this.ec2InstanceTypes.add(ele);
        }
        return this;
    }
<p>
The EC2 instance types that users can select from when launching a streaming session with this launch profile.
</p>
<p>
<b>NOTE:</b> This method appends the values to the existing list (if any). Use
{@link #setEc2InstanceTypes(java.util.Collection)} or {@link #withEc2InstanceTypes(java.util.Collection)} if you
want to override the existing values.
</p>

@param ec2InstanceTypes
       The EC2 instance types that users can select from when launching a streaming session with this launch
       profile.
@return Returns a reference to this object so that method calls can be chained together.
@see StreamingInstanceType
aws-java-sdk-nimblestudio/src/main/java/com/amazonaws/services/nimblestudio/model/StreamConfiguration.java