AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
MetricQuery.h
1
6#pragma once
7#include <aws/pi/PI_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/pi/model/DimensionGroup.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 PI
24{
25namespace Model
26{
27
42 {
43 public:
44 AWS_PI_API MetricQuery();
48
49
51
72 inline const Aws::String& GetMetric() const{ return m_metric; }
73 inline bool MetricHasBeenSet() const { return m_metricHasBeenSet; }
74 inline void SetMetric(const Aws::String& value) { m_metricHasBeenSet = true; m_metric = value; }
75 inline void SetMetric(Aws::String&& value) { m_metricHasBeenSet = true; m_metric = std::move(value); }
76 inline void SetMetric(const char* value) { m_metricHasBeenSet = true; m_metric.assign(value); }
77 inline MetricQuery& WithMetric(const Aws::String& value) { SetMetric(value); return *this;}
78 inline MetricQuery& WithMetric(Aws::String&& value) { SetMetric(std::move(value)); return *this;}
79 inline MetricQuery& WithMetric(const char* value) { SetMetric(value); return *this;}
81
83
90 inline const DimensionGroup& GetGroupBy() const{ return m_groupBy; }
91 inline bool GroupByHasBeenSet() const { return m_groupByHasBeenSet; }
92 inline void SetGroupBy(const DimensionGroup& value) { m_groupByHasBeenSet = true; m_groupBy = value; }
93 inline void SetGroupBy(DimensionGroup&& value) { m_groupByHasBeenSet = true; m_groupBy = std::move(value); }
94 inline MetricQuery& WithGroupBy(const DimensionGroup& value) { SetGroupBy(value); return *this;}
95 inline MetricQuery& WithGroupBy(DimensionGroup&& value) { SetGroupBy(std::move(value)); return *this;}
97
99
107 inline const Aws::Map<Aws::String, Aws::String>& GetFilter() const{ return m_filter; }
108 inline bool FilterHasBeenSet() const { return m_filterHasBeenSet; }
109 inline void SetFilter(const Aws::Map<Aws::String, Aws::String>& value) { m_filterHasBeenSet = true; m_filter = value; }
110 inline void SetFilter(Aws::Map<Aws::String, Aws::String>&& value) { m_filterHasBeenSet = true; m_filter = std::move(value); }
111 inline MetricQuery& WithFilter(const Aws::Map<Aws::String, Aws::String>& value) { SetFilter(value); return *this;}
112 inline MetricQuery& WithFilter(Aws::Map<Aws::String, Aws::String>&& value) { SetFilter(std::move(value)); return *this;}
113 inline MetricQuery& AddFilter(const Aws::String& key, const Aws::String& value) { m_filterHasBeenSet = true; m_filter.emplace(key, value); return *this; }
114 inline MetricQuery& AddFilter(Aws::String&& key, const Aws::String& value) { m_filterHasBeenSet = true; m_filter.emplace(std::move(key), value); return *this; }
115 inline MetricQuery& AddFilter(const Aws::String& key, Aws::String&& value) { m_filterHasBeenSet = true; m_filter.emplace(key, std::move(value)); return *this; }
116 inline MetricQuery& AddFilter(Aws::String&& key, Aws::String&& value) { m_filterHasBeenSet = true; m_filter.emplace(std::move(key), std::move(value)); return *this; }
117 inline MetricQuery& AddFilter(const char* key, Aws::String&& value) { m_filterHasBeenSet = true; m_filter.emplace(key, std::move(value)); return *this; }
118 inline MetricQuery& AddFilter(Aws::String&& key, const char* value) { m_filterHasBeenSet = true; m_filter.emplace(std::move(key), value); return *this; }
119 inline MetricQuery& AddFilter(const char* key, const char* value) { m_filterHasBeenSet = true; m_filter.emplace(key, value); return *this; }
121 private:
122
123 Aws::String m_metric;
124 bool m_metricHasBeenSet = false;
125
126 DimensionGroup m_groupBy;
127 bool m_groupByHasBeenSet = false;
128
130 bool m_filterHasBeenSet = false;
131 };
132
133} // namespace Model
134} // namespace PI
135} // namespace Aws
void SetMetric(Aws::String &&value)
Definition MetricQuery.h:75
MetricQuery & WithMetric(const Aws::String &value)
Definition MetricQuery.h:77
MetricQuery & WithFilter(const Aws::Map< Aws::String, Aws::String > &value)
MetricQuery & WithFilter(Aws::Map< Aws::String, Aws::String > &&value)
MetricQuery & AddFilter(Aws::String &&key, const char *value)
void SetFilter(Aws::Map< Aws::String, Aws::String > &&value)
MetricQuery & AddFilter(Aws::String &&key, Aws::String &&value)
AWS_PI_API MetricQuery(Aws::Utils::Json::JsonView jsonValue)
MetricQuery & AddFilter(const Aws::String &key, Aws::String &&value)
const Aws::String & GetMetric() const
Definition MetricQuery.h:72
MetricQuery & AddFilter(const char *key, const char *value)
MetricQuery & WithGroupBy(DimensionGroup &&value)
Definition MetricQuery.h:95
AWS_PI_API MetricQuery & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::Map< Aws::String, Aws::String > & GetFilter() const
void SetFilter(const Aws::Map< Aws::String, Aws::String > &value)
MetricQuery & AddFilter(const Aws::String &key, const Aws::String &value)
void SetGroupBy(const DimensionGroup &value)
Definition MetricQuery.h:92
const DimensionGroup & GetGroupBy() const
Definition MetricQuery.h:90
void SetMetric(const char *value)
Definition MetricQuery.h:76
MetricQuery & AddFilter(const char *key, Aws::String &&value)
AWS_PI_API Aws::Utils::Json::JsonValue Jsonize() const
MetricQuery & WithMetric(Aws::String &&value)
Definition MetricQuery.h:78
MetricQuery & AddFilter(Aws::String &&key, const Aws::String &value)
MetricQuery & WithMetric(const char *value)
Definition MetricQuery.h:79
void SetMetric(const Aws::String &value)
Definition MetricQuery.h:74
MetricQuery & WithGroupBy(const DimensionGroup &value)
Definition MetricQuery.h:94
void SetGroupBy(DimensionGroup &&value)
Definition MetricQuery.h:93
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