public RetrieveEnvironmentInfoResult withEnvironmentInfo(EnvironmentInfoDescription... environmentInfo) {
        if (this.environmentInfo == null) {
            setEnvironmentInfo(new com.amazonaws.internal.SdkInternalList<EnvironmentInfoDescription>(environmentInfo.length));
        }
        for (EnvironmentInfoDescription ele : environmentInfo) {
            this.environmentInfo.add(ele);
        }
        return this;
    }
<p>
The <a>EnvironmentInfoDescription</a> of the environment.
</p>
<p>
<b>NOTE:</b> This method appends the values to the existing list (if any). Use
{@link #setEnvironmentInfo(java.util.Collection)} or {@link #withEnvironmentInfo(java.util.Collection)} if you
want to override the existing values.
</p>

@param environmentInfo
       The <a>EnvironmentInfoDescription</a> of the environment.
@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/RetrieveEnvironmentInfoResult.java