AWS SDK for C++

AWS SDK for C++ Version 1.11.554

All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Pages
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() = 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 "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 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 GetCurrentMetricDataRequest& WithInstanceId(InstanceIdT&& value) { SetInstanceId(std::forward<InstanceIdT>(value)); return *this;}
53
55
69 inline const Filters& GetFilters() const { return m_filters; }
70 inline bool FiltersHasBeenSet() const { return m_filtersHasBeenSet; }
71 template<typename FiltersT = Filters>
72 void SetFilters(FiltersT&& value) { m_filtersHasBeenSet = true; m_filters = std::forward<FiltersT>(value); }
73 template<typename FiltersT = Filters>
74 GetCurrentMetricDataRequest& WithFilters(FiltersT&& value) { SetFilters(std::forward<FiltersT>(value)); return *this;}
76
78
92 inline const Aws::Vector<Grouping>& GetGroupings() const { return m_groupings; }
93 inline bool GroupingsHasBeenSet() const { return m_groupingsHasBeenSet; }
94 template<typename GroupingsT = Aws::Vector<Grouping>>
95 void SetGroupings(GroupingsT&& value) { m_groupingsHasBeenSet = true; m_groupings = std::forward<GroupingsT>(value); }
96 template<typename GroupingsT = Aws::Vector<Grouping>>
97 GetCurrentMetricDataRequest& WithGroupings(GroupingsT&& value) { SetGroupings(std::forward<GroupingsT>(value)); return *this;}
98 inline GetCurrentMetricDataRequest& AddGroupings(Grouping value) { m_groupingsHasBeenSet = true; m_groupings.push_back(value); return *this; }
100
102
158 inline const Aws::Vector<CurrentMetric>& GetCurrentMetrics() const { return m_currentMetrics; }
159 inline bool CurrentMetricsHasBeenSet() const { return m_currentMetricsHasBeenSet; }
160 template<typename CurrentMetricsT = Aws::Vector<CurrentMetric>>
161 void SetCurrentMetrics(CurrentMetricsT&& value) { m_currentMetricsHasBeenSet = true; m_currentMetrics = std::forward<CurrentMetricsT>(value); }
162 template<typename CurrentMetricsT = Aws::Vector<CurrentMetric>>
163 GetCurrentMetricDataRequest& WithCurrentMetrics(CurrentMetricsT&& value) { SetCurrentMetrics(std::forward<CurrentMetricsT>(value)); return *this;}
164 template<typename CurrentMetricsT = CurrentMetric>
165 GetCurrentMetricDataRequest& AddCurrentMetrics(CurrentMetricsT&& value) { m_currentMetricsHasBeenSet = true; m_currentMetrics.emplace_back(std::forward<CurrentMetricsT>(value)); return *this; }
167
169
176 inline const Aws::String& GetNextToken() const { return m_nextToken; }
177 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
178 template<typename NextTokenT = Aws::String>
179 void SetNextToken(NextTokenT&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::forward<NextTokenT>(value); }
180 template<typename NextTokenT = Aws::String>
181 GetCurrentMetricDataRequest& WithNextToken(NextTokenT&& value) { SetNextToken(std::forward<NextTokenT>(value)); return *this;}
183
185
188 inline int GetMaxResults() const { return m_maxResults; }
189 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
190 inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
191 inline GetCurrentMetricDataRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
193
195
203 inline const Aws::Vector<CurrentMetricSortCriteria>& GetSortCriteria() const { return m_sortCriteria; }
204 inline bool SortCriteriaHasBeenSet() const { return m_sortCriteriaHasBeenSet; }
205 template<typename SortCriteriaT = Aws::Vector<CurrentMetricSortCriteria>>
206 void SetSortCriteria(SortCriteriaT&& value) { m_sortCriteriaHasBeenSet = true; m_sortCriteria = std::forward<SortCriteriaT>(value); }
207 template<typename SortCriteriaT = Aws::Vector<CurrentMetricSortCriteria>>
208 GetCurrentMetricDataRequest& WithSortCriteria(SortCriteriaT&& value) { SetSortCriteria(std::forward<SortCriteriaT>(value)); return *this;}
209 template<typename SortCriteriaT = CurrentMetricSortCriteria>
210 GetCurrentMetricDataRequest& AddSortCriteria(SortCriteriaT&& value) { m_sortCriteriaHasBeenSet = true; m_sortCriteria.emplace_back(std::forward<SortCriteriaT>(value)); return *this; }
212 private:
213
214 Aws::String m_instanceId;
215 bool m_instanceIdHasBeenSet = false;
216
217 Filters m_filters;
218 bool m_filtersHasBeenSet = false;
219
220 Aws::Vector<Grouping> m_groupings;
221 bool m_groupingsHasBeenSet = false;
222
223 Aws::Vector<CurrentMetric> m_currentMetrics;
224 bool m_currentMetricsHasBeenSet = false;
225
226 Aws::String m_nextToken;
227 bool m_nextTokenHasBeenSet = false;
228
229 int m_maxResults{0};
230 bool m_maxResultsHasBeenSet = false;
231
233 bool m_sortCriteriaHasBeenSet = false;
234 };
235
236} // namespace Model
237} // namespace Connect
238} // namespace Aws
GetCurrentMetricDataRequest & WithCurrentMetrics(CurrentMetricsT &&value)
GetCurrentMetricDataRequest & WithGroupings(GroupingsT &&value)
const Aws::Vector< CurrentMetric > & GetCurrentMetrics() const
GetCurrentMetricDataRequest & AddCurrentMetrics(CurrentMetricsT &&value)
GetCurrentMetricDataRequest & WithNextToken(NextTokenT &&value)
AWS_CONNECT_API Aws::String SerializePayload() const override
const Aws::Vector< CurrentMetricSortCriteria > & GetSortCriteria() const
GetCurrentMetricDataRequest & WithSortCriteria(SortCriteriaT &&value)
GetCurrentMetricDataRequest & WithMaxResults(int value)
AWS_CONNECT_API GetCurrentMetricDataRequest()=default
GetCurrentMetricDataRequest & AddSortCriteria(SortCriteriaT &&value)
virtual const char * GetServiceRequestName() const override
const Aws::Vector< Grouping > & GetGroupings() const
GetCurrentMetricDataRequest & WithInstanceId(InstanceIdT &&value)
GetCurrentMetricDataRequest & AddGroupings(Grouping value)
GetCurrentMetricDataRequest & WithFilters(FiltersT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector