public StreamConfiguration withEc2InstanceTypes(StreamingInstanceType... ec2InstanceTypes) {
        java.util.ArrayList<String> ec2InstanceTypesCopy = new java.util.ArrayList<String>(ec2InstanceTypes.length);
        for (StreamingInstanceType value : ec2InstanceTypes) {
            ec2InstanceTypesCopy.add(value.toString());
        }
        if (getEc2InstanceTypes() == null) {
            setEc2InstanceTypes(ec2InstanceTypesCopy);
        } else {
            getEc2InstanceTypes().addAll(ec2InstanceTypesCopy);
        }
        return this;
    }
<p>
The EC2 instance types that users can select from when launching a streaming session with this launch profile.
</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