public ListEnvironmentAccountConnectionsResult withEnvironmentAccountConnections(EnvironmentAccountConnectionSummary... environmentAccountConnections) {
        if (this.environmentAccountConnections == null) {
            setEnvironmentAccountConnections(new java.util.ArrayList<EnvironmentAccountConnectionSummary>(environmentAccountConnections.length));
        }
        for (EnvironmentAccountConnectionSummary ele : environmentAccountConnections) {
            this.environmentAccountConnections.add(ele);
        }
        return this;
    }
<p>
An array of environment account connections with details that's returned by Proton.
</p>
<p>
<b>NOTE:</b> This method appends the values to the existing list (if any). Use
{@link #setEnvironmentAccountConnections(java.util.Collection)} or
{@link #withEnvironmentAccountConnections(java.util.Collection)} if you want to override the existing values.
</p>

@param environmentAccountConnections
       An array of environment account connections with details that's returned by Proton.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-proton/src/main/java/com/amazonaws/services/proton/model/ListEnvironmentAccountConnectionsResult.java