AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
MetricStreamStatisticsMetric.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 <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Xml
17{
18 class XmlNode;
19} // namespace Xml
20} // namespace Utils
21namespace CloudWatch
22{
23namespace Model
24{
25
33 {
34 public:
35 AWS_CLOUDWATCH_API MetricStreamStatisticsMetric();
36 AWS_CLOUDWATCH_API MetricStreamStatisticsMetric(const Aws::Utils::Xml::XmlNode& xmlNode);
38
39 AWS_CLOUDWATCH_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
40 AWS_CLOUDWATCH_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
41
42
44
47 inline const Aws::String& GetNamespace() const{ return m_namespace; }
48 inline bool NamespaceHasBeenSet() const { return m_namespaceHasBeenSet; }
49 inline void SetNamespace(const Aws::String& value) { m_namespaceHasBeenSet = true; m_namespace = value; }
50 inline void SetNamespace(Aws::String&& value) { m_namespaceHasBeenSet = true; m_namespace = std::move(value); }
51 inline void SetNamespace(const char* value) { m_namespaceHasBeenSet = true; m_namespace.assign(value); }
52 inline MetricStreamStatisticsMetric& WithNamespace(const Aws::String& value) { SetNamespace(value); return *this;}
53 inline MetricStreamStatisticsMetric& WithNamespace(Aws::String&& value) { SetNamespace(std::move(value)); return *this;}
54 inline MetricStreamStatisticsMetric& WithNamespace(const char* value) { SetNamespace(value); return *this;}
56
58
61 inline const Aws::String& GetMetricName() const{ return m_metricName; }
62 inline bool MetricNameHasBeenSet() const { return m_metricNameHasBeenSet; }
63 inline void SetMetricName(const Aws::String& value) { m_metricNameHasBeenSet = true; m_metricName = value; }
64 inline void SetMetricName(Aws::String&& value) { m_metricNameHasBeenSet = true; m_metricName = std::move(value); }
65 inline void SetMetricName(const char* value) { m_metricNameHasBeenSet = true; m_metricName.assign(value); }
66 inline MetricStreamStatisticsMetric& WithMetricName(const Aws::String& value) { SetMetricName(value); return *this;}
67 inline MetricStreamStatisticsMetric& WithMetricName(Aws::String&& value) { SetMetricName(std::move(value)); return *this;}
68 inline MetricStreamStatisticsMetric& WithMetricName(const char* value) { SetMetricName(value); return *this;}
70 private:
71
72 Aws::String m_namespace;
73 bool m_namespaceHasBeenSet = false;
74
75 Aws::String m_metricName;
76 bool m_metricNameHasBeenSet = false;
77 };
78
79} // namespace Model
80} // namespace CloudWatch
81} // namespace Aws
MetricStreamStatisticsMetric & WithNamespace(const char *value)
MetricStreamStatisticsMetric & WithMetricName(const char *value)
AWS_CLOUDWATCH_API MetricStreamStatisticsMetric & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
MetricStreamStatisticsMetric & WithMetricName(const Aws::String &value)
AWS_CLOUDWATCH_API void OutputToStream(Aws::OStream &oStream, const char *location) const
AWS_CLOUDWATCH_API MetricStreamStatisticsMetric(const Aws::Utils::Xml::XmlNode &xmlNode)
MetricStreamStatisticsMetric & WithNamespace(const Aws::String &value)
MetricStreamStatisticsMetric & WithMetricName(Aws::String &&value)
AWS_CLOUDWATCH_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
MetricStreamStatisticsMetric & WithNamespace(Aws::String &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::basic_ostream< char, std::char_traits< char > > OStream