public void setEnvironments(java.util.Collection<String> environments) {
        if (environments == null) {
            this.environments = null;
            return;
        }

        this.environments = new java.util.ArrayList<String>(environments);
    }
<p>
Returns a list of Amazon MWAA environments.
</p>

@param environments
       Returns a list of Amazon MWAA environments.
aws-java-sdk-mwaa/src/main/java/com/amazonaws/services/mwaa/model/ListEnvironmentsResult.java