AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
MetricDataQuery.h
1
6#pragma once
7#include <aws/application-signals/ApplicationSignals_EXPORTS.h>
8#include <aws/application-signals/model/MetricStat.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace ApplicationSignals {
21namespace Model {
22
45 public:
46 AWS_APPLICATIONSIGNALS_API MetricDataQuery() = default;
47 AWS_APPLICATIONSIGNALS_API MetricDataQuery(Aws::Utils::Json::JsonView jsonValue);
48 AWS_APPLICATIONSIGNALS_API MetricDataQuery& operator=(Aws::Utils::Json::JsonView jsonValue);
49 AWS_APPLICATIONSIGNALS_API Aws::Utils::Json::JsonValue Jsonize() const;
50
52
60 inline const Aws::String& GetId() const { return m_id; }
61 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
62 template <typename IdT = Aws::String>
63 void SetId(IdT&& value) {
64 m_idHasBeenSet = true;
65 m_id = std::forward<IdT>(value);
66 }
67 template <typename IdT = Aws::String>
68 MetricDataQuery& WithId(IdT&& value) {
69 SetId(std::forward<IdT>(value));
70 return *this;
71 }
73
75
81 inline const MetricStat& GetMetricStat() const { return m_metricStat; }
82 inline bool MetricStatHasBeenSet() const { return m_metricStatHasBeenSet; }
83 template <typename MetricStatT = MetricStat>
84 void SetMetricStat(MetricStatT&& value) {
85 m_metricStatHasBeenSet = true;
86 m_metricStat = std::forward<MetricStatT>(value);
87 }
88 template <typename MetricStatT = MetricStat>
89 MetricDataQuery& WithMetricStat(MetricStatT&& value) {
90 SetMetricStat(std::forward<MetricStatT>(value));
91 return *this;
92 }
94
96
108 inline const Aws::String& GetExpression() const { return m_expression; }
109 inline bool ExpressionHasBeenSet() const { return m_expressionHasBeenSet; }
110 template <typename ExpressionT = Aws::String>
111 void SetExpression(ExpressionT&& value) {
112 m_expressionHasBeenSet = true;
113 m_expression = std::forward<ExpressionT>(value);
114 }
115 template <typename ExpressionT = Aws::String>
116 MetricDataQuery& WithExpression(ExpressionT&& value) {
117 SetExpression(std::forward<ExpressionT>(value));
118 return *this;
119 }
121
123
133 inline const Aws::String& GetLabel() const { return m_label; }
134 inline bool LabelHasBeenSet() const { return m_labelHasBeenSet; }
135 template <typename LabelT = Aws::String>
136 void SetLabel(LabelT&& value) {
137 m_labelHasBeenSet = true;
138 m_label = std::forward<LabelT>(value);
139 }
140 template <typename LabelT = Aws::String>
141 MetricDataQuery& WithLabel(LabelT&& value) {
142 SetLabel(std::forward<LabelT>(value));
143 return *this;
144 }
146
148
155 inline bool GetReturnData() const { return m_returnData; }
156 inline bool ReturnDataHasBeenSet() const { return m_returnDataHasBeenSet; }
157 inline void SetReturnData(bool value) {
158 m_returnDataHasBeenSet = true;
159 m_returnData = value;
160 }
161 inline MetricDataQuery& WithReturnData(bool value) {
162 SetReturnData(value);
163 return *this;
164 }
166
168
183 inline int GetPeriod() const { return m_period; }
184 inline bool PeriodHasBeenSet() const { return m_periodHasBeenSet; }
185 inline void SetPeriod(int value) {
186 m_periodHasBeenSet = true;
187 m_period = value;
188 }
189 inline MetricDataQuery& WithPeriod(int value) {
190 SetPeriod(value);
191 return *this;
192 }
194
196
201 inline const Aws::String& GetAccountId() const { return m_accountId; }
202 inline bool AccountIdHasBeenSet() const { return m_accountIdHasBeenSet; }
203 template <typename AccountIdT = Aws::String>
204 void SetAccountId(AccountIdT&& value) {
205 m_accountIdHasBeenSet = true;
206 m_accountId = std::forward<AccountIdT>(value);
207 }
208 template <typename AccountIdT = Aws::String>
209 MetricDataQuery& WithAccountId(AccountIdT&& value) {
210 SetAccountId(std::forward<AccountIdT>(value));
211 return *this;
212 }
214 private:
215 Aws::String m_id;
216
217 MetricStat m_metricStat;
218
219 Aws::String m_expression;
220
221 Aws::String m_label;
222
223 bool m_returnData{false};
224
225 int m_period{0};
226
227 Aws::String m_accountId;
228 bool m_idHasBeenSet = false;
229 bool m_metricStatHasBeenSet = false;
230 bool m_expressionHasBeenSet = false;
231 bool m_labelHasBeenSet = false;
232 bool m_returnDataHasBeenSet = false;
233 bool m_periodHasBeenSet = false;
234 bool m_accountIdHasBeenSet = false;
235};
236
237} // namespace Model
238} // namespace ApplicationSignals
239} // namespace Aws
MetricDataQuery & WithExpression(ExpressionT &&value)
AWS_APPLICATIONSIGNALS_API MetricDataQuery(Aws::Utils::Json::JsonView jsonValue)
MetricDataQuery & WithLabel(LabelT &&value)
AWS_APPLICATIONSIGNALS_API Aws::Utils::Json::JsonValue Jsonize() const
MetricDataQuery & WithMetricStat(MetricStatT &&value)
AWS_APPLICATIONSIGNALS_API MetricDataQuery & operator=(Aws::Utils::Json::JsonView jsonValue)
MetricDataQuery & WithAccountId(AccountIdT &&value)
AWS_APPLICATIONSIGNALS_API MetricDataQuery()=default
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue