public DocumentMetadata withPages(Integer pages) {
        setPages(pages);
        return this;
    }
<p>
Number of pages in the document.
</p>

@param pages
       Number of pages in the document.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-comprehend/src/main/java/com/amazonaws/services/comprehend/model/DocumentMetadata.java