AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetConfiguration(const AnomalyDetectorConfiguration& value) { m_configurationHasBeenSet = true; m_configuration = value; }
60 inline void SetConfiguration(AnomalyDetectorConfiguration&& value) { m_configurationHasBeenSet = true; m_configuration = std::move(value); }
62 inline AnomalyDetector& WithConfiguration(AnomalyDetectorConfiguration&& value) { SetConfiguration(std::move(value)); return *this;}
64
66
69 inline const AnomalyDetectorStateValue& GetStateValue() const{ return m_stateValue; }
70 inline bool StateValueHasBeenSet() const { return m_stateValueHasBeenSet; }
71 inline void SetStateValue(const AnomalyDetectorStateValue& value) { m_stateValueHasBeenSet = true; m_stateValue = value; }
72 inline void SetStateValue(AnomalyDetectorStateValue&& value) { m_stateValueHasBeenSet = true; m_stateValue = std::move(value); }
73 inline AnomalyDetector& WithStateValue(const AnomalyDetectorStateValue& value) { SetStateValue(value); return *this;}
74 inline AnomalyDetector& WithStateValue(AnomalyDetectorStateValue&& value) { SetStateValue(std::move(value)); return *this;}
76
78
83 inline const MetricCharacteristics& GetMetricCharacteristics() const{ return m_metricCharacteristics; }
84 inline bool MetricCharacteristicsHasBeenSet() const { return m_metricCharacteristicsHasBeenSet; }
85 inline void SetMetricCharacteristics(const MetricCharacteristics& value) { m_metricCharacteristicsHasBeenSet = true; m_metricCharacteristics = value; }
86 inline void SetMetricCharacteristics(MetricCharacteristics&& value) { m_metricCharacteristicsHasBeenSet = true; m_metricCharacteristics = std::move(value); }
90
92
95 inline const SingleMetricAnomalyDetector& GetSingleMetricAnomalyDetector() const{ return m_singleMetricAnomalyDetector; }
96 inline bool SingleMetricAnomalyDetectorHasBeenSet() const { return m_singleMetricAnomalyDetectorHasBeenSet; }
97 inline void SetSingleMetricAnomalyDetector(const SingleMetricAnomalyDetector& value) { m_singleMetricAnomalyDetectorHasBeenSet = true; m_singleMetricAnomalyDetector = value; }
98 inline void SetSingleMetricAnomalyDetector(SingleMetricAnomalyDetector&& value) { m_singleMetricAnomalyDetectorHasBeenSet = true; m_singleMetricAnomalyDetector = std::move(value); }
102
104
107 inline const MetricMathAnomalyDetector& GetMetricMathAnomalyDetector() const{ return m_metricMathAnomalyDetector; }
108 inline bool MetricMathAnomalyDetectorHasBeenSet() const { return m_metricMathAnomalyDetectorHasBeenSet; }
109 inline void SetMetricMathAnomalyDetector(const MetricMathAnomalyDetector& value) { m_metricMathAnomalyDetectorHasBeenSet = true; m_metricMathAnomalyDetector = value; }
110 inline void SetMetricMathAnomalyDetector(MetricMathAnomalyDetector&& value) { m_metricMathAnomalyDetectorHasBeenSet = true; m_metricMathAnomalyDetector = std::move(value); }
114 private:
115
116 AnomalyDetectorConfiguration m_configuration;
117 bool m_configurationHasBeenSet = false;
118
119 AnomalyDetectorStateValue m_stateValue;
120 bool m_stateValueHasBeenSet = false;
121
122 MetricCharacteristics m_metricCharacteristics;
123 bool m_metricCharacteristicsHasBeenSet = false;
124
125 SingleMetricAnomalyDetector m_singleMetricAnomalyDetector;
126 bool m_singleMetricAnomalyDetectorHasBeenSet = false;
127
128 MetricMathAnomalyDetector m_metricMathAnomalyDetector;
129 bool m_metricMathAnomalyDetectorHasBeenSet = false;
130 };
131
132} // namespace Model
133} // namespace CloudWatch
134} // namespace Aws
void SetMetricMathAnomalyDetector(MetricMathAnomalyDetector &&value)
AnomalyDetector & WithMetricMathAnomalyDetector(const MetricMathAnomalyDetector &value)
AnomalyDetector & WithMetricMathAnomalyDetector(MetricMathAnomalyDetector &&value)
AWS_CLOUDWATCH_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
void SetSingleMetricAnomalyDetector(SingleMetricAnomalyDetector &&value)
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
const AnomalyDetectorConfiguration & GetConfiguration() const
AnomalyDetector & WithStateValue(const AnomalyDetectorStateValue &value)
AnomalyDetector & WithConfiguration(const AnomalyDetectorConfiguration &value)
void SetSingleMetricAnomalyDetector(const SingleMetricAnomalyDetector &value)
AnomalyDetector & WithSingleMetricAnomalyDetector(SingleMetricAnomalyDetector &&value)
AnomalyDetector & WithConfiguration(AnomalyDetectorConfiguration &&value)
const MetricMathAnomalyDetector & GetMetricMathAnomalyDetector() const
void SetStateValue(AnomalyDetectorStateValue &&value)
AWS_CLOUDWATCH_API AnomalyDetector(const Aws::Utils::Xml::XmlNode &xmlNode)
void SetMetricCharacteristics(MetricCharacteristics &&value)
AnomalyDetector & WithStateValue(AnomalyDetectorStateValue &&value)
void SetMetricCharacteristics(const MetricCharacteristics &value)
const MetricCharacteristics & GetMetricCharacteristics() const
void SetConfiguration(const AnomalyDetectorConfiguration &value)
void SetStateValue(const AnomalyDetectorStateValue &value)
void SetMetricMathAnomalyDetector(const MetricMathAnomalyDetector &value)
AnomalyDetector & WithMetricCharacteristics(const MetricCharacteristics &value)
AnomalyDetector & WithSingleMetricAnomalyDetector(const SingleMetricAnomalyDetector &value)
AnomalyDetector & WithMetricCharacteristics(MetricCharacteristics &&value)
void SetConfiguration(AnomalyDetectorConfiguration &&value)
const AnomalyDetectorStateValue & GetStateValue() const
std::basic_ostream< char, std::char_traits< char > > OStream