AWS SDK for C++

AWS SDK for C++ Version 1.11.900

Loading...
Searching...
No Matches
AlertStateData.h
1
6#pragma once
7#include <aws/cloudwatchomni/CloudWatchOmni_EXPORTS.h>
8#include <aws/crt/cbor/Cbor.h>
9
10namespace Aws {
11namespace Utils {
12namespace Cbor {
13class CborValue;
14} // namespace Cbor
15} // namespace Utils
16namespace CloudWatchOmni {
17namespace Model {
18
25 public:
26 AWS_CLOUDWATCHOMNI_API AlertStateData() = default;
27 AWS_CLOUDWATCHOMNI_API AlertStateData(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
28 AWS_CLOUDWATCHOMNI_API AlertStateData& operator=(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
29 AWS_CLOUDWATCHOMNI_API void CborEncode(Aws::Crt::Cbor::CborEncoder& encoder) const;
30
32
36 inline double GetThresholdBreached() const { return m_thresholdBreached; }
37 inline bool ThresholdBreachedHasBeenSet() const { return m_thresholdBreachedHasBeenSet; }
38 inline void SetThresholdBreached(double value) {
39 m_thresholdBreachedHasBeenSet = true;
40 m_thresholdBreached = value;
41 }
42 inline AlertStateData& WithThresholdBreached(double value) {
44 return *this;
45 }
47 private:
48 double m_thresholdBreached{0.0};
49 bool m_thresholdBreachedHasBeenSet = false;
50};
51
52} // namespace Model
53} // namespace CloudWatchOmni
54} // namespace Aws
AWS_CLOUDWATCHOMNI_API AlertStateData()=default
AlertStateData & WithThresholdBreached(double value)
AWS_CLOUDWATCHOMNI_API void CborEncode(Aws::Crt::Cbor::CborEncoder &encoder) const
AWS_CLOUDWATCHOMNI_API AlertStateData & operator=(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
AWS_CLOUDWATCHOMNI_API AlertStateData(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)