AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
PerformanceInsightsMetricQuery.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/rds/RDS_EXPORTS.h>
10#include <aws/rds/model/PerformanceInsightsMetricDimensionGroup.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Xml {
17class XmlNode;
18} // namespace Xml
19} // namespace Utils
20namespace RDS {
21namespace Model {
22
35 public:
36 AWS_RDS_API PerformanceInsightsMetricQuery() = default;
39
40 AWS_RDS_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
41 AWS_RDS_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
42
44
51 inline const PerformanceInsightsMetricDimensionGroup& GetGroupBy() const { return m_groupBy; }
52 inline bool GroupByHasBeenSet() const { return m_groupByHasBeenSet; }
53 template <typename GroupByT = PerformanceInsightsMetricDimensionGroup>
54 void SetGroupBy(GroupByT&& value) {
55 m_groupByHasBeenSet = true;
56 m_groupBy = std::forward<GroupByT>(value);
57 }
58 template <typename GroupByT = PerformanceInsightsMetricDimensionGroup>
60 SetGroupBy(std::forward<GroupByT>(value));
61 return *this;
62 }
64
66
83 inline const Aws::String& GetMetric() const { return m_metric; }
84 inline bool MetricHasBeenSet() const { return m_metricHasBeenSet; }
85 template <typename MetricT = Aws::String>
86 void SetMetric(MetricT&& value) {
87 m_metricHasBeenSet = true;
88 m_metric = std::forward<MetricT>(value);
89 }
90 template <typename MetricT = Aws::String>
92 SetMetric(std::forward<MetricT>(value));
93 return *this;
94 }
96 private:
98
99 Aws::String m_metric;
100 bool m_groupByHasBeenSet = false;
101 bool m_metricHasBeenSet = false;
102};
103
104} // namespace Model
105} // namespace RDS
106} // namespace Aws
PerformanceInsightsMetricQuery & WithMetric(MetricT &&value)
AWS_RDS_API PerformanceInsightsMetricQuery & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
PerformanceInsightsMetricQuery & WithGroupBy(GroupByT &&value)
AWS_RDS_API void OutputToStream(Aws::OStream &oStream, const char *location) const
AWS_RDS_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
const PerformanceInsightsMetricDimensionGroup & GetGroupBy() const
AWS_RDS_API PerformanceInsightsMetricQuery(const Aws::Utils::Xml::XmlNode &xmlNode)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::basic_ostream< char, std::char_traits< char > > OStream