// SetPower sets the power state globally, on all devices
549816
func (p *V2) SetPower(state bool) error {
	p.RLock()
	defer p.RUnlock()
	for _, dev := range p.devices {
		if err := dev.SetPower(state); err != nil {
			common.Log.Warnf("Failed setting power on %d: %+v", dev.ID(), err)
			continue
		}
	}
	return nil
}
660086
func (s *JobDescriptor) SetOperation(v *JobOperation) *JobDescriptor {
	s.Operation = v
	return s
}
649112
func (ps *Store) SetState(p *v2.Plugin, state bool) {
	ps.Lock()
	defer ps.Unlock()

	p.PluginObj.Enabled = state
}
216111
func (s *DevicePoolCompatibilityResult) SetDevice(v *Device) *DevicePoolCompatibilityResult {
	s.Device = v
	return s
}
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
}
447461
func (s *Option) SetPort(v int64) *Option {
	s.Port = &v
	return s
}
312409
func (s *Job) SetDevice(v *Device) *Job {
	s.Device = v
	return s
}
384506
func (s *ListDevicesOutput) SetDevices(v []*Device) *ListDevicesOutput {
	s.Devices = v
	return s
}
907156
func (s *BatchModifyClusterSnapshotsInput) SetForce(v bool) *BatchModifyClusterSnapshotsInput {
	s.Force = &v
	return s
}
384343
func (s *PortMapping) SetPort(v int64) *PortMapping {
	s.Port = &v
	return s
}
968355
func (s *PeerVpcOutput) SetOperation(v *Operation) *PeerVpcOutput {
	s.Operation = v
	return s
}
1316356
func (vc *Ring) AlterPower(id crypto.PublicKey, power *big.Int) (*big.Int, error) {
	return vc.Head().AlterPower(id, power)
}
102008
func (s *PipelineActivity) SetChannel(v *ChannelActivity) *PipelineActivity {
	s.Channel = v
	return s
}
1145259
func (s *DeleteRepositoryInput) SetForce(v bool) *DeleteRepositoryInput {
	s.Force = &v
	return s
}
849238
func (vs *Set) SetPower(id crypto.PublicKey, power *big.Int) error {
	vs.ChangePower(id, power)
	return nil
}
1104616
func (s *UnclaimDeviceInput) SetDeviceId(v string) *UnclaimDeviceInput {
	s.DeviceId = &v
	return s
}
237765
func (s *InitiateDeviceClaimInput) SetDeviceId(v string) *InitiateDeviceClaimInput {
	s.DeviceId = &v
	return s
}