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>
55 template<
typename AccountIdT = Aws::String>
56 void SetAccountId(AccountIdT&& value) { m_accountIdHasBeenSet =
true; m_accountId = std::forward<AccountIdT>(value); }
57 template<
typename AccountIdT = Aws::String>
67 template<
typename NamespaceT = Aws::String>
68 void SetNamespace(NamespaceT&& value) { m_namespaceHasBeenSet =
true; m_namespace = std::forward<NamespaceT>(value); }
69 template<
typename NamespaceT = Aws::String>
79 template<
typename MetricNameT = Aws::String>
80 void SetMetricName(MetricNameT&& value) { m_metricNameHasBeenSet =
true; m_metricName = std::forward<MetricNameT>(value); }
81 template<
typename MetricNameT = Aws::String>
91 template<
typename DimensionsT = Aws::Vector<Dimension>>
92 void SetDimensions(DimensionsT&& value) { m_dimensionsHasBeenSet =
true; m_dimensions = std::forward<DimensionsT>(value); }
93 template<
typename DimensionsT = Aws::Vector<Dimension>>
95 template<
typename DimensionsT = Dimension>
105 template<
typename StatT = Aws::String>
106 void SetStat(StatT&& value) { m_statHasBeenSet =
true; m_stat = std::forward<StatT>(value); }
107 template<
typename StatT = Aws::String>
113 bool m_accountIdHasBeenSet =
false;
116 bool m_namespaceHasBeenSet =
false;
119 bool m_metricNameHasBeenSet =
false;
122 bool m_dimensionsHasBeenSet =
false;
125 bool m_statHasBeenSet =
false;
void SetStat(StatT &&value)
const Aws::String & GetMetricName() const
AWS_CLOUDWATCH_API SingleMetricAnomalyDetector(const Aws::Utils::Xml::XmlNode &xmlNode)
const Aws::String & GetAccountId() const
SingleMetricAnomalyDetector & WithDimensions(DimensionsT &&value)
bool MetricNameHasBeenSet() const
void SetDimensions(DimensionsT &&value)
AWS_CLOUDWATCH_API SingleMetricAnomalyDetector & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
const Aws::String & GetNamespace() const
const Aws::String & GetStat() const
SingleMetricAnomalyDetector & WithAccountId(AccountIdT &&value)
bool StatHasBeenSet() const
bool DimensionsHasBeenSet() const
SingleMetricAnomalyDetector & WithNamespace(NamespaceT &&value)
AWS_CLOUDWATCH_API void OutputToStream(Aws::OStream &oStream, const char *location) const
bool NamespaceHasBeenSet() const
AWS_CLOUDWATCH_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
SingleMetricAnomalyDetector & WithStat(StatT &&value)
SingleMetricAnomalyDetector & WithMetricName(MetricNameT &&value)
AWS_CLOUDWATCH_API SingleMetricAnomalyDetector()=default
bool AccountIdHasBeenSet() const
void SetMetricName(MetricNameT &&value)
void SetAccountId(AccountIdT &&value)
const Aws::Vector< Dimension > & GetDimensions() const
SingleMetricAnomalyDetector & AddDimensions(DimensionsT &&value)
void SetNamespace(NamespaceT &&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