AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
SingleMetricAnomalyDetector.h
1
6#pragma once
7#include <aws/monitoring/CloudWatch_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/monitoring/model/Dimension.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Utils
17{
18namespace Xml
19{
20 class XmlNode;
21} // namespace Xml
22} // namespace Utils
23namespace CloudWatch
24{
25namespace Model
26{
27
37 {
38 public:
39 AWS_CLOUDWATCH_API SingleMetricAnomalyDetector();
40 AWS_CLOUDWATCH_API SingleMetricAnomalyDetector(const Aws::Utils::Xml::XmlNode& xmlNode);
42
43 AWS_CLOUDWATCH_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
44 AWS_CLOUDWATCH_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
45
46
48
53 inline const Aws::String& GetAccountId() const{ return m_accountId; }
54 inline bool AccountIdHasBeenSet() const { return m_accountIdHasBeenSet; }
55 inline void SetAccountId(const Aws::String& value) { m_accountIdHasBeenSet = true; m_accountId = value; }
56 inline void SetAccountId(Aws::String&& value) { m_accountIdHasBeenSet = true; m_accountId = std::move(value); }
57 inline void SetAccountId(const char* value) { m_accountIdHasBeenSet = true; m_accountId.assign(value); }
58 inline SingleMetricAnomalyDetector& WithAccountId(const Aws::String& value) { SetAccountId(value); return *this;}
59 inline SingleMetricAnomalyDetector& WithAccountId(Aws::String&& value) { SetAccountId(std::move(value)); return *this;}
60 inline SingleMetricAnomalyDetector& WithAccountId(const char* value) { SetAccountId(value); return *this;}
62
64
67 inline const Aws::String& GetNamespace() const{ return m_namespace; }
68 inline bool NamespaceHasBeenSet() const { return m_namespaceHasBeenSet; }
69 inline void SetNamespace(const Aws::String& value) { m_namespaceHasBeenSet = true; m_namespace = value; }
70 inline void SetNamespace(Aws::String&& value) { m_namespaceHasBeenSet = true; m_namespace = std::move(value); }
71 inline void SetNamespace(const char* value) { m_namespaceHasBeenSet = true; m_namespace.assign(value); }
72 inline SingleMetricAnomalyDetector& WithNamespace(const Aws::String& value) { SetNamespace(value); return *this;}
73 inline SingleMetricAnomalyDetector& WithNamespace(Aws::String&& value) { SetNamespace(std::move(value)); return *this;}
74 inline SingleMetricAnomalyDetector& WithNamespace(const char* value) { SetNamespace(value); return *this;}
76
78
81 inline const Aws::String& GetMetricName() const{ return m_metricName; }
82 inline bool MetricNameHasBeenSet() const { return m_metricNameHasBeenSet; }
83 inline void SetMetricName(const Aws::String& value) { m_metricNameHasBeenSet = true; m_metricName = value; }
84 inline void SetMetricName(Aws::String&& value) { m_metricNameHasBeenSet = true; m_metricName = std::move(value); }
85 inline void SetMetricName(const char* value) { m_metricNameHasBeenSet = true; m_metricName.assign(value); }
86 inline SingleMetricAnomalyDetector& WithMetricName(const Aws::String& value) { SetMetricName(value); return *this;}
87 inline SingleMetricAnomalyDetector& WithMetricName(Aws::String&& value) { SetMetricName(std::move(value)); return *this;}
88 inline SingleMetricAnomalyDetector& WithMetricName(const char* value) { SetMetricName(value); return *this;}
90
92
95 inline const Aws::Vector<Dimension>& GetDimensions() const{ return m_dimensions; }
96 inline bool DimensionsHasBeenSet() const { return m_dimensionsHasBeenSet; }
97 inline void SetDimensions(const Aws::Vector<Dimension>& value) { m_dimensionsHasBeenSet = true; m_dimensions = value; }
98 inline void SetDimensions(Aws::Vector<Dimension>&& value) { m_dimensionsHasBeenSet = true; m_dimensions = std::move(value); }
100 inline SingleMetricAnomalyDetector& WithDimensions(Aws::Vector<Dimension>&& value) { SetDimensions(std::move(value)); return *this;}
101 inline SingleMetricAnomalyDetector& AddDimensions(const Dimension& value) { m_dimensionsHasBeenSet = true; m_dimensions.push_back(value); return *this; }
102 inline SingleMetricAnomalyDetector& AddDimensions(Dimension&& value) { m_dimensionsHasBeenSet = true; m_dimensions.push_back(std::move(value)); return *this; }
104
106
109 inline const Aws::String& GetStat() const{ return m_stat; }
110 inline bool StatHasBeenSet() const { return m_statHasBeenSet; }
111 inline void SetStat(const Aws::String& value) { m_statHasBeenSet = true; m_stat = value; }
112 inline void SetStat(Aws::String&& value) { m_statHasBeenSet = true; m_stat = std::move(value); }
113 inline void SetStat(const char* value) { m_statHasBeenSet = true; m_stat.assign(value); }
114 inline SingleMetricAnomalyDetector& WithStat(const Aws::String& value) { SetStat(value); return *this;}
115 inline SingleMetricAnomalyDetector& WithStat(Aws::String&& value) { SetStat(std::move(value)); return *this;}
116 inline SingleMetricAnomalyDetector& WithStat(const char* value) { SetStat(value); return *this;}
118 private:
119
120 Aws::String m_accountId;
121 bool m_accountIdHasBeenSet = false;
122
123 Aws::String m_namespace;
124 bool m_namespaceHasBeenSet = false;
125
126 Aws::String m_metricName;
127 bool m_metricNameHasBeenSet = false;
128
129 Aws::Vector<Dimension> m_dimensions;
130 bool m_dimensionsHasBeenSet = false;
131
132 Aws::String m_stat;
133 bool m_statHasBeenSet = false;
134 };
135
136} // namespace Model
137} // namespace CloudWatch
138} // namespace Aws
AWS_CLOUDWATCH_API SingleMetricAnomalyDetector(const Aws::Utils::Xml::XmlNode &xmlNode)
SingleMetricAnomalyDetector & WithNamespace(const Aws::String &value)
SingleMetricAnomalyDetector & WithAccountId(Aws::String &&value)
AWS_CLOUDWATCH_API SingleMetricAnomalyDetector & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
SingleMetricAnomalyDetector & AddDimensions(const Dimension &value)
SingleMetricAnomalyDetector & WithDimensions(const Aws::Vector< Dimension > &value)
SingleMetricAnomalyDetector & WithNamespace(const char *value)
SingleMetricAnomalyDetector & WithMetricName(const char *value)
void SetDimensions(const Aws::Vector< Dimension > &value)
SingleMetricAnomalyDetector & WithStat(Aws::String &&value)
SingleMetricAnomalyDetector & AddDimensions(Dimension &&value)
SingleMetricAnomalyDetector & WithDimensions(Aws::Vector< Dimension > &&value)
SingleMetricAnomalyDetector & WithMetricName(const Aws::String &value)
SingleMetricAnomalyDetector & WithMetricName(Aws::String &&value)
SingleMetricAnomalyDetector & WithStat(const char *value)
SingleMetricAnomalyDetector & WithNamespace(Aws::String &&value)
AWS_CLOUDWATCH_API void OutputToStream(Aws::OStream &oStream, const char *location) const
SingleMetricAnomalyDetector & WithStat(const Aws::String &value)
SingleMetricAnomalyDetector & WithAccountId(const Aws::String &value)
AWS_CLOUDWATCH_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
SingleMetricAnomalyDetector & WithAccountId(const char *value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
std::basic_ostream< char, std::char_traits< char > > OStream