code: public void setFeedback(SetFeedbackRequest request) {
          checkNotNull(request, "object request should not be null.");
          if (request.getEmail() != null && request.getEmail().trim().length() > 0) {
              checkIsEmail(request.getEmail());
          }
          if (request.getType() == null) {
              request.setType(1);
          }
          if (!Arrays.asList(new Integer[] { 1, 2, 3 }).contains(request.getType())) {
              throw new IllegalArgumentException("illegal type.");
          }
  
          InternalRequest internalRequest = this.createRequest("feedback", request, HttpMethodName.PUT);
  
          // fill in the request payload
          internalRequest = fillRequestPayload(internalRequest, JsonUtils.toJsonString(request));
  
          this.invokeHttpClient(internalRequest, SesResponse.class);
      }
docs: Set feedback
  
  @param request The request object which includes the feedback information to set
  
  @see com.baidubce.services.ses.model.SetFeedbackRequest