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