AWS SDK for C++

AWS SDK for C++ Version 1.11.748

Loading...
Searching...
No Matches
Observation.h
1
6#pragma once
7#include <aws/application-insights/ApplicationInsights_EXPORTS.h>
8#include <aws/application-insights/model/CloudWatchEventSource.h>
9#include <aws/application-insights/model/LogFilter.h>
10#include <aws/core/utils/DateTime.h>
11#include <aws/core/utils/memory/stl/AWSString.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Json {
18class JsonValue;
19class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace ApplicationInsights {
23namespace Model {
24
32 public:
33 AWS_APPLICATIONINSIGHTS_API Observation() = default;
34 AWS_APPLICATIONINSIGHTS_API Observation(Aws::Utils::Json::JsonView jsonValue);
35 AWS_APPLICATIONINSIGHTS_API Observation& operator=(Aws::Utils::Json::JsonView jsonValue);
36 AWS_APPLICATIONINSIGHTS_API Aws::Utils::Json::JsonValue Jsonize() const;
37
39
42 inline const Aws::String& GetId() const { return m_id; }
43 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
44 template <typename IdT = Aws::String>
45 void SetId(IdT&& value) {
46 m_idHasBeenSet = true;
47 m_id = std::forward<IdT>(value);
48 }
49 template <typename IdT = Aws::String>
50 Observation& WithId(IdT&& value) {
51 SetId(std::forward<IdT>(value));
52 return *this;
53 }
55
57
60 inline const Aws::Utils::DateTime& GetStartTime() const { return m_startTime; }
61 inline bool StartTimeHasBeenSet() const { return m_startTimeHasBeenSet; }
62 template <typename StartTimeT = Aws::Utils::DateTime>
63 void SetStartTime(StartTimeT&& value) {
64 m_startTimeHasBeenSet = true;
65 m_startTime = std::forward<StartTimeT>(value);
66 }
67 template <typename StartTimeT = Aws::Utils::DateTime>
68 Observation& WithStartTime(StartTimeT&& value) {
69 SetStartTime(std::forward<StartTimeT>(value));
70 return *this;
71 }
73
75
78 inline const Aws::Utils::DateTime& GetEndTime() const { return m_endTime; }
79 inline bool EndTimeHasBeenSet() const { return m_endTimeHasBeenSet; }
80 template <typename EndTimeT = Aws::Utils::DateTime>
81 void SetEndTime(EndTimeT&& value) {
82 m_endTimeHasBeenSet = true;
83 m_endTime = std::forward<EndTimeT>(value);
84 }
85 template <typename EndTimeT = Aws::Utils::DateTime>
86 Observation& WithEndTime(EndTimeT&& value) {
87 SetEndTime(std::forward<EndTimeT>(value));
88 return *this;
89 }
91
93
96 inline const Aws::String& GetSourceType() const { return m_sourceType; }
97 inline bool SourceTypeHasBeenSet() const { return m_sourceTypeHasBeenSet; }
98 template <typename SourceTypeT = Aws::String>
99 void SetSourceType(SourceTypeT&& value) {
100 m_sourceTypeHasBeenSet = true;
101 m_sourceType = std::forward<SourceTypeT>(value);
102 }
103 template <typename SourceTypeT = Aws::String>
104 Observation& WithSourceType(SourceTypeT&& value) {
105 SetSourceType(std::forward<SourceTypeT>(value));
106 return *this;
107 }
109
111
114 inline const Aws::String& GetSourceARN() const { return m_sourceARN; }
115 inline bool SourceARNHasBeenSet() const { return m_sourceARNHasBeenSet; }
116 template <typename SourceARNT = Aws::String>
117 void SetSourceARN(SourceARNT&& value) {
118 m_sourceARNHasBeenSet = true;
119 m_sourceARN = std::forward<SourceARNT>(value);
120 }
121 template <typename SourceARNT = Aws::String>
122 Observation& WithSourceARN(SourceARNT&& value) {
123 SetSourceARN(std::forward<SourceARNT>(value));
124 return *this;
125 }
127
129
132 inline const Aws::String& GetLogGroup() const { return m_logGroup; }
133 inline bool LogGroupHasBeenSet() const { return m_logGroupHasBeenSet; }
134 template <typename LogGroupT = Aws::String>
135 void SetLogGroup(LogGroupT&& value) {
136 m_logGroupHasBeenSet = true;
137 m_logGroup = std::forward<LogGroupT>(value);
138 }
139 template <typename LogGroupT = Aws::String>
140 Observation& WithLogGroup(LogGroupT&& value) {
141 SetLogGroup(std::forward<LogGroupT>(value));
142 return *this;
143 }
145
147
151 inline const Aws::Utils::DateTime& GetLineTime() const { return m_lineTime; }
152 inline bool LineTimeHasBeenSet() const { return m_lineTimeHasBeenSet; }
153 template <typename LineTimeT = Aws::Utils::DateTime>
154 void SetLineTime(LineTimeT&& value) {
155 m_lineTimeHasBeenSet = true;
156 m_lineTime = std::forward<LineTimeT>(value);
157 }
158 template <typename LineTimeT = Aws::Utils::DateTime>
159 Observation& WithLineTime(LineTimeT&& value) {
160 SetLineTime(std::forward<LineTimeT>(value));
161 return *this;
162 }
164
166
169 inline const Aws::String& GetLogText() const { return m_logText; }
170 inline bool LogTextHasBeenSet() const { return m_logTextHasBeenSet; }
171 template <typename LogTextT = Aws::String>
172 void SetLogText(LogTextT&& value) {
173 m_logTextHasBeenSet = true;
174 m_logText = std::forward<LogTextT>(value);
175 }
176 template <typename LogTextT = Aws::String>
177 Observation& WithLogText(LogTextT&& value) {
178 SetLogText(std::forward<LogTextT>(value));
179 return *this;
180 }
182
184
187 inline LogFilter GetLogFilter() const { return m_logFilter; }
188 inline bool LogFilterHasBeenSet() const { return m_logFilterHasBeenSet; }
189 inline void SetLogFilter(LogFilter value) {
190 m_logFilterHasBeenSet = true;
191 m_logFilter = value;
192 }
194 SetLogFilter(value);
195 return *this;
196 }
198
200
203 inline const Aws::String& GetMetricNamespace() const { return m_metricNamespace; }
204 inline bool MetricNamespaceHasBeenSet() const { return m_metricNamespaceHasBeenSet; }
205 template <typename MetricNamespaceT = Aws::String>
206 void SetMetricNamespace(MetricNamespaceT&& value) {
207 m_metricNamespaceHasBeenSet = true;
208 m_metricNamespace = std::forward<MetricNamespaceT>(value);
209 }
210 template <typename MetricNamespaceT = Aws::String>
211 Observation& WithMetricNamespace(MetricNamespaceT&& value) {
212 SetMetricNamespace(std::forward<MetricNamespaceT>(value));
213 return *this;
214 }
216
218
221 inline const Aws::String& GetMetricName() const { return m_metricName; }
222 inline bool MetricNameHasBeenSet() const { return m_metricNameHasBeenSet; }
223 template <typename MetricNameT = Aws::String>
224 void SetMetricName(MetricNameT&& value) {
225 m_metricNameHasBeenSet = true;
226 m_metricName = std::forward<MetricNameT>(value);
227 }
228 template <typename MetricNameT = Aws::String>
229 Observation& WithMetricName(MetricNameT&& value) {
230 SetMetricName(std::forward<MetricNameT>(value));
231 return *this;
232 }
234
236
239 inline const Aws::String& GetUnit() const { return m_unit; }
240 inline bool UnitHasBeenSet() const { return m_unitHasBeenSet; }
241 template <typename UnitT = Aws::String>
242 void SetUnit(UnitT&& value) {
243 m_unitHasBeenSet = true;
244 m_unit = std::forward<UnitT>(value);
245 }
246 template <typename UnitT = Aws::String>
247 Observation& WithUnit(UnitT&& value) {
248 SetUnit(std::forward<UnitT>(value));
249 return *this;
250 }
252
254
257 inline double GetValue() const { return m_value; }
258 inline bool ValueHasBeenSet() const { return m_valueHasBeenSet; }
259 inline void SetValue(double value) {
260 m_valueHasBeenSet = true;
261 m_value = value;
262 }
263 inline Observation& WithValue(double value) {
264 SetValue(value);
265 return *this;
266 }
268
270
274 inline const Aws::String& GetCloudWatchEventId() const { return m_cloudWatchEventId; }
275 inline bool CloudWatchEventIdHasBeenSet() const { return m_cloudWatchEventIdHasBeenSet; }
276 template <typename CloudWatchEventIdT = Aws::String>
277 void SetCloudWatchEventId(CloudWatchEventIdT&& value) {
278 m_cloudWatchEventIdHasBeenSet = true;
279 m_cloudWatchEventId = std::forward<CloudWatchEventIdT>(value);
280 }
281 template <typename CloudWatchEventIdT = Aws::String>
282 Observation& WithCloudWatchEventId(CloudWatchEventIdT&& value) {
283 SetCloudWatchEventId(std::forward<CloudWatchEventIdT>(value));
284 return *this;
285 }
287
289
292 inline CloudWatchEventSource GetCloudWatchEventSource() const { return m_cloudWatchEventSource; }
293 inline bool CloudWatchEventSourceHasBeenSet() const { return m_cloudWatchEventSourceHasBeenSet; }
295 m_cloudWatchEventSourceHasBeenSet = true;
296 m_cloudWatchEventSource = value;
297 }
300 return *this;
301 }
303
305
309 inline const Aws::String& GetCloudWatchEventDetailType() const { return m_cloudWatchEventDetailType; }
310 inline bool CloudWatchEventDetailTypeHasBeenSet() const { return m_cloudWatchEventDetailTypeHasBeenSet; }
311 template <typename CloudWatchEventDetailTypeT = Aws::String>
312 void SetCloudWatchEventDetailType(CloudWatchEventDetailTypeT&& value) {
313 m_cloudWatchEventDetailTypeHasBeenSet = true;
314 m_cloudWatchEventDetailType = std::forward<CloudWatchEventDetailTypeT>(value);
315 }
316 template <typename CloudWatchEventDetailTypeT = Aws::String>
317 Observation& WithCloudWatchEventDetailType(CloudWatchEventDetailTypeT&& value) {
318 SetCloudWatchEventDetailType(std::forward<CloudWatchEventDetailTypeT>(value));
319 return *this;
320 }
322
324
327 inline const Aws::String& GetHealthEventArn() const { return m_healthEventArn; }
328 inline bool HealthEventArnHasBeenSet() const { return m_healthEventArnHasBeenSet; }
329 template <typename HealthEventArnT = Aws::String>
330 void SetHealthEventArn(HealthEventArnT&& value) {
331 m_healthEventArnHasBeenSet = true;
332 m_healthEventArn = std::forward<HealthEventArnT>(value);
333 }
334 template <typename HealthEventArnT = Aws::String>
335 Observation& WithHealthEventArn(HealthEventArnT&& value) {
336 SetHealthEventArn(std::forward<HealthEventArnT>(value));
337 return *this;
338 }
340
342
345 inline const Aws::String& GetHealthService() const { return m_healthService; }
346 inline bool HealthServiceHasBeenSet() const { return m_healthServiceHasBeenSet; }
347 template <typename HealthServiceT = Aws::String>
348 void SetHealthService(HealthServiceT&& value) {
349 m_healthServiceHasBeenSet = true;
350 m_healthService = std::forward<HealthServiceT>(value);
351 }
352 template <typename HealthServiceT = Aws::String>
353 Observation& WithHealthService(HealthServiceT&& value) {
354 SetHealthService(std::forward<HealthServiceT>(value));
355 return *this;
356 }
358
360
364 inline const Aws::String& GetHealthEventTypeCode() const { return m_healthEventTypeCode; }
365 inline bool HealthEventTypeCodeHasBeenSet() const { return m_healthEventTypeCodeHasBeenSet; }
366 template <typename HealthEventTypeCodeT = Aws::String>
367 void SetHealthEventTypeCode(HealthEventTypeCodeT&& value) {
368 m_healthEventTypeCodeHasBeenSet = true;
369 m_healthEventTypeCode = std::forward<HealthEventTypeCodeT>(value);
370 }
371 template <typename HealthEventTypeCodeT = Aws::String>
372 Observation& WithHealthEventTypeCode(HealthEventTypeCodeT&& value) {
373 SetHealthEventTypeCode(std::forward<HealthEventTypeCodeT>(value));
374 return *this;
375 }
377
379
382 inline const Aws::String& GetHealthEventTypeCategory() const { return m_healthEventTypeCategory; }
383 inline bool HealthEventTypeCategoryHasBeenSet() const { return m_healthEventTypeCategoryHasBeenSet; }
384 template <typename HealthEventTypeCategoryT = Aws::String>
385 void SetHealthEventTypeCategory(HealthEventTypeCategoryT&& value) {
386 m_healthEventTypeCategoryHasBeenSet = true;
387 m_healthEventTypeCategory = std::forward<HealthEventTypeCategoryT>(value);
388 }
389 template <typename HealthEventTypeCategoryT = Aws::String>
390 Observation& WithHealthEventTypeCategory(HealthEventTypeCategoryT&& value) {
391 SetHealthEventTypeCategory(std::forward<HealthEventTypeCategoryT>(value));
392 return *this;
393 }
395
397
401 inline const Aws::String& GetHealthEventDescription() const { return m_healthEventDescription; }
402 inline bool HealthEventDescriptionHasBeenSet() const { return m_healthEventDescriptionHasBeenSet; }
403 template <typename HealthEventDescriptionT = Aws::String>
404 void SetHealthEventDescription(HealthEventDescriptionT&& value) {
405 m_healthEventDescriptionHasBeenSet = true;
406 m_healthEventDescription = std::forward<HealthEventDescriptionT>(value);
407 }
408 template <typename HealthEventDescriptionT = Aws::String>
409 Observation& WithHealthEventDescription(HealthEventDescriptionT&& value) {
410 SetHealthEventDescription(std::forward<HealthEventDescriptionT>(value));
411 return *this;
412 }
414
416
420 inline const Aws::String& GetCodeDeployDeploymentId() const { return m_codeDeployDeploymentId; }
421 inline bool CodeDeployDeploymentIdHasBeenSet() const { return m_codeDeployDeploymentIdHasBeenSet; }
422 template <typename CodeDeployDeploymentIdT = Aws::String>
423 void SetCodeDeployDeploymentId(CodeDeployDeploymentIdT&& value) {
424 m_codeDeployDeploymentIdHasBeenSet = true;
425 m_codeDeployDeploymentId = std::forward<CodeDeployDeploymentIdT>(value);
426 }
427 template <typename CodeDeployDeploymentIdT = Aws::String>
428 Observation& WithCodeDeployDeploymentId(CodeDeployDeploymentIdT&& value) {
429 SetCodeDeployDeploymentId(std::forward<CodeDeployDeploymentIdT>(value));
430 return *this;
431 }
433
435
438 inline const Aws::String& GetCodeDeployDeploymentGroup() const { return m_codeDeployDeploymentGroup; }
439 inline bool CodeDeployDeploymentGroupHasBeenSet() const { return m_codeDeployDeploymentGroupHasBeenSet; }
440 template <typename CodeDeployDeploymentGroupT = Aws::String>
441 void SetCodeDeployDeploymentGroup(CodeDeployDeploymentGroupT&& value) {
442 m_codeDeployDeploymentGroupHasBeenSet = true;
443 m_codeDeployDeploymentGroup = std::forward<CodeDeployDeploymentGroupT>(value);
444 }
445 template <typename CodeDeployDeploymentGroupT = Aws::String>
446 Observation& WithCodeDeployDeploymentGroup(CodeDeployDeploymentGroupT&& value) {
447 SetCodeDeployDeploymentGroup(std::forward<CodeDeployDeploymentGroupT>(value));
448 return *this;
449 }
451
453
457 inline const Aws::String& GetCodeDeployState() const { return m_codeDeployState; }
458 inline bool CodeDeployStateHasBeenSet() const { return m_codeDeployStateHasBeenSet; }
459 template <typename CodeDeployStateT = Aws::String>
460 void SetCodeDeployState(CodeDeployStateT&& value) {
461 m_codeDeployStateHasBeenSet = true;
462 m_codeDeployState = std::forward<CodeDeployStateT>(value);
463 }
464 template <typename CodeDeployStateT = Aws::String>
465 Observation& WithCodeDeployState(CodeDeployStateT&& value) {
466 SetCodeDeployState(std::forward<CodeDeployStateT>(value));
467 return *this;
468 }
470
472
475 inline const Aws::String& GetCodeDeployApplication() const { return m_codeDeployApplication; }
476 inline bool CodeDeployApplicationHasBeenSet() const { return m_codeDeployApplicationHasBeenSet; }
477 template <typename CodeDeployApplicationT = Aws::String>
478 void SetCodeDeployApplication(CodeDeployApplicationT&& value) {
479 m_codeDeployApplicationHasBeenSet = true;
480 m_codeDeployApplication = std::forward<CodeDeployApplicationT>(value);
481 }
482 template <typename CodeDeployApplicationT = Aws::String>
483 Observation& WithCodeDeployApplication(CodeDeployApplicationT&& value) {
484 SetCodeDeployApplication(std::forward<CodeDeployApplicationT>(value));
485 return *this;
486 }
488
490
493 inline const Aws::String& GetCodeDeployInstanceGroupId() const { return m_codeDeployInstanceGroupId; }
494 inline bool CodeDeployInstanceGroupIdHasBeenSet() const { return m_codeDeployInstanceGroupIdHasBeenSet; }
495 template <typename CodeDeployInstanceGroupIdT = Aws::String>
496 void SetCodeDeployInstanceGroupId(CodeDeployInstanceGroupIdT&& value) {
497 m_codeDeployInstanceGroupIdHasBeenSet = true;
498 m_codeDeployInstanceGroupId = std::forward<CodeDeployInstanceGroupIdT>(value);
499 }
500 template <typename CodeDeployInstanceGroupIdT = Aws::String>
501 Observation& WithCodeDeployInstanceGroupId(CodeDeployInstanceGroupIdT&& value) {
502 SetCodeDeployInstanceGroupId(std::forward<CodeDeployInstanceGroupIdT>(value));
503 return *this;
504 }
506
508
512 inline const Aws::String& GetEc2State() const { return m_ec2State; }
513 inline bool Ec2StateHasBeenSet() const { return m_ec2StateHasBeenSet; }
514 template <typename Ec2StateT = Aws::String>
515 void SetEc2State(Ec2StateT&& value) {
516 m_ec2StateHasBeenSet = true;
517 m_ec2State = std::forward<Ec2StateT>(value);
518 }
519 template <typename Ec2StateT = Aws::String>
520 Observation& WithEc2State(Ec2StateT&& value) {
521 SetEc2State(std::forward<Ec2StateT>(value));
522 return *this;
523 }
525
527
530 inline const Aws::String& GetRdsEventCategories() const { return m_rdsEventCategories; }
531 inline bool RdsEventCategoriesHasBeenSet() const { return m_rdsEventCategoriesHasBeenSet; }
532 template <typename RdsEventCategoriesT = Aws::String>
533 void SetRdsEventCategories(RdsEventCategoriesT&& value) {
534 m_rdsEventCategoriesHasBeenSet = true;
535 m_rdsEventCategories = std::forward<RdsEventCategoriesT>(value);
536 }
537 template <typename RdsEventCategoriesT = Aws::String>
538 Observation& WithRdsEventCategories(RdsEventCategoriesT&& value) {
539 SetRdsEventCategories(std::forward<RdsEventCategoriesT>(value));
540 return *this;
541 }
543
545
548 inline const Aws::String& GetRdsEventMessage() const { return m_rdsEventMessage; }
549 inline bool RdsEventMessageHasBeenSet() const { return m_rdsEventMessageHasBeenSet; }
550 template <typename RdsEventMessageT = Aws::String>
551 void SetRdsEventMessage(RdsEventMessageT&& value) {
552 m_rdsEventMessageHasBeenSet = true;
553 m_rdsEventMessage = std::forward<RdsEventMessageT>(value);
554 }
555 template <typename RdsEventMessageT = Aws::String>
556 Observation& WithRdsEventMessage(RdsEventMessageT&& value) {
557 SetRdsEventMessage(std::forward<RdsEventMessageT>(value));
558 return *this;
559 }
561
563
566 inline const Aws::String& GetS3EventName() const { return m_s3EventName; }
567 inline bool S3EventNameHasBeenSet() const { return m_s3EventNameHasBeenSet; }
568 template <typename S3EventNameT = Aws::String>
569 void SetS3EventName(S3EventNameT&& value) {
570 m_s3EventNameHasBeenSet = true;
571 m_s3EventName = std::forward<S3EventNameT>(value);
572 }
573 template <typename S3EventNameT = Aws::String>
574 Observation& WithS3EventName(S3EventNameT&& value) {
575 SetS3EventName(std::forward<S3EventNameT>(value));
576 return *this;
577 }
579
581
585 inline const Aws::String& GetStatesExecutionArn() const { return m_statesExecutionArn; }
586 inline bool StatesExecutionArnHasBeenSet() const { return m_statesExecutionArnHasBeenSet; }
587 template <typename StatesExecutionArnT = Aws::String>
588 void SetStatesExecutionArn(StatesExecutionArnT&& value) {
589 m_statesExecutionArnHasBeenSet = true;
590 m_statesExecutionArn = std::forward<StatesExecutionArnT>(value);
591 }
592 template <typename StatesExecutionArnT = Aws::String>
593 Observation& WithStatesExecutionArn(StatesExecutionArnT&& value) {
594 SetStatesExecutionArn(std::forward<StatesExecutionArnT>(value));
595 return *this;
596 }
598
600
603 inline const Aws::String& GetStatesArn() const { return m_statesArn; }
604 inline bool StatesArnHasBeenSet() const { return m_statesArnHasBeenSet; }
605 template <typename StatesArnT = Aws::String>
606 void SetStatesArn(StatesArnT&& value) {
607 m_statesArnHasBeenSet = true;
608 m_statesArn = std::forward<StatesArnT>(value);
609 }
610 template <typename StatesArnT = Aws::String>
611 Observation& WithStatesArn(StatesArnT&& value) {
612 SetStatesArn(std::forward<StatesArnT>(value));
613 return *this;
614 }
616
618
621 inline const Aws::String& GetStatesStatus() const { return m_statesStatus; }
622 inline bool StatesStatusHasBeenSet() const { return m_statesStatusHasBeenSet; }
623 template <typename StatesStatusT = Aws::String>
624 void SetStatesStatus(StatesStatusT&& value) {
625 m_statesStatusHasBeenSet = true;
626 m_statesStatus = std::forward<StatesStatusT>(value);
627 }
628 template <typename StatesStatusT = Aws::String>
629 Observation& WithStatesStatus(StatesStatusT&& value) {
630 SetStatesStatus(std::forward<StatesStatusT>(value));
631 return *this;
632 }
634
636
639 inline const Aws::String& GetStatesInput() const { return m_statesInput; }
640 inline bool StatesInputHasBeenSet() const { return m_statesInputHasBeenSet; }
641 template <typename StatesInputT = Aws::String>
642 void SetStatesInput(StatesInputT&& value) {
643 m_statesInputHasBeenSet = true;
644 m_statesInput = std::forward<StatesInputT>(value);
645 }
646 template <typename StatesInputT = Aws::String>
647 Observation& WithStatesInput(StatesInputT&& value) {
648 SetStatesInput(std::forward<StatesInputT>(value));
649 return *this;
650 }
652
654
658 inline const Aws::String& GetEbsEvent() const { return m_ebsEvent; }
659 inline bool EbsEventHasBeenSet() const { return m_ebsEventHasBeenSet; }
660 template <typename EbsEventT = Aws::String>
661 void SetEbsEvent(EbsEventT&& value) {
662 m_ebsEventHasBeenSet = true;
663 m_ebsEvent = std::forward<EbsEventT>(value);
664 }
665 template <typename EbsEventT = Aws::String>
666 Observation& WithEbsEvent(EbsEventT&& value) {
667 SetEbsEvent(std::forward<EbsEventT>(value));
668 return *this;
669 }
671
673
677 inline const Aws::String& GetEbsResult() const { return m_ebsResult; }
678 inline bool EbsResultHasBeenSet() const { return m_ebsResultHasBeenSet; }
679 template <typename EbsResultT = Aws::String>
680 void SetEbsResult(EbsResultT&& value) {
681 m_ebsResultHasBeenSet = true;
682 m_ebsResult = std::forward<EbsResultT>(value);
683 }
684 template <typename EbsResultT = Aws::String>
685 Observation& WithEbsResult(EbsResultT&& value) {
686 SetEbsResult(std::forward<EbsResultT>(value));
687 return *this;
688 }
690
692
695 inline const Aws::String& GetEbsCause() const { return m_ebsCause; }
696 inline bool EbsCauseHasBeenSet() const { return m_ebsCauseHasBeenSet; }
697 template <typename EbsCauseT = Aws::String>
698 void SetEbsCause(EbsCauseT&& value) {
699 m_ebsCauseHasBeenSet = true;
700 m_ebsCause = std::forward<EbsCauseT>(value);
701 }
702 template <typename EbsCauseT = Aws::String>
703 Observation& WithEbsCause(EbsCauseT&& value) {
704 SetEbsCause(std::forward<EbsCauseT>(value));
705 return *this;
706 }
708
710
713 inline const Aws::String& GetEbsRequestId() const { return m_ebsRequestId; }
714 inline bool EbsRequestIdHasBeenSet() const { return m_ebsRequestIdHasBeenSet; }
715 template <typename EbsRequestIdT = Aws::String>
716 void SetEbsRequestId(EbsRequestIdT&& value) {
717 m_ebsRequestIdHasBeenSet = true;
718 m_ebsRequestId = std::forward<EbsRequestIdT>(value);
719 }
720 template <typename EbsRequestIdT = Aws::String>
721 Observation& WithEbsRequestId(EbsRequestIdT&& value) {
722 SetEbsRequestId(std::forward<EbsRequestIdT>(value));
723 return *this;
724 }
726
728
731 inline int GetXRayFaultPercent() const { return m_xRayFaultPercent; }
732 inline bool XRayFaultPercentHasBeenSet() const { return m_xRayFaultPercentHasBeenSet; }
733 inline void SetXRayFaultPercent(int value) {
734 m_xRayFaultPercentHasBeenSet = true;
735 m_xRayFaultPercent = value;
736 }
738 SetXRayFaultPercent(value);
739 return *this;
740 }
742
744
747 inline int GetXRayThrottlePercent() const { return m_xRayThrottlePercent; }
748 inline bool XRayThrottlePercentHasBeenSet() const { return m_xRayThrottlePercentHasBeenSet; }
749 inline void SetXRayThrottlePercent(int value) {
750 m_xRayThrottlePercentHasBeenSet = true;
751 m_xRayThrottlePercent = value;
752 }
755 return *this;
756 }
758
760
763 inline int GetXRayErrorPercent() const { return m_xRayErrorPercent; }
764 inline bool XRayErrorPercentHasBeenSet() const { return m_xRayErrorPercentHasBeenSet; }
765 inline void SetXRayErrorPercent(int value) {
766 m_xRayErrorPercentHasBeenSet = true;
767 m_xRayErrorPercent = value;
768 }
770 SetXRayErrorPercent(value);
771 return *this;
772 }
774
776
779 inline int GetXRayRequestCount() const { return m_xRayRequestCount; }
780 inline bool XRayRequestCountHasBeenSet() const { return m_xRayRequestCountHasBeenSet; }
781 inline void SetXRayRequestCount(int value) {
782 m_xRayRequestCountHasBeenSet = true;
783 m_xRayRequestCount = value;
784 }
786 SetXRayRequestCount(value);
787 return *this;
788 }
790
792
795 inline long long GetXRayRequestAverageLatency() const { return m_xRayRequestAverageLatency; }
796 inline bool XRayRequestAverageLatencyHasBeenSet() const { return m_xRayRequestAverageLatencyHasBeenSet; }
797 inline void SetXRayRequestAverageLatency(long long value) {
798 m_xRayRequestAverageLatencyHasBeenSet = true;
799 m_xRayRequestAverageLatency = value;
800 }
803 return *this;
804 }
806
808
811 inline const Aws::String& GetXRayNodeName() const { return m_xRayNodeName; }
812 inline bool XRayNodeNameHasBeenSet() const { return m_xRayNodeNameHasBeenSet; }
813 template <typename XRayNodeNameT = Aws::String>
814 void SetXRayNodeName(XRayNodeNameT&& value) {
815 m_xRayNodeNameHasBeenSet = true;
816 m_xRayNodeName = std::forward<XRayNodeNameT>(value);
817 }
818 template <typename XRayNodeNameT = Aws::String>
819 Observation& WithXRayNodeName(XRayNodeNameT&& value) {
820 SetXRayNodeName(std::forward<XRayNodeNameT>(value));
821 return *this;
822 }
824
826
829 inline const Aws::String& GetXRayNodeType() const { return m_xRayNodeType; }
830 inline bool XRayNodeTypeHasBeenSet() const { return m_xRayNodeTypeHasBeenSet; }
831 template <typename XRayNodeTypeT = Aws::String>
832 void SetXRayNodeType(XRayNodeTypeT&& value) {
833 m_xRayNodeTypeHasBeenSet = true;
834 m_xRayNodeType = std::forward<XRayNodeTypeT>(value);
835 }
836 template <typename XRayNodeTypeT = Aws::String>
837 Observation& WithXRayNodeType(XRayNodeTypeT&& value) {
838 SetXRayNodeType(std::forward<XRayNodeTypeT>(value));
839 return *this;
840 }
842 private:
843 Aws::String m_id;
844
845 Aws::Utils::DateTime m_startTime{};
846
847 Aws::Utils::DateTime m_endTime{};
848
849 Aws::String m_sourceType;
850
851 Aws::String m_sourceARN;
852
853 Aws::String m_logGroup;
854
855 Aws::Utils::DateTime m_lineTime{};
856
857 Aws::String m_logText;
858
859 LogFilter m_logFilter{LogFilter::NOT_SET};
860
861 Aws::String m_metricNamespace;
862
863 Aws::String m_metricName;
864
865 Aws::String m_unit;
866
867 double m_value{0.0};
868
869 Aws::String m_cloudWatchEventId;
870
872
873 Aws::String m_cloudWatchEventDetailType;
874
875 Aws::String m_healthEventArn;
876
877 Aws::String m_healthService;
878
879 Aws::String m_healthEventTypeCode;
880
881 Aws::String m_healthEventTypeCategory;
882
883 Aws::String m_healthEventDescription;
884
885 Aws::String m_codeDeployDeploymentId;
886
887 Aws::String m_codeDeployDeploymentGroup;
888
889 Aws::String m_codeDeployState;
890
891 Aws::String m_codeDeployApplication;
892
893 Aws::String m_codeDeployInstanceGroupId;
894
895 Aws::String m_ec2State;
896
897 Aws::String m_rdsEventCategories;
898
899 Aws::String m_rdsEventMessage;
900
901 Aws::String m_s3EventName;
902
903 Aws::String m_statesExecutionArn;
904
905 Aws::String m_statesArn;
906
907 Aws::String m_statesStatus;
908
909 Aws::String m_statesInput;
910
911 Aws::String m_ebsEvent;
912
913 Aws::String m_ebsResult;
914
915 Aws::String m_ebsCause;
916
917 Aws::String m_ebsRequestId;
918
919 int m_xRayFaultPercent{0};
920
921 int m_xRayThrottlePercent{0};
922
923 int m_xRayErrorPercent{0};
924
925 int m_xRayRequestCount{0};
926
927 long long m_xRayRequestAverageLatency{0};
928
929 Aws::String m_xRayNodeName;
930
931 Aws::String m_xRayNodeType;
932 bool m_idHasBeenSet = false;
933 bool m_startTimeHasBeenSet = false;
934 bool m_endTimeHasBeenSet = false;
935 bool m_sourceTypeHasBeenSet = false;
936 bool m_sourceARNHasBeenSet = false;
937 bool m_logGroupHasBeenSet = false;
938 bool m_lineTimeHasBeenSet = false;
939 bool m_logTextHasBeenSet = false;
940 bool m_logFilterHasBeenSet = false;
941 bool m_metricNamespaceHasBeenSet = false;
942 bool m_metricNameHasBeenSet = false;
943 bool m_unitHasBeenSet = false;
944 bool m_valueHasBeenSet = false;
945 bool m_cloudWatchEventIdHasBeenSet = false;
946 bool m_cloudWatchEventSourceHasBeenSet = false;
947 bool m_cloudWatchEventDetailTypeHasBeenSet = false;
948 bool m_healthEventArnHasBeenSet = false;
949 bool m_healthServiceHasBeenSet = false;
950 bool m_healthEventTypeCodeHasBeenSet = false;
951 bool m_healthEventTypeCategoryHasBeenSet = false;
952 bool m_healthEventDescriptionHasBeenSet = false;
953 bool m_codeDeployDeploymentIdHasBeenSet = false;
954 bool m_codeDeployDeploymentGroupHasBeenSet = false;
955 bool m_codeDeployStateHasBeenSet = false;
956 bool m_codeDeployApplicationHasBeenSet = false;
957 bool m_codeDeployInstanceGroupIdHasBeenSet = false;
958 bool m_ec2StateHasBeenSet = false;
959 bool m_rdsEventCategoriesHasBeenSet = false;
960 bool m_rdsEventMessageHasBeenSet = false;
961 bool m_s3EventNameHasBeenSet = false;
962 bool m_statesExecutionArnHasBeenSet = false;
963 bool m_statesArnHasBeenSet = false;
964 bool m_statesStatusHasBeenSet = false;
965 bool m_statesInputHasBeenSet = false;
966 bool m_ebsEventHasBeenSet = false;
967 bool m_ebsResultHasBeenSet = false;
968 bool m_ebsCauseHasBeenSet = false;
969 bool m_ebsRequestIdHasBeenSet = false;
970 bool m_xRayFaultPercentHasBeenSet = false;
971 bool m_xRayThrottlePercentHasBeenSet = false;
972 bool m_xRayErrorPercentHasBeenSet = false;
973 bool m_xRayRequestCountHasBeenSet = false;
974 bool m_xRayRequestAverageLatencyHasBeenSet = false;
975 bool m_xRayNodeNameHasBeenSet = false;
976 bool m_xRayNodeTypeHasBeenSet = false;
977};
978
979} // namespace Model
980} // namespace ApplicationInsights
981} // namespace Aws
void SetHealthEventTypeCategory(HealthEventTypeCategoryT &&value)
void SetStatesExecutionArn(StatesExecutionArnT &&value)
Observation & WithStatesInput(StatesInputT &&value)
Observation & WithCodeDeployDeploymentId(CodeDeployDeploymentIdT &&value)
Observation & WithMetricNamespace(MetricNamespaceT &&value)
Observation & WithXRayErrorPercent(int value)
Observation & WithLogText(LogTextT &&value)
Observation & WithUnit(UnitT &&value)
void SetCodeDeployApplication(CodeDeployApplicationT &&value)
Observation & WithHealthEventArn(HealthEventArnT &&value)
void SetCloudWatchEventDetailType(CloudWatchEventDetailTypeT &&value)
const Aws::String & GetLogGroup() const
Observation & WithMetricName(MetricNameT &&value)
const Aws::String & GetRdsEventMessage() const
AWS_APPLICATIONINSIGHTS_API Observation & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetCodeDeployDeploymentGroup() const
Observation & WithS3EventName(S3EventNameT &&value)
const Aws::Utils::DateTime & GetEndTime() const
Definition Observation.h:78
Observation & WithEc2State(Ec2StateT &&value)
Observation & WithStartTime(StartTimeT &&value)
Definition Observation.h:68
void SetStatesStatus(StatesStatusT &&value)
Observation & WithEbsRequestId(EbsRequestIdT &&value)
Observation & WithXRayThrottlePercent(int value)
Observation & WithStatesExecutionArn(StatesExecutionArnT &&value)
const Aws::String & GetEbsRequestId() const
const Aws::String & GetMetricNamespace() const
Observation & WithLogFilter(LogFilter value)
Observation & WithSourceType(SourceTypeT &&value)
CloudWatchEventSource GetCloudWatchEventSource() const
const Aws::String & GetStatesInput() const
const Aws::String & GetEbsCause() const
const Aws::String & GetCodeDeployState() const
Observation & WithXRayRequestCount(int value)
Observation & WithEbsCause(EbsCauseT &&value)
void SetHealthEventTypeCode(HealthEventTypeCodeT &&value)
const Aws::String & GetStatesStatus() const
const Aws::String & GetEbsResult() const
void SetCodeDeployState(CodeDeployStateT &&value)
AWS_APPLICATIONINSIGHTS_API Observation()=default
const Aws::String & GetS3EventName() const
Observation & WithCloudWatchEventDetailType(CloudWatchEventDetailTypeT &&value)
const Aws::String & GetXRayNodeName() const
const Aws::String & GetEc2State() const
void SetXRayNodeName(XRayNodeNameT &&value)
Observation & WithXRayNodeType(XRayNodeTypeT &&value)
Observation & WithRdsEventCategories(RdsEventCategoriesT &&value)
void SetCloudWatchEventId(CloudWatchEventIdT &&value)
Observation & WithXRayNodeName(XRayNodeNameT &&value)
const Aws::String & GetStatesArn() const
void SetRdsEventCategories(RdsEventCategoriesT &&value)
Observation & WithLogGroup(LogGroupT &&value)
void SetHealthEventArn(HealthEventArnT &&value)
void SetStatesInput(StatesInputT &&value)
Observation & WithSourceARN(SourceARNT &&value)
void SetRdsEventMessage(RdsEventMessageT &&value)
Observation & WithStatesStatus(StatesStatusT &&value)
void SetCloudWatchEventSource(CloudWatchEventSource value)
Observation & WithRdsEventMessage(RdsEventMessageT &&value)
const Aws::String & GetCodeDeployDeploymentId() const
Observation & WithEbsEvent(EbsEventT &&value)
Observation & WithCloudWatchEventSource(CloudWatchEventSource value)
Observation & WithHealthEventDescription(HealthEventDescriptionT &&value)
void SetCodeDeployInstanceGroupId(CodeDeployInstanceGroupIdT &&value)
const Aws::Utils::DateTime & GetLineTime() const
const Aws::String & GetHealthService() const
Observation & WithXRayRequestAverageLatency(long long value)
const Aws::String & GetXRayNodeType() const
Observation & WithHealthEventTypeCode(HealthEventTypeCodeT &&value)
Observation & WithCodeDeployDeploymentGroup(CodeDeployDeploymentGroupT &&value)
const Aws::String & GetMetricName() const
Observation & WithLineTime(LineTimeT &&value)
void SetHealthService(HealthServiceT &&value)
const Aws::String & GetCodeDeployApplication() const
const Aws::String & GetRdsEventCategories() const
const Aws::String & GetHealthEventArn() const
void SetCodeDeployDeploymentId(CodeDeployDeploymentIdT &&value)
const Aws::String & GetCloudWatchEventDetailType() const
void SetEbsRequestId(EbsRequestIdT &&value)
Observation & WithCloudWatchEventId(CloudWatchEventIdT &&value)
const Aws::String & GetEbsEvent() const
Observation & WithHealthEventTypeCategory(HealthEventTypeCategoryT &&value)
Observation & WithCodeDeployInstanceGroupId(CodeDeployInstanceGroupIdT &&value)
void SetCodeDeployDeploymentGroup(CodeDeployDeploymentGroupT &&value)
Observation & WithCodeDeployApplication(CodeDeployApplicationT &&value)
const Aws::String & GetStatesExecutionArn() const
Observation & WithStatesArn(StatesArnT &&value)
const Aws::String & GetCodeDeployInstanceGroupId() const
void SetS3EventName(S3EventNameT &&value)
AWS_APPLICATIONINSIGHTS_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::String & GetHealthEventTypeCategory() const
const Aws::String & GetHealthEventTypeCode() const
const Aws::String & GetSourceType() const
Definition Observation.h:96
Observation & WithXRayFaultPercent(int value)
const Aws::String & GetLogText() const
void SetSourceType(SourceTypeT &&value)
Definition Observation.h:99
AWS_APPLICATIONINSIGHTS_API Observation(Aws::Utils::Json::JsonView jsonValue)
Observation & WithValue(double value)
const Aws::String & GetSourceARN() const
void SetXRayNodeType(XRayNodeTypeT &&value)
const Aws::String & GetHealthEventDescription() const
Observation & WithEndTime(EndTimeT &&value)
Definition Observation.h:86
void SetMetricNamespace(MetricNamespaceT &&value)
const Aws::Utils::DateTime & GetStartTime() const
Definition Observation.h:60
void SetHealthEventDescription(HealthEventDescriptionT &&value)
void SetXRayRequestAverageLatency(long long value)
Observation & WithEbsResult(EbsResultT &&value)
Observation & WithHealthService(HealthServiceT &&value)
const Aws::String & GetCloudWatchEventId() const
Observation & WithCodeDeployState(CodeDeployStateT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue