public FilterActivity withNext(String next) {
        setNext(next);
        return this;
    }
<p>
The next activity in the pipeline.
</p>

@param next
       The next activity in the pipeline.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-iotanalytics/src/main/java/com/amazonaws/services/iotanalytics/model/FilterActivity.java