aws_sdk_mgn/operation/update_application/
_update_application_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)]
5pub struct UpdateApplicationOutput {
6    /// <p>Application ID.</p>
7    pub application_id: ::std::option::Option<::std::string::String>,
8    /// <p>Application ARN.</p>
9    pub arn: ::std::option::Option<::std::string::String>,
10    /// <p>Application name.</p>
11    pub name: ::std::option::Option<::std::string::String>,
12    /// <p>Application description.</p>
13    pub description: ::std::option::Option<::std::string::String>,
14    /// <p>Application archival status.</p>
15    pub is_archived: ::std::option::Option<bool>,
16    /// <p>Application aggregated status.</p>
17    pub application_aggregated_status: ::std::option::Option<crate::types::ApplicationAggregatedStatus>,
18    /// <p>Application creation dateTime.</p>
19    pub creation_date_time: ::std::option::Option<::std::string::String>,
20    /// <p>Application last modified dateTime.</p>
21    pub last_modified_date_time: ::std::option::Option<::std::string::String>,
22    /// <p>Application tags.</p>
23    pub tags: ::std::option::Option<::std::collections::HashMap<::std::string::String, ::std::string::String>>,
24    /// <p>Application wave ID.</p>
25    pub wave_id: ::std::option::Option<::std::string::String>,
26    _request_id: Option<String>,
27}
28impl UpdateApplicationOutput {
29    /// <p>Application ID.</p>
30    pub fn application_id(&self) -> ::std::option::Option<&str> {
31        self.application_id.as_deref()
32    }
33    /// <p>Application ARN.</p>
34    pub fn arn(&self) -> ::std::option::Option<&str> {
35        self.arn.as_deref()
36    }
37    /// <p>Application name.</p>
38    pub fn name(&self) -> ::std::option::Option<&str> {
39        self.name.as_deref()
40    }
41    /// <p>Application description.</p>
42    pub fn description(&self) -> ::std::option::Option<&str> {
43        self.description.as_deref()
44    }
45    /// <p>Application archival status.</p>
46    pub fn is_archived(&self) -> ::std::option::Option<bool> {
47        self.is_archived
48    }
49    /// <p>Application aggregated status.</p>
50    pub fn application_aggregated_status(&self) -> ::std::option::Option<&crate::types::ApplicationAggregatedStatus> {
51        self.application_aggregated_status.as_ref()
52    }
53    /// <p>Application creation dateTime.</p>
54    pub fn creation_date_time(&self) -> ::std::option::Option<&str> {
55        self.creation_date_time.as_deref()
56    }
57    /// <p>Application last modified dateTime.</p>
58    pub fn last_modified_date_time(&self) -> ::std::option::Option<&str> {
59        self.last_modified_date_time.as_deref()
60    }
61    /// <p>Application tags.</p>
62    pub fn tags(&self) -> ::std::option::Option<&::std::collections::HashMap<::std::string::String, ::std::string::String>> {
63        self.tags.as_ref()
64    }
65    /// <p>Application wave ID.</p>
66    pub fn wave_id(&self) -> ::std::option::Option<&str> {
67        self.wave_id.as_deref()
68    }
69}
70impl ::std::fmt::Debug for UpdateApplicationOutput {
71    fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
72        let mut formatter = f.debug_struct("UpdateApplicationOutput");
73        formatter.field("application_id", &self.application_id);
74        formatter.field("arn", &self.arn);
75        formatter.field("name", &self.name);
76        formatter.field("description", &self.description);
77        formatter.field("is_archived", &self.is_archived);
78        formatter.field("application_aggregated_status", &self.application_aggregated_status);
79        formatter.field("creation_date_time", &self.creation_date_time);
80        formatter.field("last_modified_date_time", &self.last_modified_date_time);
81        formatter.field("tags", &"*** Sensitive Data Redacted ***");
82        formatter.field("wave_id", &self.wave_id);
83        formatter.field("_request_id", &self._request_id);
84        formatter.finish()
85    }
86}
87impl ::aws_types::request_id::RequestId for UpdateApplicationOutput {
88    fn request_id(&self) -> Option<&str> {
89        self._request_id.as_deref()
90    }
91}
92impl UpdateApplicationOutput {
93    /// Creates a new builder-style object to manufacture [`UpdateApplicationOutput`](crate::operation::update_application::UpdateApplicationOutput).
94    pub fn builder() -> crate::operation::update_application::builders::UpdateApplicationOutputBuilder {
95        crate::operation::update_application::builders::UpdateApplicationOutputBuilder::default()
96    }
97}
98
99/// A builder for [`UpdateApplicationOutput`](crate::operation::update_application::UpdateApplicationOutput).
100#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default)]
101#[non_exhaustive]
102pub struct UpdateApplicationOutputBuilder {
103    pub(crate) application_id: ::std::option::Option<::std::string::String>,
104    pub(crate) arn: ::std::option::Option<::std::string::String>,
105    pub(crate) name: ::std::option::Option<::std::string::String>,
106    pub(crate) description: ::std::option::Option<::std::string::String>,
107    pub(crate) is_archived: ::std::option::Option<bool>,
108    pub(crate) application_aggregated_status: ::std::option::Option<crate::types::ApplicationAggregatedStatus>,
109    pub(crate) creation_date_time: ::std::option::Option<::std::string::String>,
110    pub(crate) last_modified_date_time: ::std::option::Option<::std::string::String>,
111    pub(crate) tags: ::std::option::Option<::std::collections::HashMap<::std::string::String, ::std::string::String>>,
112    pub(crate) wave_id: ::std::option::Option<::std::string::String>,
113    _request_id: Option<String>,
114}
115impl UpdateApplicationOutputBuilder {
116    /// <p>Application ID.</p>
117    pub fn application_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
118        self.application_id = ::std::option::Option::Some(input.into());
119        self
120    }
121    /// <p>Application ID.</p>
122    pub fn set_application_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
123        self.application_id = input;
124        self
125    }
126    /// <p>Application ID.</p>
127    pub fn get_application_id(&self) -> &::std::option::Option<::std::string::String> {
128        &self.application_id
129    }
130    /// <p>Application ARN.</p>
131    pub fn arn(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
132        self.arn = ::std::option::Option::Some(input.into());
133        self
134    }
135    /// <p>Application ARN.</p>
136    pub fn set_arn(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
137        self.arn = input;
138        self
139    }
140    /// <p>Application ARN.</p>
141    pub fn get_arn(&self) -> &::std::option::Option<::std::string::String> {
142        &self.arn
143    }
144    /// <p>Application name.</p>
145    pub fn name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
146        self.name = ::std::option::Option::Some(input.into());
147        self
148    }
149    /// <p>Application name.</p>
150    pub fn set_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
151        self.name = input;
152        self
153    }
154    /// <p>Application name.</p>
155    pub fn get_name(&self) -> &::std::option::Option<::std::string::String> {
156        &self.name
157    }
158    /// <p>Application description.</p>
159    pub fn description(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
160        self.description = ::std::option::Option::Some(input.into());
161        self
162    }
163    /// <p>Application description.</p>
164    pub fn set_description(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
165        self.description = input;
166        self
167    }
168    /// <p>Application description.</p>
169    pub fn get_description(&self) -> &::std::option::Option<::std::string::String> {
170        &self.description
171    }
172    /// <p>Application archival status.</p>
173    pub fn is_archived(mut self, input: bool) -> Self {
174        self.is_archived = ::std::option::Option::Some(input);
175        self
176    }
177    /// <p>Application archival status.</p>
178    pub fn set_is_archived(mut self, input: ::std::option::Option<bool>) -> Self {
179        self.is_archived = input;
180        self
181    }
182    /// <p>Application archival status.</p>
183    pub fn get_is_archived(&self) -> &::std::option::Option<bool> {
184        &self.is_archived
185    }
186    /// <p>Application aggregated status.</p>
187    pub fn application_aggregated_status(mut self, input: crate::types::ApplicationAggregatedStatus) -> Self {
188        self.application_aggregated_status = ::std::option::Option::Some(input);
189        self
190    }
191    /// <p>Application aggregated status.</p>
192    pub fn set_application_aggregated_status(mut self, input: ::std::option::Option<crate::types::ApplicationAggregatedStatus>) -> Self {
193        self.application_aggregated_status = input;
194        self
195    }
196    /// <p>Application aggregated status.</p>
197    pub fn get_application_aggregated_status(&self) -> &::std::option::Option<crate::types::ApplicationAggregatedStatus> {
198        &self.application_aggregated_status
199    }
200    /// <p>Application creation dateTime.</p>
201    pub fn creation_date_time(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
202        self.creation_date_time = ::std::option::Option::Some(input.into());
203        self
204    }
205    /// <p>Application creation dateTime.</p>
206    pub fn set_creation_date_time(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
207        self.creation_date_time = input;
208        self
209    }
210    /// <p>Application creation dateTime.</p>
211    pub fn get_creation_date_time(&self) -> &::std::option::Option<::std::string::String> {
212        &self.creation_date_time
213    }
214    /// <p>Application last modified dateTime.</p>
215    pub fn last_modified_date_time(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
216        self.last_modified_date_time = ::std::option::Option::Some(input.into());
217        self
218    }
219    /// <p>Application last modified dateTime.</p>
220    pub fn set_last_modified_date_time(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
221        self.last_modified_date_time = input;
222        self
223    }
224    /// <p>Application last modified dateTime.</p>
225    pub fn get_last_modified_date_time(&self) -> &::std::option::Option<::std::string::String> {
226        &self.last_modified_date_time
227    }
228    /// Adds a key-value pair to `tags`.
229    ///
230    /// To override the contents of this collection use [`set_tags`](Self::set_tags).
231    ///
232    /// <p>Application tags.</p>
233    pub fn tags(mut self, k: impl ::std::convert::Into<::std::string::String>, v: impl ::std::convert::Into<::std::string::String>) -> Self {
234        let mut hash_map = self.tags.unwrap_or_default();
235        hash_map.insert(k.into(), v.into());
236        self.tags = ::std::option::Option::Some(hash_map);
237        self
238    }
239    /// <p>Application tags.</p>
240    pub fn set_tags(mut self, input: ::std::option::Option<::std::collections::HashMap<::std::string::String, ::std::string::String>>) -> Self {
241        self.tags = input;
242        self
243    }
244    /// <p>Application tags.</p>
245    pub fn get_tags(&self) -> &::std::option::Option<::std::collections::HashMap<::std::string::String, ::std::string::String>> {
246        &self.tags
247    }
248    /// <p>Application wave ID.</p>
249    pub fn wave_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
250        self.wave_id = ::std::option::Option::Some(input.into());
251        self
252    }
253    /// <p>Application wave ID.</p>
254    pub fn set_wave_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
255        self.wave_id = input;
256        self
257    }
258    /// <p>Application wave ID.</p>
259    pub fn get_wave_id(&self) -> &::std::option::Option<::std::string::String> {
260        &self.wave_id
261    }
262    pub(crate) fn _request_id(mut self, request_id: impl Into<String>) -> Self {
263        self._request_id = Some(request_id.into());
264        self
265    }
266
267    pub(crate) fn _set_request_id(&mut self, request_id: Option<String>) -> &mut Self {
268        self._request_id = request_id;
269        self
270    }
271    /// Consumes the builder and constructs a [`UpdateApplicationOutput`](crate::operation::update_application::UpdateApplicationOutput).
272    pub fn build(self) -> crate::operation::update_application::UpdateApplicationOutput {
273        crate::operation::update_application::UpdateApplicationOutput {
274            application_id: self.application_id,
275            arn: self.arn,
276            name: self.name,
277            description: self.description,
278            is_archived: self.is_archived,
279            application_aggregated_status: self.application_aggregated_status,
280            creation_date_time: self.creation_date_time,
281            last_modified_date_time: self.last_modified_date_time,
282            tags: self.tags,
283            wave_id: self.wave_id,
284            _request_id: self._request_id,
285        }
286    }
287}
288impl ::std::fmt::Debug for UpdateApplicationOutputBuilder {
289    fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
290        let mut formatter = f.debug_struct("UpdateApplicationOutputBuilder");
291        formatter.field("application_id", &self.application_id);
292        formatter.field("arn", &self.arn);
293        formatter.field("name", &self.name);
294        formatter.field("description", &self.description);
295        formatter.field("is_archived", &self.is_archived);
296        formatter.field("application_aggregated_status", &self.application_aggregated_status);
297        formatter.field("creation_date_time", &self.creation_date_time);
298        formatter.field("last_modified_date_time", &self.last_modified_date_time);
299        formatter.field("tags", &"*** Sensitive Data Redacted ***");
300        formatter.field("wave_id", &self.wave_id);
301        formatter.field("_request_id", &self._request_id);
302        formatter.finish()
303    }
304}