public ListEnvironmentsResult withEnvironments(java.util.Collection<String> environments) {
        setEnvironments(environments);
        return this;
    }
<p>
Returns a list of Amazon MWAA environments.
</p>

@param environments
       Returns a list of Amazon MWAA environments.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-mwaa/src/main/java/com/amazonaws/services/mwaa/model/ListEnvironmentsResult.java