public GetSegmentsRequest withPageSize(String pageSize) {
        setPageSize(pageSize);
        return this;
    }
<p>
The maximum number of items to include in each page of a paginated response. This parameter is not supported for
application, campaign, and journey metrics.
</p>

@param pageSize
       The maximum number of items to include in each page of a paginated response. This parameter is not
       supported for application, campaign, and journey metrics.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-pinpoint/src/main/java/com/amazonaws/services/pinpoint/model/GetSegmentsRequest.java