aws-sdk-lambda 1.121.0

AWS SDK for AWS Lambda
Documentation
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
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.

/// <p>An event that occurred during the execution of a durable function.</p>
#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct Event {
    /// <p>The type of event that occurred.</p>
    pub event_type: ::std::option::Option<crate::types::EventType>,
    /// <p>The subtype of the event, providing additional categorization.</p>
    pub sub_type: ::std::option::Option<::std::string::String>,
    /// <p>The unique identifier for this event. Event IDs increment sequentially.</p>
    pub event_id: i32,
    /// <p>The unique identifier for this operation.</p>
    pub id: ::std::option::Option<::std::string::String>,
    /// <p>The customer-provided name for this operation.</p>
    pub name: ::std::option::Option<::std::string::String>,
    /// <p>The date and time when this event occurred, in <a href="https://www.w3.org/TR/NOTE-datetime">ISO-8601 format</a> (YYYY-MM-DDThh:mm:ss.sTZD).</p>
    pub event_timestamp: ::std::option::Option<::aws_smithy_types::DateTime>,
    /// <p>The unique identifier of the parent operation, if this operation is running within a child context.</p>
    pub parent_id: ::std::option::Option<::std::string::String>,
    /// <p>Details about an execution that started.</p>
    pub execution_started_details: ::std::option::Option<crate::types::ExecutionStartedDetails>,
    /// <p>Details about an execution that succeeded.</p>
    pub execution_succeeded_details: ::std::option::Option<crate::types::ExecutionSucceededDetails>,
    /// <p>Details about an execution that failed.</p>
    pub execution_failed_details: ::std::option::Option<crate::types::ExecutionFailedDetails>,
    /// <p>Details about an execution that timed out.</p>
    pub execution_timed_out_details: ::std::option::Option<crate::types::ExecutionTimedOutDetails>,
    /// <p>Details about an execution that was stopped.</p>
    pub execution_stopped_details: ::std::option::Option<crate::types::ExecutionStoppedDetails>,
    /// <p>Details about a context that started.</p>
    pub context_started_details: ::std::option::Option<crate::types::ContextStartedDetails>,
    /// <p>Details about a context that succeeded.</p>
    pub context_succeeded_details: ::std::option::Option<crate::types::ContextSucceededDetails>,
    /// <p>Details about a context that failed.</p>
    pub context_failed_details: ::std::option::Option<crate::types::ContextFailedDetails>,
    /// <p>Details about a wait operation that started.</p>
    pub wait_started_details: ::std::option::Option<crate::types::WaitStartedDetails>,
    /// <p>Details about a wait operation that succeeded.</p>
    pub wait_succeeded_details: ::std::option::Option<crate::types::WaitSucceededDetails>,
    /// <p>Details about a wait operation that was cancelled.</p>
    pub wait_cancelled_details: ::std::option::Option<crate::types::WaitCancelledDetails>,
    /// <p>Details about a step that started.</p>
    pub step_started_details: ::std::option::Option<crate::types::StepStartedDetails>,
    /// <p>Details about a step that succeeded.</p>
    pub step_succeeded_details: ::std::option::Option<crate::types::StepSucceededDetails>,
    /// <p>Details about a step that failed.</p>
    pub step_failed_details: ::std::option::Option<crate::types::StepFailedDetails>,
    /// <p>Contains details about a chained function invocation that has started execution, including start time and execution context.</p>
    pub chained_invoke_started_details: ::std::option::Option<crate::types::ChainedInvokeStartedDetails>,
    /// <p>Details about a chained invocation that succeeded.</p>
    pub chained_invoke_succeeded_details: ::std::option::Option<crate::types::ChainedInvokeSucceededDetails>,
    /// <p>Contains details about a failed chained function invocation, including error information and failure reason.</p>
    pub chained_invoke_failed_details: ::std::option::Option<crate::types::ChainedInvokeFailedDetails>,
    /// <p>Details about a chained invocation that timed out.</p>
    pub chained_invoke_timed_out_details: ::std::option::Option<crate::types::ChainedInvokeTimedOutDetails>,
    /// <p>Details about a chained invocation that was stopped.</p>
    pub chained_invoke_stopped_details: ::std::option::Option<crate::types::ChainedInvokeStoppedDetails>,
    /// <p>Contains details about a callback operation that has started, including timing information and callback metadata.</p>
    pub callback_started_details: ::std::option::Option<crate::types::CallbackStartedDetails>,
    /// <p>Contains details about a successfully completed callback operation, including the result data and completion timestamp.</p>
    pub callback_succeeded_details: ::std::option::Option<crate::types::CallbackSucceededDetails>,
    /// <p>Contains details about a failed callback operation, including error information and the reason for failure.</p>
    pub callback_failed_details: ::std::option::Option<crate::types::CallbackFailedDetails>,
    /// <p>Contains details about a callback operation that timed out, including timeout duration and any partial results.</p>
    pub callback_timed_out_details: ::std::option::Option<crate::types::CallbackTimedOutDetails>,
    /// <p>Details about a function invocation that completed.</p>
    pub invocation_completed_details: ::std::option::Option<crate::types::InvocationCompletedDetails>,
}
impl Event {
    /// <p>The type of event that occurred.</p>
    pub fn event_type(&self) -> ::std::option::Option<&crate::types::EventType> {
        self.event_type.as_ref()
    }
    /// <p>The subtype of the event, providing additional categorization.</p>
    pub fn sub_type(&self) -> ::std::option::Option<&str> {
        self.sub_type.as_deref()
    }
    /// <p>The unique identifier for this event. Event IDs increment sequentially.</p>
    pub fn event_id(&self) -> i32 {
        self.event_id
    }
    /// <p>The unique identifier for this operation.</p>
    pub fn id(&self) -> ::std::option::Option<&str> {
        self.id.as_deref()
    }
    /// <p>The customer-provided name for this operation.</p>
    pub fn name(&self) -> ::std::option::Option<&str> {
        self.name.as_deref()
    }
    /// <p>The date and time when this event occurred, in <a href="https://www.w3.org/TR/NOTE-datetime">ISO-8601 format</a> (YYYY-MM-DDThh:mm:ss.sTZD).</p>
    pub fn event_timestamp(&self) -> ::std::option::Option<&::aws_smithy_types::DateTime> {
        self.event_timestamp.as_ref()
    }
    /// <p>The unique identifier of the parent operation, if this operation is running within a child context.</p>
    pub fn parent_id(&self) -> ::std::option::Option<&str> {
        self.parent_id.as_deref()
    }
    /// <p>Details about an execution that started.</p>
    pub fn execution_started_details(&self) -> ::std::option::Option<&crate::types::ExecutionStartedDetails> {
        self.execution_started_details.as_ref()
    }
    /// <p>Details about an execution that succeeded.</p>
    pub fn execution_succeeded_details(&self) -> ::std::option::Option<&crate::types::ExecutionSucceededDetails> {
        self.execution_succeeded_details.as_ref()
    }
    /// <p>Details about an execution that failed.</p>
    pub fn execution_failed_details(&self) -> ::std::option::Option<&crate::types::ExecutionFailedDetails> {
        self.execution_failed_details.as_ref()
    }
    /// <p>Details about an execution that timed out.</p>
    pub fn execution_timed_out_details(&self) -> ::std::option::Option<&crate::types::ExecutionTimedOutDetails> {
        self.execution_timed_out_details.as_ref()
    }
    /// <p>Details about an execution that was stopped.</p>
    pub fn execution_stopped_details(&self) -> ::std::option::Option<&crate::types::ExecutionStoppedDetails> {
        self.execution_stopped_details.as_ref()
    }
    /// <p>Details about a context that started.</p>
    pub fn context_started_details(&self) -> ::std::option::Option<&crate::types::ContextStartedDetails> {
        self.context_started_details.as_ref()
    }
    /// <p>Details about a context that succeeded.</p>
    pub fn context_succeeded_details(&self) -> ::std::option::Option<&crate::types::ContextSucceededDetails> {
        self.context_succeeded_details.as_ref()
    }
    /// <p>Details about a context that failed.</p>
    pub fn context_failed_details(&self) -> ::std::option::Option<&crate::types::ContextFailedDetails> {
        self.context_failed_details.as_ref()
    }
    /// <p>Details about a wait operation that started.</p>
    pub fn wait_started_details(&self) -> ::std::option::Option<&crate::types::WaitStartedDetails> {
        self.wait_started_details.as_ref()
    }
    /// <p>Details about a wait operation that succeeded.</p>
    pub fn wait_succeeded_details(&self) -> ::std::option::Option<&crate::types::WaitSucceededDetails> {
        self.wait_succeeded_details.as_ref()
    }
    /// <p>Details about a wait operation that was cancelled.</p>
    pub fn wait_cancelled_details(&self) -> ::std::option::Option<&crate::types::WaitCancelledDetails> {
        self.wait_cancelled_details.as_ref()
    }
    /// <p>Details about a step that started.</p>
    pub fn step_started_details(&self) -> ::std::option::Option<&crate::types::StepStartedDetails> {
        self.step_started_details.as_ref()
    }
    /// <p>Details about a step that succeeded.</p>
    pub fn step_succeeded_details(&self) -> ::std::option::Option<&crate::types::StepSucceededDetails> {
        self.step_succeeded_details.as_ref()
    }
    /// <p>Details about a step that failed.</p>
    pub fn step_failed_details(&self) -> ::std::option::Option<&crate::types::StepFailedDetails> {
        self.step_failed_details.as_ref()
    }
    /// <p>Contains details about a chained function invocation that has started execution, including start time and execution context.</p>
    pub fn chained_invoke_started_details(&self) -> ::std::option::Option<&crate::types::ChainedInvokeStartedDetails> {
        self.chained_invoke_started_details.as_ref()
    }
    /// <p>Details about a chained invocation that succeeded.</p>
    pub fn chained_invoke_succeeded_details(&self) -> ::std::option::Option<&crate::types::ChainedInvokeSucceededDetails> {
        self.chained_invoke_succeeded_details.as_ref()
    }
    /// <p>Contains details about a failed chained function invocation, including error information and failure reason.</p>
    pub fn chained_invoke_failed_details(&self) -> ::std::option::Option<&crate::types::ChainedInvokeFailedDetails> {
        self.chained_invoke_failed_details.as_ref()
    }
    /// <p>Details about a chained invocation that timed out.</p>
    pub fn chained_invoke_timed_out_details(&self) -> ::std::option::Option<&crate::types::ChainedInvokeTimedOutDetails> {
        self.chained_invoke_timed_out_details.as_ref()
    }
    /// <p>Details about a chained invocation that was stopped.</p>
    pub fn chained_invoke_stopped_details(&self) -> ::std::option::Option<&crate::types::ChainedInvokeStoppedDetails> {
        self.chained_invoke_stopped_details.as_ref()
    }
    /// <p>Contains details about a callback operation that has started, including timing information and callback metadata.</p>
    pub fn callback_started_details(&self) -> ::std::option::Option<&crate::types::CallbackStartedDetails> {
        self.callback_started_details.as_ref()
    }
    /// <p>Contains details about a successfully completed callback operation, including the result data and completion timestamp.</p>
    pub fn callback_succeeded_details(&self) -> ::std::option::Option<&crate::types::CallbackSucceededDetails> {
        self.callback_succeeded_details.as_ref()
    }
    /// <p>Contains details about a failed callback operation, including error information and the reason for failure.</p>
    pub fn callback_failed_details(&self) -> ::std::option::Option<&crate::types::CallbackFailedDetails> {
        self.callback_failed_details.as_ref()
    }
    /// <p>Contains details about a callback operation that timed out, including timeout duration and any partial results.</p>
    pub fn callback_timed_out_details(&self) -> ::std::option::Option<&crate::types::CallbackTimedOutDetails> {
        self.callback_timed_out_details.as_ref()
    }
    /// <p>Details about a function invocation that completed.</p>
    pub fn invocation_completed_details(&self) -> ::std::option::Option<&crate::types::InvocationCompletedDetails> {
        self.invocation_completed_details.as_ref()
    }
}
impl Event {
    /// Creates a new builder-style object to manufacture [`Event`](crate::types::Event).
    pub fn builder() -> crate::types::builders::EventBuilder {
        crate::types::builders::EventBuilder::default()
    }
}

