@Override
    public Builder toBuilder() {
        return builder()
                .sourceLocation(getSourceLocation())
                .items(items)
                .inputToken(inputToken)
                .outputToken(outputToken)
                .pageSize(pageSize);
    }
Merges this paginated trait with another trait.

<p>Values set on this trait take precedence over values of the
other trait. This operation is typically performed to merge the
paginated trait of an operation with the paginated trait of a service.

<p>If {@code other} is null, the current trait is returned as-is.

@param other Other trait to merge with.
@return Returns a newly created trait that maintains the same source location.
smithy-model/src/main/java/software/amazon/smithy/model/traits/PaginatedTrait.java