AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
PerformanceInsightsMetricQuery.h
1
6#pragma once
7#include <aws/rds/RDS_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
9#include <aws/rds/model/PerformanceInsightsMetricDimensionGroup.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Xml
18{
19 class XmlNode;
20} // namespace Xml
21} // namespace Utils
22namespace RDS
23{
24namespace Model
25{
26
39 {
40 public:
41 AWS_RDS_API PerformanceInsightsMetricQuery() = default;
44
45 AWS_RDS_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
46 AWS_RDS_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
47
48
50
57 inline const PerformanceInsightsMetricDimensionGroup& GetGroupBy() const { return m_groupBy; }
58 inline bool GroupByHasBeenSet() const { return m_groupByHasBeenSet; }
59 template<typename GroupByT = PerformanceInsightsMetricDimensionGroup>
60 void SetGroupBy(GroupByT&& value) { m_groupByHasBeenSet = true; m_groupBy = std::forward<GroupByT>(value); }
61 template<typename GroupByT = PerformanceInsightsMetricDimensionGroup>
62 PerformanceInsightsMetricQuery& WithGroupBy(GroupByT&& value) { SetGroupBy(std::forward<GroupByT>(value)); return *this;}
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) { m_metricHasBeenSet = true; m_metric = std::forward<MetricT>(value); }
87 template<typename MetricT = Aws::String>
88 PerformanceInsightsMetricQuery& WithMetric(MetricT&& value) { SetMetric(std::forward<MetricT>(value)); return *this;}
90 private:
91
93 bool m_groupByHasBeenSet = false;
94
95 Aws::String m_metric;
96 bool m_metricHasBeenSet = false;
97 };
98
99} // namespace Model
100} // namespace RDS
101} // 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