/// A builder for [`Event`](crate::types::Event).
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct EventBuilder {
    pub(crate) event_type: ::std::option::Option<crate::types::EventType>,
    pub(crate) sub_type: ::std::option::Option<::std::string::String>,
    pub(crate) event_id: ::std::option::Option<i32>,
    pub(crate) id: ::std::option::Option<::std::string::String>,
    pub(crate) name: ::std::option::Option<::std::string::String>,
    pub(crate) event_timestamp: ::std::option::Option<::aws_smithy_types::DateTime>,
    pub(crate) parent_id: ::std::option::Option<::std::string::String>,
    pub(crate) execution_started_details: ::std::option::Option<crate::types::ExecutionStartedDetails>,
    pub(crate) execution_succeeded_details: ::std::option::Option<crate::types::ExecutionSucceededDetails>,
    pub(crate) execution_failed_details: ::std::option::Option<crate::types::ExecutionFailedDetails>,
    pub(crate) execution_timed_out_details: ::std::option::Option<crate::types::ExecutionTimedOutDetails>,
    pub(crate) execution_stopped_details: ::std::option::Option<crate::types::ExecutionStoppedDetails>,
    pub(crate) context_started_details: ::std::option::Option<crate::types::ContextStartedDetails>,
    pub(crate) context_succeeded_details: ::std::option::Option<crate::types::ContextSucceededDetails>,
    pub(crate) context_failed_details: ::std::option::Option<crate::types::ContextFailedDetails>,
    pub(crate) wait_started_details: ::std::option::Option<crate::types::WaitStartedDetails>,
    pub(crate) wait_succeeded_details: ::std::option::Option<crate::types::WaitSucceededDetails>,
    pub(crate) wait_cancelled_details: ::std::option::Option<crate::types::WaitCancelledDetails>,
    pub(crate) step_started_details: ::std::option::Option<crate::types::StepStartedDetails>,
    pub(crate) step_succeeded_details: ::std::option::Option<crate::types::StepSucceededDetails>,
    pub(crate) step_failed_details: ::std::option::Option<crate::types::StepFailedDetails>,
    pub(crate) chained_invoke_started_details: ::std::option::Option<crate::types::ChainedInvokeStartedDetails>,
    pub(crate) chained_invoke_succeeded_details: ::std::option::Option<crate::types::ChainedInvokeSucceededDetails>,
    pub(crate) chained_invoke_failed_details: ::std::option::Option<crate::types::ChainedInvokeFailedDetails>,
    pub(crate) chained_invoke_timed_out_details: ::std::option::Option<crate::types::ChainedInvokeTimedOutDetails>,
    pub(crate) chained_invoke_stopped_details: ::std::option::Option<crate::types::ChainedInvokeStoppedDetails>,
    pub(crate) callback_started_details: ::std::option::Option<crate::types::CallbackStartedDetails>,
    pub(crate) callback_succeeded_details: ::std::option::Option<crate::types::CallbackSucceededDetails>,
    pub(crate) callback_failed_details: ::std::option::Option<crate::types::CallbackFailedDetails>,
    pub(crate) callback_timed_out_details: ::std::option::Option<crate::types::CallbackTimedOutDetails>,
    pub(crate) invocation_completed_details: ::std::option::Option<crate::types::InvocationCompletedDetails>,
}
impl EventBuilder {
    /// <p>The type of event that occurred.</p>
    pub fn event_type(mut self, input: crate::types::EventType) -> Self {
        self.event_type = ::std::option::Option::Some(input);
        self
    }
    /// <p>The type of event that occurred.</p>
    pub fn set_event_type(mut self, input: ::std::option::Option<crate::types::EventType>) -> Self {
        self.event_type = input;
        self
    }
    /// <p>The type of event that occurred.</p>
    pub fn get_event_type(&self) -> &::std::option::Option<crate::types::EventType> {
        &self.event_type
    }
    /// <p>The subtype of the event, providing additional categorization.</p>
    pub fn sub_type(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.sub_type = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>The subtype of the event, providing additional categorization.</p>
    pub fn set_sub_type(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.sub_type = input;
        self
    }
    /// <p>The subtype of the event, providing additional categorization.</p>
    pub fn get_sub_type(&self) -> &::std::option::Option<::std::string::String> {
        &self.sub_type
    }
    /// <p>The unique identifier for this event. Event IDs increment sequentially.</p>
    pub fn event_id(mut self, input: i32) -> Self {
        self.event_id = ::std::option::Option::Some(input);
        self
    }
    /// <p>The unique identifier for this event. Event IDs increment sequentially.</p>
    pub fn set_event_id(mut self, input: ::std::option::Option<i32>) -> Self {
        self.event_id = input;
        self
    }
    /// <p>The unique identifier for this event. Event IDs increment sequentially.</p>
    pub fn get_event_id(&self) -> &::std::option::Option<i32> {
        &self.event_id
    }
    /// <p>The unique identifier for this operation.</p>
    pub fn id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.id = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>The unique identifier for this operation.</p>
    pub fn set_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.id = input;
        self
    }
    /// <p>The unique identifier for this operation.</p>
    pub fn get_id(&self) -> &::std::option::Option<::std::string::String> {
        &self.id
    }
    /// <p>The customer-provided name for this operation.</p>
    pub fn name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.name = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>The customer-provided name for this operation.</p>
    pub fn set_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.name = input;
        self
    }
    /// <p>The customer-provided name for this operation.</p>
    pub fn get_name(&self) -> &::std::option::Option<::std::string::String> {
        &self.name
    }
    /// <p>The date and time when this event occurred, in <a href="https://www.w3.org/TR/NOTE-datetime">ISO-8601 format</a> (YYYY-MM-DDThh:mm:ss.sTZD).</p>
    pub fn event_timestamp(mut self, input: ::aws_smithy_types::DateTime) -> Self {
        self.event_timestamp = ::std::option::Option::Some(input);
        self
    }
    /// <p>The date and time when this event occurred, in <a href="https://www.w3.org/TR/NOTE-datetime">ISO-8601 format</a> (YYYY-MM-DDThh:mm:ss.sTZD).</p>
    pub fn set_event_timestamp(mut self, input: ::std::option::Option<::aws_smithy_types::DateTime>) -> Self {
        self.event_timestamp = input;
        self
    }
    /// <p>The date and time when this event occurred, in <a href="https://www.w3.org/TR/NOTE-datetime">ISO-8601 format</a> (YYYY-MM-DDThh:mm:ss.sTZD).</p>
    pub fn get_event_timestamp(&self) -> &::std::option::Option<::aws_smithy_types::DateTime> {
        &self.event_timestamp
    }
    /// <p>The unique identifier of the parent operation, if this operation is running within a child context.</p>
    pub fn parent_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.parent_id = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>The unique identifier of the parent operation, if this operation is running within a child context.</p>
    pub fn set_parent_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.parent_id = input;
        self
    }
    /// <p>The unique identifier of the parent operation, if this operation is running within a child context.</p>
    pub fn get_parent_id(&self) -> &::std::option::Option<::std::string::String> {
        &self.parent_id
    }
    /// <p>Details about an execution that started.</p>
    pub fn execution_started_details(mut self, input: crate::types::ExecutionStartedDetails) -> Self {
        self.execution_started_details = ::std::option::Option::Some(input);
        self
    }
    /// <p>Details about an execution that started.</p>
    pub fn set_execution_started_details(mut self, input: ::std::option::Option<crate::types::ExecutionStartedDetails>) -> Self {
        self.execution_started_details = input;
        self
    }
    /// <p>Details about an execution that started.</p>
    pub fn get_execution_started_details(&self) -> &::std::option::Option<crate::types::ExecutionStartedDetails> {
        &self.execution_started_details
    }
    /// <p>Details about an execution that succeeded.</p>
    pub fn execution_succeeded_details(mut self, input: crate::types::ExecutionSucceededDetails) -> Self {
        self.execution_succeeded_details = ::std::option::Option::Some(input);
        self
    }
    /// <p>Details about an execution that succeeded.</p>
    pub fn set_execution_succeeded_details(mut self, input: ::std::option::Option<crate::types::ExecutionSucceededDetails>) -> Self {
        self.execution_succeeded_details = input;
        self
    }
    /// <p>Details about an execution that succeeded.</p>
    pub fn get_execution_succeeded_details(&self) -> &::std::option::Option<crate::types::ExecutionSucceededDetails> {
        &self.execution_succeeded_details
    }
    /// <p>Details about an execution that failed.</p>
    pub fn execution_failed_details(mut self, input: crate::types::ExecutionFailedDetails) -> Self {
        self.execution_failed_details = ::std::option::Option::Some(input);
        self
    }
    /// <p>Details about an execution that failed.</p>
    pub fn set_execution_failed_details(mut self, input: ::std::option::Option<crate::types::ExecutionFailedDetails>) -> Self {
        self.execution_failed_details = input;
        self
    }
    /// <p>Details about an execution that failed.</p>
    pub fn get_execution_failed_details(&self) -> &::std::option::Option<crate::types::ExecutionFailedDetails> {
        &self.execution_failed_details
    }
    /// <p>Details about an execution that timed out.</p>
    pub fn execution_timed_out_details(mut self, input: crate::types::ExecutionTimedOutDetails) -> Self {
        self.execution_timed_out_details = ::std::option::Option::Some(input);
        self
    }
    /// <p>Details about an execution that timed out.</p>
    pub fn set_execution_timed_out_details(mut self, input: ::std::option::Option<crate::types::ExecutionTimedOutDetails>) -> Self {
        self.execution_timed_out_details = input;
        self
    }
    /// <p>Details about an execution that timed out.</p>
    pub fn get_execution_timed_out_details(&self) -> &::std::option::Option<crate::types::ExecutionTimedOutDetails> {
        &self.execution_timed_out_details
    }
    /// <p>Details about an execution that was stopped.</p>
    pub fn execution_stopped_details(mut self, input: crate::types::ExecutionStoppedDetails) -> Self {
        self.execution_stopped_details = ::std::option::Option::Some(input);
        self
    }
    /// <p>Details about an execution that was stopped.</p>
    pub fn set_execution_stopped_details(mut self, input: ::std::option::Option<crate::types::ExecutionStoppedDetails>) -> Self {
        self.execution_stopped_details = input;
        self
    }
    /// <p>Details about an execution that was stopped.</p>
    pub fn get_execution_stopped_details(&self) -> &::std::option::Option<crate::types::ExecutionStoppedDetails> {
        &self.execution_stopped_details
    }
    /// <p>Details about a context that started.</p>
    pub fn context_started_details(mut self, input: crate::types::ContextStartedDetails) -> Self {
        self.context_started_details = ::std::option::Option::Some(input);
        self
    }
    /// <p>Details about a context that started.</p>
    pub fn set_context_started_details(mut self, input: ::std::option::Option<crate::types::ContextStartedDetails>) -> Self {
        self.context_started_details = input;
        self
    }
    /// <p>Details about a context that started.</p>
    pub fn get_context_started_details(&self) -> &::std::option::Option<crate::types::ContextStartedDetails> {
        &self.context_started_details
    }
    /// <p>Details about a context that succeeded.</p>
    pub fn context_succeeded_details(mut self, input: crate::types::ContextSucceededDetails) -> Self {
        self.context_succeeded_details = ::std::option::Option::Some(input);
        self
    }
    /// <p>Details about a context that succeeded.</p>
    pub fn set_context_succeeded_details(mut self, input: ::std::option::Option<crate::types::ContextSucceededDetails>) -> Self {
        self.context_succeeded_details = input;
        self
    }
    /// <p>Details about a context that succeeded.</p>
    pub fn get_context_succeeded_details(&self) -> &::std::option::Option<crate::types::ContextSucceededDetails> {
        &self.context_succeeded_details
    }
    /// <p>Details about a context that failed.</p>
    pub fn context_failed_details(mut self, input: crate::types::ContextFailedDetails) -> Self {
        self.context_failed_details = ::std::option::Option::Some(input);
        self
    }
    /// <p>Details about a context that failed.</p>
    pub fn set_context_failed_details(mut self, input: ::std::option::Option<crate::types::ContextFailedDetails>) -> Self {
        self.context_failed_details = input;
        self
    }
    /// <p>Details about a context that failed.</p>
    pub fn get_context_failed_details(&self) -> &::std::option::Option<crate::types::ContextFailedDetails> {
        &self.context_failed_details
    }
    /// <p>Details about a wait operation that started.</p>
    pub fn wait_started_details(mut self, input: crate::types::WaitStartedDetails) -> Self {
        self.wait_started_details = ::std::option::Option::Some(input);
        self
    }
    /// <p>Details about a wait operation that started.</p>
    pub fn set_wait_started_details(mut self, input: ::std::option::Option<crate::types::WaitStartedDetails>) -> Self {
        self.wait_started_details = input;
        self
    }
    /// <p>Details about a wait operation that started.</p>
    pub fn get_wait_started_details(&self) -> &::std::option::Option<crate::types::WaitStartedDetails> {
        &self.wait_started_details
    }
    /// <p>Details about a wait operation that succeeded.</p>
    pub fn wait_succeeded_details(mut self, input: crate::types::WaitSucceededDetails) -> Self {
        self.wait_succeeded_details = ::std::option::Option::Some(input);
        self
    }
    /// <p>Details about a wait operation that succeeded.</p>
    pub fn set_wait_succeeded_details(mut self, input: ::std::option::Option<crate::types::WaitSucceededDetails>) -> Self {
        self.wait_succeeded_details = input;
        self
    }
    /// <p>Details about a wait operation that succeeded.</p>
    pub fn get_wait_succeeded_details(&self) -> &::std::option::Option<crate::types::WaitSucceededDetails> {
        &self.wait_succeeded_details
    }
    /// <p>Details about a wait operation that was cancelled.</p>
    pub fn wait_cancelled_details(mut self, input: crate::types::WaitCancelledDetails) -> Self {
        self.wait_cancelled_details = ::std::option::Option::Some(input);
        self
    }
    /// <p>Details about a wait operation that was cancelled.</p>
    pub fn set_wait_cancelled_details(mut self, input: ::std::option::Option<crate::types::WaitCancelledDetails>) -> Self {
        self.wait_cancelled_details = input;
        self
    }
    /// <p>Details about a wait operation that was cancelled.</p>
    pub fn get_wait_cancelled_details(&self) -> &::std::option::Option<crate::types::WaitCancelledDetails> {
        &self.wait_cancelled_details
    }
    /// <p>Details about a step that started.</p>
    pub fn step_started_details(mut self, input: crate::types::StepStartedDetails) -> Self {
        self.step_started_details = ::std::option::Option::Some(input);
        self
    }
    /// <p>Details about a step that started.</p>
    pub fn set_step_started_details(mut self, input: ::std::option::Option<crate::types::StepStartedDetails>) -> Self {
        self.step_started_details = input;
        self
    }
    /// <p>Details about a step that started.</p>
    pub fn get_step_started_details(&self) -> &::std::option::Option<crate::types::StepStartedDetails> {
        &self.step_started_details
    }
    /// <p>Details about a step that succeeded.</p>
    pub fn step_succeeded_details(mut self, input: crate::types::StepSucceededDetails) -> Self {
        self.step_succeeded_details = ::std::option::Option::Some(input);
        self
    }
    /// <p>Details about a step that succeeded.</p>
    pub fn set_step_succeeded_details(mut self, input: ::std::option::Option<crate::types::StepSucceededDetails>) -> Self {
        self.step_succeeded_details = input;
        self
    }
    /// <p>Details about a step that succeeded.</p>
    pub fn get_step_succeeded_details(&self) -> &::std::option::Option<crate::types::StepSucceededDetails> {
        &self.step_succeeded_details
    }
    /// <p>Details about a step that failed.</p>
    pub fn step_failed_details(mut self, input: crate::types::StepFailedDetails) -> Self {
        self.step_failed_details = ::std::option::Option::Some(input);
        self
    }
    /// <p>Details about a step that failed.</p>
    pub fn set_step_failed_details(mut self, input: ::std::option::Option<crate::types::StepFailedDetails>) -> Self {
        self.step_failed_details = input;
        self
    }
    /// <p>Details about a step that failed.</p>
    pub fn get_step_failed_details(&self) -> &::std::option::Option<crate::types::StepFailedDetails> {
        &self.step_failed_details
    }
    /// <p>Contains details about a chained function invocation that has started execution, including start time and execution context.</p>
    pub fn chained_invoke_started_details(mut self, input: crate::types::ChainedInvokeStartedDetails) -> Self {
        self.chained_invoke_started_details = ::std::option::Option::Some(input);
        self
    }
    /// <p>Contains details about a chained function invocation that has started execution, including start time and execution context.</p>
    pub fn set_chained_invoke_started_details(mut self, input: ::std::option::Option<crate::types::ChainedInvokeStartedDetails>) -> Self {
        self.chained_invoke_started_details = input;
        self
    }
    /// <p>Contains details about a chained function invocation that has started execution, including start time and execution context.</p>
    pub fn get_chained_invoke_started_details(&self) -> &::std::option::Option<crate::types::ChainedInvokeStartedDetails> {
        &self.chained_invoke_started_details
    }
    /// <p>Details about a chained invocation that succeeded.</p>
    pub fn chained_invoke_succeeded_details(mut self, input: crate::types::ChainedInvokeSucceededDetails) -> Self {
        self.chained_invoke_succeeded_details = ::std::option::Option::Some(input);
        self
    }
    /// <p>Details about a chained invocation that succeeded.</p>
    pub fn set_chained_invoke_succeeded_details(mut self, input: ::std::option::Option<crate::types::ChainedInvokeSucceededDetails>) -> Self {
        self.chained_invoke_succeeded_details = input;
        self
    }
    /// <p>Details about a chained invocation that succeeded.</p>
    pub fn get_chained_invoke_succeeded_details(&self) -> &::std::option::Option<crate::types::ChainedInvokeSucceededDetails> {
        &self.chained_invoke_succeeded_details
    }
    /// <p>Contains details about a failed chained function invocation, including error information and failure reason.</p>
    pub fn chained_invoke_failed_details(mut self, input: crate::types::ChainedInvokeFailedDetails) -> Self {
        self.chained_invoke_failed_details = ::std::option::Option::Some(input);
        self
    }
    /// <p>Contains details about a failed chained function invocation, including error information and failure reason.</p>
    pub fn set_chained_invoke_failed_details(mut self, input: ::std::option::Option<crate::types::ChainedInvokeFailedDetails>) -> Self {
        self.chained_invoke_failed_details = input;
        self
    }
    /// <p>Contains details about a failed chained function invocation, including error information and failure reason.</p>
    pub fn get_chained_invoke_failed_details(&self) -> &::std::option::Option<crate::types::ChainedInvokeFailedDetails> {
        &self.chained_invoke_failed_details
    }
    /// <p>Details about a chained invocation that timed out.</p>
    pub fn chained_invoke_timed_out_details(mut self, input: crate::types::ChainedInvokeTimedOutDetails) -> Self {
        self.chained_invoke_timed_out_details = ::std::option::Option::Some(input);
        self
    }
    /// <p>Details about a chained invocation that timed out.</p>
    pub fn set_chained_invoke_timed_out_details(mut self, input: ::std::option::Option<crate::types::ChainedInvokeTimedOutDetails>) -> Self {
        self.chained_invoke_timed_out_details = input;
        self
    }
    /// <p>Details about a chained invocation that timed out.</p>
    pub fn get_chained_invoke_timed_out_details(&self) -> &::std::option::Option<crate::types::ChainedInvokeTimedOutDetails> {
        &self.chained_invoke_timed_out_details
    }
    /// <p>Details about a chained invocation that was stopped.</p>
    pub fn chained_invoke_stopped_details(mut self, input: crate::types::ChainedInvokeStoppedDetails) -> Self {
        self.chained_invoke_stopped_details = ::std::option::Option::Some(input);
        self
    }
    /// <p>Details about a chained invocation that was stopped.</p>
    pub fn set_chained_invoke_stopped_details(mut self, input: ::std::option::Option<crate::types::ChainedInvokeStoppedDetails>) -> Self {
        self.chained_invoke_stopped_details = input;
        self
    }
    /// <p>Details about a chained invocation that was stopped.</p>
    pub fn get_chained_invoke_stopped_details(&self) -> &::std::option::Option<crate::types::ChainedInvokeStoppedDetails> {
        &self.chained_invoke_stopped_details
    }
    /// <p>Contains details about a callback operation that has started, including timing information and callback metadata.</p>
    pub fn callback_started_details(mut self, input: crate::types::CallbackStartedDetails) -> Self {
        self.callback_started_details = ::std::option::Option::Some(input);
        self
    }
    /// <p>Contains details about a callback operation that has started, including timing information and callback metadata.</p>
    pub fn set_callback_started_details(mut self, input: ::std::option::Option<crate::types::CallbackStartedDetails>) -> Self {
        self.callback_started_details = input;
        self
    }
    /// <p>Contains details about a callback operation that has started, including timing information and callback metadata.</p>
    pub fn get_callback_started_details(&self) -> &::std::option::Option<crate::types::CallbackStartedDetails> {
        &self.callback_started_details
    }
    /// <p>Contains details about a successfully completed callback operation, including the result data and completion timestamp.</p>
    pub fn callback_succeeded_details(mut self, input: crate::types::CallbackSucceededDetails) -> Self {
        self.callback_succeeded_details = ::std::option::Option::Some(input);
        self
    }
    /// <p>Contains details about a successfully completed callback operation, including the result data and completion timestamp.</p>
    pub fn set_callback_succeeded_details(mut self, input: ::std::option::Option<crate::types::CallbackSucceededDetails>) -> Self {
        self.callback_succeeded_details = input;
        self
    }
    /// <p>Contains details about a successfully completed callback operation, including the result data and completion timestamp.</p>
    pub fn get_callback_succeeded_details(&self) -> &::std::option::Option<crate::types::CallbackSucceededDetails> {
        &self.callback_succeeded_details
    }
    /// <p>Contains details about a failed callback operation, including error information and the reason for failure.</p>
    pub fn callback_failed_details(mut self, input: crate::types::CallbackFailedDetails) -> Self {
        self.callback_failed_details = ::std::option::Option::Some(input);
        self
    }
    /// <p>Contains details about a failed callback operation, including error information and the reason for failure.</p>
    pub fn set_callback_failed_details(mut self, input: ::std::option::Option<crate::types::CallbackFailedDetails>) -> Self {
        self.callback_failed_details = input;
        self
    }
    /// <p>Contains details about a failed callback operation, including error information and the reason for failure.</p>
    pub fn get_callback_failed_details(&self) -> &::std::option::Option<crate::types::CallbackFailedDetails> {
        &self.callback_failed_details
    }
    /// <p>Contains details about a callback operation that timed out, including timeout duration and any partial results.</p>
    pub fn callback_timed_out_details(mut self, input: crate::types::CallbackTimedOutDetails) -> Self {
        self.callback_timed_out_details = ::std::option::Option::Some(input);
        self
    }
    /// <p>Contains details about a callback operation that timed out, including timeout duration and any partial results.</p>
    pub fn set_callback_timed_out_details(mut self, input: ::std::option::Option<crate::types::CallbackTimedOutDetails>) -> Self {
        self.callback_timed_out_details = input;
        self
    }
    /// <p>Contains details about a callback operation that timed out, including timeout duration and any partial results.</p>
    pub fn get_callback_timed_out_details(&self) -> &::std::option::Option<crate::types::CallbackTimedOutDetails> {
        &self.callback_timed_out_details
    }
    /// <p>Details about a function invocation that completed.</p>
    pub fn invocation_completed_details(mut self, input: crate::types::InvocationCompletedDetails) -> Self {
        self.invocation_completed_details = ::std::option::Option::Some(input);
        self
    }
    /// <p>Details about a function invocation that completed.</p>
    pub fn set_invocation_completed_details(mut self, input: ::std::option::Option<crate::types::InvocationCompletedDetails>) -> Self {
        self.invocation_completed_details = input;
        self
    }
    /// <p>Details about a function invocation that completed.</p>
    pub fn get_invocation_completed_details(&self) -> &::std::option::Option<crate::types::InvocationCompletedDetails> {
        &self.invocation_completed_details
    }
    /// Consumes the builder and constructs a [`Event`](crate::types::Event).
    pub fn build(self) -> crate::types::Event {
        crate::types::Event {
            event_type: self.event_type,
            sub_type: self.sub_type,
            event_id: self.event_id.unwrap_or(1),
            id: self.id,
            name: self.name,
            event_timestamp: self.event_timestamp,
            parent_id: self.parent_id,
            execution_started_details: self.execution_started_details,
            execution_succeeded_details: self.execution_succeeded_details,
            execution_failed_details: self.execution_failed_details,
            execution_timed_out_details: self.execution_timed_out_details,
            execution_stopped_details: self.execution_stopped_details,
            context_started_details: self.context_started_details,
            context_succeeded_details: self.context_succeeded_details,
            context_failed_details: self.context_failed_details,
            wait_started_details: self.wait_started_details,
            wait_succeeded_details: self.wait_succeeded_details,
            wait_cancelled_details: self.wait_cancelled_details,
            step_started_details: self.step_started_details,
            step_succeeded_details: self.step_succeeded_details,
            step_failed_details: self.step_failed_details,
            chained_invoke_started_details: self.chained_invoke_started_details,
            chained_invoke_succeeded_details: self.chained_invoke_succeeded_details,
            chained_invoke_failed_details: self.chained_invoke_failed_details,
            chained_invoke_timed_out_details: self.chained_invoke_timed_out_details,
            chained_invoke_stopped_details: self.chained_invoke_stopped_details,
            callback_started_details: self.callback_started_details,
            callback_succeeded_details: self.callback_succeeded_details,
            callback_failed_details: self.callback_failed_details,
            callback_timed_out_details: self.callback_timed_out_details,
            invocation_completed_details: self.invocation_completed_details,
        }
    }
}