public ListBranchesResult withBranches(Branch... branches) {
        if (this.branches == null) {
            setBranches(new java.util.ArrayList<Branch>(branches.length));
        }
        for (Branch ele : branches) {
            this.branches.add(ele);
        }
        return this;
    }
<p>
A list of branches for an Amplify app.
</p>
<p>
<b>NOTE:</b> This method appends the values to the existing list (if any). Use
{@link #setBranches(java.util.Collection)} or {@link #withBranches(java.util.Collection)} if you want to override
the existing values.
</p>

@param branches
       A list of branches for an Amplify app.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-amplify/src/main/java/com/amazonaws/services/amplify/model/ListBranchesResult.java