// SetPrecision sets the Precision field's value.
508887
func (s *EntityRecognizerEvaluationMetrics) SetPrecision(v float64) *EntityRecognizerEvaluationMetrics {
	s.Precision = &v
	return s
}
537440
func (s *AacSettings) SetSpecification(v string) *AacSettings {
	s.Specification = &v
	return s
}
824291
func (p *point) SetPrecision(precision string) {
	switch precision {
	case "us":
		p.SetTime(p.Time().Truncate(time.Microsecond))
	case "ms":
		p.SetTime(p.Time().Truncate(time.Millisecond))
	case "s":
		p.SetTime(p.Time().Truncate(time.Second))
	}
}
1133255
func (s *EventRiskType) SetRiskDecision(v string) *EventRiskType {
	s.RiskDecision = &v
	return s
}
337660
func (s *EvaluationResult) SetEvalDecisionDetails(v map[string]*string) *EvaluationResult {
	s.EvalDecisionDetails = v
	return s
}
1064217
func (device *XlibDevice) DebugSetPrecision(precision int) {
	C.cairo_xlib_device_debug_set_precision(device.Ptr, C.int(precision))
	if err := device.status(); err != nil {
		panic(err)
	}
}
1291761
func (s *GetVpcLinksInput) SetPosition(v string) *GetVpcLinksInput {
	s.Position = &v
	return s
}
321199
func (s *AuthResult) SetAuthDecision(v string) *AuthResult {
	s.AuthDecision = &v
	return s
}
1087240
func (s *HistoryEvent) SetDecisionTaskTimedOutEventAttributes(v *DecisionTaskTimedOutEventAttributes) *HistoryEvent {
	s.DecisionTaskTimedOutEventAttributes = v
	return s
}
264118
func (s *CreateTriggerInput) SetPredicate(v *Predicate) *CreateTriggerInput {
	s.Predicate = v
	return s
}
329260
func (s *ReadPresetOutput) SetPreset(v *Preset) *ReadPresetOutput {
	s.Preset = v
	return s
}
445406
func (s *GetDomainNamesInput) SetPosition(v string) *GetDomainNamesInput {
	s.Position = &v
	return s
}
1298821
func (s *GetSdkTypesInput) SetPosition(v string) *GetSdkTypesInput {
	s.Position = &v
	return s
}
741295
func (s *GetRestApisOutput) SetPosition(v string) *GetRestApisOutput {
	s.Position = &v
	return s
}
603511
func (s *GetPresetOutput) SetPreset(v *Preset) *GetPresetOutput {
	s.Preset = v
	return s
}
923045
func (s *GetSdkTypesOutput) SetPosition(v string) *GetSdkTypesOutput {
	s.Position = &v
	return s
}
427164
func GetPrecisionMultiplier(precision string) int64 {
	d := time.Nanosecond
	switch precision {
	case "us":
		d = time.Microsecond
	case "ms":
		d = time.Millisecond
	case "s":
		d = time.Second
	}
	return int64(d)
}