AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
PerformanceInsightsMetricQuery.h
1
6#pragma once
7#include <aws/devops-guru/DevOpsGuru_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/devops-guru/model/PerformanceInsightsMetricDimensionGroup.h>
10#include <aws/core/utils/memory/stl/AWSMap.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace DevOpsGuru
24{
25namespace Model
26{
27
52 {
53 public:
54 AWS_DEVOPSGURU_API PerformanceInsightsMetricQuery();
57 AWS_DEVOPSGURU_API Aws::Utils::Json::JsonValue Jsonize() const;
58
59
61
76 inline const Aws::String& GetMetric() const{ return m_metric; }
77 inline bool MetricHasBeenSet() const { return m_metricHasBeenSet; }
78 inline void SetMetric(const Aws::String& value) { m_metricHasBeenSet = true; m_metric = value; }
79 inline void SetMetric(Aws::String&& value) { m_metricHasBeenSet = true; m_metric = std::move(value); }
80 inline void SetMetric(const char* value) { m_metricHasBeenSet = true; m_metric.assign(value); }
81 inline PerformanceInsightsMetricQuery& WithMetric(const Aws::String& value) { SetMetric(value); return *this;}
82 inline PerformanceInsightsMetricQuery& WithMetric(Aws::String&& value) { SetMetric(std::move(value)); return *this;}
83 inline PerformanceInsightsMetricQuery& WithMetric(const char* value) { SetMetric(value); return *this;}
85
87
94 inline const PerformanceInsightsMetricDimensionGroup& GetGroupBy() const{ return m_groupBy; }
95 inline bool GroupByHasBeenSet() const { return m_groupByHasBeenSet; }
96 inline void SetGroupBy(const PerformanceInsightsMetricDimensionGroup& value) { m_groupByHasBeenSet = true; m_groupBy = value; }
97 inline void SetGroupBy(PerformanceInsightsMetricDimensionGroup&& value) { m_groupByHasBeenSet = true; m_groupBy = std::move(value); }
101
103
110 inline const Aws::Map<Aws::String, Aws::String>& GetFilter() const{ return m_filter; }
111 inline bool FilterHasBeenSet() const { return m_filterHasBeenSet; }
112 inline void SetFilter(const Aws::Map<Aws::String, Aws::String>& value) { m_filterHasBeenSet = true; m_filter = value; }
113 inline void SetFilter(Aws::Map<Aws::String, Aws::String>&& value) { m_filterHasBeenSet = true; m_filter = std::move(value); }
116 inline PerformanceInsightsMetricQuery& AddFilter(const Aws::String& key, const Aws::String& value) { m_filterHasBeenSet = true; m_filter.emplace(key, value); return *this; }
117 inline PerformanceInsightsMetricQuery& AddFilter(Aws::String&& key, const Aws::String& value) { m_filterHasBeenSet = true; m_filter.emplace(std::move(key), value); return *this; }
118 inline PerformanceInsightsMetricQuery& AddFilter(const Aws::String& key, Aws::String&& value) { m_filterHasBeenSet = true; m_filter.emplace(key, std::move(value)); return *this; }
119 inline PerformanceInsightsMetricQuery& AddFilter(Aws::String&& key, Aws::String&& value) { m_filterHasBeenSet = true; m_filter.emplace(std::move(key), std::move(value)); return *this; }
120 inline PerformanceInsightsMetricQuery& AddFilter(const char* key, Aws::String&& value) { m_filterHasBeenSet = true; m_filter.emplace(key, std::move(value)); return *this; }
121 inline PerformanceInsightsMetricQuery& AddFilter(Aws::String&& key, const char* value) { m_filterHasBeenSet = true; m_filter.emplace(std::move(key), value); return *this; }
122 inline PerformanceInsightsMetricQuery& AddFilter(const char* key, const char* value) { m_filterHasBeenSet = true; m_filter.emplace(key, value); return *this; }
124 private:
125
126 Aws::String m_metric;
127 bool m_metricHasBeenSet = false;
128
130 bool m_groupByHasBeenSet = false;
131
133 bool m_filterHasBeenSet = false;
134 };
135
136} // namespace Model
137} // namespace DevOpsGuru
138} // namespace Aws
PerformanceInsightsMetricQuery & AddFilter(Aws::String &&key, const Aws::String &value)
PerformanceInsightsMetricQuery & AddFilter(Aws::String &&key, const char *value)
PerformanceInsightsMetricQuery & AddFilter(const char *key, Aws::String &&value)
const Aws::Map< Aws::String, Aws::String > & GetFilter() const
PerformanceInsightsMetricQuery & WithMetric(Aws::String &&value)
const PerformanceInsightsMetricDimensionGroup & GetGroupBy() const
PerformanceInsightsMetricQuery & WithMetric(const char *value)
void SetFilter(Aws::Map< Aws::String, Aws::String > &&value)
PerformanceInsightsMetricQuery & AddFilter(const Aws::String &key, Aws::String &&value)
PerformanceInsightsMetricQuery & WithFilter(const Aws::Map< Aws::String, Aws::String > &value)
PerformanceInsightsMetricQuery & AddFilter(const Aws::String &key, const Aws::String &value)
PerformanceInsightsMetricQuery & WithGroupBy(PerformanceInsightsMetricDimensionGroup &&value)
PerformanceInsightsMetricQuery & AddFilter(Aws::String &&key, Aws::String &&value)
AWS_DEVOPSGURU_API PerformanceInsightsMetricQuery(Aws::Utils::Json::JsonView jsonValue)
PerformanceInsightsMetricQuery & WithMetric(const Aws::String &value)
void SetGroupBy(const PerformanceInsightsMetricDimensionGroup &value)
void SetGroupBy(PerformanceInsightsMetricDimensionGroup &&value)
void SetFilter(const Aws::Map< Aws::String, Aws::String > &value)
PerformanceInsightsMetricQuery & WithFilter(Aws::Map< Aws::String, Aws::String > &&value)
AWS_DEVOPSGURU_API Aws::Utils::Json::JsonValue Jsonize() const
PerformanceInsightsMetricQuery & AddFilter(const char *key, const char *value)
AWS_DEVOPSGURU_API PerformanceInsightsMetricQuery & operator=(Aws::Utils::Json::JsonView jsonValue)
PerformanceInsightsMetricQuery & WithGroupBy(const PerformanceInsightsMetricDimensionGroup &value)
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