Skip to main content

aws_sdk_workspaces/operation/import_client_branding/
_import_client_branding_output.rs

1// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
2#[allow(missing_docs)] // documentation missing in model
3#[non_exhaustive]
4#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
5pub struct ImportClientBrandingOutput {
6    /// <p>The branding information configured for Windows devices.</p>
7    pub device_type_windows: ::std::option::Option<crate::types::DefaultClientBrandingAttributes>,
8    /// <p>The branding information configured for macOS devices.</p>
9    pub device_type_osx: ::std::option::Option<crate::types::DefaultClientBrandingAttributes>,
10    /// <p>The branding information configured for Android devices.</p>
11    pub device_type_android: ::std::option::Option<crate::types::DefaultClientBrandingAttributes>,
12    /// <p>The branding information configured for iOS devices.</p>
13    pub device_type_ios: ::std::option::Option<crate::types::IosClientBrandingAttributes>,
14    /// <p>The branding information configured for Linux devices.</p>
15    pub device_type_linux: ::std::option::Option<crate::types::DefaultClientBrandingAttributes>,
16    /// <p>The branding information configured for web access.</p>
17    pub device_type_web: ::std::option::Option<crate::types::DefaultClientBrandingAttributes>,
18    _request_id: Option<String>,
19}
20impl ImportClientBrandingOutput {
21    /// <p>The branding information configured for Windows devices.</p>
22    pub fn device_type_windows(&self) -> ::std::option::Option<&crate::types::DefaultClientBrandingAttributes> {
23        self.device_type_windows.as_ref()
24    }
25    /// <p>The branding information configured for macOS devices.</p>
26    pub fn device_type_osx(&self) -> ::std::option::Option<&crate::types::DefaultClientBrandingAttributes> {
27        self.device_type_osx.as_ref()
28    }
29    /// <p>The branding information configured for Android devices.</p>
30    pub fn device_type_android(&self) -> ::std::option::Option<&crate::types::DefaultClientBrandingAttributes> {
31        self.device_type_android.as_ref()
32    }
33    /// <p>The branding information configured for iOS devices.</p>
34    pub fn device_type_ios(&self) -> ::std::option::Option<&crate::types::IosClientBrandingAttributes> {
35        self.device_type_ios.as_ref()
36    }
37    /// <p>The branding information configured for Linux devices.</p>
38    pub fn device_type_linux(&self) -> ::std::option::Option<&crate::types::DefaultClientBrandingAttributes> {
39        self.device_type_linux.as_ref()
40    }
41    /// <p>The branding information configured for web access.</p>
42    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    /// Creates a new builder-style object to manufacture [`ImportClientBrandingOutput`](crate::operation::import_client_branding::ImportClientBrandingOutput).
53    pub fn builder() -> crate::operation::import_client_branding::builders::ImportClientBrandingOutputBuilder {
54        crate::operation::import_client_branding::builders::ImportClientBrandingOutputBuilder::default()
55    }
56}
57
58/// A builder for [`ImportClientBrandingOutput`](crate::operation::import_client_branding::ImportClientBrandingOutput).
59#[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    /// <p>The branding information configured for Windows devices.</p>
72    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    /// <p>The branding information configured for Windows devices.</p>
77    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    /// <p>The branding information configured for Windows devices.</p>
82    pub fn get_device_type_windows(&self) -> &::std::option::Option<crate::types::DefaultClientBrandingAttributes> {
83        &self.device_type_windows
84    }
85    /// <p>The branding information configured for macOS devices.</p>
86    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    /// <p>The branding information configured for macOS devices.</p>
91    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    /// <p>The branding information configured for macOS devices.</p>
96    pub fn get_device_type_osx(&self) -> &::std::option::Option<crate::types::DefaultClientBrandingAttributes> {
97        &self.device_type_osx
98    }
99    /// <p>The branding information configured for Android devices.</p>
100    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    /// <p>The branding information configured for Android devices.</p>
105    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    /// <p>The branding information configured for Android devices.</p>
110    pub fn get_device_type_android(&self) -> &::std::option::Option<crate::types::DefaultClientBrandingAttributes> {
111        &self.device_type_android
112    }
113    /// <p>The branding information configured for iOS devices.</p>
114    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    /// <p>The branding information configured for iOS devices.</p>
119    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    /// <p>The branding information configured for iOS devices.</p>
124    pub fn get_device_type_ios(&self) -> &::std::option::Option<crate::types::IosClientBrandingAttributes> {
125        &self.device_type_ios
126    }
127    /// <p>The branding information configured for Linux devices.</p>
128    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    /// <p>The branding information configured for Linux devices.</p>
133    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    /// <p>The branding information configured for Linux devices.</p>
138    pub fn get_device_type_linux(&self) -> &::std::option::Option<crate::types::DefaultClientBrandingAttributes> {
139        &self.device_type_linux
140    }
141    /// <p>The branding information configured for web access.</p>
142    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    /// <p>The branding information configured for web access.</p>
147    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    /// <p>The branding information configured for web access.</p>
152    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    /// Consumes the builder and constructs a [`ImportClientBrandingOutput`](crate::operation::import_client_branding::ImportClientBrandingOutput).
165    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}