AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetInstanceId(const Aws::String& value) { m_instanceIdHasBeenSet = true; m_instanceId = value; }
49 inline void SetInstanceId(Aws::String&& value) { m_instanceIdHasBeenSet = true; m_instanceId = std::move(value); }
50 inline void SetInstanceId(const char* value) { m_instanceIdHasBeenSet = true; m_instanceId.assign(value); }
51 inline GetMetricDataRequest& WithInstanceId(const Aws::String& value) { SetInstanceId(value); return *this;}
52 inline GetMetricDataRequest& WithInstanceId(Aws::String&& value) { SetInstanceId(std::move(value)); return *this;}
53 inline GetMetricDataRequest& WithInstanceId(const char* value) { SetInstanceId(value); return *this;}
55
57
64 inline const Aws::Utils::DateTime& GetStartTime() const{ return m_startTime; }
65 inline bool StartTimeHasBeenSet() const { return m_startTimeHasBeenSet; }
66 inline void SetStartTime(const Aws::Utils::DateTime& value) { m_startTimeHasBeenSet = true; m_startTime = value; }
67 inline void SetStartTime(Aws::Utils::DateTime&& value) { m_startTimeHasBeenSet = true; m_startTime = std::move(value); }
68 inline GetMetricDataRequest& WithStartTime(const Aws::Utils::DateTime& value) { SetStartTime(value); return *this;}
69 inline GetMetricDataRequest& WithStartTime(Aws::Utils::DateTime&& value) { SetStartTime(std::move(value)); return *this;}
71
73
80 inline const Aws::Utils::DateTime& GetEndTime() const{ return m_endTime; }
81 inline bool EndTimeHasBeenSet() const { return m_endTimeHasBeenSet; }
82 inline void SetEndTime(const Aws::Utils::DateTime& value) { m_endTimeHasBeenSet = true; m_endTime = value; }
83 inline void SetEndTime(Aws::Utils::DateTime&& value) { m_endTimeHasBeenSet = true; m_endTime = std::move(value); }
84 inline GetMetricDataRequest& WithEndTime(const Aws::Utils::DateTime& value) { SetEndTime(value); return *this;}
85 inline GetMetricDataRequest& WithEndTime(Aws::Utils::DateTime&& value) { SetEndTime(std::move(value)); return *this;}
87
89
99 inline const Filters& GetFilters() const{ return m_filters; }
100 inline bool FiltersHasBeenSet() const { return m_filtersHasBeenSet; }
101 inline void SetFilters(const Filters& value) { m_filtersHasBeenSet = true; m_filters = value; }
102 inline void SetFilters(Filters&& value) { m_filtersHasBeenSet = true; m_filters = std::move(value); }
103 inline GetMetricDataRequest& WithFilters(const Filters& value) { SetFilters(value); return *this;}
104 inline GetMetricDataRequest& WithFilters(Filters&& value) { SetFilters(std::move(value)); return *this;}
106
108
116 inline const Aws::Vector<Grouping>& GetGroupings() const{ return m_groupings; }
117 inline bool GroupingsHasBeenSet() const { return m_groupingsHasBeenSet; }
118 inline void SetGroupings(const Aws::Vector<Grouping>& value) { m_groupingsHasBeenSet = true; m_groupings = value; }
119 inline void SetGroupings(Aws::Vector<Grouping>&& value) { m_groupingsHasBeenSet = true; m_groupings = std::move(value); }
120 inline GetMetricDataRequest& WithGroupings(const Aws::Vector<Grouping>& value) { SetGroupings(value); return *this;}
121 inline GetMetricDataRequest& WithGroupings(Aws::Vector<Grouping>&& value) { SetGroupings(std::move(value)); return *this;}
122 inline GetMetricDataRequest& AddGroupings(const Grouping& value) { m_groupingsHasBeenSet = true; m_groupings.push_back(value); return *this; }
123 inline GetMetricDataRequest& AddGroupings(Grouping&& value) { m_groupingsHasBeenSet = true; m_groupings.push_back(std::move(value)); return *this; }
125
127
168 inline const Aws::Vector<HistoricalMetric>& GetHistoricalMetrics() const{ return m_historicalMetrics; }
169 inline bool HistoricalMetricsHasBeenSet() const { return m_historicalMetricsHasBeenSet; }
170 inline void SetHistoricalMetrics(const Aws::Vector<HistoricalMetric>& value) { m_historicalMetricsHasBeenSet = true; m_historicalMetrics = value; }
171 inline void SetHistoricalMetrics(Aws::Vector<HistoricalMetric>&& value) { m_historicalMetricsHasBeenSet = true; m_historicalMetrics = std::move(value); }
174 inline GetMetricDataRequest& AddHistoricalMetrics(const HistoricalMetric& value) { m_historicalMetricsHasBeenSet = true; m_historicalMetrics.push_back(value); return *this; }
175 inline GetMetricDataRequest& AddHistoricalMetrics(HistoricalMetric&& value) { m_historicalMetricsHasBeenSet = true; m_historicalMetrics.push_back(std::move(value)); return *this; }
177
179
183 inline const Aws::String& GetNextToken() const{ return m_nextToken; }
184 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
185 inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
186 inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
187 inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
188 inline GetMetricDataRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
189 inline GetMetricDataRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
190 inline GetMetricDataRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
192
194
197 inline int GetMaxResults() const{ return m_maxResults; }
198 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
199 inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
200 inline GetMetricDataRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
202 private:
203
204 Aws::String m_instanceId;
205 bool m_instanceIdHasBeenSet = false;
206
207 Aws::Utils::DateTime m_startTime;
208 bool m_startTimeHasBeenSet = false;
209
210 Aws::Utils::DateTime m_endTime;
211 bool m_endTimeHasBeenSet = false;
212
213 Filters m_filters;
214 bool m_filtersHasBeenSet = false;
215
216 Aws::Vector<Grouping> m_groupings;
217 bool m_groupingsHasBeenSet = false;
218
219 Aws::Vector<HistoricalMetric> m_historicalMetrics;
220 bool m_historicalMetricsHasBeenSet = false;
221
222 Aws::String m_nextToken;
223 bool m_nextTokenHasBeenSet = false;
224
225 int m_maxResults;
226 bool m_maxResultsHasBeenSet = false;
227 };
228
229} // namespace Model
230} // namespace Connect
231} // namespace Aws
GetMetricDataRequest & AddGroupings(Grouping &&value)
GetMetricDataRequest & WithNextToken(Aws::String &&value)
GetMetricDataRequest & AddHistoricalMetrics(HistoricalMetric &&value)
virtual const char * GetServiceRequestName() const override
GetMetricDataRequest & WithStartTime(const Aws::Utils::DateTime &value)
const Aws::Utils::DateTime & GetStartTime() const
void SetNextToken(const Aws::String &value)
GetMetricDataRequest & WithEndTime(const Aws::Utils::DateTime &value)
const Aws::Vector< HistoricalMetric > & GetHistoricalMetrics() const
void SetHistoricalMetrics(const Aws::Vector< HistoricalMetric > &value)
GetMetricDataRequest & WithNextToken(const Aws::String &value)
GetMetricDataRequest & WithInstanceId(const Aws::String &value)
void SetGroupings(const Aws::Vector< Grouping > &value)
void SetEndTime(Aws::Utils::DateTime &&value)
GetMetricDataRequest & WithEndTime(Aws::Utils::DateTime &&value)
GetMetricDataRequest & WithMaxResults(int value)
GetMetricDataRequest & WithHistoricalMetrics(const Aws::Vector< HistoricalMetric > &value)
const Aws::Vector< Grouping > & GetGroupings() const
AWS_CONNECT_API Aws::String SerializePayload() const override
GetMetricDataRequest & AddHistoricalMetrics(const HistoricalMetric &value)
GetMetricDataRequest & WithGroupings(const Aws::Vector< Grouping > &value)
GetMetricDataRequest & AddGroupings(const Grouping &value)
void SetStartTime(const Aws::Utils::DateTime &value)
GetMetricDataRequest & WithNextToken(const char *value)
GetMetricDataRequest & WithStartTime(Aws::Utils::DateTime &&value)
void SetGroupings(Aws::Vector< Grouping > &&value)
void SetStartTime(Aws::Utils::DateTime &&value)
GetMetricDataRequest & WithInstanceId(const char *value)
GetMetricDataRequest & WithGroupings(Aws::Vector< Grouping > &&value)
GetMetricDataRequest & WithFilters(Filters &&value)
GetMetricDataRequest & WithFilters(const Filters &value)
GetMetricDataRequest & WithHistoricalMetrics(Aws::Vector< HistoricalMetric > &&value)
const Aws::Utils::DateTime & GetEndTime() const
void SetInstanceId(const Aws::String &value)
GetMetricDataRequest & WithInstanceId(Aws::String &&value)
void SetHistoricalMetrics(Aws::Vector< HistoricalMetric > &&value)
void SetEndTime(const Aws::Utils::DateTime &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector