// SetPowerDuration sets the power state globally, on all devices, transitioning
// over the specified duration
8124
func (p *V2) SetPowerDuration(state bool, duration time.Duration) error {
	p.RLock()
	defer p.RUnlock()
	for _, dev := range p.devices {
		l, ok := dev.(*device.Light)
		if !ok {
			continue
		}
		if err := l.SetPowerDuration(state, duration); err != nil {
			common.Log.Warnf("Failed setting power on %d: %+v", l.ID(), err)
			continue
		}
	}
	return nil
}
1221657
func (s *GetSessionTokenInput) SetDurationSeconds(v int64) *GetSessionTokenInput {
	s.DurationSeconds = &v
	return s
}
704819
func (s *ReservedDBInstancesOffering) SetDuration(v int64) *ReservedDBInstancesOffering {
	s.Duration = &v
	return s
}
783845
func (_class HostClass) SetPowerOnMode(sessionID SessionRef, self HostRef, powerOnMode string, powerOnConfig map[string]string) (_err error) {
	_method := "host.set_power_on_mode"
	_sessionIDArg, _err := convertSessionRefToXen(fmt.Sprintf("%s(%s)", _method, "session_id"), sessionID)
	if _err != nil {
		return
	}
	_selfArg, _err := convertHostRefToXen(fmt.Sprintf("%s(%s)", _method, "self"), self)
	if _err != nil {
		return
	}
	_powerOnModeArg, _err := convertStringToXen(fmt.Sprintf("%s(%s)", _method, "power_on_mode"), powerOnMode)
	if _err != nil {
		return
	}
	_powerOnConfigArg, _err := convertStringToStringMapToXen(fmt.Sprintf("%s(%s)", _method, "power_on_config"), powerOnConfig)
	if _err != nil {
		return
	}
	_, _err =  _class.client.APICall(_method, _sessionIDArg, _selfArg, _powerOnModeArg, _powerOnConfigArg)
	return
}
343380
func (s *Scte35SegmentationDescriptor) SetSegmentationDuration(v int64) *Scte35SegmentationDescriptor {
	s.SegmentationDuration = &v
	return s
}
545665
func (s *Session) SetDuration(v int64) *Session {
	s.Duration = &v
	return s
}
1172907
func (c *Animation) SetTiming(animationId string, duration float64, delay float64) (*gcdmessage.ChromeResponse, error) {
	var v AnimationSetTimingParams
	v.AnimationId = animationId
	v.Duration = duration
	v.Delay = delay
	return c.SetTimingWithParams(&v)
}
849238
func (vs *Set) SetPower(id crypto.PublicKey, power *big.Int) error {
	vs.ChangePower(id, power)
	return nil
}
153565
func (s *BuildPhase) SetDurationInSeconds(v int64) *BuildPhase {
	s.DurationInSeconds = &v
	return s
}
499149
func (s *RecencyDimension) SetDuration(v string) *RecencyDimension {
	s.Duration = &v
	return s
}
1052993
func (s *Bundle) SetPower(v int64) *Bundle {
	s.Power = &v
	return s
}
1277072
func (s *JobOutput) SetSegmentDuration(v string) *JobOutput {
	s.SegmentDuration = &v
	return s
}
1129597
func (s *CreateAssessmentTemplateInput) SetDurationInSeconds(v int64) *CreateAssessmentTemplateInput {
	s.DurationInSeconds = &v
	return s
}
625419
func (s *UpdateRoleInput) SetMaxSessionDuration(v int64) *UpdateRoleInput {
	s.MaxSessionDuration = &v
	return s
}
664160
func (s *InsertableImage) SetDuration(v int64) *InsertableImage {
	s.Duration = &v
	return s
}
721613
func (s *AssessmentTemplateFilter) SetDurationRange(v *DurationRange) *AssessmentTemplateFilter {
	s.DurationRange = v
	return s
}
802214
func (s *Service) SetDurationHistogram(v []*HistogramEntry) *Service {
	s.DurationHistogram = v
	return s
}