code: func (s *DescribeTasksInput) Validate() error {
  	invalidParams := request.ErrInvalidParams{Context: "DescribeTasksInput"}
  	if s.Tasks == nil {
  		invalidParams.Add(request.NewErrParamRequired("Tasks"))
  	}
  
  	if invalidParams.Len() > 0 {
  		return invalidParams
  	}
  	return nil
  }
docs: // Validate inspects the fields of the type to determine if they are valid.