public ListConnectionsResult withConnections(Connection... connections) {
        if (this.connections == null) {
            setConnections(new java.util.ArrayList<Connection>(connections.length));
        }
        for (Connection ele : connections) {
            this.connections.add(ele);
        }
        return this;
    }
<p>
An array of connections objects that include details about the connections.
</p>
<p>
<b>NOTE:</b> This method appends the values to the existing list (if any). Use
{@link #setConnections(java.util.Collection)} or {@link #withConnections(java.util.Collection)} if you want to
override the existing values.
</p>

@param connections
       An array of connections objects that include details about the connections.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-eventbridge/src/main/java/com/amazonaws/services/eventbridge/model/ListConnectionsResult.java