public SegmentDimensions withBehavior(SegmentBehaviors behavior) {
        setBehavior(behavior);
        return this;
    }
<p>
The behavior-based criteria, such as how recently users have used your app, for the segment.
</p>

@param behavior
       The behavior-based criteria, such as how recently users have used your app, for the segment.
@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/SegmentDimensions.java