public ListPartsRequest withMaxParts(int maxParts) {
        this.maxParts = maxParts;
        return this;
    }
Sets the optional maximum number of parts to be returned in the part
listing and returns this updated ListPartsRequest objects so that
additional method calls can be chained together.

@param maxParts
           The optional maximum number of parts to be returned in the
           part listing.

@return This updated ListPartsRequest object.
aws-java-sdk-s3/src/main/java/com/amazonaws/services/s3/model/ListPartsRequest.java