public RandomSplitEntry withNextActivity(String nextActivity) {
        setNextActivity(nextActivity);
        return this;
    }
<p>
The unique identifier for the next activity to perform, after completing the activity for the path.
</p>

@param nextActivity
       The unique identifier for the next activity to perform, after completing the activity for the 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/RandomSplitEntry.java