AWS SDK for C++

AWS SDK for C++ Version 1.11.606

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() = default;
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 template<typename IdT = Aws::String>
69 void SetId(IdT&& value) { m_idHasBeenSet = true; m_id = std::forward<IdT>(value); }
70 template<typename IdT = Aws::String>
71 MetricDataQuery& WithId(IdT&& value) { SetId(std::forward<IdT>(value)); return *this;}
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) { m_metricStatHasBeenSet = true; m_metricStat = std::forward<MetricStatT>(value); }
85 template<typename MetricStatT = MetricStat>
86 MetricDataQuery& WithMetricStat(MetricStatT&& value) { SetMetricStat(std::forward<MetricStatT>(value)); return *this;}
88
90
102 inline const Aws::String& GetExpression() const { return m_expression; }
103 inline bool ExpressionHasBeenSet() const { return m_expressionHasBeenSet; }
104 template<typename ExpressionT = Aws::String>
105 void SetExpression(ExpressionT&& value) { m_expressionHasBeenSet = true; m_expression = std::forward<ExpressionT>(value); }
106 template<typename ExpressionT = Aws::String>
107 MetricDataQuery& WithExpression(ExpressionT&& value) { SetExpression(std::forward<ExpressionT>(value)); return *this;}
109
111
121 inline const Aws::String& GetLabel() const { return m_label; }
122 inline bool LabelHasBeenSet() const { return m_labelHasBeenSet; }
123 template<typename LabelT = Aws::String>
124 void SetLabel(LabelT&& value) { m_labelHasBeenSet = true; m_label = std::forward<LabelT>(value); }
125 template<typename LabelT = Aws::String>
126 MetricDataQuery& WithLabel(LabelT&& value) { SetLabel(std::forward<LabelT>(value)); return *this;}
128
130
137 inline bool GetReturnData() const { return m_returnData; }
138 inline bool ReturnDataHasBeenSet() const { return m_returnDataHasBeenSet; }
139 inline void SetReturnData(bool value) { m_returnDataHasBeenSet = true; m_returnData = value; }
140 inline MetricDataQuery& WithReturnData(bool value) { SetReturnData(value); return *this;}
142
144
159 inline int GetPeriod() const { return m_period; }
160 inline bool PeriodHasBeenSet() const { return m_periodHasBeenSet; }
161 inline void SetPeriod(int value) { m_periodHasBeenSet = true; m_period = value; }
162 inline MetricDataQuery& WithPeriod(int value) { SetPeriod(value); return *this;}
164
166
171 inline const Aws::String& GetAccountId() const { return m_accountId; }
172 inline bool AccountIdHasBeenSet() const { return m_accountIdHasBeenSet; }
173 template<typename AccountIdT = Aws::String>
174 void SetAccountId(AccountIdT&& value) { m_accountIdHasBeenSet = true; m_accountId = std::forward<AccountIdT>(value); }
175 template<typename AccountIdT = Aws::String>
176 MetricDataQuery& WithAccountId(AccountIdT&& value) { SetAccountId(std::forward<AccountIdT>(value)); return *this;}
178 private:
179
180 Aws::String m_id;
181 bool m_idHasBeenSet = false;
182
183 MetricStat m_metricStat;
184 bool m_metricStatHasBeenSet = false;
185
186 Aws::String m_expression;
187 bool m_expressionHasBeenSet = false;
188
189 Aws::String m_label;
190 bool m_labelHasBeenSet = false;
191
192 bool m_returnData{false};
193 bool m_returnDataHasBeenSet = false;
194
195 int m_period{0};
196 bool m_periodHasBeenSet = false;
197
198 Aws::String m_accountId;
199 bool m_accountIdHasBeenSet = false;
200 };
201
202} // namespace Model
203} // namespace ApplicationSignals
204} // 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