AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
GetCurrentMetricDataRequest.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/connect/model/Filters.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12#include <aws/connect/model/Grouping.h>
13#include <aws/connect/model/CurrentMetric.h>
14#include <aws/connect/model/CurrentMetricSortCriteria.h>
15#include <utility>
16
17namespace Aws
18{
19namespace Connect
20{
21namespace Model
22{
23
27 {
28 public:
29 AWS_CONNECT_API GetCurrentMetricDataRequest();
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 "GetCurrentMetricData"; }
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 GetCurrentMetricDataRequest& WithInstanceId(const Aws::String& value) { SetInstanceId(value); return *this;}
52 inline GetCurrentMetricDataRequest& WithInstanceId(Aws::String&& value) { SetInstanceId(std::move(value)); return *this;}
53 inline GetCurrentMetricDataRequest& WithInstanceId(const char* value) { SetInstanceId(value); return *this;}
55
57
71 inline const Filters& GetFilters() const{ return m_filters; }
72 inline bool FiltersHasBeenSet() const { return m_filtersHasBeenSet; }
73 inline void SetFilters(const Filters& value) { m_filtersHasBeenSet = true; m_filters = value; }
74 inline void SetFilters(Filters&& value) { m_filtersHasBeenSet = true; m_filters = std::move(value); }
75 inline GetCurrentMetricDataRequest& WithFilters(const Filters& value) { SetFilters(value); return *this;}
76 inline GetCurrentMetricDataRequest& WithFilters(Filters&& value) { SetFilters(std::move(value)); return *this;}
78
80
94 inline const Aws::Vector<Grouping>& GetGroupings() const{ return m_groupings; }
95 inline bool GroupingsHasBeenSet() const { return m_groupingsHasBeenSet; }
96 inline void SetGroupings(const Aws::Vector<Grouping>& value) { m_groupingsHasBeenSet = true; m_groupings = value; }
97 inline void SetGroupings(Aws::Vector<Grouping>&& value) { m_groupingsHasBeenSet = true; m_groupings = std::move(value); }
98 inline GetCurrentMetricDataRequest& WithGroupings(const Aws::Vector<Grouping>& value) { SetGroupings(value); return *this;}
99 inline GetCurrentMetricDataRequest& WithGroupings(Aws::Vector<Grouping>&& value) { SetGroupings(std::move(value)); return *this;}
100 inline GetCurrentMetricDataRequest& AddGroupings(const Grouping& value) { m_groupingsHasBeenSet = true; m_groupings.push_back(value); return *this; }
101 inline GetCurrentMetricDataRequest& AddGroupings(Grouping&& value) { m_groupingsHasBeenSet = true; m_groupings.push_back(std::move(value)); return *this; }
103
105
161 inline const Aws::Vector<CurrentMetric>& GetCurrentMetrics() const{ return m_currentMetrics; }
162 inline bool CurrentMetricsHasBeenSet() const { return m_currentMetricsHasBeenSet; }
163 inline void SetCurrentMetrics(const Aws::Vector<CurrentMetric>& value) { m_currentMetricsHasBeenSet = true; m_currentMetrics = value; }
164 inline void SetCurrentMetrics(Aws::Vector<CurrentMetric>&& value) { m_currentMetricsHasBeenSet = true; m_currentMetrics = std::move(value); }
167 inline GetCurrentMetricDataRequest& AddCurrentMetrics(const CurrentMetric& value) { m_currentMetricsHasBeenSet = true; m_currentMetrics.push_back(value); return *this; }
168 inline GetCurrentMetricDataRequest& AddCurrentMetrics(CurrentMetric&& value) { m_currentMetricsHasBeenSet = true; m_currentMetrics.push_back(std::move(value)); return *this; }
170
172
179 inline const Aws::String& GetNextToken() const{ return m_nextToken; }
180 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
181 inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
182 inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
183 inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
184 inline GetCurrentMetricDataRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
185 inline GetCurrentMetricDataRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
186 inline GetCurrentMetricDataRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
188
190
193 inline int GetMaxResults() const{ return m_maxResults; }
194 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
195 inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
196 inline GetCurrentMetricDataRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
198
200
208 inline const Aws::Vector<CurrentMetricSortCriteria>& GetSortCriteria() const{ return m_sortCriteria; }
209 inline bool SortCriteriaHasBeenSet() const { return m_sortCriteriaHasBeenSet; }
210 inline void SetSortCriteria(const Aws::Vector<CurrentMetricSortCriteria>& value) { m_sortCriteriaHasBeenSet = true; m_sortCriteria = value; }
211 inline void SetSortCriteria(Aws::Vector<CurrentMetricSortCriteria>&& value) { m_sortCriteriaHasBeenSet = true; m_sortCriteria = std::move(value); }
214 inline GetCurrentMetricDataRequest& AddSortCriteria(const CurrentMetricSortCriteria& value) { m_sortCriteriaHasBeenSet = true; m_sortCriteria.push_back(value); return *this; }
215 inline GetCurrentMetricDataRequest& AddSortCriteria(CurrentMetricSortCriteria&& value) { m_sortCriteriaHasBeenSet = true; m_sortCriteria.push_back(std::move(value)); return *this; }
217 private:
218
219 Aws::String m_instanceId;
220 bool m_instanceIdHasBeenSet = false;
221
222 Filters m_filters;
223 bool m_filtersHasBeenSet = false;
224
225 Aws::Vector<Grouping> m_groupings;
226 bool m_groupingsHasBeenSet = false;
227
228 Aws::Vector<CurrentMetric> m_currentMetrics;
229 bool m_currentMetricsHasBeenSet = false;
230
231 Aws::String m_nextToken;
232 bool m_nextTokenHasBeenSet = false;
233
234 int m_maxResults;
235 bool m_maxResultsHasBeenSet = false;
236
238 bool m_sortCriteriaHasBeenSet = false;
239 };
240
241} // namespace Model
242} // namespace Connect
243} // namespace Aws
GetCurrentMetricDataRequest & WithCurrentMetrics(Aws::Vector< CurrentMetric > &&value)
GetCurrentMetricDataRequest & WithGroupings(Aws::Vector< Grouping > &&value)
GetCurrentMetricDataRequest & WithInstanceId(const Aws::String &value)
GetCurrentMetricDataRequest & AddSortCriteria(const CurrentMetricSortCriteria &value)
GetCurrentMetricDataRequest & WithCurrentMetrics(const Aws::Vector< CurrentMetric > &value)
GetCurrentMetricDataRequest & WithFilters(const Filters &value)
const Aws::Vector< CurrentMetric > & GetCurrentMetrics() const
GetCurrentMetricDataRequest & AddCurrentMetrics(CurrentMetric &&value)
GetCurrentMetricDataRequest & AddCurrentMetrics(const CurrentMetric &value)
void SetCurrentMetrics(const Aws::Vector< CurrentMetric > &value)
void SetCurrentMetrics(Aws::Vector< CurrentMetric > &&value)
AWS_CONNECT_API Aws::String SerializePayload() const override
const Aws::Vector< CurrentMetricSortCriteria > & GetSortCriteria() const
void SetSortCriteria(const Aws::Vector< CurrentMetricSortCriteria > &value)
GetCurrentMetricDataRequest & WithSortCriteria(Aws::Vector< CurrentMetricSortCriteria > &&value)
GetCurrentMetricDataRequest & WithMaxResults(int value)
GetCurrentMetricDataRequest & WithNextToken(const Aws::String &value)
GetCurrentMetricDataRequest & WithGroupings(const Aws::Vector< Grouping > &value)
GetCurrentMetricDataRequest & WithSortCriteria(const Aws::Vector< CurrentMetricSortCriteria > &value)
GetCurrentMetricDataRequest & WithFilters(Filters &&value)
GetCurrentMetricDataRequest & WithInstanceId(const char *value)
virtual const char * GetServiceRequestName() const override
const Aws::Vector< Grouping > & GetGroupings() const
GetCurrentMetricDataRequest & WithNextToken(Aws::String &&value)
void SetGroupings(const Aws::Vector< Grouping > &value)
GetCurrentMetricDataRequest & AddGroupings(Grouping &&value)
void SetSortCriteria(Aws::Vector< CurrentMetricSortCriteria > &&value)
GetCurrentMetricDataRequest & AddSortCriteria(CurrentMetricSortCriteria &&value)
GetCurrentMetricDataRequest & AddGroupings(const Grouping &value)
GetCurrentMetricDataRequest & WithInstanceId(Aws::String &&value)
GetCurrentMetricDataRequest & WithNextToken(const char *value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector