public BatchGetTokenBalanceResult withTokenBalances(BatchGetTokenBalanceOutputItem... tokenBalances) {
        if (this.tokenBalances == null) {
            setTokenBalances(new java.util.ArrayList<BatchGetTokenBalanceOutputItem>(tokenBalances.length));
        }
        for (BatchGetTokenBalanceOutputItem ele : tokenBalances) {
            this.tokenBalances.add(ele);
        }
        return this;
    }
<p>
An array of <code>BatchGetTokenBalanceOutputItem</code> objects returned by the response.
</p>
<p>
<b>NOTE:</b> This method appends the values to the existing list (if any). Use
{@link #setTokenBalances(java.util.Collection)} or {@link #withTokenBalances(java.util.Collection)} if you want
to override the existing values.
</p>

@param tokenBalances
       An array of <code>BatchGetTokenBalanceOutputItem</code> objects returned by the response.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-managedblockchainquery/src/main/java/com/amazonaws/services/managedblockchainquery/model/BatchGetTokenBalanceResult.java