code: public String getFirstPageUrl(String domain, String region) {
          if (firstPageUrl != null) {
              return firstPageUrl;
          }
  
          return urlFromUri(domain, region, firstPageUri);
      }
docs: Generate first page url for a list result.
  
  @param domain domain to use
  @param region region to use
  @return the first page url