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
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
/// <p>Represents the set of radios and their states on a device. Examples of radios include Wi-Fi, GPS, Bluetooth, and NFC.</p>
#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct Radios {
/// <p>True if Wi-Fi is enabled at the beginning of the test. Otherwise, false.</p>
pub wifi: ::std::option::Option<bool>,
/// <p>True if Bluetooth is enabled at the beginning of the test. Otherwise, false.</p>
pub bluetooth: ::std::option::Option<bool>,
/// <p>True if NFC is enabled at the beginning of the test. Otherwise, false.</p>
pub nfc: ::std::option::Option<bool>,
/// <p>True if GPS is enabled at the beginning of the test. Otherwise, false.</p>
pub gps: ::std::option::Option<bool>,
}
impl Radios {
/// <p>True if Wi-Fi is enabled at the beginning of the test. Otherwise, false.</p>
pub fn wifi(&self) -> ::std::option::Option<bool> {
self.wifi
}
/// <p>True if Bluetooth is enabled at the beginning of the test. Otherwise, false.</p>
pub fn bluetooth(&self) -> ::std::option::Option<bool> {
self.bluetooth
}
/// <p>True if NFC is enabled at the beginning of the test. Otherwise, false.</p>
pub fn nfc(&self) -> ::std::option::Option<bool> {
self.nfc
}
/// <p>True if GPS is enabled at the beginning of the test. Otherwise, false.</p>
pub fn gps(&self) -> ::std::option::Option<bool> {
self.gps
}
}
impl Radios {
/// Creates a new builder-style object to manufacture [`Radios`](crate::types::Radios).
pub fn builder() -> crate::types::builders::RadiosBuilder {
crate::types::builders::RadiosBuilder::default()
}
}
/// A builder for [`Radios`](crate::types::Radios).
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct RadiosBuilder {
pub(crate) wifi: ::std::option::Option<bool>,
pub(crate) bluetooth: ::std::option::Option<bool>,
pub(crate) nfc: ::std::option::Option<bool>,
pub(crate) gps: ::std::option::Option<bool>,
}
impl RadiosBuilder {
/// <p>True if Wi-Fi is enabled at the beginning of the test. Otherwise, false.</p>
pub fn wifi(mut self, input: bool) -> Self {
self.wifi = ::std::option::Option::Some(input);
self
}
/// <p>True if Wi-Fi is enabled at the beginning of the test. Otherwise, false.</p>
pub fn set_wifi(mut self, input: ::std::option::Option<bool>) -> Self {
self.wifi = input;
self
}
/// <p>True if Wi-Fi is enabled at the beginning of the test. Otherwise, false.</p>
pub fn get_wifi(&self) -> &::std::option::Option<bool> {
&self.wifi
}
/// <p>True if Bluetooth is enabled at the beginning of the test. Otherwise, false.</p>
pub fn bluetooth(mut self, input: bool) -> Self {
self.bluetooth = ::std::option::Option::Some(input);
self
}
/// <p>True if Bluetooth is enabled at the beginning of the test. Otherwise, false.</p>
pub fn set_bluetooth(mut self, input: ::std::option::Option<bool>) -> Self {
self.bluetooth = input;
self
}
/// <p>True if Bluetooth is enabled at the beginning of the test. Otherwise, false.</p>
pub fn get_bluetooth(&self) -> &::std::option::Option<bool> {
&self.bluetooth
}
/// <p>True if NFC is enabled at the beginning of the test. Otherwise, false.</p>
pub fn nfc(mut self, input: bool) -> Self {
self.nfc = ::std::option::Option::Some(input);
self
}
/// <p>True if NFC is enabled at the beginning of the test. Otherwise, false.</p>
pub fn set_nfc(mut self, input: ::std::option::Option<bool>) -> Self {
self.nfc = input;
self
}
/// <p>True if NFC is enabled at the beginning of the test. Otherwise, false.</p>
pub fn get_nfc(&self) -> &::std::option::Option<bool> {
&self.nfc
}
/// <p>True if GPS is enabled at the beginning of the test. Otherwise, false.</p>
pub fn gps(mut self, input: bool) -> Self {
self.gps = ::std::option::Option::Some(input);
self
}
/// <p>True if GPS is enabled at the beginning of the test. Otherwise, false.</p>
pub fn set_gps(mut self, input: ::std::option::Option<bool>) -> Self {
self.gps = input;
self
}
/// <p>True if GPS is enabled at the beginning of the test. Otherwise, false.</p>
pub fn get_gps(&self) -> &::std::option::Option<bool> {
&self.gps
}
/// Consumes the builder and constructs a [`Radios`](crate::types::Radios).
pub fn build(self) -> crate::types::Radios {
crate::types::Radios {
wifi: self.wifi,
bluetooth: self.bluetooth,
nfc: self.nfc,
gps: self.gps,
}
}
}