AWS SDK for C++

AWS SDK for C++ Version 1.11.900

Loading...
Searching...
No Matches
TelemetryRule.h
1
6#pragma once
7#include <aws/cloudwatchomni/CloudWatchOmni_EXPORTS.h>
8#include <aws/cloudwatchomni/model/AlertCondition.h>
9#include <aws/cloudwatchomni/model/AlertEvaluation.h>
10#include <aws/cloudwatchomni/model/AlertRuleQuery.h>
11#include <aws/cloudwatchomni/model/NoData.h>
12#include <aws/crt/cbor/Cbor.h>
13
14#include <utility>
15
16namespace Aws {
17namespace Utils {
18namespace Cbor {
19class CborValue;
20} // namespace Cbor
21} // namespace Utils
22namespace CloudWatchOmni {
23namespace Model {
24
33 public:
34 AWS_CLOUDWATCHOMNI_API TelemetryRule() = default;
35 AWS_CLOUDWATCHOMNI_API TelemetryRule(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
36 AWS_CLOUDWATCHOMNI_API TelemetryRule& operator=(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
37 AWS_CLOUDWATCHOMNI_API void CborEncode(Aws::Crt::Cbor::CborEncoder& encoder) const;
38
40
43 inline const AlertRuleQuery& GetQuery() const { return m_query; }
44 inline bool QueryHasBeenSet() const { return m_queryHasBeenSet; }
45 template <typename QueryT = AlertRuleQuery>
46 void SetQuery(QueryT&& value) {
47 m_queryHasBeenSet = true;
48 m_query = std::forward<QueryT>(value);
49 }
50 template <typename QueryT = AlertRuleQuery>
51 TelemetryRule& WithQuery(QueryT&& value) {
52 SetQuery(std::forward<QueryT>(value));
53 return *this;
54 }
56
58
61 inline const AlertCondition& GetCondition() const { return m_condition; }
62 inline bool ConditionHasBeenSet() const { return m_conditionHasBeenSet; }
63 template <typename ConditionT = AlertCondition>
64 void SetCondition(ConditionT&& value) {
65 m_conditionHasBeenSet = true;
66 m_condition = std::forward<ConditionT>(value);
67 }
68 template <typename ConditionT = AlertCondition>
69 TelemetryRule& WithCondition(ConditionT&& value) {
70 SetCondition(std::forward<ConditionT>(value));
71 return *this;
72 }
74
76
79 inline const AlertEvaluation& GetEvaluation() const { return m_evaluation; }
80 inline bool EvaluationHasBeenSet() const { return m_evaluationHasBeenSet; }
81 template <typename EvaluationT = AlertEvaluation>
82 void SetEvaluation(EvaluationT&& value) {
83 m_evaluationHasBeenSet = true;
84 m_evaluation = std::forward<EvaluationT>(value);
85 }
86 template <typename EvaluationT = AlertEvaluation>
87 TelemetryRule& WithEvaluation(EvaluationT&& value) {
88 SetEvaluation(std::forward<EvaluationT>(value));
89 return *this;
90 }
92
94
97 inline const NoData& GetNoData() const { return m_noData; }
98 inline bool NoDataHasBeenSet() const { return m_noDataHasBeenSet; }
99 template <typename NoDataT = NoData>
100 void SetNoData(NoDataT&& value) {
101 m_noDataHasBeenSet = true;
102 m_noData = std::forward<NoDataT>(value);
103 }
104 template <typename NoDataT = NoData>
105 TelemetryRule& WithNoData(NoDataT&& value) {
106 SetNoData(std::forward<NoDataT>(value));
107 return *this;
108 }
110 private:
111 AlertRuleQuery m_query;
112
113 AlertCondition m_condition;
114
115 AlertEvaluation m_evaluation;
116
117 NoData m_noData;
118 bool m_queryHasBeenSet = false;
119 bool m_conditionHasBeenSet = false;
120 bool m_evaluationHasBeenSet = false;
121 bool m_noDataHasBeenSet = false;
122};
123
124} // namespace Model
125} // namespace CloudWatchOmni
126} // namespace Aws
AWS_CLOUDWATCHOMNI_API TelemetryRule(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
AWS_CLOUDWATCHOMNI_API void CborEncode(Aws::Crt::Cbor::CborEncoder &encoder) const
AWS_CLOUDWATCHOMNI_API TelemetryRule & operator=(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
AWS_CLOUDWATCHOMNI_API TelemetryRule()=default
void SetEvaluation(EvaluationT &&value)
TelemetryRule & WithEvaluation(EvaluationT &&value)
const AlertCondition & GetCondition() const
const AlertRuleQuery & GetQuery() const
TelemetryRule & WithNoData(NoDataT &&value)
TelemetryRule & WithCondition(ConditionT &&value)
TelemetryRule & WithQuery(QueryT &&value)
const AlertEvaluation & GetEvaluation() const