public JourneyResponse withRefreshOnSegmentUpdate(Boolean refreshOnSegmentUpdate) {
        setRefreshOnSegmentUpdate(refreshOnSegmentUpdate);
        return this;
    }
<p>
Indicates whether the journey participants should be refreshed when a segment is updated.
</p>

@param refreshOnSegmentUpdate
       Indicates whether the journey participants should be refreshed when a segment is updated.
@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/JourneyResponse.java