7#include <aws/cloudwatchomni/CloudWatchOmni_EXPORTS.h>
8#include <aws/cloudwatchomni/model/Comparator.h>
9#include <aws/cloudwatchomni/model/ThresholdMode.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/crt/cbor/Cbor.h>
21namespace CloudWatchOmni {
39 AWS_CLOUDWATCHOMNI_API
AlertCondition(
const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
41 AWS_CLOUDWATCHOMNI_API
void CborEncode(Aws::Crt::Cbor::CborEncoder& encoder)
const;
50 m_thresholdModeHasBeenSet =
true;
51 m_thresholdMode = value;
65 template <
typename ThresholdFieldT = Aws::String>
67 m_thresholdFieldHasBeenSet =
true;
68 m_thresholdField = std::forward<ThresholdFieldT>(value);
70 template <
typename ThresholdFieldT = Aws::String>
84 m_comparatorHasBeenSet =
true;
100 m_warningThresholdHasBeenSet =
true;
101 m_warningThreshold = value;
116 m_criticalThresholdHasBeenSet =
true;
117 m_criticalThreshold = value;
131 double m_warningThreshold{0.0};
133 double m_criticalThreshold{0.0};
134 bool m_thresholdModeHasBeenSet =
false;
135 bool m_thresholdFieldHasBeenSet =
false;
136 bool m_comparatorHasBeenSet =
false;
137 bool m_warningThresholdHasBeenSet =
false;
138 bool m_criticalThresholdHasBeenSet =
false;
void SetWarningThreshold(double value)
void SetCriticalThreshold(double value)
AlertCondition & WithThresholdMode(ThresholdMode value)
AWS_CLOUDWATCHOMNI_API AlertCondition & operator=(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
bool ThresholdModeHasBeenSet() const
void SetComparator(Comparator value)
const Aws::String & GetThresholdField() const
Comparator GetComparator() const
AlertCondition & WithComparator(Comparator value)
bool ThresholdFieldHasBeenSet() const
double GetCriticalThreshold() const
AlertCondition & WithWarningThreshold(double value)
double GetWarningThreshold() const
AWS_CLOUDWATCHOMNI_API AlertCondition()=default
void SetThresholdMode(ThresholdMode value)
AlertCondition & WithThresholdField(ThresholdFieldT &&value)
bool CriticalThresholdHasBeenSet() const
void SetThresholdField(ThresholdFieldT &&value)
ThresholdMode GetThresholdMode() const
bool ComparatorHasBeenSet() const
AWS_CLOUDWATCHOMNI_API void CborEncode(Aws::Crt::Cbor::CborEncoder &encoder) const
AWS_CLOUDWATCHOMNI_API AlertCondition(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
bool WarningThresholdHasBeenSet() const
AlertCondition & WithCriticalThreshold(double value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String