public SearchRequest withSize(Long size) {
        setSize(size);
        return this;
    }
<p>
Specifies the maximum number of search hits to include in the response.
</p>

@param size
       Specifies the maximum number of search hits to include in the response.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-cloudsearch/src/main/java/com/amazonaws/services/cloudsearchdomain/model/SearchRequest.java