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
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.

/// <p>The StackEvent data type.</p>
#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct StackEvent {
    /// <p>The unique ID name of the instance of the stack.</p>
    pub stack_id: ::std::option::Option<::std::string::String>,
    /// <p>The unique ID of this event.</p>
    pub event_id: ::std::option::Option<::std::string::String>,
    /// <p>The name associated with a stack.</p>
    pub stack_name: ::std::option::Option<::std::string::String>,
    /// <p>The logical name of the resource specified in the template.</p>
    pub logical_resource_id: ::std::option::Option<::std::string::String>,
    /// <p>The name or unique identifier associated with the physical instance of the resource.</p>
    pub physical_resource_id: ::std::option::Option<::std::string::String>,
    /// <p>Type of resource. (For more information, go to <a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-template-resource-type-ref.html">Amazon Web Services Resource Types Reference</a> in the <i>CloudFormation User Guide</i>.)</p>
    pub resource_type: ::std::option::Option<::std::string::String>,
    /// <p>Time the status was updated.</p>
    pub timestamp: ::std::option::Option<::aws_smithy_types::DateTime>,
    /// <p>Current status of the resource.</p>
    pub resource_status: ::std::option::Option<crate::types::ResourceStatus>,
    /// <p>Success/failure message associated with the resource.</p>
    pub resource_status_reason: ::std::option::Option<::std::string::String>,
    /// <p>BLOB of the properties used to create the resource.</p>
    pub resource_properties: ::std::option::Option<::std::string::String>,
    /// <p>The token passed to the operation that generated this event.</p>
    /// <p>All events triggered by a given stack operation are assigned the same client request token, which you can use to track operations. For example, if you execute a <code>CreateStack</code> operation with the token <code>token1</code>, then all the <code>StackEvents</code> generated by that operation will have <code>ClientRequestToken</code> set as <code>token1</code>.</p>
    /// <p>In the console, stack operations display the client request token on the Events tab. Stack operations that are initiated from the console use the token format <i>Console-StackOperation-ID</i>, which helps you easily identify the stack operation . For example, if you create a stack using the console, each stack event would be assigned the same token in the following format: <code>Console-CreateStack-7f59c3cf-00d2-40c7-b2ff-e75db0987002</code>.</p>
    pub client_request_token: ::std::option::Option<::std::string::String>,
    /// <p>The name of the hook.</p>
    pub hook_type: ::std::option::Option<::std::string::String>,
    /// <p>Provides the status of the change set hook.</p>
    pub hook_status: ::std::option::Option<crate::types::HookStatus>,
    /// <p>Provides the reason for the hook status.</p>
    pub hook_status_reason: ::std::option::Option<::std::string::String>,
    /// <p>Invocation points are points in provisioning logic where hooks are initiated.</p>
    pub hook_invocation_point: ::std::option::Option<crate::types::HookInvocationPoint>,
    /// <p>Specify the hook failure mode for non-compliant resources in the followings ways.</p>
    /// <ul>
    /// <li>
    /// <p><code>FAIL</code> Stops provisioning resources.</p></li>
    /// <li>
    /// <p><code>WARN</code> Allows provisioning to continue with a warning message.</p></li>
    /// </ul>
    pub hook_failure_mode: ::std::option::Option<crate::types::HookFailureMode>,
    /// <p>An optional field containing information about the detailed status of the stack event.</p>
    /// <ul>
    /// <li>
    /// <p><code>CONFIGURATION_COMPLETE</code> - all of the resources in the stack have reached that event. For more information, see <a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/stack-resource-configuration-complete.html">CloudFormation stack deployment</a> in the <i>CloudFormation User Guide</i>.</p></li>
    /// </ul>
    /// <ul>
    /// <li>
    /// <p><code>VALIDATION_FAILED</code> - template validation failed because of invalid properties in the template. The <code>ResourceStatusReason</code> field shows what properties are defined incorrectly.</p></li>
    /// </ul>
    pub detailed_status: ::std::option::Option<crate::types::DetailedStatus>,
}
impl StackEvent {
    /// <p>The unique ID name of the instance of the stack.</p>
    pub fn stack_id(&self) -> ::std::option::Option<&str> {
        self.stack_id.as_deref()
    }
    /// <p>The unique ID of this event.</p>
    pub fn event_id(&self) -> ::std::option::Option<&str> {
        self.event_id.as_deref()
    }
    /// <p>The name associated with a stack.</p>
    pub fn stack_name(&self) -> ::std::option::Option<&str> {
        self.stack_name.as_deref()
    }
    /// <p>The logical name of the resource specified in the template.</p>
    pub fn logical_resource_id(&self) -> ::std::option::Option<&str> {
        self.logical_resource_id.as_deref()
    }
    /// <p>The name or unique identifier associated with the physical instance of the resource.</p>
    pub fn physical_resource_id(&self) -> ::std::option::Option<&str> {
        self.physical_resource_id.as_deref()
    }
    /// <p>Type of resource. (For more information, go to <a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-template-resource-type-ref.html">Amazon Web Services Resource Types Reference</a> in the <i>CloudFormation User Guide</i>.)</p>
    pub fn resource_type(&self) -> ::std::option::Option<&str> {
        self.resource_type.as_deref()
    }
    /// <p>Time the status was updated.</p>
    pub fn timestamp(&self) -> ::std::option::Option<&::aws_smithy_types::DateTime> {
        self.timestamp.as_ref()
    }
    /// <p>Current status of the resource.</p>
    pub fn resource_status(&self) -> ::std::option::Option<&crate::types::ResourceStatus> {
        self.resource_status.as_ref()
    }
    /// <p>Success/failure message associated with the resource.</p>
    pub fn resource_status_reason(&self) -> ::std::option::Option<&str> {
        self.resource_status_reason.as_deref()
    }
    /// <p>BLOB of the properties used to create the resource.</p>
    pub fn resource_properties(&self) -> ::std::option::Option<&str> {
        self.resource_properties.as_deref()
    }
    /// <p>The token passed to the operation that generated this event.</p>
    /// <p>All events triggered by a given stack operation are assigned the same client request token, which you can use to track operations. For example, if you execute a <code>CreateStack</code> operation with the token <code>token1</code>, then all the <code>StackEvents</code> generated by that operation will have <code>ClientRequestToken</code> set as <code>token1</code>.</p>
    /// <p>In the console, stack operations display the client request token on the Events tab. Stack operations that are initiated from the console use the token format <i>Console-StackOperation-ID</i>, which helps you easily identify the stack operation . For example, if you create a stack using the console, each stack event would be assigned the same token in the following format: <code>Console-CreateStack-7f59c3cf-00d2-40c7-b2ff-e75db0987002</code>.</p>
    pub fn client_request_token(&self) -> ::std::option::Option<&str> {
        self.client_request_token.as_deref()
    }
    /// <p>The name of the hook.</p>
    pub fn hook_type(&self) -> ::std::option::Option<&str> {
        self.hook_type.as_deref()
    }
    /// <p>Provides the status of the change set hook.</p>
    pub fn hook_status(&self) -> ::std::option::Option<&crate::types::HookStatus> {
        self.hook_status.as_ref()
    }
    /// <p>Provides the reason for the hook status.</p>
    pub fn hook_status_reason(&self) -> ::std::option::Option<&str> {
        self.hook_status_reason.as_deref()
    }
    /// <p>Invocation points are points in provisioning logic where hooks are initiated.</p>
    pub fn hook_invocation_point(&self) -> ::std::option::Option<&crate::types::HookInvocationPoint> {
        self.hook_invocation_point.as_ref()
    }
    /// <p>Specify the hook failure mode for non-compliant resources in the followings ways.</p>
    /// <ul>
    /// <li>
    /// <p><code>FAIL</code> Stops provisioning resources.</p></li>
    /// <li>
    /// <p><code>WARN</code> Allows provisioning to continue with a warning message.</p></li>
    /// </ul>
    pub fn hook_failure_mode(&self) -> ::std::option::Option<&crate::types::HookFailureMode> {
        self.hook_failure_mode.as_ref()
    }
    /// <p>An optional field containing information about the detailed status of the stack event.</p>
    /// <ul>
    /// <li>
    /// <p><code>CONFIGURATION_COMPLETE</code> - all of the resources in the stack have reached that event. For more information, see <a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/stack-resource-configuration-complete.html">CloudFormation stack deployment</a> in the <i>CloudFormation User Guide</i>.</p></li>
    /// </ul>
    /// <ul>
    /// <li>
    /// <p><code>VALIDATION_FAILED</code> - template validation failed because of invalid properties in the template. The <code>ResourceStatusReason</code> field shows what properties are defined incorrectly.</p></li>
    /// </ul>
    pub fn detailed_status(&self) -> ::std::option::Option<&crate::types::DetailedStatus> {
        self.detailed_status.as_ref()
    }
}
impl StackEvent {
    /// Creates a new builder-style object to manufacture [`StackEvent`](crate::types::StackEvent).
    pub fn builder() -> crate::types::builders::StackEventBuilder {
        crate::types::builders::StackEventBuilder::default()
    }
}

