public ListQueueEnvironmentsResult withEnvironments(java.util.Collection<QueueEnvironmentSummary> environments) {
        setEnvironments(environments);
        return this;
    }
<p>
The environments to include in the queue environments list.
</p>

@param environments
       The environments to include in the queue environments list.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-deadline/src/main/java/com/amazonaws/services/deadline/model/ListQueueEnvironmentsResult.java