public CreateLaunchProfileRequest withEc2SubnetIds(String... ec2SubnetIds) {
        if (this.ec2SubnetIds == null) {
            setEc2SubnetIds(new java.util.ArrayList<String>(ec2SubnetIds.length));
        }
        for (String ele : ec2SubnetIds) {
            this.ec2SubnetIds.add(ele);
        }
        return this;
    }
<p>
Specifies the IDs of the EC2 subnets where streaming sessions will be accessible from. These subnets must support
the specified instance types.
</p>
<p>
<b>NOTE:</b> This method appends the values to the existing list (if any). Use
{@link #setEc2SubnetIds(java.util.Collection)} or {@link #withEc2SubnetIds(java.util.Collection)} if you want to
override the existing values.
</p>

@param ec2SubnetIds
       Specifies the IDs of the EC2 subnets where streaming sessions will be accessible from. These subnets must
       support the specified instance types.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-nimblestudio/src/main/java/com/amazonaws/services/nimblestudio/model/CreateLaunchProfileRequest.java