public ListLedgersResult withLedgers(LedgerSummary... ledgers) {
        if (this.ledgers == null) {
            setLedgers(new java.util.ArrayList<LedgerSummary>(ledgers.length));
        }
        for (LedgerSummary ele : ledgers) {
            this.ledgers.add(ele);
        }
        return this;
    }
<p>
The ledgers that are associated with the current Amazon Web Services account and Region.
</p>
<p>
<b>NOTE:</b> This method appends the values to the existing list (if any). Use
{@link #setLedgers(java.util.Collection)} or {@link #withLedgers(java.util.Collection)} if you want to override
the existing values.
</p>

@param ledgers
       The ledgers that are associated with the current Amazon Web Services account and Region.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-qldb/src/main/java/com/amazonaws/services/qldb/model/ListLedgersResult.java