public RandomSplitActivity withBranches(java.util.Collection<RandomSplitEntry> branches) {
        setBranches(branches);
        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>

@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