aws-sdk-applicationinsights 1.103.0

AWS SDK for Amazon CloudWatch Application Insights
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
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.

/// <p>Describes an anomaly or error with the application.</p>
#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct Observation {
    /// <p>The ID of the observation type.</p>
    pub id: ::std::option::Option<::std::string::String>,
    /// <p>The time when the observation was first detected, in epoch seconds.</p>
    pub start_time: ::std::option::Option<::aws_smithy_types::DateTime>,
    /// <p>The time when the observation ended, in epoch seconds.</p>
    pub end_time: ::std::option::Option<::aws_smithy_types::DateTime>,
    /// <p>The source type of the observation.</p>
    pub source_type: ::std::option::Option<::std::string::String>,
    /// <p>The source resource ARN of the observation.</p>
    pub source_arn: ::std::option::Option<::std::string::String>,
    /// <p>The log group name.</p>
    pub log_group: ::std::option::Option<::std::string::String>,
    /// <p>The timestamp in the CloudWatch Logs that specifies when the matched line occurred.</p>
    pub line_time: ::std::option::Option<::aws_smithy_types::DateTime>,
    /// <p>The log text of the observation.</p>
    pub log_text: ::std::option::Option<::std::string::String>,
    /// <p>The log filter of the observation.</p>
    pub log_filter: ::std::option::Option<crate::types::LogFilter>,
    /// <p>The namespace of the observation metric.</p>
    pub metric_namespace: ::std::option::Option<::std::string::String>,
    /// <p>The name of the observation metric.</p>
    pub metric_name: ::std::option::Option<::std::string::String>,
    /// <p>The unit of the source observation metric.</p>
    pub unit: ::std::option::Option<::std::string::String>,
    /// <p>The value of the source observation metric.</p>
    pub value: ::std::option::Option<f64>,
    /// <p>The ID of the CloudWatch Event-based observation related to the detected problem.</p>
    pub cloud_watch_event_id: ::std::option::Option<::std::string::String>,
    /// <p>The source of the CloudWatch Event.</p>
    pub cloud_watch_event_source: ::std::option::Option<crate::types::CloudWatchEventSource>,
    /// <p>The detail type of the CloudWatch Event-based observation, for example, <code>EC2 Instance State-change Notification</code>.</p>
    pub cloud_watch_event_detail_type: ::std::option::Option<::std::string::String>,
    /// <p>The Amazon Resource Name (ARN) of the Health Event-based observation.</p>
    pub health_event_arn: ::std::option::Option<::std::string::String>,
    /// <p>The service to which the Health Event belongs, such as EC2.</p>
    pub health_service: ::std::option::Option<::std::string::String>,
    /// <p>The type of the Health event, for example, <code>AWS_EC2_POWER_CONNECTIVITY_ISSUE</code>.</p>
    pub health_event_type_code: ::std::option::Option<::std::string::String>,
    /// <p>The category of the Health event, such as <code>issue</code>.</p>
    pub health_event_type_category: ::std::option::Option<::std::string::String>,
    /// <p>The description of the Health event provided by the service, such as Amazon EC2.</p>
    pub health_event_description: ::std::option::Option<::std::string::String>,
    /// <p>The deployment ID of the CodeDeploy-based observation related to the detected problem.</p>
    pub code_deploy_deployment_id: ::std::option::Option<::std::string::String>,
    /// <p>The deployment group to which the CodeDeploy deployment belongs.</p>
    pub code_deploy_deployment_group: ::std::option::Option<::std::string::String>,
    /// <p>The status of the CodeDeploy deployment, for example <code>SUCCESS</code> or <code> FAILURE</code>.</p>
    pub code_deploy_state: ::std::option::Option<::std::string::String>,
    /// <p>The CodeDeploy application to which the deployment belongs.</p>
    pub code_deploy_application: ::std::option::Option<::std::string::String>,
    /// <p>The instance group to which the CodeDeploy instance belongs.</p>
    pub code_deploy_instance_group_id: ::std::option::Option<::std::string::String>,
    /// <p>The state of the instance, such as <code>STOPPING</code> or <code>TERMINATING</code>.</p>
    pub ec2_state: ::std::option::Option<::std::string::String>,
    /// <p>The category of an RDS event.</p>
    pub rds_event_categories: ::std::option::Option<::std::string::String>,
    /// <p>The message of an RDS event.</p>
    pub rds_event_message: ::std::option::Option<::std::string::String>,
    /// <p>The name of the S3 CloudWatch Event-based observation.</p>
    pub s3_event_name: ::std::option::Option<::std::string::String>,
    /// <p>The Amazon Resource Name (ARN) of the step function execution-based observation.</p>
    pub states_execution_arn: ::std::option::Option<::std::string::String>,
    /// <p>The Amazon Resource Name (ARN) of the step function-based observation.</p>
    pub states_arn: ::std::option::Option<::std::string::String>,
    /// <p>The status of the step function-related observation.</p>
    pub states_status: ::std::option::Option<::std::string::String>,
    /// <p>The input to the step function-based observation.</p>
    pub states_input: ::std::option::Option<::std::string::String>,
    /// <p>The type of EBS CloudWatch event, such as <code>createVolume</code>, <code>deleteVolume</code> or <code>attachVolume</code>.</p>
    pub ebs_event: ::std::option::Option<::std::string::String>,
    /// <p>The result of an EBS CloudWatch event, such as <code>failed</code> or <code>succeeded</code>.</p>
    pub ebs_result: ::std::option::Option<::std::string::String>,
    /// <p>The cause of an EBS CloudWatch event.</p>
    pub ebs_cause: ::std::option::Option<::std::string::String>,
    /// <p>The request ID of an EBS CloudWatch event.</p>
    pub ebs_request_id: ::std::option::Option<::std::string::String>,
    /// <p>The X-Ray request fault percentage for this node.</p>
    pub x_ray_fault_percent: ::std::option::Option<i32>,
    /// <p>The X-Ray request throttle percentage for this node.</p>
    pub x_ray_throttle_percent: ::std::option::Option<i32>,
    /// <p>The X-Ray request error percentage for this node.</p>
    pub x_ray_error_percent: ::std::option::Option<i32>,
    /// <p>The X-Ray request count for this node.</p>
    pub x_ray_request_count: ::std::option::Option<i32>,
    /// <p>The X-Ray node request average latency for this node.</p>
    pub x_ray_request_average_latency: ::std::option::Option<i64>,
    /// <p>The name of the X-Ray node.</p>
    pub x_ray_node_name: ::std::option::Option<::std::string::String>,
    /// <p>The type of the X-Ray node.</p>
    pub x_ray_node_type: ::std::option::Option<::std::string::String>,
}
impl Observation {
    /// <p>The ID of the observation type.</p>
    pub fn id(&self) -> ::std::option::Option<&str> {
        self.id.as_deref()
    }
    /// <p>The time when the observation was first detected, in epoch seconds.</p>
    pub fn start_time(&self) -> ::std::option::Option<&::aws_smithy_types::DateTime> {
        self.start_time.as_ref()
    }
    /// <p>The time when the observation ended, in epoch seconds.</p>
    pub fn end_time(&self) -> ::std::option::Option<&::aws_smithy_types::DateTime> {
        self.end_time.as_ref()
    }
    /// <p>The source type of the observation.</p>
    pub fn source_type(&self) -> ::std::option::Option<&str> {
        self.source_type.as_deref()
    }
    /// <p>The source resource ARN of the observation.</p>
    pub fn source_arn(&self) -> ::std::option::Option<&str> {
        self.source_arn.as_deref()
    }
    /// <p>The log group name.</p>
    pub fn log_group(&self) -> ::std::option::Option<&str> {
        self.log_group.as_deref()
    }
    /// <p>The timestamp in the CloudWatch Logs that specifies when the matched line occurred.</p>
    pub fn line_time(&self) -> ::std::option::Option<&::aws_smithy_types::DateTime> {
        self.line_time.as_ref()
    }
    /// <p>The log text of the observation.</p>
    pub fn log_text(&self) -> ::std::option::Option<&str> {
        self.log_text.as_deref()
    }
    /// <p>The log filter of the observation.</p>
    pub fn log_filter(&self) -> ::std::option::Option<&crate::types::LogFilter> {
        self.log_filter.as_ref()
    }
    /// <p>The namespace of the observation metric.</p>
    pub fn metric_namespace(&self) -> ::std::option::Option<&str> {
        self.metric_namespace.as_deref()
    }
    /// <p>The name of the observation metric.</p>
    pub fn metric_name(&self) -> ::std::option::Option<&str> {
        self.metric_name.as_deref()
    }
    /// <p>The unit of the source observation metric.</p>
    pub fn unit(&self) -> ::std::option::Option<&str> {
        self.unit.as_deref()
    }
    /// <p>The value of the source observation metric.</p>
    pub fn value(&self) -> ::std::option::Option<f64> {
        self.value
    }
    /// <p>The ID of the CloudWatch Event-based observation related to the detected problem.</p>
    pub fn cloud_watch_event_id(&self) -> ::std::option::Option<&str> {
        self.cloud_watch_event_id.as_deref()
    }
    /// <p>The source of the CloudWatch Event.</p>
    pub fn cloud_watch_event_source(&self) -> ::std::option::Option<&crate::types::CloudWatchEventSource> {
        self.cloud_watch_event_source.as_ref()
    }
    /// <p>The detail type of the CloudWatch Event-based observation, for example, <code>EC2 Instance State-change Notification</code>.</p>
    pub fn cloud_watch_event_detail_type(&self) -> ::std::option::Option<&str> {
        self.cloud_watch_event_detail_type.as_deref()
    }
    /// <p>The Amazon Resource Name (ARN) of the Health Event-based observation.</p>
    pub fn health_event_arn(&self) -> ::std::option::Option<&str> {
        self.health_event_arn.as_deref()
    }
    /// <p>The service to which the Health Event belongs, such as EC2.</p>
    pub fn health_service(&self) -> ::std::option::Option<&str> {
        self.health_service.as_deref()
    }
    /// <p>The type of the Health event, for example, <code>AWS_EC2_POWER_CONNECTIVITY_ISSUE</code>.</p>
    pub fn health_event_type_code(&self) -> ::std::option::Option<&str> {
        self.health_event_type_code.as_deref()
    }
    /// <p>The category of the Health event, such as <code>issue</code>.</p>
    pub fn health_event_type_category(&self) -> ::std::option::Option<&str> {
        self.health_event_type_category.as_deref()
    }
    /// <p>The description of the Health event provided by the service, such as Amazon EC2.</p>
    pub fn health_event_description(&self) -> ::std::option::Option<&str> {
        self.health_event_description.as_deref()
    }
    /// <p>The deployment ID of the CodeDeploy-based observation related to the detected problem.</p>
    pub fn code_deploy_deployment_id(&self) -> ::std::option::Option<&str> {
        self.code_deploy_deployment_id.as_deref()
    }
    /// <p>The deployment group to which the CodeDeploy deployment belongs.</p>
    pub fn code_deploy_deployment_group(&self) -> ::std::option::Option<&str> {
        self.code_deploy_deployment_group.as_deref()
    }
    /// <p>The status of the CodeDeploy deployment, for example <code>SUCCESS</code> or <code> FAILURE</code>.</p>
    pub fn code_deploy_state(&self) -> ::std::option::Option<&str> {
        self.code_deploy_state.as_deref()
    }
    /// <p>The CodeDeploy application to which the deployment belongs.</p>
    pub fn code_deploy_application(&self) -> ::std::option::Option<&str> {
        self.code_deploy_application.as_deref()
    }
    /// <p>The instance group to which the CodeDeploy instance belongs.</p>
    pub fn code_deploy_instance_group_id(&self) -> ::std::option::Option<&str> {
        self.code_deploy_instance_group_id.as_deref()
    }
    /// <p>The state of the instance, such as <code>STOPPING</code> or <code>TERMINATING</code>.</p>
    pub fn ec2_state(&self) -> ::std::option::Option<&str> {
        self.ec2_state.as_deref()
    }
    /// <p>The category of an RDS event.</p>
    pub fn rds_event_categories(&self) -> ::std::option::Option<&str> {
        self.rds_event_categories.as_deref()
    }
    /// <p>The message of an RDS event.</p>
    pub fn rds_event_message(&self) -> ::std::option::Option<&str> {
        self.rds_event_message.as_deref()
    }
    /// <p>The name of the S3 CloudWatch Event-based observation.</p>
    pub fn s3_event_name(&self) -> ::std::option::Option<&str> {
        self.s3_event_name.as_deref()
    }
    /// <p>The Amazon Resource Name (ARN) of the step function execution-based observation.</p>
    pub fn states_execution_arn(&self) -> ::std::option::Option<&str> {
        self.states_execution_arn.as_deref()
    }
    /// <p>The Amazon Resource Name (ARN) of the step function-based observation.</p>
    pub fn states_arn(&self) -> ::std::option::Option<&str> {
        self.states_arn.as_deref()
    }
    /// <p>The status of the step function-related observation.</p>
    pub fn states_status(&self) -> ::std::option::Option<&str> {
        self.states_status.as_deref()
    }
    /// <p>The input to the step function-based observation.</p>
    pub fn states_input(&self) -> ::std::option::Option<&str> {
        self.states_input.as_deref()
    }
    /// <p>The type of EBS CloudWatch event, such as <code>createVolume</code>, <code>deleteVolume</code> or <code>attachVolume</code>.</p>
    pub fn ebs_event(&self) -> ::std::option::Option<&str> {
        self.ebs_event.as_deref()
    }
    /// <p>The result of an EBS CloudWatch event, such as <code>failed</code> or <code>succeeded</code>.</p>
    pub fn ebs_result(&self) -> ::std::option::Option<&str> {
        self.ebs_result.as_deref()
    }
    /// <p>The cause of an EBS CloudWatch event.</p>
    pub fn ebs_cause(&self) -> ::std::option::Option<&str> {
        self.ebs_cause.as_deref()
    }
    /// <p>The request ID of an EBS CloudWatch event.</p>
    pub fn ebs_request_id(&self) -> ::std::option::Option<&str> {
        self.ebs_request_id.as_deref()
    }
    /// <p>The X-Ray request fault percentage for this node.</p>
    pub fn x_ray_fault_percent(&self) -> ::std::option::Option<i32> {
        self.x_ray_fault_percent
    }
    /// <p>The X-Ray request throttle percentage for this node.</p>
    pub fn x_ray_throttle_percent(&self) -> ::std::option::Option<i32> {
        self.x_ray_throttle_percent
    }
    /// <p>The X-Ray request error percentage for this node.</p>
    pub fn x_ray_error_percent(&self) -> ::std::option::Option<i32> {
        self.x_ray_error_percent
    }
    /// <p>The X-Ray request count for this node.</p>
    pub fn x_ray_request_count(&self) -> ::std::option::Option<i32> {
        self.x_ray_request_count
    }
    /// <p>The X-Ray node request average latency for this node.</p>
    pub fn x_ray_request_average_latency(&self) -> ::std::option::Option<i64> {
        self.x_ray_request_average_latency
    }
    /// <p>The name of the X-Ray node.</p>
    pub fn x_ray_node_name(&self) -> ::std::option::Option<&str> {
        self.x_ray_node_name.as_deref()
    }
    /// <p>The type of the X-Ray node.</p>
    pub fn x_ray_node_type(&self) -> ::std::option::Option<&str> {
        self.x_ray_node_type.as_deref()
    }
}
impl Observation {
    /// Creates a new builder-style object to manufacture [`Observation`](crate::types::Observation).
    pub fn builder() -> crate::types::builders::ObservationBuilder {
        crate::types::builders::ObservationBuilder::default()
    }
}

