AWS SDK for C++

AWS SDK for C++ Version 1.11.695

Loading...
Searching...
No Matches
GetMetricDataRequest.h
1
6#pragma once
7#include <aws/connect/ConnectRequest.h>
8#include <aws/connect/Connect_EXPORTS.h>
9#include <aws/connect/model/Filters.h>
10#include <aws/connect/model/Grouping.h>
11#include <aws/connect/model/HistoricalMetric.h>
12#include <aws/core/utils/DateTime.h>
13#include <aws/core/utils/memory/stl/AWSString.h>
14#include <aws/core/utils/memory/stl/AWSVector.h>
15
16#include <utility>
17
18namespace Aws {
19namespace Connect {
20namespace Model {
21
25 public:
26 AWS_CONNECT_API GetMetricDataRequest() = default;
27
28 // Service request name is the Operation name which will send this request out,
29 // each operation should has unique request name, so that we can get operation's name from this request.
30 // Note: this is not true for response, multiple operations may have the same response name,
31 // so we can not get operation's name from response.
32 inline virtual const char* GetServiceRequestName() const override { return "GetMetricData"; }
33
34 AWS_CONNECT_API Aws::String SerializePayload() const override;
35
37
42 inline const Aws::String& GetInstanceId() const { return m_instanceId; }
43 inline bool InstanceIdHasBeenSet() const { return m_instanceIdHasBeenSet; }
44 template <typename InstanceIdT = Aws::String>
45 void SetInstanceId(InstanceIdT&& value) {
46 m_instanceIdHasBeenSet = true;
47 m_instanceId = std::forward<InstanceIdT>(value);
48 }
49 template <typename InstanceIdT = Aws::String>
50 GetMetricDataRequest& WithInstanceId(InstanceIdT&& value) {
51 SetInstanceId(std::forward<InstanceIdT>(value));
52 return *this;
53 }
55
57
64 inline const Aws::Utils::DateTime& GetStartTime() const { return m_startTime; }
65 inline bool StartTimeHasBeenSet() const { return m_startTimeHasBeenSet; }
66 template <typename StartTimeT = Aws::Utils::DateTime>
67 void SetStartTime(StartTimeT&& value) {
68 m_startTimeHasBeenSet = true;
69 m_startTime = std::forward<StartTimeT>(value);
70 }
71 template <typename StartTimeT = Aws::Utils::DateTime>
72 GetMetricDataRequest& WithStartTime(StartTimeT&& value) {
73 SetStartTime(std::forward<StartTimeT>(value));
74 return *this;
75 }
77
79
86 inline const Aws::Utils::DateTime& GetEndTime() const { return m_endTime; }
87 inline bool EndTimeHasBeenSet() const { return m_endTimeHasBeenSet; }
88 template <typename EndTimeT = Aws::Utils::DateTime>
89 void SetEndTime(EndTimeT&& value) {
90 m_endTimeHasBeenSet = true;
91 m_endTime = std::forward<EndTimeT>(value);
92 }
93 template <typename EndTimeT = Aws::Utils::DateTime>
94 GetMetricDataRequest& WithEndTime(EndTimeT&& value) {
95 SetEndTime(std::forward<EndTimeT>(value));
96 return *this;
97 }
99
101
111 inline const Filters& GetFilters() const { return m_filters; }
112 inline bool FiltersHasBeenSet() const { return m_filtersHasBeenSet; }
113 template <typename FiltersT = Filters>
114 void SetFilters(FiltersT&& value) {
115 m_filtersHasBeenSet = true;
116 m_filters = std::forward<FiltersT>(value);
117 }
118 template <typename FiltersT = Filters>
120 SetFilters(std::forward<FiltersT>(value));
121 return *this;
122 }
124
126
134 inline const Aws::Vector<Grouping>& GetGroupings() const { return m_groupings; }
135 inline bool GroupingsHasBeenSet() const { return m_groupingsHasBeenSet; }
136 template <typename GroupingsT = Aws::Vector<Grouping>>
137 void SetGroupings(GroupingsT&& value) {
138 m_groupingsHasBeenSet = true;
139 m_groupings = std::forward<GroupingsT>(value);
140 }
141 template <typename GroupingsT = Aws::Vector<Grouping>>
142 GetMetricDataRequest& WithGroupings(GroupingsT&& value) {
143 SetGroupings(std::forward<GroupingsT>(value));
144 return *this;
145 }
147 m_groupingsHasBeenSet = true;
148 m_groupings.push_back(value);
149 return *this;
150 }
152
154
243 inline const Aws::Vector<HistoricalMetric>& GetHistoricalMetrics() const { return m_historicalMetrics; }
244 inline bool HistoricalMetricsHasBeenSet() const { return m_historicalMetricsHasBeenSet; }
245 template <typename HistoricalMetricsT = Aws::Vector<HistoricalMetric>>
246 void SetHistoricalMetrics(HistoricalMetricsT&& value) {
247 m_historicalMetricsHasBeenSet = true;
248 m_historicalMetrics = std::forward<HistoricalMetricsT>(value);
249 }
250 template <typename HistoricalMetricsT = Aws::Vector<HistoricalMetric>>
251 GetMetricDataRequest& WithHistoricalMetrics(HistoricalMetricsT&& value) {
252 SetHistoricalMetrics(std::forward<HistoricalMetricsT>(value));
253 return *this;
254 }
255 template <typename HistoricalMetricsT = HistoricalMetric>
256 GetMetricDataRequest& AddHistoricalMetrics(HistoricalMetricsT&& value) {
257 m_historicalMetricsHasBeenSet = true;
258 m_historicalMetrics.emplace_back(std::forward<HistoricalMetricsT>(value));
259 return *this;
260 }
262
264
268 inline const Aws::String& GetNextToken() const { return m_nextToken; }
269 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
270 template <typename NextTokenT = Aws::String>
271 void SetNextToken(NextTokenT&& value) {
272 m_nextTokenHasBeenSet = true;
273 m_nextToken = std::forward<NextTokenT>(value);
274 }
275 template <typename NextTokenT = Aws::String>
276 GetMetricDataRequest& WithNextToken(NextTokenT&& value) {
277 SetNextToken(std::forward<NextTokenT>(value));
278 return *this;
279 }
281
283
286 inline int GetMaxResults() const { return m_maxResults; }
287 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
288 inline void SetMaxResults(int value) {
289 m_maxResultsHasBeenSet = true;
290 m_maxResults = value;
291 }
293 SetMaxResults(value);
294 return *this;
295 }
297 private:
298 Aws::String m_instanceId;
299 bool m_instanceIdHasBeenSet = false;
300
301 Aws::Utils::DateTime m_startTime{};
302 bool m_startTimeHasBeenSet = false;
303
304 Aws::Utils::DateTime m_endTime{};
305 bool m_endTimeHasBeenSet = false;
306
307 Filters m_filters;
308 bool m_filtersHasBeenSet = false;
309
310 Aws::Vector<Grouping> m_groupings;
311 bool m_groupingsHasBeenSet = false;
312
313 Aws::Vector<HistoricalMetric> m_historicalMetrics;
314 bool m_historicalMetricsHasBeenSet = false;
315
316 Aws::String m_nextToken;
317 bool m_nextTokenHasBeenSet = false;
318
319 int m_maxResults{0};
320 bool m_maxResultsHasBeenSet = false;
321};
322
323} // namespace Model
324} // namespace Connect
325} // namespace Aws
GetMetricDataRequest & WithHistoricalMetrics(HistoricalMetricsT &&value)
AWS_CONNECT_API GetMetricDataRequest()=default
virtual const char * GetServiceRequestName() const override
GetMetricDataRequest & WithGroupings(GroupingsT &&value)
const Aws::Utils::DateTime & GetStartTime() const
GetMetricDataRequest & WithEndTime(EndTimeT &&value)
const Aws::Vector< HistoricalMetric > & GetHistoricalMetrics() const
GetMetricDataRequest & WithFilters(FiltersT &&value)
GetMetricDataRequest & WithMaxResults(int value)
const Aws::Vector< Grouping > & GetGroupings() const
AWS_CONNECT_API Aws::String SerializePayload() const override
GetMetricDataRequest & WithNextToken(NextTokenT &&value)
GetMetricDataRequest & AddGroupings(Grouping value)
GetMetricDataRequest & WithStartTime(StartTimeT &&value)
GetMetricDataRequest & AddHistoricalMetrics(HistoricalMetricsT &&value)
void SetHistoricalMetrics(HistoricalMetricsT &&value)
const Aws::Utils::DateTime & GetEndTime() const
GetMetricDataRequest & WithInstanceId(InstanceIdT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector