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
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
#[allow(missing_docs)] // documentation missing in model
#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq)]
pub struct UpdateCalculatedAttributeDefinitionOutput {
    /// <p>The unique name of the calculated attribute.</p>
    pub calculated_attribute_name: ::std::option::Option<::std::string::String>,
    /// <p>The display name of the calculated attribute.</p>
    pub display_name: ::std::option::Option<::std::string::String>,
    /// <p>The description of the calculated attribute.</p>
    pub description: ::std::option::Option<::std::string::String>,
    /// <p>The timestamp of when the calculated attribute definition was created.</p>
    pub created_at: ::std::option::Option<::aws_smithy_types::DateTime>,
    /// <p>The timestamp of when the calculated attribute definition was most recently edited.</p>
    pub last_updated_at: ::std::option::Option<::aws_smithy_types::DateTime>,
    /// <p>The aggregation operation to perform for the calculated attribute.</p>
    pub statistic: ::std::option::Option<crate::types::Statistic>,
    /// <p>The conditions including range, object count, and threshold for the calculated attribute.</p>
    pub conditions: ::std::option::Option<crate::types::Conditions>,
    /// <p>The mathematical expression and a list of attribute items specified in that expression.</p>
    pub attribute_details: ::std::option::Option<crate::types::AttributeDetails>,
    /// <p>The tags used to organize, track, or control access for this resource.</p>
    pub tags: ::std::option::Option<::std::collections::HashMap<::std::string::String, ::std::string::String>>,
    _request_id: Option<String>,
}
impl UpdateCalculatedAttributeDefinitionOutput {
    /// <p>The unique name of the calculated attribute.</p>
    pub fn calculated_attribute_name(&self) -> ::std::option::Option<&str> {
        self.calculated_attribute_name.as_deref()
    }
    /// <p>The display name of the calculated attribute.</p>
    pub fn display_name(&self) -> ::std::option::Option<&str> {
        self.display_name.as_deref()
    }
    /// <p>The description of the calculated attribute.</p>
    pub fn description(&self) -> ::std::option::Option<&str> {
        self.description.as_deref()
    }
    /// <p>The timestamp of when the calculated attribute definition was created.</p>
    pub fn created_at(&self) -> ::std::option::Option<&::aws_smithy_types::DateTime> {
        self.created_at.as_ref()
    }
    /// <p>The timestamp of when the calculated attribute definition was most recently edited.</p>
    pub fn last_updated_at(&self) -> ::std::option::Option<&::aws_smithy_types::DateTime> {
        self.last_updated_at.as_ref()
    }
    /// <p>The aggregation operation to perform for the calculated attribute.</p>
    pub fn statistic(&self) -> ::std::option::Option<&crate::types::Statistic> {
        self.statistic.as_ref()
    }
    /// <p>The conditions including range, object count, and threshold for the calculated attribute.</p>
    pub fn conditions(&self) -> ::std::option::Option<&crate::types::Conditions> {
        self.conditions.as_ref()
    }
    /// <p>The mathematical expression and a list of attribute items specified in that expression.</p>
    pub fn attribute_details(&self) -> ::std::option::Option<&crate::types::AttributeDetails> {
        self.attribute_details.as_ref()
    }
    /// <p>The tags used to organize, track, or control access for this resource.</p>
    pub fn tags(&self) -> ::std::option::Option<&::std::collections::HashMap<::std::string::String, ::std::string::String>> {
        self.tags.as_ref()
    }
}
impl ::std::fmt::Debug for UpdateCalculatedAttributeDefinitionOutput {
    fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
        let mut formatter = f.debug_struct("UpdateCalculatedAttributeDefinitionOutput");
        formatter.field("calculated_attribute_name", &self.calculated_attribute_name);
        formatter.field("display_name", &self.display_name);
        formatter.field("description", &"*** Sensitive Data Redacted ***");
        formatter.field("created_at", &self.created_at);
        formatter.field("last_updated_at", &self.last_updated_at);
        formatter.field("statistic", &"*** Sensitive Data Redacted ***");
        formatter.field("conditions", &"*** Sensitive Data Redacted ***");
        formatter.field("attribute_details", &"*** Sensitive Data Redacted ***");
        formatter.field("tags", &self.tags);
        formatter.field("_request_id", &self._request_id);
        formatter.finish()
    }
}
impl ::aws_types::request_id::RequestId for UpdateCalculatedAttributeDefinitionOutput {
    fn request_id(&self) -> Option<&str> {
        self._request_id.as_deref()
    }
}
impl UpdateCalculatedAttributeDefinitionOutput {
    /// Creates a new builder-style object to manufacture [`UpdateCalculatedAttributeDefinitionOutput`](crate::operation::update_calculated_attribute_definition::UpdateCalculatedAttributeDefinitionOutput).
    pub fn builder() -> crate::operation::update_calculated_attribute_definition::builders::UpdateCalculatedAttributeDefinitionOutputBuilder {
        crate::operation::update_calculated_attribute_definition::builders::UpdateCalculatedAttributeDefinitionOutputBuilder::default()
    }
}

/// A builder for [`UpdateCalculatedAttributeDefinitionOutput`](crate::operation::update_calculated_attribute_definition::UpdateCalculatedAttributeDefinitionOutput).
#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default)]
pub struct UpdateCalculatedAttributeDefinitionOutputBuilder {
    pub(crate) calculated_attribute_name: ::std::option::Option<::std::string::String>,
    pub(crate) display_name: ::std::option::Option<::std::string::String>,
    pub(crate) description: ::std::option::Option<::std::string::String>,
    pub(crate) created_at: ::std::option::Option<::aws_smithy_types::DateTime>,
    pub(crate) last_updated_at: ::std::option::Option<::aws_smithy_types::DateTime>,
    pub(crate) statistic: ::std::option::Option<crate::types::Statistic>,
    pub(crate) conditions: ::std::option::Option<crate::types::Conditions>,
    pub(crate) attribute_details: ::std::option::Option<crate::types::AttributeDetails>,
    pub(crate) tags: ::std::option::Option<::std::collections::HashMap<::std::string::String, ::std::string::String>>,
    _request_id: Option<String>,
}
impl UpdateCalculatedAttributeDefinitionOutputBuilder {
    /// <p>The unique name of the calculated attribute.</p>
    pub fn calculated_attribute_name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.calculated_attribute_name = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>The unique name of the calculated attribute.</p>
    pub fn set_calculated_attribute_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.calculated_attribute_name = input;
        self
    }
    /// <p>The unique name of the calculated attribute.</p>
    pub fn get_calculated_attribute_name(&self) -> &::std::option::Option<::std::string::String> {
        &self.calculated_attribute_name
    }
    /// <p>The display name of the calculated attribute.</p>
    pub fn display_name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.display_name = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>The display name of the calculated attribute.</p>
    pub fn set_display_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.display_name = input;
        self
    }
    /// <p>The display name of the calculated attribute.</p>
    pub fn get_display_name(&self) -> &::std::option::Option<::std::string::String> {
        &self.display_name
    }
    /// <p>The description of the calculated attribute.</p>
    pub fn description(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.description = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>The description of the calculated attribute.</p>
    pub fn set_description(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.description = input;
        self
    }
    /// <p>The description of the calculated attribute.</p>
    pub fn get_description(&self) -> &::std::option::Option<::std::string::String> {
        &self.description
    }
    /// <p>The timestamp of when the calculated attribute definition was created.</p>
    pub fn created_at(mut self, input: ::aws_smithy_types::DateTime) -> Self {
        self.created_at = ::std::option::Option::Some(input);
        self
    }
    /// <p>The timestamp of when the calculated attribute definition was created.</p>
    pub fn set_created_at(mut self, input: ::std::option::Option<::aws_smithy_types::DateTime>) -> Self {
        self.created_at = input;
        self
    }
    /// <p>The timestamp of when the calculated attribute definition was created.</p>
    pub fn get_created_at(&self) -> &::std::option::Option<::aws_smithy_types::DateTime> {
        &self.created_at
    }
    /// <p>The timestamp of when the calculated attribute definition was most recently edited.</p>
    pub fn last_updated_at(mut self, input: ::aws_smithy_types::DateTime) -> Self {
        self.last_updated_at = ::std::option::Option::Some(input);
        self
    }
    /// <p>The timestamp of when the calculated attribute definition was most recently edited.</p>
    pub fn set_last_updated_at(mut self, input: ::std::option::Option<::aws_smithy_types::DateTime>) -> Self {
        self.last_updated_at = input;
        self
    }
    /// <p>The timestamp of when the calculated attribute definition was most recently edited.</p>
    pub fn get_last_updated_at(&self) -> &::std::option::Option<::aws_smithy_types::DateTime> {
        &self.last_updated_at
    }
    /// <p>The aggregation operation to perform for the calculated attribute.</p>
    pub fn statistic(mut self, input: crate::types::Statistic) -> Self {
        self.statistic = ::std::option::Option::Some(input);
        self
    }
    /// <p>The aggregation operation to perform for the calculated attribute.</p>
    pub fn set_statistic(mut self, input: ::std::option::Option<crate::types::Statistic>) -> Self {
        self.statistic = input;
        self
    }
    /// <p>The aggregation operation to perform for the calculated attribute.</p>
    pub fn get_statistic(&self) -> &::std::option::Option<crate::types::Statistic> {
        &self.statistic
    }
    /// <p>The conditions including range, object count, and threshold for the calculated attribute.</p>
    pub fn conditions(mut self, input: crate::types::Conditions) -> Self {
        self.conditions = ::std::option::Option::Some(input);
        self
    }
    /// <p>The conditions including range, object count, and threshold for the calculated attribute.</p>
    pub fn set_conditions(mut self, input: ::std::option::Option<crate::types::Conditions>) -> Self {
        self.conditions = input;
        self
    }
    /// <p>The conditions including range, object count, and threshold for the calculated attribute.</p>
    pub fn get_conditions(&self) -> &::std::option::Option<crate::types::Conditions> {
        &self.conditions
    }
    /// <p>The mathematical expression and a list of attribute items specified in that expression.</p>
    pub fn attribute_details(mut self, input: crate::types::AttributeDetails) -> Self {
        self.attribute_details = ::std::option::Option::Some(input);
        self
    }
    /// <p>The mathematical expression and a list of attribute items specified in that expression.</p>
    pub fn set_attribute_details(mut self, input: ::std::option::Option<crate::types::AttributeDetails>) -> Self {
        self.attribute_details = input;
        self
    }
    /// <p>The mathematical expression and a list of attribute items specified in that expression.</p>
    pub fn get_attribute_details(&self) -> &::std::option::Option<crate::types::AttributeDetails> {
        &self.attribute_details
    }
    /// Adds a key-value pair to `tags`.
    ///
    /// To override the contents of this collection use [`set_tags`](Self::set_tags).
    ///
    /// <p>The tags used to organize, track, or control access for this resource.</p>
    pub fn tags(mut self, k: impl ::std::convert::Into<::std::string::String>, v: impl ::std::convert::Into<::std::string::String>) -> Self {
        let mut hash_map = self.tags.unwrap_or_default();
        hash_map.insert(k.into(), v.into());
        self.tags = ::std::option::Option::Some(hash_map);
        self
    }
    /// <p>The tags used to organize, track, or control access for this resource.</p>
    pub fn set_tags(mut self, input: ::std::option::Option<::std::collections::HashMap<::std::string::String, ::std::string::String>>) -> Self {
        self.tags = input;
        self
    }
    /// <p>The tags used to organize, track, or control access for this resource.</p>
    pub fn get_tags(&self) -> &::std::option::Option<::std::collections::HashMap<::std::string::String, ::std::string::String>> {
        &self.tags
    }
    pub(crate) fn _request_id(mut self, request_id: impl Into<String>) -> Self {
        self._request_id = Some(request_id.into());
        self
    }

    pub(crate) fn _set_request_id(&mut self, request_id: Option<String>) -> &mut Self {
        self._request_id = request_id;
        self
    }
    /// Consumes the builder and constructs a [`UpdateCalculatedAttributeDefinitionOutput`](crate::operation::update_calculated_attribute_definition::UpdateCalculatedAttributeDefinitionOutput).
    pub fn build(self) -> crate::operation::update_calculated_attribute_definition::UpdateCalculatedAttributeDefinitionOutput {
        crate::operation::update_calculated_attribute_definition::UpdateCalculatedAttributeDefinitionOutput {
            calculated_attribute_name: self.calculated_attribute_name,
            display_name: self.display_name,
            description: self.description,
            created_at: self.created_at,
            last_updated_at: self.last_updated_at,
            statistic: self.statistic,
            conditions: self.conditions,
            attribute_details: self.attribute_details,
            tags: self.tags,
            _request_id: self._request_id,
        }
    }
}
impl ::std::fmt::Debug for UpdateCalculatedAttributeDefinitionOutputBuilder {
    fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
        let mut formatter = f.debug_struct("UpdateCalculatedAttributeDefinitionOutputBuilder");
        formatter.field("calculated_attribute_name", &self.calculated_attribute_name);
        formatter.field("display_name", &self.display_name);
        formatter.field("description", &"*** Sensitive Data Redacted ***");
        formatter.field("created_at", &self.created_at);
        formatter.field("last_updated_at", &self.last_updated_at);
        formatter.field("statistic", &"*** Sensitive Data Redacted ***");
        formatter.field("conditions", &"*** Sensitive Data Redacted ***");
        formatter.field("attribute_details", &"*** Sensitive Data Redacted ***");
        formatter.field("tags", &self.tags);
        formatter.field("_request_id", &self._request_id);
        formatter.finish()
    }
}