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>
22namespace CloudWatchOmni {
35 AWS_CLOUDWATCHOMNI_API
TelemetryRule(
const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
37 AWS_CLOUDWATCHOMNI_API
void CborEncode(Aws::Crt::Cbor::CborEncoder& encoder)
const;
45 template <
typename QueryT = AlertRuleQuery>
47 m_queryHasBeenSet =
true;
48 m_query = std::forward<QueryT>(value);
50 template <
typename QueryT = AlertRuleQuery>
52 SetQuery(std::forward<QueryT>(value));
63 template <
typename ConditionT = AlertCondition>
65 m_conditionHasBeenSet =
true;
66 m_condition = std::forward<ConditionT>(value);
68 template <
typename ConditionT = AlertCondition>
81 template <
typename EvaluationT = AlertEvaluation>
83 m_evaluationHasBeenSet =
true;
84 m_evaluation = std::forward<EvaluationT>(value);
86 template <
typename EvaluationT = AlertEvaluation>
99 template <
typename NoDataT = NoData>
101 m_noDataHasBeenSet =
true;
102 m_noData = std::forward<NoDataT>(value);
104 template <
typename NoDataT = NoData>
118 bool m_queryHasBeenSet =
false;
119 bool m_conditionHasBeenSet =
false;
120 bool m_evaluationHasBeenSet =
false;
121 bool m_noDataHasBeenSet =
false;
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)
const NoData & GetNoData() const
bool QueryHasBeenSet() const
TelemetryRule & WithEvaluation(EvaluationT &&value)
void SetQuery(QueryT &&value)
bool EvaluationHasBeenSet() const
const AlertCondition & GetCondition() const
bool NoDataHasBeenSet() const
const AlertRuleQuery & GetQuery() const
void SetCondition(ConditionT &&value)
TelemetryRule & WithNoData(NoDataT &&value)
void SetNoData(NoDataT &&value)
bool ConditionHasBeenSet() const
TelemetryRule & WithCondition(ConditionT &&value)
TelemetryRule & WithQuery(QueryT &&value)
const AlertEvaluation & GetEvaluation() const