public SegmentDimensions withDemographic(SegmentDemographics demographic) {
        setDemographic(demographic);
        return this;
    }
<p>
The demographic-based criteria, such as device platform, for the segment.
</p>

@param demographic
       The demographic-based criteria, such as device platform, 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