public DescribeEnvironmentsRequest withEnvironmentIds(String... environmentIds) {
        if (this.environmentIds == null) {
            setEnvironmentIds(new com.amazonaws.internal.SdkInternalList<String>(environmentIds.length));
        }
        for (String ele : environmentIds) {
            this.environmentIds.add(ele);
        }
        return this;
    }
<p>
If specified, AWS Elastic Beanstalk restricts the returned descriptions to include only those that have the
specified IDs.
</p>
<p>
<b>NOTE:</b> This method appends the values to the existing list (if any). Use
{@link #setEnvironmentIds(java.util.Collection)} or {@link #withEnvironmentIds(java.util.Collection)} if you want
to override the existing values.
</p>

@param environmentIds
       If specified, AWS Elastic Beanstalk restricts the returned descriptions to include only those that have
       the specified IDs.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-elasticbeanstalk/src/main/java/com/amazonaws/services/elasticbeanstalk/model/DescribeEnvironmentsRequest.java