/// A builder for [`Observation`](crate::types::Observation).
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct ObservationBuilder {
    pub(crate) id: ::std::option::Option<::std::string::String>,
    pub(crate) start_time: ::std::option::Option<::aws_smithy_types::DateTime>,
    pub(crate) end_time: ::std::option::Option<::aws_smithy_types::DateTime>,
    pub(crate) source_type: ::std::option::Option<::std::string::String>,
    pub(crate) source_arn: ::std::option::Option<::std::string::String>,
    pub(crate) log_group: ::std::option::Option<::std::string::String>,
    pub(crate) line_time: ::std::option::Option<::aws_smithy_types::DateTime>,
    pub(crate) log_text: ::std::option::Option<::std::string::String>,
    pub(crate) log_filter: ::std::option::Option<crate::types::LogFilter>,
    pub(crate) metric_namespace: ::std::option::Option<::std::string::String>,
    pub(crate) metric_name: ::std::option::Option<::std::string::String>,
    pub(crate) unit: ::std::option::Option<::std::string::String>,
    pub(crate) value: ::std::option::Option<f64>,
    pub(crate) cloud_watch_event_id: ::std::option::Option<::std::string::String>,
    pub(crate) cloud_watch_event_source: ::std::option::Option<crate::types::CloudWatchEventSource>,
    pub(crate) cloud_watch_event_detail_type: ::std::option::Option<::std::string::String>,
    pub(crate) health_event_arn: ::std::option::Option<::std::string::String>,
    pub(crate) health_service: ::std::option::Option<::std::string::String>,
    pub(crate) health_event_type_code: ::std::option::Option<::std::string::String>,
    pub(crate) health_event_type_category: ::std::option::Option<::std::string::String>,
    pub(crate) health_event_description: ::std::option::Option<::std::string::String>,
    pub(crate) code_deploy_deployment_id: ::std::option::Option<::std::string::String>,
    pub(crate) code_deploy_deployment_group: ::std::option::Option<::std::string::String>,
    pub(crate) code_deploy_state: ::std::option::Option<::std::string::String>,
    pub(crate) code_deploy_application: ::std::option::Option<::std::string::String>,
    pub(crate) code_deploy_instance_group_id: ::std::option::Option<::std::string::String>,
    pub(crate) ec2_state: ::std::option::Option<::std::string::String>,
    pub(crate) rds_event_categories: ::std::option::Option<::std::string::String>,
    pub(crate) rds_event_message: ::std::option::Option<::std::string::String>,
    pub(crate) s3_event_name: ::std::option::Option<::std::string::String>,
    pub(crate) states_execution_arn: ::std::option::Option<::std::string::String>,
    pub(crate) states_arn: ::std::option::Option<::std::string::String>,
    pub(crate) states_status: ::std::option::Option<::std::string::String>,
    pub(crate) states_input: ::std::option::Option<::std::string::String>,
    pub(crate) ebs_event: ::std::option::Option<::std::string::String>,
    pub(crate) ebs_result: ::std::option::Option<::std::string::String>,
    pub(crate) ebs_cause: ::std::option::Option<::std::string::String>,
    pub(crate) ebs_request_id: ::std::option::Option<::std::string::String>,
    pub(crate) x_ray_fault_percent: ::std::option::Option<i32>,
    pub(crate) x_ray_throttle_percent: ::std::option::Option<i32>,
    pub(crate) x_ray_error_percent: ::std::option::Option<i32>,
    pub(crate) x_ray_request_count: ::std::option::Option<i32>,
    pub(crate) x_ray_request_average_latency: ::std::option::Option<i64>,
    pub(crate) x_ray_node_name: ::std::option::Option<::std::string::String>,
    pub(crate) x_ray_node_type: ::std::option::Option<::std::string::String>,
}
impl ObservationBuilder {
    /// <p>The ID of the observation type.</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 ID of the observation type.</p>
    pub fn set_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.id = input;
        self
    }
    /// <p>The ID of the observation type.</p>
    pub fn get_id(&self) -> &::std::option::Option<::std::string::String> {
        &self.id
    }
    /// <p>The time when the observation was first detected, in epoch seconds.</p>
    pub fn start_time(mut self, input: ::aws_smithy_types::DateTime) -> Self {
        self.start_time = ::std::option::Option::Some(input);
        self
    }
    /// <p>The time when the observation was first detected, in epoch seconds.</p>
    pub fn set_start_time(mut self, input: ::std::option::Option<::aws_smithy_types::DateTime>) -> Self {
        self.start_time = input;
        self
    }
    /// <p>The time when the observation was first detected, in epoch seconds.</p>
    pub fn get_start_time(&self) -> &::std::option::Option<::aws_smithy_types::DateTime> {
        &self.start_time
    }
    /// <p>The time when the observation ended, in epoch seconds.</p>
    pub fn end_time(mut self, input: ::aws_smithy_types::DateTime) -> Self {
        self.end_time = ::std::option::Option::Some(input);
        self
    }
    /// <p>The time when the observation ended, in epoch seconds.</p>
    pub fn set_end_time(mut self, input: ::std::option::Option<::aws_smithy_types::DateTime>) -> Self {
        self.end_time = input;
        self
    }
    /// <p>The time when the observation ended, in epoch seconds.</p>
    pub fn get_end_time(&self) -> &::std::option::Option<::aws_smithy_types::DateTime> {
        &self.end_time
    }
    /// <p>The source type of the observation.</p>
    pub fn source_type(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.source_type = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>The source type of the observation.</p>
    pub fn set_source_type(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.source_type = input;
        self
    }
    /// <p>The source type of the observation.</p>
    pub fn get_source_type(&self) -> &::std::option::Option<::std::string::String> {
        &self.source_type
    }
    /// <p>The source resource ARN of the observation.</p>
    pub fn source_arn(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.source_arn = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>The source resource ARN of the observation.</p>
    pub fn set_source_arn(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.source_arn = input;
        self
    }
    /// <p>The source resource ARN of the observation.</p>
    pub fn get_source_arn(&self) -> &::std::option::Option<::std::string::String> {
        &self.source_arn
    }
    /// <p>The log group name.</p>
    pub fn log_group(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.log_group = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>The log group name.</p>
    pub fn set_log_group(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.log_group = input;
        self
    }
    /// <p>The log group name.</p>
    pub fn get_log_group(&self) -> &::std::option::Option<::std::string::String> {
        &self.log_group
    }
    /// <p>The timestamp in the CloudWatch Logs that specifies when the matched line occurred.</p>
    pub fn line_time(mut self, input: ::aws_smithy_types::DateTime) -> Self {
        self.line_time = ::std::option::Option::Some(input);
        self
    }
    /// <p>The timestamp in the CloudWatch Logs that specifies when the matched line occurred.</p>
    pub fn set_line_time(mut self, input: ::std::option::Option<::aws_smithy_types::DateTime>) -> Self {
        self.line_time = input;
        self
    }
    /// <p>The timestamp in the CloudWatch Logs that specifies when the matched line occurred.</p>
    pub fn get_line_time(&self) -> &::std::option::Option<::aws_smithy_types::DateTime> {
        &self.line_time
    }
    /// <p>The log text of the observation.</p>
    pub fn log_text(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.log_text = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>The log text of the observation.</p>
    pub fn set_log_text(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.log_text = input;
        self
    }
    /// <p>The log text of the observation.</p>
    pub fn get_log_text(&self) -> &::std::option::Option<::std::string::String> {
        &self.log_text
    }
    /// <p>The log filter of the observation.</p>
    pub fn log_filter(mut self, input: crate::types::LogFilter) -> Self {
        self.log_filter = ::std::option::Option::Some(input);
        self
    }
    /// <p>The log filter of the observation.</p>
    pub fn set_log_filter(mut self, input: ::std::option::Option<crate::types::LogFilter>) -> Self {
        self.log_filter = input;
        self
    }
    /// <p>The log filter of the observation.</p>
    pub fn get_log_filter(&self) -> &::std::option::Option<crate::types::LogFilter> {
        &self.log_filter
    }
    /// <p>The namespace of the observation metric.</p>
    pub fn metric_namespace(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.metric_namespace = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>The namespace of the observation metric.</p>
    pub fn set_metric_namespace(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.metric_namespace = input;
        self
    }
    /// <p>The namespace of the observation metric.</p>
    pub fn get_metric_namespace(&self) -> &::std::option::Option<::std::string::String> {
        &self.metric_namespace
    }
    /// <p>The name of the observation metric.</p>
    pub fn metric_name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.metric_name = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>The name of the observation metric.</p>
    pub fn set_metric_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.metric_name = input;
        self
    }
    /// <p>The name of the observation metric.</p>
    pub fn get_metric_name(&self) -> &::std::option::Option<::std::string::String> {
        &self.metric_name
    }
    /// <p>The unit of the source observation metric.</p>
    pub fn unit(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.unit = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>The unit of the source observation metric.</p>
    pub fn set_unit(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.unit = input;
        self
    }
    /// <p>The unit of the source observation metric.</p>
    pub fn get_unit(&self) -> &::std::option::Option<::std::string::String> {
        &self.unit
    }
    /// <p>The value of the source observation metric.</p>
    pub fn value(mut self, input: f64) -> Self {
        self.value = ::std::option::Option::Some(input);
        self
    }
    /// <p>The value of the source observation metric.</p>
    pub fn set_value(mut self, input: ::std::option::Option<f64>) -> Self {
        self.value = input;
        self
    }
    /// <p>The value of the source observation metric.</p>
    pub fn get_value(&self) -> &::std::option::Option<f64> {
        &self.value
    }
    /// <p>The ID of the CloudWatch Event-based observation related to the detected problem.</p>
    pub fn cloud_watch_event_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.cloud_watch_event_id = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>The ID of the CloudWatch Event-based observation related to the detected problem.</p>
    pub fn set_cloud_watch_event_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.cloud_watch_event_id = input;
        self
    }
    /// <p>The ID of the CloudWatch Event-based observation related to the detected problem.</p>
    pub fn get_cloud_watch_event_id(&self) -> &::std::option::Option<::std::string::String> {
        &self.cloud_watch_event_id
    }
    /// <p>The source of the CloudWatch Event.</p>
    pub fn cloud_watch_event_source(mut self, input: crate::types::CloudWatchEventSource) -> Self {
        self.cloud_watch_event_source = ::std::option::Option::Some(input);
        self
    }
    /// <p>The source of the CloudWatch Event.</p>
    pub fn set_cloud_watch_event_source(mut self, input: ::std::option::Option<crate::types::CloudWatchEventSource>) -> Self {
        self.cloud_watch_event_source = input;
        self
    }
    /// <p>The source of the CloudWatch Event.</p>
    pub fn get_cloud_watch_event_source(&self) -> &::std::option::Option<crate::types::CloudWatchEventSource> {
        &self.cloud_watch_event_source
    }
    /// <p>The detail type of the CloudWatch Event-based observation, for example, <code>EC2 Instance State-change Notification</code>.</p>
    pub fn cloud_watch_event_detail_type(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.cloud_watch_event_detail_type = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>The detail type of the CloudWatch Event-based observation, for example, <code>EC2 Instance State-change Notification</code>.</p>
    pub fn set_cloud_watch_event_detail_type(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.cloud_watch_event_detail_type = input;
        self
    }
    /// <p>The detail type of the CloudWatch Event-based observation, for example, <code>EC2 Instance State-change Notification</code>.</p>
    pub fn get_cloud_watch_event_detail_type(&self) -> &::std::option::Option<::std::string::String> {
        &self.cloud_watch_event_detail_type
    }
    /// <p>The Amazon Resource Name (ARN) of the Health Event-based observation.</p>
    pub fn health_event_arn(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.health_event_arn = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>The Amazon Resource Name (ARN) of the Health Event-based observation.</p>
    pub fn set_health_event_arn(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.health_event_arn = input;
        self
    }
    /// <p>The Amazon Resource Name (ARN) of the Health Event-based observation.</p>
    pub fn get_health_event_arn(&self) -> &::std::option::Option<::std::string::String> {
        &self.health_event_arn
    }
    /// <p>The service to which the Health Event belongs, such as EC2.</p>
    pub fn health_service(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.health_service = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>The service to which the Health Event belongs, such as EC2.</p>
    pub fn set_health_service(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.health_service = input;
        self
    }
    /// <p>The service to which the Health Event belongs, such as EC2.</p>
    pub fn get_health_service(&self) -> &::std::option::Option<::std::string::String> {
        &self.health_service
    }
    /// <p>The type of the Health event, for example, <code>AWS_EC2_POWER_CONNECTIVITY_ISSUE</code>.</p>
    pub fn health_event_type_code(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.health_event_type_code = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>The type of the Health event, for example, <code>AWS_EC2_POWER_CONNECTIVITY_ISSUE</code>.</p>
    pub fn set_health_event_type_code(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.health_event_type_code = input;
        self
    }
    /// <p>The type of the Health event, for example, <code>AWS_EC2_POWER_CONNECTIVITY_ISSUE</code>.</p>
    pub fn get_health_event_type_code(&self) -> &::std::option::Option<::std::string::String> {
        &self.health_event_type_code
    }
    /// <p>The category of the Health event, such as <code>issue</code>.</p>
    pub fn health_event_type_category(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.health_event_type_category = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>The category of the Health event, such as <code>issue</code>.</p>
    pub fn set_health_event_type_category(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.health_event_type_category = input;
        self
    }
    /// <p>The category of the Health event, such as <code>issue</code>.</p>
    pub fn get_health_event_type_category(&self) -> &::std::option::Option<::std::string::String> {
        &self.health_event_type_category
    }
    /// <p>The description of the Health event provided by the service, such as Amazon EC2.</p>
    pub fn health_event_description(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.health_event_description = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>The description of the Health event provided by the service, such as Amazon EC2.</p>
    pub fn set_health_event_description(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.health_event_description = input;
        self
    }
    /// <p>The description of the Health event provided by the service, such as Amazon EC2.</p>
    pub fn get_health_event_description(&self) -> &::std::option::Option<::std::string::String> {
        &self.health_event_description
    }
    /// <p>The deployment ID of the CodeDeploy-based observation related to the detected problem.</p>
    pub fn code_deploy_deployment_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.code_deploy_deployment_id = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>The deployment ID of the CodeDeploy-based observation related to the detected problem.</p>
    pub fn set_code_deploy_deployment_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.code_deploy_deployment_id = input;
        self
    }
    /// <p>The deployment ID of the CodeDeploy-based observation related to the detected problem.</p>
    pub fn get_code_deploy_deployment_id(&self) -> &::std::option::Option<::std::string::String> {
        &self.code_deploy_deployment_id
    }
    /// <p>The deployment group to which the CodeDeploy deployment belongs.</p>
    pub fn code_deploy_deployment_group(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.code_deploy_deployment_group = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>The deployment group to which the CodeDeploy deployment belongs.</p>
    pub fn set_code_deploy_deployment_group(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.code_deploy_deployment_group = input;
        self
    }
    /// <p>The deployment group to which the CodeDeploy deployment belongs.</p>
    pub fn get_code_deploy_deployment_group(&self) -> &::std::option::Option<::std::string::String> {
        &self.code_deploy_deployment_group
    }
    /// <p>The status of the CodeDeploy deployment, for example <code>SUCCESS</code> or <code> FAILURE</code>.</p>
    pub fn code_deploy_state(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.code_deploy_state = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>The status of the CodeDeploy deployment, for example <code>SUCCESS</code> or <code> FAILURE</code>.</p>
    pub fn set_code_deploy_state(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.code_deploy_state = input;
        self
    }
    /// <p>The status of the CodeDeploy deployment, for example <code>SUCCESS</code> or <code> FAILURE</code>.</p>
    pub fn get_code_deploy_state(&self) -> &::std::option::Option<::std::string::String> {
        &self.code_deploy_state
    }
    /// <p>The CodeDeploy application to which the deployment belongs.</p>
    pub fn code_deploy_application(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.code_deploy_application = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>The CodeDeploy application to which the deployment belongs.</p>
    pub fn set_code_deploy_application(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.code_deploy_application = input;
        self
    }
    /// <p>The CodeDeploy application to which the deployment belongs.</p>
    pub fn get_code_deploy_application(&self) -> &::std::option::Option<::std::string::String> {
        &self.code_deploy_application
    }
    /// <p>The instance group to which the CodeDeploy instance belongs.</p>
    pub fn code_deploy_instance_group_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.code_deploy_instance_group_id = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>The instance group to which the CodeDeploy instance belongs.</p>
    pub fn set_code_deploy_instance_group_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.code_deploy_instance_group_id = input;
        self
    }
    /// <p>The instance group to which the CodeDeploy instance belongs.</p>
    pub fn get_code_deploy_instance_group_id(&self) -> &::std::option::Option<::std::string::String> {
        &self.code_deploy_instance_group_id
    }
    /// <p>The state of the instance, such as <code>STOPPING</code> or <code>TERMINATING</code>.</p>
    pub fn ec2_state(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.ec2_state = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>The state of the instance, such as <code>STOPPING</code> or <code>TERMINATING</code>.</p>
    pub fn set_ec2_state(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.ec2_state = input;
        self
    }
    /// <p>The state of the instance, such as <code>STOPPING</code> or <code>TERMINATING</code>.</p>
    pub fn get_ec2_state(&self) -> &::std::option::Option<::std::string::String> {
        &self.ec2_state
    }
    /// <p>The category of an RDS event.</p>
    pub fn rds_event_categories(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.rds_event_categories = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>The category of an RDS event.</p>
    pub fn set_rds_event_categories(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.rds_event_categories = input;
        self
    }
    /// <p>The category of an RDS event.</p>
    pub fn get_rds_event_categories(&self) -> &::std::option::Option<::std::string::String> {
        &self.rds_event_categories
    }
    /// <p>The message of an RDS event.</p>
    pub fn rds_event_message(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.rds_event_message = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>The message of an RDS event.</p>
    pub fn set_rds_event_message(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.rds_event_message = input;
        self
    }
    /// <p>The message of an RDS event.</p>
    pub fn get_rds_event_message(&self) -> &::std::option::Option<::std::string::String> {
        &self.rds_event_message
    }
    /// <p>The name of the S3 CloudWatch Event-based observation.</p>
    pub fn s3_event_name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.s3_event_name = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>The name of the S3 CloudWatch Event-based observation.</p>
    pub fn set_s3_event_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.s3_event_name = input;
        self
    }
    /// <p>The name of the S3 CloudWatch Event-based observation.</p>
    pub fn get_s3_event_name(&self) -> &::std::option::Option<::std::string::String> {
        &self.s3_event_name
    }
    /// <p>The Amazon Resource Name (ARN) of the step function execution-based observation.</p>
    pub fn states_execution_arn(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.states_execution_arn = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>The Amazon Resource Name (ARN) of the step function execution-based observation.</p>
    pub fn set_states_execution_arn(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.states_execution_arn = input;
        self
    }
    /// <p>The Amazon Resource Name (ARN) of the step function execution-based observation.</p>
    pub fn get_states_execution_arn(&self) -> &::std::option::Option<::std::string::String> {
        &self.states_execution_arn
    }
    /// <p>The Amazon Resource Name (ARN) of the step function-based observation.</p>
    pub fn states_arn(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.states_arn = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>The Amazon Resource Name (ARN) of the step function-based observation.</p>
    pub fn set_states_arn(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.states_arn = input;
        self
    }
    /// <p>The Amazon Resource Name (ARN) of the step function-based observation.</p>
    pub fn get_states_arn(&self) -> &::std::option::Option<::std::string::String> {
        &self.states_arn
    }
    /// <p>The status of the step function-related observation.</p>
    pub fn states_status(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.states_status = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>The status of the step function-related observation.</p>
    pub fn set_states_status(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.states_status = input;
        self
    }
    /// <p>The status of the step function-related observation.</p>
    pub fn get_states_status(&self) -> &::std::option::Option<::std::string::String> {
        &self.states_status
    }
    /// <p>The input to the step function-based observation.</p>
    pub fn states_input(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.states_input = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>The input to the step function-based observation.</p>
    pub fn set_states_input(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.states_input = input;
        self
    }
    /// <p>The input to the step function-based observation.</p>
    pub fn get_states_input(&self) -> &::std::option::Option<::std::string::String> {
        &self.states_input
    }
    /// <p>The type of EBS CloudWatch event, such as <code>createVolume</code>, <code>deleteVolume</code> or <code>attachVolume</code>.</p>
    pub fn ebs_event(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.ebs_event = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>The type of EBS CloudWatch event, such as <code>createVolume</code>, <code>deleteVolume</code> or <code>attachVolume</code>.</p>
    pub fn set_ebs_event(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.ebs_event = input;
        self
    }
    /// <p>The type of EBS CloudWatch event, such as <code>createVolume</code>, <code>deleteVolume</code> or <code>attachVolume</code>.</p>
    pub fn get_ebs_event(&self) -> &::std::option::Option<::std::string::String> {
        &self.ebs_event
    }
    /// <p>The result of an EBS CloudWatch event, such as <code>failed</code> or <code>succeeded</code>.</p>
    pub fn ebs_result(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.ebs_result = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>The result of an EBS CloudWatch event, such as <code>failed</code> or <code>succeeded</code>.</p>
    pub fn set_ebs_result(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.ebs_result = input;
        self
    }
    /// <p>The result of an EBS CloudWatch event, such as <code>failed</code> or <code>succeeded</code>.</p>
    pub fn get_ebs_result(&self) -> &::std::option::Option<::std::string::String> {
        &self.ebs_result
    }
    /// <p>The cause of an EBS CloudWatch event.</p>
    pub fn ebs_cause(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.ebs_cause = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>The cause of an EBS CloudWatch event.</p>
    pub fn set_ebs_cause(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.ebs_cause = input;
        self
    }
    /// <p>The cause of an EBS CloudWatch event.</p>
    pub fn get_ebs_cause(&self) -> &::std::option::Option<::std::string::String> {
        &self.ebs_cause
    }
    /// <p>The request ID of an EBS CloudWatch event.</p>
    pub fn ebs_request_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.ebs_request_id = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>The request ID of an EBS CloudWatch event.</p>
    pub fn set_ebs_request_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.ebs_request_id = input;
        self
    }
    /// <p>The request ID of an EBS CloudWatch event.</p>
    pub fn get_ebs_request_id(&self) -> &::std::option::Option<::std::string::String> {
        &self.ebs_request_id
    }
    /// <p>The X-Ray request fault percentage for this node.</p>
    pub fn x_ray_fault_percent(mut self, input: i32) -> Self {
        self.x_ray_fault_percent = ::std::option::Option::Some(input);
        self
    }
    /// <p>The X-Ray request fault percentage for this node.</p>
    pub fn set_x_ray_fault_percent(mut self, input: ::std::option::Option<i32>) -> Self {
        self.x_ray_fault_percent = input;
        self
    }
    /// <p>The X-Ray request fault percentage for this node.</p>
    pub fn get_x_ray_fault_percent(&self) -> &::std::option::Option<i32> {
        &self.x_ray_fault_percent
    }
    /// <p>The X-Ray request throttle percentage for this node.</p>
    pub fn x_ray_throttle_percent(mut self, input: i32) -> Self {
        self.x_ray_throttle_percent = ::std::option::Option::Some(input);
        self
    }
    /// <p>The X-Ray request throttle percentage for this node.</p>
    pub fn set_x_ray_throttle_percent(mut self, input: ::std::option::Option<i32>) -> Self {
        self.x_ray_throttle_percent = input;
        self
    }
    /// <p>The X-Ray request throttle percentage for this node.</p>
    pub fn get_x_ray_throttle_percent(&self) -> &::std::option::Option<i32> {
        &self.x_ray_throttle_percent
    }
    /// <p>The X-Ray request error percentage for this node.</p>
    pub fn x_ray_error_percent(mut self, input: i32) -> Self {
        self.x_ray_error_percent = ::std::option::Option::Some(input);
        self
    }
    /// <p>The X-Ray request error percentage for this node.</p>
    pub fn set_x_ray_error_percent(mut self, input: ::std::option::Option<i32>) -> Self {
        self.x_ray_error_percent = input;
        self
    }
    /// <p>The X-Ray request error percentage for this node.</p>
    pub fn get_x_ray_error_percent(&self) -> &::std::option::Option<i32> {
        &self.x_ray_error_percent
    }
    /// <p>The X-Ray request count for this node.</p>
    pub fn x_ray_request_count(mut self, input: i32) -> Self {
        self.x_ray_request_count = ::std::option::Option::Some(input);
        self
    }
    /// <p>The X-Ray request count for this node.</p>
    pub fn set_x_ray_request_count(mut self, input: ::std::option::Option<i32>) -> Self {
        self.x_ray_request_count = input;
        self
    }
    /// <p>The X-Ray request count for this node.</p>
    pub fn get_x_ray_request_count(&self) -> &::std::option::Option<i32> {
        &self.x_ray_request_count
    }
    /// <p>The X-Ray node request average latency for this node.</p>
    pub fn x_ray_request_average_latency(mut self, input: i64) -> Self {
        self.x_ray_request_average_latency = ::std::option::Option::Some(input);
        self
    }
    /// <p>The X-Ray node request average latency for this node.</p>
    pub fn set_x_ray_request_average_latency(mut self, input: ::std::option::Option<i64>) -> Self {
        self.x_ray_request_average_latency = input;
        self
    }
    /// <p>The X-Ray node request average latency for this node.</p>
    pub fn get_x_ray_request_average_latency(&self) -> &::std::option::Option<i64> {
        &self.x_ray_request_average_latency
    }
    /// <p>The name of the X-Ray node.</p>
    pub fn x_ray_node_name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.x_ray_node_name = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>The name of the X-Ray node.</p>
    pub fn set_x_ray_node_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.x_ray_node_name = input;
        self
    }
    /// <p>The name of the X-Ray node.</p>
    pub fn get_x_ray_node_name(&self) -> &::std::option::Option<::std::string::String> {
        &self.x_ray_node_name
    }
    /// <p>The type of the X-Ray node.</p>
    pub fn x_ray_node_type(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.x_ray_node_type = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>The type of the X-Ray node.</p>
    pub fn set_x_ray_node_type(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.x_ray_node_type = input;
        self
    }
    /// <p>The type of the X-Ray node.</p>
    pub fn get_x_ray_node_type(&self) -> &::std::option::Option<::std::string::String> {
        &self.x_ray_node_type
    }
    /// Consumes the builder and constructs a [`Observation`](crate::types::Observation).
    pub fn build(self) -> crate::types::Observation {
        crate::types::Observation {
            id: self.id,
            start_time: self.start_time,
            end_time: self.end_time,
            source_type: self.source_type,
            source_arn: self.source_arn,
            log_group: self.log_group,
            line_time: self.line_time,
            log_text: self.log_text,
            log_filter: self.log_filter,
            metric_namespace: self.metric_namespace,
            metric_name: self.metric_name,
            unit: self.unit,
            value: self.value,
            cloud_watch_event_id: self.cloud_watch_event_id,
            cloud_watch_event_source: self.cloud_watch_event_source,
            cloud_watch_event_detail_type: self.cloud_watch_event_detail_type,
            health_event_arn: self.health_event_arn,
            health_service: self.health_service,
            health_event_type_code: self.health_event_type_code,
            health_event_type_category: self.health_event_type_category,
            health_event_description: self.health_event_description,
            code_deploy_deployment_id: self.code_deploy_deployment_id,
            code_deploy_deployment_group: self.code_deploy_deployment_group,
            code_deploy_state: self.code_deploy_state,
            code_deploy_application: self.code_deploy_application,
            code_deploy_instance_group_id: self.code_deploy_instance_group_id,
            ec2_state: self.ec2_state,
            rds_event_categories: self.rds_event_categories,
            rds_event_message: self.rds_event_message,
            s3_event_name: self.s3_event_name,
            states_execution_arn: self.states_execution_arn,
            states_arn: self.states_arn,
            states_status: self.states_status,
            states_input: self.states_input,
            ebs_event: self.ebs_event,
            ebs_result: self.ebs_result,
            ebs_cause: self.ebs_cause,
            ebs_request_id: self.ebs_request_id,
            x_ray_fault_percent: self.x_ray_fault_percent,
            x_ray_throttle_percent: self.x_ray_throttle_percent,
            x_ray_error_percent: self.x_ray_error_percent,
            x_ray_request_count: self.x_ray_request_count,
            x_ray_request_average_latency: self.x_ray_request_average_latency,
            x_ray_node_name: self.x_ray_node_name,
            x_ray_node_type: self.x_ray_node_type,
        }
    }
}