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