public Integer getTotalSegments() {
        return this.totalSegments;
    }
<p>
For a parallel <code>Scan</code> request, <code>TotalSegments</code> represents the total number of segments into
which the <code>Scan</code> operation will be divided. The value of <code>TotalSegments</code> corresponds to the
number of application workers that will perform the parallel scan. For example, if you want to use four
application threads to scan a table or an index, specify a <code>TotalSegments</code> value of 4.
</p>
<p>
The value for <code>TotalSegments</code> must be greater than or equal to 1, and less than or equal to 1000000.
If you specify a <code>TotalSegments</code> value of 1, the <code>Scan</code> operation will be sequential rather
than parallel.
</p>
<p>
If you specify <code>TotalSegments</code>, you must also specify <code>Segment</code>.
</p>

@return For a parallel <code>Scan</code> request, <code>TotalSegments</code> represents the total number of
        segments into which the <code>Scan</code> operation will be divided. The value of
        <code>TotalSegments</code> corresponds to the number of application workers that will perform the
        parallel scan. For example, if you want to use four application threads to scan a table or an index,
        specify a <code>TotalSegments</code> value of 4.</p>
        <p>
        The value for <code>TotalSegments</code> must be greater than or equal to 1, and less than or equal to
        1000000. If you specify a <code>TotalSegments</code> value of 1, the <code>Scan</code> operation will be
        sequential rather than parallel.
        </p>
        <p>
        If you specify <code>TotalSegments</code>, you must also specify <code>Segment</code>.
aws-java-sdk-dynamodb/src/main/java/com/amazonaws/services/dynamodbv2/model/ScanRequest.java