code: private void addQueryParams(final Request request) {
          if (to != null) {
              request.addQueryParam("To", to.toString());
          }
  
          if (from != null) {
              request.addQueryParam("From", from.toString());
          }
  
          if (parentCallSid != null) {
              request.addQueryParam("ParentCallSid", parentCallSid);
          }
  
          if (status != null) {
              request.addQueryParam("Status", status.toString());
          }
  
          if (absoluteStartTime != null) {
              request.addQueryParam("StartTime", absoluteStartTime.toString(Request.QUERY_STRING_DATE_TIME_FORMAT));
          } else if (rangeStartTime != null) {
              request.addQueryDateTimeRange("StartTime", rangeStartTime);
          }
  
          if (absoluteEndTime != null) {
              request.addQueryParam("EndTime", absoluteEndTime.toString(Request.QUERY_STRING_DATE_TIME_FORMAT));
          } else if (rangeEndTime != null) {
              request.addQueryDateTimeRange("EndTime", rangeEndTime);
          }
  
          if (getPageSize() != null) {
              request.addQueryParam("PageSize", Integer.toString(getPageSize()));
          }
      }
docs: Add the requested query string arguments to the Request.
  
  @param request Request to add query string arguments to