code: func (s *SendBonusInput) Validate() error {
  	invalidParams := request.ErrInvalidParams{Context: "SendBonusInput"}
  	if s.AssignmentId == nil {
  		invalidParams.Add(request.NewErrParamRequired("AssignmentId"))
  	}
  	if s.AssignmentId != nil && len(*s.AssignmentId) < 1 {
  		invalidParams.Add(request.NewErrParamMinLen("AssignmentId", 1))
  	}
  	if s.BonusAmount == nil {
  		invalidParams.Add(request.NewErrParamRequired("BonusAmount"))
  	}
  	if s.Reason == nil {
  		invalidParams.Add(request.NewErrParamRequired("Reason"))
  	}
  	if s.UniqueRequestToken != nil && len(*s.UniqueRequestToken) < 1 {
  		invalidParams.Add(request.NewErrParamMinLen("UniqueRequestToken", 1))
  	}
  	if s.WorkerId == nil {
  		invalidParams.Add(request.NewErrParamRequired("WorkerId"))
  	}
  	if s.WorkerId != nil && len(*s.WorkerId) < 1 {
  		invalidParams.Add(request.NewErrParamMinLen("WorkerId", 1))
  	}
  
  	if invalidParams.Len() > 0 {
  		return invalidParams
  	}
  	return nil
  }
docs: // Validate inspects the fields of the type to determine if they are valid.