AWS SDK for C++

AWS SDK for C++ Version 1.11.854

Loading...
Searching...
No Matches
AnomalyDetector.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/crt/cbor/Cbor.h>
9#include <aws/monitoring/CloudWatch_EXPORTS.h>
10#include <aws/monitoring/model/AnomalyDetectorConfiguration.h>
11#include <aws/monitoring/model/AnomalyDetectorStateValue.h>
12#include <aws/monitoring/model/MetricCharacteristics.h>
13#include <aws/monitoring/model/MetricMathAnomalyDetector.h>
14#include <aws/monitoring/model/SingleMetricAnomalyDetector.h>
15
16#include <utility>
17
18namespace Aws {
19namespace Utils {
20namespace Cbor {
21class CborValue;
22} // namespace Cbor
23} // namespace Utils
24namespace CloudWatch {
25namespace Model {
26
38 public:
39 AWS_CLOUDWATCH_API AnomalyDetector() = default;
40 AWS_CLOUDWATCH_API AnomalyDetector(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
41 AWS_CLOUDWATCH_API AnomalyDetector& operator=(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
42 AWS_CLOUDWATCH_API void CborEncode(Aws::Crt::Cbor::CborEncoder& encoder) const;
43
45
51 inline const Aws::String& GetAnomalyDetectorId() const { return m_anomalyDetectorId; }
52 inline bool AnomalyDetectorIdHasBeenSet() const { return m_anomalyDetectorIdHasBeenSet; }
53 template <typename AnomalyDetectorIdT = Aws::String>
54 void SetAnomalyDetectorId(AnomalyDetectorIdT&& value) {
55 m_anomalyDetectorIdHasBeenSet = true;
56 m_anomalyDetectorId = std::forward<AnomalyDetectorIdT>(value);
57 }
58 template <typename AnomalyDetectorIdT = Aws::String>
59 AnomalyDetector& WithAnomalyDetectorId(AnomalyDetectorIdT&& value) {
60 SetAnomalyDetectorId(std::forward<AnomalyDetectorIdT>(value));
61 return *this;
62 }
64
66
71 inline const AnomalyDetectorConfiguration& GetConfiguration() const { return m_configuration; }
72 inline bool ConfigurationHasBeenSet() const { return m_configurationHasBeenSet; }
73 template <typename ConfigurationT = AnomalyDetectorConfiguration>
74 void SetConfiguration(ConfigurationT&& value) {
75 m_configurationHasBeenSet = true;
76 m_configuration = std::forward<ConfigurationT>(value);
77 }
78 template <typename ConfigurationT = AnomalyDetectorConfiguration>
79 AnomalyDetector& WithConfiguration(ConfigurationT&& value) {
80 SetConfiguration(std::forward<ConfigurationT>(value));
81 return *this;
82 }
84
86
89 inline AnomalyDetectorStateValue GetStateValue() const { return m_stateValue; }
90 inline bool StateValueHasBeenSet() const { return m_stateValueHasBeenSet; }
92 m_stateValueHasBeenSet = true;
93 m_stateValue = value;
94 }
96 SetStateValue(value);
97 return *this;
98 }
100
102
107 inline const MetricCharacteristics& GetMetricCharacteristics() const { return m_metricCharacteristics; }
108 inline bool MetricCharacteristicsHasBeenSet() const { return m_metricCharacteristicsHasBeenSet; }
109 template <typename MetricCharacteristicsT = MetricCharacteristics>
110 void SetMetricCharacteristics(MetricCharacteristicsT&& value) {
111 m_metricCharacteristicsHasBeenSet = true;
112 m_metricCharacteristics = std::forward<MetricCharacteristicsT>(value);
113 }
114 template <typename MetricCharacteristicsT = MetricCharacteristics>
115 AnomalyDetector& WithMetricCharacteristics(MetricCharacteristicsT&& value) {
116 SetMetricCharacteristics(std::forward<MetricCharacteristicsT>(value));
117 return *this;
118 }
120
122
125 inline const SingleMetricAnomalyDetector& GetSingleMetricAnomalyDetector() const { return m_singleMetricAnomalyDetector; }
126 inline bool SingleMetricAnomalyDetectorHasBeenSet() const { return m_singleMetricAnomalyDetectorHasBeenSet; }
127 template <typename SingleMetricAnomalyDetectorT = SingleMetricAnomalyDetector>
128 void SetSingleMetricAnomalyDetector(SingleMetricAnomalyDetectorT&& value) {
129 m_singleMetricAnomalyDetectorHasBeenSet = true;
130 m_singleMetricAnomalyDetector = std::forward<SingleMetricAnomalyDetectorT>(value);
131 }
132 template <typename SingleMetricAnomalyDetectorT = SingleMetricAnomalyDetector>
133 AnomalyDetector& WithSingleMetricAnomalyDetector(SingleMetricAnomalyDetectorT&& value) {
134 SetSingleMetricAnomalyDetector(std::forward<SingleMetricAnomalyDetectorT>(value));
135 return *this;
136 }
138
140
143 inline const MetricMathAnomalyDetector& GetMetricMathAnomalyDetector() const { return m_metricMathAnomalyDetector; }
144 inline bool MetricMathAnomalyDetectorHasBeenSet() const { return m_metricMathAnomalyDetectorHasBeenSet; }
145 template <typename MetricMathAnomalyDetectorT = MetricMathAnomalyDetector>
146 void SetMetricMathAnomalyDetector(MetricMathAnomalyDetectorT&& value) {
147 m_metricMathAnomalyDetectorHasBeenSet = true;
148 m_metricMathAnomalyDetector = std::forward<MetricMathAnomalyDetectorT>(value);
149 }
150 template <typename MetricMathAnomalyDetectorT = MetricMathAnomalyDetector>
151 AnomalyDetector& WithMetricMathAnomalyDetector(MetricMathAnomalyDetectorT&& value) {
152 SetMetricMathAnomalyDetector(std::forward<MetricMathAnomalyDetectorT>(value));
153 return *this;
154 }
156 private:
157 Aws::String m_anomalyDetectorId;
158
159 AnomalyDetectorConfiguration m_configuration;
160
162
163 MetricCharacteristics m_metricCharacteristics;
164
165 SingleMetricAnomalyDetector m_singleMetricAnomalyDetector;
166
167 MetricMathAnomalyDetector m_metricMathAnomalyDetector;
168 bool m_anomalyDetectorIdHasBeenSet = false;
169 bool m_configurationHasBeenSet = false;
170 bool m_stateValueHasBeenSet = false;
171 bool m_metricCharacteristicsHasBeenSet = false;
172 bool m_singleMetricAnomalyDetectorHasBeenSet = false;
173 bool m_metricMathAnomalyDetectorHasBeenSet = false;
174};
175
176} // namespace Model
177} // namespace CloudWatch
178} // namespace Aws
const Aws::String & GetAnomalyDetectorId() const
void SetMetricCharacteristics(MetricCharacteristicsT &&value)
AWS_CLOUDWATCH_API AnomalyDetector & operator=(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
const SingleMetricAnomalyDetector & GetSingleMetricAnomalyDetector() const
AnomalyDetector & WithMetricMathAnomalyDetector(MetricMathAnomalyDetectorT &&value)
AWS_CLOUDWATCH_API AnomalyDetector(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
const AnomalyDetectorConfiguration & GetConfiguration() const
AnomalyDetectorStateValue GetStateValue() const
AnomalyDetector & WithSingleMetricAnomalyDetector(SingleMetricAnomalyDetectorT &&value)
void SetStateValue(AnomalyDetectorStateValue value)
AnomalyDetector & WithMetricCharacteristics(MetricCharacteristicsT &&value)
AnomalyDetector & WithConfiguration(ConfigurationT &&value)
const MetricMathAnomalyDetector & GetMetricMathAnomalyDetector() const
void SetSingleMetricAnomalyDetector(SingleMetricAnomalyDetectorT &&value)
void SetMetricMathAnomalyDetector(MetricMathAnomalyDetectorT &&value)
const MetricCharacteristics & GetMetricCharacteristics() const
void SetAnomalyDetectorId(AnomalyDetectorIdT &&value)
AWS_CLOUDWATCH_API void CborEncode(Aws::Crt::Cbor::CborEncoder &encoder) const
AnomalyDetector & WithStateValue(AnomalyDetectorStateValue value)
void SetConfiguration(ConfigurationT &&value)
AnomalyDetector & WithAnomalyDetectorId(AnomalyDetectorIdT &&value)
AWS_CLOUDWATCH_API AnomalyDetector()=default
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String