public DescribeDirectConnectGatewayAssociationsResult withDirectConnectGatewayAssociations(
            DirectConnectGatewayAssociation... directConnectGatewayAssociations) {
        if (this.directConnectGatewayAssociations == null) {
            setDirectConnectGatewayAssociations(new com.amazonaws.internal.SdkInternalList<DirectConnectGatewayAssociation>(
                    directConnectGatewayAssociations.length));
        }
        for (DirectConnectGatewayAssociation ele : directConnectGatewayAssociations) {
            this.directConnectGatewayAssociations.add(ele);
        }
        return this;
    }
<p>
Information about the associations.
</p>
<p>
<b>NOTE:</b> This method appends the values to the existing list (if any). Use
{@link #setDirectConnectGatewayAssociations(java.util.Collection)} or
{@link #withDirectConnectGatewayAssociations(java.util.Collection)} if you want to override the existing values.
</p>

@param directConnectGatewayAssociations
       Information about the associations.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-directconnect/src/main/java/com/amazonaws/services/directconnect/model/DescribeDirectConnectGatewayAssociationsResult.java