public SegmentGroup withSourceType(SourceType sourceType) {
        this.sourceType = sourceType.toString();
        return this;
    }
<p>
Specifies how to handle multiple base segments for the segment. For example, if you specify three base segments
for the segment, whether the resulting segment is based on all, any, or none of the base segments.
</p>

@param sourceType
       Specifies how to handle multiple base segments for the segment. For example, if you specify three base
       segments for the segment, whether the resulting segment is based on all, any, or none of the base
       segments.
@return Returns a reference to this object so that method calls can be chained together.
@see SourceType
aws-java-sdk-pinpoint/src/main/java/com/amazonaws/services/pinpoint/model/SegmentGroup.java