AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
PerformanceInsightsMetricQuery.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSMap.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/devops-guru/DevOpsGuru_EXPORTS.h>
10#include <aws/devops-guru/model/PerformanceInsightsMetricDimensionGroup.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace DevOpsGuru {
22namespace Model {
23
48 public:
49 AWS_DEVOPSGURU_API PerformanceInsightsMetricQuery() = default;
52 AWS_DEVOPSGURU_API Aws::Utils::Json::JsonValue Jsonize() const;
53
55
70 inline const Aws::String& GetMetric() const { return m_metric; }
71 inline bool MetricHasBeenSet() const { return m_metricHasBeenSet; }
72 template <typename MetricT = Aws::String>
73 void SetMetric(MetricT&& value) {
74 m_metricHasBeenSet = true;
75 m_metric = std::forward<MetricT>(value);
76 }
77 template <typename MetricT = Aws::String>
79 SetMetric(std::forward<MetricT>(value));
80 return *this;
81 }
83
85
92 inline const PerformanceInsightsMetricDimensionGroup& GetGroupBy() const { return m_groupBy; }
93 inline bool GroupByHasBeenSet() const { return m_groupByHasBeenSet; }
94 template <typename GroupByT = PerformanceInsightsMetricDimensionGroup>
95 void SetGroupBy(GroupByT&& value) {
96 m_groupByHasBeenSet = true;
97 m_groupBy = std::forward<GroupByT>(value);
98 }
99 template <typename GroupByT = PerformanceInsightsMetricDimensionGroup>
101 SetGroupBy(std::forward<GroupByT>(value));
102 return *this;
103 }
105
107
114 inline const Aws::Map<Aws::String, Aws::String>& GetFilter() const { return m_filter; }
115 inline bool FilterHasBeenSet() const { return m_filterHasBeenSet; }
116 template <typename FilterT = Aws::Map<Aws::String, Aws::String>>
117 void SetFilter(FilterT&& value) {
118 m_filterHasBeenSet = true;
119 m_filter = std::forward<FilterT>(value);
120 }
121 template <typename FilterT = Aws::Map<Aws::String, Aws::String>>
123 SetFilter(std::forward<FilterT>(value));
124 return *this;
125 }
126 template <typename FilterKeyT = Aws::String, typename FilterValueT = Aws::String>
127 PerformanceInsightsMetricQuery& AddFilter(FilterKeyT&& key, FilterValueT&& value) {
128 m_filterHasBeenSet = true;
129 m_filter.emplace(std::forward<FilterKeyT>(key), std::forward<FilterValueT>(value));
130 return *this;
131 }
133 private:
134 Aws::String m_metric;
135
137
139 bool m_metricHasBeenSet = false;
140 bool m_groupByHasBeenSet = false;
141 bool m_filterHasBeenSet = false;
142};
143
144} // namespace Model
145} // namespace DevOpsGuru
146} // namespace Aws
PerformanceInsightsMetricQuery & WithGroupBy(GroupByT &&value)
const Aws::Map< Aws::String, Aws::String > & GetFilter() const
const PerformanceInsightsMetricDimensionGroup & GetGroupBy() const
PerformanceInsightsMetricQuery & WithFilter(FilterT &&value)
AWS_DEVOPSGURU_API PerformanceInsightsMetricQuery(Aws::Utils::Json::JsonView jsonValue)
PerformanceInsightsMetricQuery & WithMetric(MetricT &&value)
PerformanceInsightsMetricQuery & AddFilter(FilterKeyT &&key, FilterValueT &&value)
AWS_DEVOPSGURU_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_DEVOPSGURU_API PerformanceInsightsMetricQuery()=default
AWS_DEVOPSGURU_API PerformanceInsightsMetricQuery & operator=(Aws::Utils::Json::JsonView jsonValue)
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue