public AppDefinition withCards(Card... cards) {
        if (this.cards == null) {
            setCards(new java.util.ArrayList<Card>(cards.length));
        }
        for (Card ele : cards) {
            this.cards.add(ele);
        }
        return this;
    }
<p>
The cards that make up the Q App, such as text input, file upload, or query cards.
</p>
<p>
<b>NOTE:</b> This method appends the values to the existing list (if any). Use
{@link #setCards(java.util.Collection)} or {@link #withCards(java.util.Collection)} if you want to override the
existing values.
</p>

@param cards
       The cards that make up the Q App, such as text input, file upload, or query cards.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-qapps/src/main/java/com/amazonaws/services/qapps/model/AppDefinition.java