AWS SDK for C++

AWS SDK for C++ Version 1.11.878

Loading...
Searching...
No Matches
WarmUpConfiguration.h
1
6#pragma once
7#include <aws/crt/cbor/Cbor.h>
8#include <aws/monitoring/CloudWatch_EXPORTS.h>
9
10namespace Aws {
11namespace Utils {
12namespace Cbor {
13class CborValue;
14} // namespace Cbor
15} // namespace Utils
16namespace CloudWatch {
17namespace Model {
18
30 public:
31 AWS_CLOUDWATCH_API WarmUpConfiguration() = default;
32 AWS_CLOUDWATCH_API WarmUpConfiguration(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
33 AWS_CLOUDWATCH_API WarmUpConfiguration& operator=(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
34 AWS_CLOUDWATCH_API void CborEncode(Aws::Crt::Cbor::CborEncoder& encoder) const;
35
37
45 inline int64_t GetWarmUpPeriodDurationInMinutes() const { return m_warmUpPeriodDurationInMinutes; }
46 inline bool WarmUpPeriodDurationInMinutesHasBeenSet() const { return m_warmUpPeriodDurationInMinutesHasBeenSet; }
47 inline void SetWarmUpPeriodDurationInMinutes(int64_t value) {
48 m_warmUpPeriodDurationInMinutesHasBeenSet = true;
49 m_warmUpPeriodDurationInMinutes = value;
50 }
53 return *this;
54 }
56
58
66 inline bool GetOnlyStartEvaluatingAfterWarmUpPeriodEnds() const { return m_onlyStartEvaluatingAfterWarmUpPeriodEnds; }
67 inline bool OnlyStartEvaluatingAfterWarmUpPeriodEndsHasBeenSet() const { return m_onlyStartEvaluatingAfterWarmUpPeriodEndsHasBeenSet; }
69 m_onlyStartEvaluatingAfterWarmUpPeriodEndsHasBeenSet = true;
70 m_onlyStartEvaluatingAfterWarmUpPeriodEnds = value;
71 }
74 return *this;
75 }
77 private:
78 int64_t m_warmUpPeriodDurationInMinutes{0};
79
80 bool m_onlyStartEvaluatingAfterWarmUpPeriodEnds{false};
81 bool m_warmUpPeriodDurationInMinutesHasBeenSet = false;
82 bool m_onlyStartEvaluatingAfterWarmUpPeriodEndsHasBeenSet = false;
83};
84
85} // namespace Model
86} // namespace CloudWatch
87} // namespace Aws
AWS_CLOUDWATCH_API void CborEncode(Aws::Crt::Cbor::CborEncoder &encoder) const
AWS_CLOUDWATCH_API WarmUpConfiguration(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
WarmUpConfiguration & WithWarmUpPeriodDurationInMinutes(int64_t value)
WarmUpConfiguration & WithOnlyStartEvaluatingAfterWarmUpPeriodEnds(bool value)
AWS_CLOUDWATCH_API WarmUpConfiguration()=default
AWS_CLOUDWATCH_API WarmUpConfiguration & operator=(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)