code: private void addQueryParams(final Request request) {
          if (actorSid != null) {
              request.addQueryParam("ActorSid", actorSid);
          }
  
          if (eventType != null) {
              request.addQueryParam("EventType", eventType);
          }
  
          if (resourceSid != null) {
              request.addQueryParam("ResourceSid", resourceSid);
          }
  
          if (sourceIpAddress != null) {
              request.addQueryParam("SourceIpAddress", sourceIpAddress);
          }
  
          if (startDate != null) {
              request.addQueryParam("StartDate", startDate.toString());
          }
  
          if (endDate != null) {
              request.addQueryParam("EndDate", endDate.toString());
          }
  
          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