public PageClassification withPageNumber(Prediction... pageNumber) {
        if (this.pageNumber == null) {
            setPageNumber(new java.util.ArrayList<Prediction>(pageNumber.length));
        }
        for (Prediction ele : pageNumber) {
            this.pageNumber.add(ele);
        }
        return this;
    }
<p>
The page number the value was detected on, relative to Amazon Textract's starting position.
</p>
<p>
<b>NOTE:</b> This method appends the values to the existing list (if any). Use
{@link #setPageNumber(java.util.Collection)} or {@link #withPageNumber(java.util.Collection)} if you want to
override the existing values.
</p>

@param pageNumber
       The page number the value was detected on, relative to Amazon Textract's starting position.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-textract/src/main/java/com/amazonaws/services/textract/model/PageClassification.java