aws_sdk_workspacesthinclient/client/update_device.rs
1// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
2impl super::Client {
3 /// Constructs a fluent builder for the [`UpdateDevice`](crate::operation::update_device::builders::UpdateDeviceFluentBuilder) operation.
4 ///
5 /// - The fluent builder is configurable:
6 /// - [`id(impl Into<String>)`](crate::operation::update_device::builders::UpdateDeviceFluentBuilder::id) / [`set_id(Option<String>)`](crate::operation::update_device::builders::UpdateDeviceFluentBuilder::set_id):<br>required: **true**<br><p>The ID of the device to update.</p><br>
7 /// - [`name(impl Into<String>)`](crate::operation::update_device::builders::UpdateDeviceFluentBuilder::name) / [`set_name(Option<String>)`](crate::operation::update_device::builders::UpdateDeviceFluentBuilder::set_name):<br>required: **false**<br><p>The name of the device to update.</p><br>
8 /// - [`desired_software_set_id(impl Into<String>)`](crate::operation::update_device::builders::UpdateDeviceFluentBuilder::desired_software_set_id) / [`set_desired_software_set_id(Option<String>)`](crate::operation::update_device::builders::UpdateDeviceFluentBuilder::set_desired_software_set_id):<br>required: **false**<br><p>The ID of the software set to apply.</p><br>
9 /// - [`software_set_update_schedule(SoftwareSetUpdateSchedule)`](crate::operation::update_device::builders::UpdateDeviceFluentBuilder::software_set_update_schedule) / [`set_software_set_update_schedule(Option<SoftwareSetUpdateSchedule>)`](crate::operation::update_device::builders::UpdateDeviceFluentBuilder::set_software_set_update_schedule):<br>required: **false**<br><p>An option to define if software updates should be applied within a maintenance window.</p><br>
10 /// - On success, responds with [`UpdateDeviceOutput`](crate::operation::update_device::UpdateDeviceOutput) with field(s):
11 /// - [`device(Option<DeviceSummary>)`](crate::operation::update_device::UpdateDeviceOutput::device): <p>Describes a device.</p>
12 /// - On failure, responds with [`SdkError<UpdateDeviceError>`](crate::operation::update_device::UpdateDeviceError)
13 pub fn update_device(&self) -> crate::operation::update_device::builders::UpdateDeviceFluentBuilder {
14 crate::operation::update_device::builders::UpdateDeviceFluentBuilder::new(self.handle.clone())
15 }
16}