public Integer getSegment() {
        return this.segment;
    }
<p>
For a parallel <code>Scan</code> request, <code>Segment</code> identifies an individual segment to be scanned by
an application worker.
</p>
<p>
Segment IDs are zero-based, so the first segment is always 0. For example, if you want to use four application
threads to scan a table or an index, then the first thread specifies a <code>Segment</code> value of 0, the
second thread specifies 1, and so on.
</p>
<p>
The value of <code>LastEvaluatedKey</code> returned from a parallel <code>Scan</code> request must be used as
<code>ExclusiveStartKey</code> with the same segment ID in a subsequent <code>Scan</code> operation.
</p>
<p>
The value for <code>Segment</code> must be greater than or equal to 0, and less than the value provided for
<code>TotalSegments</code>.
</p>
<p>
If you provide <code>Segment</code>, you must also provide <code>TotalSegments</code>.
</p>

@return For a parallel <code>Scan</code> request, <code>Segment</code> identifies an individual segment to be
        scanned by an application worker.</p>
        <p>
        Segment IDs are zero-based, so the first segment is always 0. For example, if you want to use four
        application threads to scan a table or an index, then the first thread specifies a <code>Segment</code>
        value of 0, the second thread specifies 1, and so on.
        </p>
        <p>
        The value of <code>LastEvaluatedKey</code> returned from a parallel <code>Scan</code> request must be
        used as <code>ExclusiveStartKey</code> with the same segment ID in a subsequent <code>Scan</code>
        operation.
        </p>
        <p>
        The value for <code>Segment</code> must be greater than or equal to 0, and less than the value provided
        for <code>TotalSegments</code>.
        </p>
        <p>
        If you provide <code>Segment</code>, you must also provide <code>TotalSegments</code>.
aws-java-sdk-dynamodb/src/main/java/com/amazonaws/services/dynamodbv2/model/ScanRequest.java