AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
AnomalyDetector.h
1
6#pragma once
7#include <aws/crt/cbor/Cbor.h>
8#include <aws/monitoring/CloudWatch_EXPORTS.h>
9#include <aws/monitoring/model/AnomalyDetectorConfiguration.h>
10#include <aws/monitoring/model/AnomalyDetectorStateValue.h>
11#include <aws/monitoring/model/MetricCharacteristics.h>
12#include <aws/monitoring/model/MetricMathAnomalyDetector.h>
13#include <aws/monitoring/model/SingleMetricAnomalyDetector.h>
14
15#include <utility>
16
17namespace Aws {
18namespace Utils {
19namespace Cbor {
20class CborValue;
21} // namespace Cbor
22} // namespace Utils
23namespace CloudWatch {
24namespace Model {
25
37 public:
38 AWS_CLOUDWATCH_API AnomalyDetector() = default;
39 AWS_CLOUDWATCH_API AnomalyDetector(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
40 AWS_CLOUDWATCH_API AnomalyDetector& operator=(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
41 AWS_CLOUDWATCH_API void CborEncode(Aws::Crt::Cbor::CborEncoder& encoder) const;
42
44
49 inline const AnomalyDetectorConfiguration& GetConfiguration() const { return m_configuration; }
50 inline bool ConfigurationHasBeenSet() const { return m_configurationHasBeenSet; }
51 template <typename ConfigurationT = AnomalyDetectorConfiguration>
52 void SetConfiguration(ConfigurationT&& value) {
53 m_configurationHasBeenSet = true;
54 m_configuration = std::forward<ConfigurationT>(value);
55 }
56 template <typename ConfigurationT = AnomalyDetectorConfiguration>
57 AnomalyDetector& WithConfiguration(ConfigurationT&& value) {
58 SetConfiguration(std::forward<ConfigurationT>(value));
59 return *this;
60 }
62
64
67 inline AnomalyDetectorStateValue GetStateValue() const { return m_stateValue; }
68 inline bool StateValueHasBeenSet() const { return m_stateValueHasBeenSet; }
70 m_stateValueHasBeenSet = true;
71 m_stateValue = value;
72 }
74 SetStateValue(value);
75 return *this;
76 }
78
80
85 inline const MetricCharacteristics& GetMetricCharacteristics() const { return m_metricCharacteristics; }
86 inline bool MetricCharacteristicsHasBeenSet() const { return m_metricCharacteristicsHasBeenSet; }
87 template <typename MetricCharacteristicsT = MetricCharacteristics>
88 void SetMetricCharacteristics(MetricCharacteristicsT&& value) {
89 m_metricCharacteristicsHasBeenSet = true;
90 m_metricCharacteristics = std::forward<MetricCharacteristicsT>(value);
91 }
92 template <typename MetricCharacteristicsT = MetricCharacteristics>
93 AnomalyDetector& WithMetricCharacteristics(MetricCharacteristicsT&& value) {
94 SetMetricCharacteristics(std::forward<MetricCharacteristicsT>(value));
95 return *this;
96 }
98
100
103 inline const SingleMetricAnomalyDetector& GetSingleMetricAnomalyDetector() const { return m_singleMetricAnomalyDetector; }
104 inline bool SingleMetricAnomalyDetectorHasBeenSet() const { return m_singleMetricAnomalyDetectorHasBeenSet; }
105 template <typename SingleMetricAnomalyDetectorT = SingleMetricAnomalyDetector>
106 void SetSingleMetricAnomalyDetector(SingleMetricAnomalyDetectorT&& value) {
107 m_singleMetricAnomalyDetectorHasBeenSet = true;
108 m_singleMetricAnomalyDetector = std::forward<SingleMetricAnomalyDetectorT>(value);
109 }
110 template <typename SingleMetricAnomalyDetectorT = SingleMetricAnomalyDetector>
111 AnomalyDetector& WithSingleMetricAnomalyDetector(SingleMetricAnomalyDetectorT&& value) {
112 SetSingleMetricAnomalyDetector(std::forward<SingleMetricAnomalyDetectorT>(value));
113 return *this;
114 }
116
118
121 inline const MetricMathAnomalyDetector& GetMetricMathAnomalyDetector() const { return m_metricMathAnomalyDetector; }
122 inline bool MetricMathAnomalyDetectorHasBeenSet() const { return m_metricMathAnomalyDetectorHasBeenSet; }
123 template <typename MetricMathAnomalyDetectorT = MetricMathAnomalyDetector>
124 void SetMetricMathAnomalyDetector(MetricMathAnomalyDetectorT&& value) {
125 m_metricMathAnomalyDetectorHasBeenSet = true;
126 m_metricMathAnomalyDetector = std::forward<MetricMathAnomalyDetectorT>(value);
127 }
128 template <typename MetricMathAnomalyDetectorT = MetricMathAnomalyDetector>
129 AnomalyDetector& WithMetricMathAnomalyDetector(MetricMathAnomalyDetectorT&& value) {
130 SetMetricMathAnomalyDetector(std::forward<MetricMathAnomalyDetectorT>(value));
131 return *this;
132 }
134 private:
135 AnomalyDetectorConfiguration m_configuration;
136
138
139 MetricCharacteristics m_metricCharacteristics;
140
141 SingleMetricAnomalyDetector m_singleMetricAnomalyDetector;
142
143 MetricMathAnomalyDetector m_metricMathAnomalyDetector;
144 bool m_configurationHasBeenSet = false;
145 bool m_stateValueHasBeenSet = false;
146 bool m_metricCharacteristicsHasBeenSet = false;
147 bool m_singleMetricAnomalyDetectorHasBeenSet = false;
148 bool m_metricMathAnomalyDetectorHasBeenSet = false;
149};
150
151} // namespace Model
152} // namespace CloudWatch
153} // namespace Aws
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
AWS_CLOUDWATCH_API void CborEncode(Aws::Crt::Cbor::CborEncoder &encoder) const
AnomalyDetector & WithStateValue(AnomalyDetectorStateValue value)
void SetConfiguration(ConfigurationT &&value)
AWS_CLOUDWATCH_API AnomalyDetector()=default