AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
MetricDataQuery.h
1
6#pragma once
7#include <aws/application-signals/ApplicationSignals_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/application-signals/model/MetricStat.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace ApplicationSignals
23{
24namespace Model
25{
26
49 {
50 public:
51 AWS_APPLICATIONSIGNALS_API MetricDataQuery();
52 AWS_APPLICATIONSIGNALS_API MetricDataQuery(Aws::Utils::Json::JsonView jsonValue);
53 AWS_APPLICATIONSIGNALS_API MetricDataQuery& operator=(Aws::Utils::Json::JsonView jsonValue);
54 AWS_APPLICATIONSIGNALS_API Aws::Utils::Json::JsonValue Jsonize() const;
55
56
58
66 inline const Aws::String& GetId() const{ return m_id; }
67 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
68 inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; }
69 inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); }
70 inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); }
71 inline MetricDataQuery& WithId(const Aws::String& value) { SetId(value); return *this;}
72 inline MetricDataQuery& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;}
73 inline MetricDataQuery& WithId(const char* value) { SetId(value); return *this;}
75
77
83 inline const MetricStat& GetMetricStat() const{ return m_metricStat; }
84 inline bool MetricStatHasBeenSet() const { return m_metricStatHasBeenSet; }
85 inline void SetMetricStat(const MetricStat& value) { m_metricStatHasBeenSet = true; m_metricStat = value; }
86 inline void SetMetricStat(MetricStat&& value) { m_metricStatHasBeenSet = true; m_metricStat = std::move(value); }
87 inline MetricDataQuery& WithMetricStat(const MetricStat& value) { SetMetricStat(value); return *this;}
88 inline MetricDataQuery& WithMetricStat(MetricStat&& value) { SetMetricStat(std::move(value)); return *this;}
90
92
104 inline const Aws::String& GetExpression() const{ return m_expression; }
105 inline bool ExpressionHasBeenSet() const { return m_expressionHasBeenSet; }
106 inline void SetExpression(const Aws::String& value) { m_expressionHasBeenSet = true; m_expression = value; }
107 inline void SetExpression(Aws::String&& value) { m_expressionHasBeenSet = true; m_expression = std::move(value); }
108 inline void SetExpression(const char* value) { m_expressionHasBeenSet = true; m_expression.assign(value); }
109 inline MetricDataQuery& WithExpression(const Aws::String& value) { SetExpression(value); return *this;}
110 inline MetricDataQuery& WithExpression(Aws::String&& value) { SetExpression(std::move(value)); return *this;}
111 inline MetricDataQuery& WithExpression(const char* value) { SetExpression(value); return *this;}
113
115
125 inline const Aws::String& GetLabel() const{ return m_label; }
126 inline bool LabelHasBeenSet() const { return m_labelHasBeenSet; }
127 inline void SetLabel(const Aws::String& value) { m_labelHasBeenSet = true; m_label = value; }
128 inline void SetLabel(Aws::String&& value) { m_labelHasBeenSet = true; m_label = std::move(value); }
129 inline void SetLabel(const char* value) { m_labelHasBeenSet = true; m_label.assign(value); }
130 inline MetricDataQuery& WithLabel(const Aws::String& value) { SetLabel(value); return *this;}
131 inline MetricDataQuery& WithLabel(Aws::String&& value) { SetLabel(std::move(value)); return *this;}
132 inline MetricDataQuery& WithLabel(const char* value) { SetLabel(value); return *this;}
134
136
143 inline bool GetReturnData() const{ return m_returnData; }
144 inline bool ReturnDataHasBeenSet() const { return m_returnDataHasBeenSet; }
145 inline void SetReturnData(bool value) { m_returnDataHasBeenSet = true; m_returnData = value; }
146 inline MetricDataQuery& WithReturnData(bool value) { SetReturnData(value); return *this;}
148
150
165 inline int GetPeriod() const{ return m_period; }
166 inline bool PeriodHasBeenSet() const { return m_periodHasBeenSet; }
167 inline void SetPeriod(int value) { m_periodHasBeenSet = true; m_period = value; }
168 inline MetricDataQuery& WithPeriod(int value) { SetPeriod(value); return *this;}
170
172
177 inline const Aws::String& GetAccountId() const{ return m_accountId; }
178 inline bool AccountIdHasBeenSet() const { return m_accountIdHasBeenSet; }
179 inline void SetAccountId(const Aws::String& value) { m_accountIdHasBeenSet = true; m_accountId = value; }
180 inline void SetAccountId(Aws::String&& value) { m_accountIdHasBeenSet = true; m_accountId = std::move(value); }
181 inline void SetAccountId(const char* value) { m_accountIdHasBeenSet = true; m_accountId.assign(value); }
182 inline MetricDataQuery& WithAccountId(const Aws::String& value) { SetAccountId(value); return *this;}
183 inline MetricDataQuery& WithAccountId(Aws::String&& value) { SetAccountId(std::move(value)); return *this;}
184 inline MetricDataQuery& WithAccountId(const char* value) { SetAccountId(value); return *this;}
186 private:
187
188 Aws::String m_id;
189 bool m_idHasBeenSet = false;
190
191 MetricStat m_metricStat;
192 bool m_metricStatHasBeenSet = false;
193
194 Aws::String m_expression;
195 bool m_expressionHasBeenSet = false;
196
197 Aws::String m_label;
198 bool m_labelHasBeenSet = false;
199
200 bool m_returnData;
201 bool m_returnDataHasBeenSet = false;
202
203 int m_period;
204 bool m_periodHasBeenSet = false;
205
206 Aws::String m_accountId;
207 bool m_accountIdHasBeenSet = false;
208 };
209
210} // namespace Model
211} // namespace ApplicationSignals
212} // namespace Aws
MetricDataQuery & WithMetricStat(const MetricStat &value)
MetricDataQuery & WithId(const char *value)
MetricDataQuery & WithLabel(const Aws::String &value)
MetricDataQuery & WithAccountId(Aws::String &&value)
MetricDataQuery & WithMetricStat(MetricStat &&value)
AWS_APPLICATIONSIGNALS_API MetricDataQuery(Aws::Utils::Json::JsonView jsonValue)
MetricDataQuery & WithExpression(Aws::String &&value)
MetricDataQuery & WithAccountId(const char *value)
MetricDataQuery & WithId(Aws::String &&value)
AWS_APPLICATIONSIGNALS_API MetricDataQuery()
MetricDataQuery & WithExpression(const Aws::String &value)
MetricDataQuery & WithExpression(const char *value)
AWS_APPLICATIONSIGNALS_API Aws::Utils::Json::JsonValue Jsonize() const
MetricDataQuery & WithLabel(const char *value)
MetricDataQuery & WithId(const Aws::String &value)
AWS_APPLICATIONSIGNALS_API MetricDataQuery & operator=(Aws::Utils::Json::JsonView jsonValue)
MetricDataQuery & WithLabel(Aws::String &&value)
MetricDataQuery & WithAccountId(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue