public RandomSplitActivity withBranches(RandomSplitEntry... branches) {
        if (this.branches == null) {
            setBranches(new java.util.ArrayList<RandomSplitEntry>(branches.length));
        }
        for (RandomSplitEntry ele : branches) {
            this.branches.add(ele);
        }
        return this;
    }
<p>
The paths for the activity, including the percentage of participants to enter each path and the activity to
perform for each path.
</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
       The paths for the activity, including the percentage of participants to enter each path and the activity
       to perform for each path.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-pinpoint/src/main/java/com/amazonaws/services/pinpoint/model/RandomSplitActivity.java