AWS SDK for C++

AWS SDK for C++ Version 1.11.552

All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Pages
Loading...
Searching...
No Matches
GetMetricDataRequest.h
1
6#pragma once
7#include <aws/connect/Connect_EXPORTS.h>
8#include <aws/connect/ConnectRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/DateTime.h>
11#include <aws/connect/model/Filters.h>
12#include <aws/core/utils/memory/stl/AWSVector.h>
13#include <aws/connect/model/Grouping.h>
14#include <aws/connect/model/HistoricalMetric.h>
15#include <utility>
16
17namespace Aws
18{
19namespace Connect
20{
21namespace Model
22{
23
27 {
28 public:
29 AWS_CONNECT_API GetMetricDataRequest() = default;
30
31 // Service request name is the Operation name which will send this request out,
32 // each operation should has unique request name, so that we can get operation's name from this request.
33 // Note: this is not true for response, multiple operations may have the same response name,
34 // so we can not get operation's name from response.
35 inline virtual const char* GetServiceRequestName() const override { return "GetMetricData"; }
36
37 AWS_CONNECT_API Aws::String SerializePayload() const override;
38
39
41
46 inline const Aws::String& GetInstanceId() const { return m_instanceId; }
47 inline bool InstanceIdHasBeenSet() const { return m_instanceIdHasBeenSet; }
48 template<typename InstanceIdT = Aws::String>
49 void SetInstanceId(InstanceIdT&& value) { m_instanceIdHasBeenSet = true; m_instanceId = std::forward<InstanceIdT>(value); }
50 template<typename InstanceIdT = Aws::String>
51 GetMetricDataRequest& WithInstanceId(InstanceIdT&& value) { SetInstanceId(std::forward<InstanceIdT>(value)); return *this;}
53
55
62 inline const Aws::Utils::DateTime& GetStartTime() const { return m_startTime; }
63 inline bool StartTimeHasBeenSet() const { return m_startTimeHasBeenSet; }
64 template<typename StartTimeT = Aws::Utils::DateTime>
65 void SetStartTime(StartTimeT&& value) { m_startTimeHasBeenSet = true; m_startTime = std::forward<StartTimeT>(value); }
66 template<typename StartTimeT = Aws::Utils::DateTime>
67 GetMetricDataRequest& WithStartTime(StartTimeT&& value) { SetStartTime(std::forward<StartTimeT>(value)); return *this;}
69
71
78 inline const Aws::Utils::DateTime& GetEndTime() const { return m_endTime; }
79 inline bool EndTimeHasBeenSet() const { return m_endTimeHasBeenSet; }
80 template<typename EndTimeT = Aws::Utils::DateTime>
81 void SetEndTime(EndTimeT&& value) { m_endTimeHasBeenSet = true; m_endTime = std::forward<EndTimeT>(value); }
82 template<typename EndTimeT = Aws::Utils::DateTime>
83 GetMetricDataRequest& WithEndTime(EndTimeT&& value) { SetEndTime(std::forward<EndTimeT>(value)); return *this;}
85
87
97 inline const Filters& GetFilters() const { return m_filters; }
98 inline bool FiltersHasBeenSet() const { return m_filtersHasBeenSet; }
99 template<typename FiltersT = Filters>
100 void SetFilters(FiltersT&& value) { m_filtersHasBeenSet = true; m_filters = std::forward<FiltersT>(value); }
101 template<typename FiltersT = Filters>
102 GetMetricDataRequest& WithFilters(FiltersT&& value) { SetFilters(std::forward<FiltersT>(value)); return *this;}
104
106
114 inline const Aws::Vector<Grouping>& GetGroupings() const { return m_groupings; }
115 inline bool GroupingsHasBeenSet() const { return m_groupingsHasBeenSet; }
116 template<typename GroupingsT = Aws::Vector<Grouping>>
117 void SetGroupings(GroupingsT&& value) { m_groupingsHasBeenSet = true; m_groupings = std::forward<GroupingsT>(value); }
118 template<typename GroupingsT = Aws::Vector<Grouping>>
119 GetMetricDataRequest& WithGroupings(GroupingsT&& value) { SetGroupings(std::forward<GroupingsT>(value)); return *this;}
120 inline GetMetricDataRequest& AddGroupings(Grouping value) { m_groupingsHasBeenSet = true; m_groupings.push_back(value); return *this; }
122
124
165 inline const Aws::Vector<HistoricalMetric>& GetHistoricalMetrics() const { return m_historicalMetrics; }
166 inline bool HistoricalMetricsHasBeenSet() const { return m_historicalMetricsHasBeenSet; }
167 template<typename HistoricalMetricsT = Aws::Vector<HistoricalMetric>>
168 void SetHistoricalMetrics(HistoricalMetricsT&& value) { m_historicalMetricsHasBeenSet = true; m_historicalMetrics = std::forward<HistoricalMetricsT>(value); }
169 template<typename HistoricalMetricsT = Aws::Vector<HistoricalMetric>>
170 GetMetricDataRequest& WithHistoricalMetrics(HistoricalMetricsT&& value) { SetHistoricalMetrics(std::forward<HistoricalMetricsT>(value)); return *this;}
171 template<typename HistoricalMetricsT = HistoricalMetric>
172 GetMetricDataRequest& AddHistoricalMetrics(HistoricalMetricsT&& value) { m_historicalMetricsHasBeenSet = true; m_historicalMetrics.emplace_back(std::forward<HistoricalMetricsT>(value)); return *this; }
174
176
180 inline const Aws::String& GetNextToken() const { return m_nextToken; }
181 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
182 template<typename NextTokenT = Aws::String>
183 void SetNextToken(NextTokenT&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::forward<NextTokenT>(value); }
184 template<typename NextTokenT = Aws::String>
185 GetMetricDataRequest& WithNextToken(NextTokenT&& value) { SetNextToken(std::forward<NextTokenT>(value)); return *this;}
187
189
192 inline int GetMaxResults() const { return m_maxResults; }
193 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
194 inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
195 inline GetMetricDataRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
197 private:
198
199 Aws::String m_instanceId;
200 bool m_instanceIdHasBeenSet = false;
201
202 Aws::Utils::DateTime m_startTime{};
203 bool m_startTimeHasBeenSet = false;
204
205 Aws::Utils::DateTime m_endTime{};
206 bool m_endTimeHasBeenSet = false;
207
208 Filters m_filters;
209 bool m_filtersHasBeenSet = false;
210
211 Aws::Vector<Grouping> m_groupings;
212 bool m_groupingsHasBeenSet = false;
213
214 Aws::Vector<HistoricalMetric> m_historicalMetrics;
215 bool m_historicalMetricsHasBeenSet = false;
216
217 Aws::String m_nextToken;
218 bool m_nextTokenHasBeenSet = false;
219
220 int m_maxResults{0};
221 bool m_maxResultsHasBeenSet = false;
222 };
223
224} // namespace Model
225} // namespace Connect
226} // 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