/// A builder for [`StackEvent`](crate::types::StackEvent).
#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
pub struct StackEventBuilder {
    pub(crate) stack_id: ::std::option::Option<::std::string::String>,
    pub(crate) event_id: ::std::option::Option<::std::string::String>,
    pub(crate) stack_name: ::std::option::Option<::std::string::String>,
    pub(crate) logical_resource_id: ::std::option::Option<::std::string::String>,
    pub(crate) physical_resource_id: ::std::option::Option<::std::string::String>,
    pub(crate) resource_type: ::std::option::Option<::std::string::String>,
    pub(crate) timestamp: ::std::option::Option<::aws_smithy_types::DateTime>,
    pub(crate) resource_status: ::std::option::Option<crate::types::ResourceStatus>,
    pub(crate) resource_status_reason: ::std::option::Option<::std::string::String>,
    pub(crate) resource_properties: ::std::option::Option<::std::string::String>,
    pub(crate) client_request_token: ::std::option::Option<::std::string::String>,
    pub(crate) hook_type: ::std::option::Option<::std::string::String>,
    pub(crate) hook_status: ::std::option::Option<crate::types::HookStatus>,
    pub(crate) hook_status_reason: ::std::option::Option<::std::string::String>,
    pub(crate) hook_invocation_point: ::std::option::Option<crate::types::HookInvocationPoint>,
    pub(crate) hook_failure_mode: ::std::option::Option<crate::types::HookFailureMode>,
    pub(crate) detailed_status: ::std::option::Option<crate::types::DetailedStatus>,
}
impl StackEventBuilder {
    /// <p>The unique ID name of the instance of the stack.</p>
    /// This field is required.
    pub fn stack_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.stack_id = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>The unique ID name of the instance of the stack.</p>
    pub fn set_stack_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.stack_id = input;
        self
    }
    /// <p>The unique ID name of the instance of the stack.</p>
    pub fn get_stack_id(&self) -> &::std::option::Option<::std::string::String> {
        &self.stack_id
    }
    /// <p>The unique ID of this event.</p>
    /// This field is required.
    pub fn event_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.event_id = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>The unique ID of this event.</p>
    pub fn set_event_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.event_id = input;
        self
    }
    /// <p>The unique ID of this event.</p>
    pub fn get_event_id(&self) -> &::std::option::Option<::std::string::String> {
        &self.event_id
    }
    /// <p>The name associated with a stack.</p>
    /// This field is required.
    pub fn stack_name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.stack_name = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>The name associated with a stack.</p>
    pub fn set_stack_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.stack_name = input;
        self
    }
    /// <p>The name associated with a stack.</p>
    pub fn get_stack_name(&self) -> &::std::option::Option<::std::string::String> {
        &self.stack_name
    }
    /// <p>The logical name of the resource specified in the template.</p>
    pub fn logical_resource_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.logical_resource_id = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>The logical name of the resource specified in the template.</p>
    pub fn set_logical_resource_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.logical_resource_id = input;
        self
    }
    /// <p>The logical name of the resource specified in the template.</p>
    pub fn get_logical_resource_id(&self) -> &::std::option::Option<::std::string::String> {
        &self.logical_resource_id
    }
    /// <p>The name or unique identifier associated with the physical instance of the resource.</p>
    pub fn physical_resource_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.physical_resource_id = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>The name or unique identifier associated with the physical instance of the resource.</p>
    pub fn set_physical_resource_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.physical_resource_id = input;
        self
    }
    /// <p>The name or unique identifier associated with the physical instance of the resource.</p>
    pub fn get_physical_resource_id(&self) -> &::std::option::Option<::std::string::String> {
        &self.physical_resource_id
    }
    /// <p>Type of resource. (For more information, go to <a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-template-resource-type-ref.html">Amazon Web Services Resource Types Reference</a> in the <i>CloudFormation User Guide</i>.)</p>
    pub fn resource_type(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.resource_type = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>Type of resource. (For more information, go to <a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-template-resource-type-ref.html">Amazon Web Services Resource Types Reference</a> in the <i>CloudFormation User Guide</i>.)</p>
    pub fn set_resource_type(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.resource_type = input;
        self
    }
    /// <p>Type of resource. (For more information, go to <a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-template-resource-type-ref.html">Amazon Web Services Resource Types Reference</a> in the <i>CloudFormation User Guide</i>.)</p>
    pub fn get_resource_type(&self) -> &::std::option::Option<::std::string::String> {
        &self.resource_type
    }
    /// <p>Time the status was updated.</p>
    /// This field is required.
    pub fn timestamp(mut self, input: ::aws_smithy_types::DateTime) -> Self {
        self.timestamp = ::std::option::Option::Some(input);
        self
    }
    /// <p>Time the status was updated.</p>
    pub fn set_timestamp(mut self, input: ::std::option::Option<::aws_smithy_types::DateTime>) -> Self {
        self.timestamp = input;
        self
    }
    /// <p>Time the status was updated.</p>
    pub fn get_timestamp(&self) -> &::std::option::Option<::aws_smithy_types::DateTime> {
        &self.timestamp
    }
    /// <p>Current status of the resource.</p>
    pub fn resource_status(mut self, input: crate::types::ResourceStatus) -> Self {
        self.resource_status = ::std::option::Option::Some(input);
        self
    }
    /// <p>Current status of the resource.</p>
    pub fn set_resource_status(mut self, input: ::std::option::Option<crate::types::ResourceStatus>) -> Self {
        self.resource_status = input;
        self
    }
    /// <p>Current status of the resource.</p>
    pub fn get_resource_status(&self) -> &::std::option::Option<crate::types::ResourceStatus> {
        &self.resource_status
    }
    /// <p>Success/failure message associated with the resource.</p>
    pub fn resource_status_reason(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.resource_status_reason = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>Success/failure message associated with the resource.</p>
    pub fn set_resource_status_reason(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.resource_status_reason = input;
        self
    }
    /// <p>Success/failure message associated with the resource.</p>
    pub fn get_resource_status_reason(&self) -> &::std::option::Option<::std::string::String> {
        &self.resource_status_reason
    }
    /// <p>BLOB of the properties used to create the resource.</p>
    pub fn resource_properties(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.resource_properties = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>BLOB of the properties used to create the resource.</p>
    pub fn set_resource_properties(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.resource_properties = input;
        self
    }
    /// <p>BLOB of the properties used to create the resource.</p>
    pub fn get_resource_properties(&self) -> &::std::option::Option<::std::string::String> {
        &self.resource_properties
    }
    /// <p>The token passed to the operation that generated this event.</p>
    /// <p>All events triggered by a given stack operation are assigned the same client request token, which you can use to track operations. For example, if you execute a <code>CreateStack</code> operation with the token <code>token1</code>, then all the <code>StackEvents</code> generated by that operation will have <code>ClientRequestToken</code> set as <code>token1</code>.</p>
    /// <p>In the console, stack operations display the client request token on the Events tab. Stack operations that are initiated from the console use the token format <i>Console-StackOperation-ID</i>, which helps you easily identify the stack operation . For example, if you create a stack using the console, each stack event would be assigned the same token in the following format: <code>Console-CreateStack-7f59c3cf-00d2-40c7-b2ff-e75db0987002</code>.</p>
    pub fn client_request_token(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.client_request_token = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>The token passed to the operation that generated this event.</p>
    /// <p>All events triggered by a given stack operation are assigned the same client request token, which you can use to track operations. For example, if you execute a <code>CreateStack</code> operation with the token <code>token1</code>, then all the <code>StackEvents</code> generated by that operation will have <code>ClientRequestToken</code> set as <code>token1</code>.</p>
    /// <p>In the console, stack operations display the client request token on the Events tab. Stack operations that are initiated from the console use the token format <i>Console-StackOperation-ID</i>, which helps you easily identify the stack operation . For example, if you create a stack using the console, each stack event would be assigned the same token in the following format: <code>Console-CreateStack-7f59c3cf-00d2-40c7-b2ff-e75db0987002</code>.</p>
    pub fn set_client_request_token(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.client_request_token = input;
        self
    }
    /// <p>The token passed to the operation that generated this event.</p>
    /// <p>All events triggered by a given stack operation are assigned the same client request token, which you can use to track operations. For example, if you execute a <code>CreateStack</code> operation with the token <code>token1</code>, then all the <code>StackEvents</code> generated by that operation will have <code>ClientRequestToken</code> set as <code>token1</code>.</p>
    /// <p>In the console, stack operations display the client request token on the Events tab. Stack operations that are initiated from the console use the token format <i>Console-StackOperation-ID</i>, which helps you easily identify the stack operation . For example, if you create a stack using the console, each stack event would be assigned the same token in the following format: <code>Console-CreateStack-7f59c3cf-00d2-40c7-b2ff-e75db0987002</code>.</p>
    pub fn get_client_request_token(&self) -> &::std::option::Option<::std::string::String> {
        &self.client_request_token
    }
    /// <p>The name of the hook.</p>
    pub fn hook_type(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.hook_type = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>The name of the hook.</p>
    pub fn set_hook_type(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.hook_type = input;
        self
    }
    /// <p>The name of the hook.</p>
    pub fn get_hook_type(&self) -> &::std::option::Option<::std::string::String> {
        &self.hook_type
    }
    /// <p>Provides the status of the change set hook.</p>
    pub fn hook_status(mut self, input: crate::types::HookStatus) -> Self {
        self.hook_status = ::std::option::Option::Some(input);
        self
    }
    /// <p>Provides the status of the change set hook.</p>
    pub fn set_hook_status(mut self, input: ::std::option::Option<crate::types::HookStatus>) -> Self {
        self.hook_status = input;
        self
    }
    /// <p>Provides the status of the change set hook.</p>
    pub fn get_hook_status(&self) -> &::std::option::Option<crate::types::HookStatus> {
        &self.hook_status
    }
    /// <p>Provides the reason for the hook status.</p>
    pub fn hook_status_reason(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.hook_status_reason = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>Provides the reason for the hook status.</p>
    pub fn set_hook_status_reason(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.hook_status_reason = input;
        self
    }
    /// <p>Provides the reason for the hook status.</p>
    pub fn get_hook_status_reason(&self) -> &::std::option::Option<::std::string::String> {
        &self.hook_status_reason
    }
    /// <p>Invocation points are points in provisioning logic where hooks are initiated.</p>
    pub fn hook_invocation_point(mut self, input: crate::types::HookInvocationPoint) -> Self {
        self.hook_invocation_point = ::std::option::Option::Some(input);
        self
    }
    /// <p>Invocation points are points in provisioning logic where hooks are initiated.</p>
    pub fn set_hook_invocation_point(mut self, input: ::std::option::Option<crate::types::HookInvocationPoint>) -> Self {
        self.hook_invocation_point = input;
        self
    }
    /// <p>Invocation points are points in provisioning logic where hooks are initiated.</p>
    pub fn get_hook_invocation_point(&self) -> &::std::option::Option<crate::types::HookInvocationPoint> {
        &self.hook_invocation_point
    }
    /// <p>Specify the hook failure mode for non-compliant resources in the followings ways.</p>
    /// <ul>
    /// <li>
    /// <p><code>FAIL</code> Stops provisioning resources.</p></li>
    /// <li>
    /// <p><code>WARN</code> Allows provisioning to continue with a warning message.</p></li>
    /// </ul>
    pub fn hook_failure_mode(mut self, input: crate::types::HookFailureMode) -> Self {
        self.hook_failure_mode = ::std::option::Option::Some(input);
        self
    }
    /// <p>Specify the hook failure mode for non-compliant resources in the followings ways.</p>
    /// <ul>
    /// <li>
    /// <p><code>FAIL</code> Stops provisioning resources.</p></li>
    /// <li>
    /// <p><code>WARN</code> Allows provisioning to continue with a warning message.</p></li>
    /// </ul>
    pub fn set_hook_failure_mode(mut self, input: ::std::option::Option<crate::types::HookFailureMode>) -> Self {
        self.hook_failure_mode = input;
        self
    }
    /// <p>Specify the hook failure mode for non-compliant resources in the followings ways.</p>
    /// <ul>
    /// <li>
    /// <p><code>FAIL</code> Stops provisioning resources.</p></li>
    /// <li>
    /// <p><code>WARN</code> Allows provisioning to continue with a warning message.</p></li>
    /// </ul>
    pub fn get_hook_failure_mode(&self) -> &::std::option::Option<crate::types::HookFailureMode> {
        &self.hook_failure_mode
    }
    /// <p>An optional field containing information about the detailed status of the stack event.</p>
    /// <ul>
    /// <li>
    /// <p><code>CONFIGURATION_COMPLETE</code> - all of the resources in the stack have reached that event. For more information, see <a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/stack-resource-configuration-complete.html">CloudFormation stack deployment</a> in the <i>CloudFormation User Guide</i>.</p></li>
    /// </ul>
    /// <ul>
    /// <li>
    /// <p><code>VALIDATION_FAILED</code> - template validation failed because of invalid properties in the template. The <code>ResourceStatusReason</code> field shows what properties are defined incorrectly.</p></li>
    /// </ul>
    pub fn detailed_status(mut self, input: crate::types::DetailedStatus) -> Self {
        self.detailed_status = ::std::option::Option::Some(input);
        self
    }
    /// <p>An optional field containing information about the detailed status of the stack event.</p>
    /// <ul>
    /// <li>
    /// <p><code>CONFIGURATION_COMPLETE</code> - all of the resources in the stack have reached that event. For more information, see <a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/stack-resource-configuration-complete.html">CloudFormation stack deployment</a> in the <i>CloudFormation User Guide</i>.</p></li>
    /// </ul>
    /// <ul>
    /// <li>
    /// <p><code>VALIDATION_FAILED</code> - template validation failed because of invalid properties in the template. The <code>ResourceStatusReason</code> field shows what properties are defined incorrectly.</p></li>
    /// </ul>
    pub fn set_detailed_status(mut self, input: ::std::option::Option<crate::types::DetailedStatus>) -> Self {
        self.detailed_status = input;
        self
    }
    /// <p>An optional field containing information about the detailed status of the stack event.</p>
    /// <ul>
    /// <li>
    /// <p><code>CONFIGURATION_COMPLETE</code> - all of the resources in the stack have reached that event. For more information, see <a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/stack-resource-configuration-complete.html">CloudFormation stack deployment</a> in the <i>CloudFormation User Guide</i>.</p></li>
    /// </ul>
    /// <ul>
    /// <li>
    /// <p><code>VALIDATION_FAILED</code> - template validation failed because of invalid properties in the template. The <code>ResourceStatusReason</code> field shows what properties are defined incorrectly.</p></li>
    /// </ul>
    pub fn get_detailed_status(&self) -> &::std::option::Option<crate::types::DetailedStatus> {
        &self.detailed_status
    }
    /// Consumes the builder and constructs a [`StackEvent`](crate::types::StackEvent).
    pub fn build(self) -> crate::types::StackEvent {
        crate::types::StackEvent {
            stack_id: self.stack_id,
            event_id: self.event_id,
            stack_name: self.stack_name,
            logical_resource_id: self.logical_resource_id,
            physical_resource_id: self.physical_resource_id,
            resource_type: self.resource_type,
            timestamp: self.timestamp,
            resource_status: self.resource_status,
            resource_status_reason: self.resource_status_reason,
            resource_properties: self.resource_properties,
            client_request_token: self.client_request_token,
            hook_type: self.hook_type,
            hook_status: self.hook_status,
            hook_status_reason: self.hook_status_reason,
            hook_invocation_point: self.hook_invocation_point,
            hook_failure_mode: self.hook_failure_mode,
            detailed_status: self.detailed_status,
        }
    }
}