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