public GetPartitionsRequest withSegment(Segment segment) {
        setSegment(segment);
        return this;
    }
<p>
The segment of the table's partitions to scan in this request.
</p>

@param segment
       The segment of the table's partitions to scan in this request.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-glue/src/main/java/com/amazonaws/services/glue/model/GetPartitionsRequest.java