// SetDuration sets the Duration field's value.
426398
func (s *TimeSpan) SetDuration(v string) *TimeSpan {
	s.Duration = &v
	return s
}
423508
func (s *GetClusterCredentialsInput) SetDurationSeconds(v int64) *GetClusterCredentialsInput {
	s.DurationSeconds = &v
	return s
}
278789
func (d *Duration) Set(value string) error {
	dur, err := readDuration(value)
	*d = Duration(dur)
	return err
}
378994
func (r *Definition) TimeoutDuration() time.Duration {
	return time.Duration(r.Timeout) * time.Millisecond
}
641042
func (s *CreateMaintenanceWindowInput) SetDuration(v int64) *CreateMaintenanceWindowInput {
	s.Duration = &v
	return s
}
664160
func (s *InsertableImage) SetDuration(v int64) *InsertableImage {
	s.Duration = &v
	return s
}
1154857
func (ts TimeStamp) AddDuration(interval time.Duration) TimeStamp {
	return ts + TimeStamp(interval/time.Second)
}
1311169
func SelectDuration(opt, def time.Duration) time.Duration {
	if opt == time.Duration(0) {
		return def
	}
	return opt
}
607276
func (s *ReservedCacheNode) SetDuration(v int64) *ReservedCacheNode {
	s.Duration = &v
	return s
}
1297126
func (ta *TrackAttributes) TargetDuration(duration int) *TrackAttributes {
	ta.intAttributes["target_duration_ms"] = duration
	return ta
}
625419
func (s *UpdateRoleInput) SetMaxSessionDuration(v int64) *UpdateRoleInput {
	s.MaxSessionDuration = &v
	return s
}
721613
func (s *AssessmentTemplateFilter) SetDurationRange(v *DurationRange) *AssessmentTemplateFilter {
	s.DurationRange = v
	return s
}
1352721
func (s *NoopClient) TimingDuration(stat string, delta time.Duration, rate float32) error {
	return nil
}
343380
func (s *Scte35SegmentationDescriptor) SetSegmentationDuration(v int64) *Scte35SegmentationDescriptor {
	s.SegmentationDuration = &v
	return s
}
913836
func (s *SpotProvisioningSpecification) SetTimeoutDurationMinutes(v int64) *SpotProvisioningSpecification {
	s.TimeoutDurationMinutes = &v
	return s
}
538456
func (s *Reservation) SetDuration(v int64) *Reservation {
	s.Duration = &v
	return s
}
1254155
func NewDuration(name string) *Duration {
	v := new(Duration)
	Publish(name, v)
	return v
}