AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
AnomalyDetector.h
1
6#pragma once
7#include <aws/monitoring/CloudWatch_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSStreamFwd.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/SingleMetricAnomalyDetector.h>
13#include <aws/monitoring/model/MetricMathAnomalyDetector.h>
14#include <utility>
15
16namespace Aws
17{
18namespace Utils
19{
20namespace Xml
21{
22 class XmlNode;
23} // namespace Xml
24} // namespace Utils
25namespace CloudWatch
26{
27namespace Model
28{
29
41 {
42 public:
43 AWS_CLOUDWATCH_API AnomalyDetector() = default;
44 AWS_CLOUDWATCH_API AnomalyDetector(const Aws::Utils::Xml::XmlNode& xmlNode);
45 AWS_CLOUDWATCH_API AnomalyDetector& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
46
47 AWS_CLOUDWATCH_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
48 AWS_CLOUDWATCH_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
49
50
52
57 inline const AnomalyDetectorConfiguration& GetConfiguration() const { return m_configuration; }
58 inline bool ConfigurationHasBeenSet() const { return m_configurationHasBeenSet; }
59 template<typename ConfigurationT = AnomalyDetectorConfiguration>
60 void SetConfiguration(ConfigurationT&& value) { m_configurationHasBeenSet = true; m_configuration = std::forward<ConfigurationT>(value); }
61 template<typename ConfigurationT = AnomalyDetectorConfiguration>
62 AnomalyDetector& WithConfiguration(ConfigurationT&& value) { SetConfiguration(std::forward<ConfigurationT>(value)); return *this;}
64
66
69 inline AnomalyDetectorStateValue GetStateValue() const { return m_stateValue; }
70 inline bool StateValueHasBeenSet() const { return m_stateValueHasBeenSet; }
71 inline void SetStateValue(AnomalyDetectorStateValue value) { m_stateValueHasBeenSet = true; m_stateValue = value; }
74
76
81 inline const MetricCharacteristics& GetMetricCharacteristics() const { return m_metricCharacteristics; }
82 inline bool MetricCharacteristicsHasBeenSet() const { return m_metricCharacteristicsHasBeenSet; }
83 template<typename MetricCharacteristicsT = MetricCharacteristics>
84 void SetMetricCharacteristics(MetricCharacteristicsT&& value) { m_metricCharacteristicsHasBeenSet = true; m_metricCharacteristics = std::forward<MetricCharacteristicsT>(value); }
85 template<typename MetricCharacteristicsT = MetricCharacteristics>
86 AnomalyDetector& WithMetricCharacteristics(MetricCharacteristicsT&& value) { SetMetricCharacteristics(std::forward<MetricCharacteristicsT>(value)); return *this;}
88
90
93 inline const SingleMetricAnomalyDetector& GetSingleMetricAnomalyDetector() const { return m_singleMetricAnomalyDetector; }
94 inline bool SingleMetricAnomalyDetectorHasBeenSet() const { return m_singleMetricAnomalyDetectorHasBeenSet; }
95 template<typename SingleMetricAnomalyDetectorT = SingleMetricAnomalyDetector>
96 void SetSingleMetricAnomalyDetector(SingleMetricAnomalyDetectorT&& value) { m_singleMetricAnomalyDetectorHasBeenSet = true; m_singleMetricAnomalyDetector = std::forward<SingleMetricAnomalyDetectorT>(value); }
97 template<typename SingleMetricAnomalyDetectorT = SingleMetricAnomalyDetector>
98 AnomalyDetector& WithSingleMetricAnomalyDetector(SingleMetricAnomalyDetectorT&& value) { SetSingleMetricAnomalyDetector(std::forward<SingleMetricAnomalyDetectorT>(value)); return *this;}
100
102
105 inline const MetricMathAnomalyDetector& GetMetricMathAnomalyDetector() const { return m_metricMathAnomalyDetector; }
106 inline bool MetricMathAnomalyDetectorHasBeenSet() const { return m_metricMathAnomalyDetectorHasBeenSet; }
107 template<typename MetricMathAnomalyDetectorT = MetricMathAnomalyDetector>
108 void SetMetricMathAnomalyDetector(MetricMathAnomalyDetectorT&& value) { m_metricMathAnomalyDetectorHasBeenSet = true; m_metricMathAnomalyDetector = std::forward<MetricMathAnomalyDetectorT>(value); }
109 template<typename MetricMathAnomalyDetectorT = MetricMathAnomalyDetector>
110 AnomalyDetector& WithMetricMathAnomalyDetector(MetricMathAnomalyDetectorT&& value) { SetMetricMathAnomalyDetector(std::forward<MetricMathAnomalyDetectorT>(value)); return *this;}
112 private:
113
114 AnomalyDetectorConfiguration m_configuration;
115 bool m_configurationHasBeenSet = false;
116
118 bool m_stateValueHasBeenSet = false;
119
120 MetricCharacteristics m_metricCharacteristics;
121 bool m_metricCharacteristicsHasBeenSet = false;
122
123 SingleMetricAnomalyDetector m_singleMetricAnomalyDetector;
124 bool m_singleMetricAnomalyDetectorHasBeenSet = false;
125
126 MetricMathAnomalyDetector m_metricMathAnomalyDetector;
127 bool m_metricMathAnomalyDetectorHasBeenSet = false;
128 };
129
130} // namespace Model
131} // namespace CloudWatch
132} // namespace Aws
void SetMetricCharacteristics(MetricCharacteristicsT &&value)
AWS_CLOUDWATCH_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
AWS_CLOUDWATCH_API void OutputToStream(Aws::OStream &oStream, const char *location) const
AWS_CLOUDWATCH_API AnomalyDetector & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
const SingleMetricAnomalyDetector & GetSingleMetricAnomalyDetector() const
AnomalyDetector & WithMetricMathAnomalyDetector(MetricMathAnomalyDetectorT &&value)
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
AWS_CLOUDWATCH_API AnomalyDetector(const Aws::Utils::Xml::XmlNode &xmlNode)
void SetSingleMetricAnomalyDetector(SingleMetricAnomalyDetectorT &&value)
void SetMetricMathAnomalyDetector(MetricMathAnomalyDetectorT &&value)
const MetricCharacteristics & GetMetricCharacteristics() const
AnomalyDetector & WithStateValue(AnomalyDetectorStateValue value)
void SetConfiguration(ConfigurationT &&value)
AWS_CLOUDWATCH_API AnomalyDetector()=default
std::basic_ostream< char, std::char_traits< char > > OStream