aws_sdk_workspaces/operation/import_client_branding/
_import_client_branding_output.rs1#[allow(missing_docs)] #[non_exhaustive]
4#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
5pub struct ImportClientBrandingOutput {
6 pub device_type_windows: ::std::option::Option<crate::types::DefaultClientBrandingAttributes>,
8 pub device_type_osx: ::std::option::Option<crate::types::DefaultClientBrandingAttributes>,
10 pub device_type_android: ::std::option::Option<crate::types::DefaultClientBrandingAttributes>,
12 pub device_type_ios: ::std::option::Option<crate::types::IosClientBrandingAttributes>,
14 pub device_type_linux: ::std::option::Option<crate::types::DefaultClientBrandingAttributes>,
16 pub device_type_web: ::std::option::Option<crate::types::DefaultClientBrandingAttributes>,
18 _request_id: Option<String>,
19}
20impl ImportClientBrandingOutput {
21 pub fn device_type_windows(&self) -> ::std::option::Option<&crate::types::DefaultClientBrandingAttributes> {
23 self.device_type_windows.as_ref()
24 }
25 pub fn device_type_osx(&self) -> ::std::option::Option<&crate::types::DefaultClientBrandingAttributes> {
27 self.device_type_osx.as_ref()
28 }
29 pub fn device_type_android(&self) -> ::std::option::Option<&crate::types::DefaultClientBrandingAttributes> {
31 self.device_type_android.as_ref()
32 }
33 pub fn device_type_ios(&self) -> ::std::option::Option<&crate::types::IosClientBrandingAttributes> {
35 self.device_type_ios.as_ref()
36 }
37 pub fn device_type_linux(&self) -> ::std::option::Option<&crate::types::DefaultClientBrandingAttributes> {
39 self.device_type_linux.as_ref()
40 }
41 pub fn device_type_web(&self) -> ::std::option::Option<&crate::types::DefaultClientBrandingAttributes> {
43 self.device_type_web.as_ref()
44 }
45}
46impl ::aws_types::request_id::RequestId for ImportClientBrandingOutput {
47 fn request_id(&self) -> Option<&str> {
48 self._request_id.as_deref()
49 }
50}
51impl ImportClientBrandingOutput {
52 pub fn builder() -> crate::operation::import_client_branding::builders::ImportClientBrandingOutputBuilder {
54 crate::operation::import_client_branding::builders::ImportClientBrandingOutputBuilder::default()
55 }
56}
57
58#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
60#[non_exhaustive]
61pub struct ImportClientBrandingOutputBuilder {
62 pub(crate) device_type_windows: ::std::option::Option<crate::types::DefaultClientBrandingAttributes>,
63 pub(crate) device_type_osx: ::std::option::Option<crate::types::DefaultClientBrandingAttributes>,
64 pub(crate) device_type_android: ::std::option::Option<crate::types::DefaultClientBrandingAttributes>,
65 pub(crate) device_type_ios: ::std::option::Option<crate::types::IosClientBrandingAttributes>,
66 pub(crate) device_type_linux: ::std::option::Option<crate::types::DefaultClientBrandingAttributes>,
67 pub(crate) device_type_web: ::std::option::Option<crate::types::DefaultClientBrandingAttributes>,
68 _request_id: Option<String>,
69}
70impl ImportClientBrandingOutputBuilder {
71 pub fn device_type_windows(mut self, input: crate::types::DefaultClientBrandingAttributes) -> Self {
73 self.device_type_windows = ::std::option::Option::Some(input);
74 self
75 }
76 pub fn set_device_type_windows(mut self, input: ::std::option::Option<crate::types::DefaultClientBrandingAttributes>) -> Self {
78 self.device_type_windows = input;
79 self
80 }
81 pub fn get_device_type_windows(&self) -> &::std::option::Option<crate::types::DefaultClientBrandingAttributes> {
83 &self.device_type_windows
84 }
85 pub fn device_type_osx(mut self, input: crate::types::DefaultClientBrandingAttributes) -> Self {
87 self.device_type_osx = ::std::option::Option::Some(input);
88 self
89 }
90 pub fn set_device_type_osx(mut self, input: ::std::option::Option<crate::types::DefaultClientBrandingAttributes>) -> Self {
92 self.device_type_osx = input;
93 self
94 }
95 pub fn get_device_type_osx(&self) -> &::std::option::Option<crate::types::DefaultClientBrandingAttributes> {
97 &self.device_type_osx
98 }
99 pub fn device_type_android(mut self, input: crate::types::DefaultClientBrandingAttributes) -> Self {
101 self.device_type_android = ::std::option::Option::Some(input);
102 self
103 }
104 pub fn set_device_type_android(mut self, input: ::std::option::Option<crate::types::DefaultClientBrandingAttributes>) -> Self {
106 self.device_type_android = input;
107 self
108 }
109 pub fn get_device_type_android(&self) -> &::std::option::Option<crate::types::DefaultClientBrandingAttributes> {
111 &self.device_type_android
112 }
113 pub fn device_type_ios(mut self, input: crate::types::IosClientBrandingAttributes) -> Self {
115 self.device_type_ios = ::std::option::Option::Some(input);
116 self
117 }
118 pub fn set_device_type_ios(mut self, input: ::std::option::Option<crate::types::IosClientBrandingAttributes>) -> Self {
120 self.device_type_ios = input;
121 self
122 }
123 pub fn get_device_type_ios(&self) -> &::std::option::Option<crate::types::IosClientBrandingAttributes> {
125 &self.device_type_ios
126 }
127 pub fn device_type_linux(mut self, input: crate::types::DefaultClientBrandingAttributes) -> Self {
129 self.device_type_linux = ::std::option::Option::Some(input);
130 self
131 }
132 pub fn set_device_type_linux(mut self, input: ::std::option::Option<crate::types::DefaultClientBrandingAttributes>) -> Self {
134 self.device_type_linux = input;
135 self
136 }
137 pub fn get_device_type_linux(&self) -> &::std::option::Option<crate::types::DefaultClientBrandingAttributes> {
139 &self.device_type_linux
140 }
141 pub fn device_type_web(mut self, input: crate::types::DefaultClientBrandingAttributes) -> Self {
143 self.device_type_web = ::std::option::Option::Some(input);
144 self
145 }
146 pub fn set_device_type_web(mut self, input: ::std::option::Option<crate::types::DefaultClientBrandingAttributes>) -> Self {
148 self.device_type_web = input;
149 self
150 }
151 pub fn get_device_type_web(&self) -> &::std::option::Option<crate::types::DefaultClientBrandingAttributes> {
153 &self.device_type_web
154 }
155 pub(crate) fn _request_id(mut self, request_id: impl Into<String>) -> Self {
156 self._request_id = Some(request_id.into());
157 self
158 }
159
160 pub(crate) fn _set_request_id(&mut self, request_id: Option<String>) -> &mut Self {
161 self._request_id = request_id;
162 self
163 }
164 pub fn build(self) -> crate::operation::import_client_branding::ImportClientBrandingOutput {
166 crate::operation::import_client_branding::ImportClientBrandingOutput {
167 device_type_windows: self.device_type_windows,
168 device_type_osx: self.device_type_osx,
169 device_type_android: self.device_type_android,
170 device_type_ios: self.device_type_ios,
171 device_type_linux: self.device_type_linux,
172 device_type_web: self.device_type_web,
173 _request_id: self._request_id,
174 }
175 }
176}