1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
/// A request to reboot an AWS Elemental device.
#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct RebootInputDeviceInput {
/// Force a reboot of an input device. If the device is streaming, it will stop streaming and begin rebooting within a few seconds of sending the command. If the device was streaming prior to the reboot, the device will resume streaming when the reboot completes.
pub force: ::std::option::Option<crate::types::RebootInputDeviceForce>,
/// The unique ID of the input device to reboot. For example, hd-123456789abcdef.
pub input_device_id: ::std::option::Option<::std::string::String>,
}
impl RebootInputDeviceInput {
/// Force a reboot of an input device. If the device is streaming, it will stop streaming and begin rebooting within a few seconds of sending the command. If the device was streaming prior to the reboot, the device will resume streaming when the reboot completes.
pub fn force(&self) -> ::std::option::Option<&crate::types::RebootInputDeviceForce> {
self.force.as_ref()
}
/// The unique ID of the input device to reboot. For example, hd-123456789abcdef.
pub fn input_device_id(&self) -> ::std::option::Option<&str> {
self.input_device_id.as_deref()
}
}
impl RebootInputDeviceInput {
/// Creates a new builder-style object to manufacture [`RebootInputDeviceInput`](crate::operation::reboot_input_device::RebootInputDeviceInput).
pub fn builder() -> crate::operation::reboot_input_device::builders::RebootInputDeviceInputBuilder {
crate::operation::reboot_input_device::builders::RebootInputDeviceInputBuilder::default()
}
}
/// A builder for [`RebootInputDeviceInput`](crate::operation::reboot_input_device::RebootInputDeviceInput).
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct RebootInputDeviceInputBuilder {
pub(crate) force: ::std::option::Option<crate::types::RebootInputDeviceForce>,
pub(crate) input_device_id: ::std::option::Option<::std::string::String>,
}
impl RebootInputDeviceInputBuilder {
/// Force a reboot of an input device. If the device is streaming, it will stop streaming and begin rebooting within a few seconds of sending the command. If the device was streaming prior to the reboot, the device will resume streaming when the reboot completes.
pub fn force(mut self, input: crate::types::RebootInputDeviceForce) -> Self {
self.force = ::std::option::Option::Some(input);
self
}
/// Force a reboot of an input device. If the device is streaming, it will stop streaming and begin rebooting within a few seconds of sending the command. If the device was streaming prior to the reboot, the device will resume streaming when the reboot completes.
pub fn set_force(mut self, input: ::std::option::Option<crate::types::RebootInputDeviceForce>) -> Self {
self.force = input;
self
}
/// Force a reboot of an input device. If the device is streaming, it will stop streaming and begin rebooting within a few seconds of sending the command. If the device was streaming prior to the reboot, the device will resume streaming when the reboot completes.
pub fn get_force(&self) -> &::std::option::Option<crate::types::RebootInputDeviceForce> {
&self.force
}
/// The unique ID of the input device to reboot. For example, hd-123456789abcdef.
/// This field is required.
pub fn input_device_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.input_device_id = ::std::option::Option::Some(input.into());
self
}
/// The unique ID of the input device to reboot. For example, hd-123456789abcdef.
pub fn set_input_device_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.input_device_id = input;
self
}
/// The unique ID of the input device to reboot. For example, hd-123456789abcdef.
pub fn get_input_device_id(&self) -> &::std::option::Option<::std::string::String> {
&self.input_device_id
}
/// Consumes the builder and constructs a [`RebootInputDeviceInput`](crate::operation::reboot_input_device::RebootInputDeviceInput).
pub fn build(
self,
) -> ::std::result::Result<crate::operation::reboot_input_device::RebootInputDeviceInput, ::aws_smithy_types::error::operation::BuildError> {
::std::result::Result::Ok(crate::operation::reboot_input_device::RebootInputDeviceInput {
force: self.force,
input_device_id: self.input_device_id,
})
}
}