public StartDirectoryListingRequest withMaxItems(Integer maxItems) {
        setMaxItems(maxItems);
        return this;
    }
<p>
An optional parameter where you can specify the maximum number of file/directory names to retrieve. The default
value is 1,000.
</p>

@param maxItems
       An optional parameter where you can specify the maximum number of file/directory names to retrieve. The
       default value is 1,000.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-transfer/src/main/java/com/amazonaws/services/transfer/model/StartDirectoryListingRequest.java