AWS SDK for C++  1.9.153
AWS SDK for C++
GetMetricDataRequest.h
Go to the documentation of this file.
1 
6 #pragma once
15 #include <utility>
16 
17 namespace Aws
18 {
19 namespace Connect
20 {
21 namespace Model
22 {
23 
27  {
28  public:
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::String SerializePayload() const override;
38 
39 
44  inline const Aws::String& GetInstanceId() const{ return m_instanceId; }
45 
50  inline bool InstanceIdHasBeenSet() const { return m_instanceIdHasBeenSet; }
51 
56  inline void SetInstanceId(const Aws::String& value) { m_instanceIdHasBeenSet = true; m_instanceId = value; }
57 
62  inline void SetInstanceId(Aws::String&& value) { m_instanceIdHasBeenSet = true; m_instanceId = std::move(value); }
63 
68  inline void SetInstanceId(const char* value) { m_instanceIdHasBeenSet = true; m_instanceId.assign(value); }
69 
74  inline GetMetricDataRequest& WithInstanceId(const Aws::String& value) { SetInstanceId(value); return *this;}
75 
80  inline GetMetricDataRequest& WithInstanceId(Aws::String&& value) { SetInstanceId(std::move(value)); return *this;}
81 
86  inline GetMetricDataRequest& WithInstanceId(const char* value) { SetInstanceId(value); return *this;}
87 
88 
96  inline const Aws::Utils::DateTime& GetStartTime() const{ return m_startTime; }
97 
105  inline bool StartTimeHasBeenSet() const { return m_startTimeHasBeenSet; }
106 
114  inline void SetStartTime(const Aws::Utils::DateTime& value) { m_startTimeHasBeenSet = true; m_startTime = value; }
115 
123  inline void SetStartTime(Aws::Utils::DateTime&& value) { m_startTimeHasBeenSet = true; m_startTime = std::move(value); }
124 
132  inline GetMetricDataRequest& WithStartTime(const Aws::Utils::DateTime& value) { SetStartTime(value); return *this;}
133 
141  inline GetMetricDataRequest& WithStartTime(Aws::Utils::DateTime&& value) { SetStartTime(std::move(value)); return *this;}
142 
143 
151  inline const Aws::Utils::DateTime& GetEndTime() const{ return m_endTime; }
152 
160  inline bool EndTimeHasBeenSet() const { return m_endTimeHasBeenSet; }
161 
169  inline void SetEndTime(const Aws::Utils::DateTime& value) { m_endTimeHasBeenSet = true; m_endTime = value; }
170 
178  inline void SetEndTime(Aws::Utils::DateTime&& value) { m_endTimeHasBeenSet = true; m_endTime = std::move(value); }
179 
187  inline GetMetricDataRequest& WithEndTime(const Aws::Utils::DateTime& value) { SetEndTime(value); return *this;}
188 
196  inline GetMetricDataRequest& WithEndTime(Aws::Utils::DateTime&& value) { SetEndTime(std::move(value)); return *this;}
197 
198 
207  inline const Filters& GetFilters() const{ return m_filters; }
208 
217  inline bool FiltersHasBeenSet() const { return m_filtersHasBeenSet; }
218 
227  inline void SetFilters(const Filters& value) { m_filtersHasBeenSet = true; m_filters = value; }
228 
237  inline void SetFilters(Filters&& value) { m_filtersHasBeenSet = true; m_filters = std::move(value); }
238 
247  inline GetMetricDataRequest& WithFilters(const Filters& value) { SetFilters(value); return *this;}
248 
257  inline GetMetricDataRequest& WithFilters(Filters&& value) { SetFilters(std::move(value)); return *this;}
258 
259 
267  inline const Aws::Vector<Grouping>& GetGroupings() const{ return m_groupings; }
268 
276  inline bool GroupingsHasBeenSet() const { return m_groupingsHasBeenSet; }
277 
285  inline void SetGroupings(const Aws::Vector<Grouping>& value) { m_groupingsHasBeenSet = true; m_groupings = value; }
286 
294  inline void SetGroupings(Aws::Vector<Grouping>&& value) { m_groupingsHasBeenSet = true; m_groupings = std::move(value); }
295 
303  inline GetMetricDataRequest& WithGroupings(const Aws::Vector<Grouping>& value) { SetGroupings(value); return *this;}
304 
312  inline GetMetricDataRequest& WithGroupings(Aws::Vector<Grouping>&& value) { SetGroupings(std::move(value)); return *this;}
313 
321  inline GetMetricDataRequest& AddGroupings(const Grouping& value) { m_groupingsHasBeenSet = true; m_groupings.push_back(value); return *this; }
322 
330  inline GetMetricDataRequest& AddGroupings(Grouping&& value) { m_groupingsHasBeenSet = true; m_groupings.push_back(std::move(value)); return *this; }
331 
332 
374  inline const Aws::Vector<HistoricalMetric>& GetHistoricalMetrics() const{ return m_historicalMetrics; }
375 
417  inline bool HistoricalMetricsHasBeenSet() const { return m_historicalMetricsHasBeenSet; }
418 
460  inline void SetHistoricalMetrics(const Aws::Vector<HistoricalMetric>& value) { m_historicalMetricsHasBeenSet = true; m_historicalMetrics = value; }
461 
503  inline void SetHistoricalMetrics(Aws::Vector<HistoricalMetric>&& value) { m_historicalMetricsHasBeenSet = true; m_historicalMetrics = std::move(value); }
504 
546  inline GetMetricDataRequest& WithHistoricalMetrics(const Aws::Vector<HistoricalMetric>& value) { SetHistoricalMetrics(value); return *this;}
547 
589  inline GetMetricDataRequest& WithHistoricalMetrics(Aws::Vector<HistoricalMetric>&& value) { SetHistoricalMetrics(std::move(value)); return *this;}
590 
632  inline GetMetricDataRequest& AddHistoricalMetrics(const HistoricalMetric& value) { m_historicalMetricsHasBeenSet = true; m_historicalMetrics.push_back(value); return *this; }
633 
675  inline GetMetricDataRequest& AddHistoricalMetrics(HistoricalMetric&& value) { m_historicalMetricsHasBeenSet = true; m_historicalMetrics.push_back(std::move(value)); return *this; }
676 
677 
682  inline const Aws::String& GetNextToken() const{ return m_nextToken; }
683 
688  inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
689 
694  inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
695 
700  inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
701 
706  inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
707 
712  inline GetMetricDataRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
713 
718  inline GetMetricDataRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
719 
724  inline GetMetricDataRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
725 
726 
730  inline int GetMaxResults() const{ return m_maxResults; }
731 
735  inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
736 
740  inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
741 
745  inline GetMetricDataRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
746 
747  private:
748 
749  Aws::String m_instanceId;
750  bool m_instanceIdHasBeenSet;
751 
752  Aws::Utils::DateTime m_startTime;
753  bool m_startTimeHasBeenSet;
754 
755  Aws::Utils::DateTime m_endTime;
756  bool m_endTimeHasBeenSet;
757 
758  Filters m_filters;
759  bool m_filtersHasBeenSet;
760 
761  Aws::Vector<Grouping> m_groupings;
762  bool m_groupingsHasBeenSet;
763 
764  Aws::Vector<HistoricalMetric> m_historicalMetrics;
765  bool m_historicalMetricsHasBeenSet;
766 
767  Aws::String m_nextToken;
768  bool m_nextTokenHasBeenSet;
769 
770  int m_maxResults;
771  bool m_maxResultsHasBeenSet;
772  };
773 
774 } // namespace Model
775 } // namespace Connect
776 } // namespace Aws
Aws::Utils::DateTime
Definition: DateTime.h:55
Aws::Connect::Model::GetMetricDataRequest::WithNextToken
GetMetricDataRequest & WithNextToken(const char *value)
Definition: GetMetricDataRequest.h:724
Aws::Connect::Model::GetMetricDataRequest::SetHistoricalMetrics
void SetHistoricalMetrics(Aws::Vector< HistoricalMetric > &&value)
Definition: GetMetricDataRequest.h:503
Aws::Connect::Model::GetMetricDataRequest::InstanceIdHasBeenSet
bool InstanceIdHasBeenSet() const
Definition: GetMetricDataRequest.h:50
Aws::Connect::Model::GetMetricDataRequest::SetStartTime
void SetStartTime(const Aws::Utils::DateTime &value)
Definition: GetMetricDataRequest.h:114
Aws::Connect::Model::GetMetricDataRequest::SetFilters
void SetFilters(Filters &&value)
Definition: GetMetricDataRequest.h:237
Aws::Connect::Model::GetMetricDataRequest::WithInstanceId
GetMetricDataRequest & WithInstanceId(Aws::String &&value)
Definition: GetMetricDataRequest.h:80
Aws::Connect::Model::GetMetricDataRequest::GetStartTime
const Aws::Utils::DateTime & GetStartTime() const
Definition: GetMetricDataRequest.h:96
Aws::Connect::Model::GetMetricDataRequest::SetMaxResults
void SetMaxResults(int value)
Definition: GetMetricDataRequest.h:740
Aws::Connect::Model::GetMetricDataRequest::WithNextToken
GetMetricDataRequest & WithNextToken(Aws::String &&value)
Definition: GetMetricDataRequest.h:718
Aws::Connect::Model::Filters
Definition: Filters.h:35
DateTime.h
Aws::Connect::Model::GetMetricDataRequest::GetEndTime
const Aws::Utils::DateTime & GetEndTime() const
Definition: GetMetricDataRequest.h:151
Aws::Connect::Model::GetMetricDataRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: GetMetricDataRequest.h:35
Aws::Connect::Model::GetMetricDataRequest::WithEndTime
GetMetricDataRequest & WithEndTime(const Aws::Utils::DateTime &value)
Definition: GetMetricDataRequest.h:187
Aws::Connect::Model::GetMetricDataRequest::WithGroupings
GetMetricDataRequest & WithGroupings(Aws::Vector< Grouping > &&value)
Definition: GetMetricDataRequest.h:312
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::Connect::Model::GetMetricDataRequest::WithInstanceId
GetMetricDataRequest & WithInstanceId(const char *value)
Definition: GetMetricDataRequest.h:86
AWSVector.h
Aws::Connect::Model::GetMetricDataRequest::SetInstanceId
void SetInstanceId(const char *value)
Definition: GetMetricDataRequest.h:68
Aws::Connect::Model::GetMetricDataRequest::GetInstanceId
const Aws::String & GetInstanceId() const
Definition: GetMetricDataRequest.h:44
Aws::Connect::Model::GetMetricDataRequest::WithEndTime
GetMetricDataRequest & WithEndTime(Aws::Utils::DateTime &&value)
Definition: GetMetricDataRequest.h:196
Aws::Connect::Model::GetMetricDataRequest::AddHistoricalMetrics
GetMetricDataRequest & AddHistoricalMetrics(HistoricalMetric &&value)
Definition: GetMetricDataRequest.h:675
Aws::Connect::Model::GetMetricDataRequest::WithFilters
GetMetricDataRequest & WithFilters(const Filters &value)
Definition: GetMetricDataRequest.h:247
Aws::Connect::Model::GetMetricDataRequest::MaxResultsHasBeenSet
bool MaxResultsHasBeenSet() const
Definition: GetMetricDataRequest.h:735
Aws::Connect::Model::GetMetricDataRequest::FiltersHasBeenSet
bool FiltersHasBeenSet() const
Definition: GetMetricDataRequest.h:217
Aws::Connect::Model::GetMetricDataRequest::SetGroupings
void SetGroupings(Aws::Vector< Grouping > &&value)
Definition: GetMetricDataRequest.h:294
Aws::Connect::Model::GetMetricDataRequest::AddGroupings
GetMetricDataRequest & AddGroupings(const Grouping &value)
Definition: GetMetricDataRequest.h:321
Aws::Connect::Model::GetMetricDataRequest::SetHistoricalMetrics
void SetHistoricalMetrics(const Aws::Vector< HistoricalMetric > &value)
Definition: GetMetricDataRequest.h:460
Aws::Connect::Model::GetMetricDataRequest::AddGroupings
GetMetricDataRequest & AddGroupings(Grouping &&value)
Definition: GetMetricDataRequest.h:330
Aws::Connect::Model::GetMetricDataRequest
Definition: GetMetricDataRequest.h:27
Aws::Connect::Model::GetMetricDataRequest::SetFilters
void SetFilters(const Filters &value)
Definition: GetMetricDataRequest.h:227
Aws::Connect::Model::GetMetricDataRequest::WithFilters
GetMetricDataRequest & WithFilters(Filters &&value)
Definition: GetMetricDataRequest.h:257
Grouping.h
Aws::Connect::Model::GetMetricDataRequest::GetGroupings
const Aws::Vector< Grouping > & GetGroupings() const
Definition: GetMetricDataRequest.h:267
Aws::Connect::Model::GetMetricDataRequest::SetNextToken
void SetNextToken(const char *value)
Definition: GetMetricDataRequest.h:706
Aws::Connect::Model::GetMetricDataRequest::GroupingsHasBeenSet
bool GroupingsHasBeenSet() const
Definition: GetMetricDataRequest.h:276
Aws::Connect::Model::GetMetricDataRequest::SetStartTime
void SetStartTime(Aws::Utils::DateTime &&value)
Definition: GetMetricDataRequest.h:123
Aws::Connect::ConnectRequest
Definition: ConnectRequest.h:17
Aws::Connect::Model::GetMetricDataRequest::GetFilters
const Filters & GetFilters() const
Definition: GetMetricDataRequest.h:207
Aws::Connect::Model::GetMetricDataRequest::GetHistoricalMetrics
const Aws::Vector< HistoricalMetric > & GetHistoricalMetrics() const
Definition: GetMetricDataRequest.h:374
Aws::Connect::Model::GetMetricDataRequest::SetEndTime
void SetEndTime(const Aws::Utils::DateTime &value)
Definition: GetMetricDataRequest.h:169
Aws::Connect::Model::GetMetricDataRequest::GetNextToken
const Aws::String & GetNextToken() const
Definition: GetMetricDataRequest.h:682
AWSString.h
Aws::Connect::Model::GetMetricDataRequest::StartTimeHasBeenSet
bool StartTimeHasBeenSet() const
Definition: GetMetricDataRequest.h:105
Aws::Connect::Model::GetMetricDataRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::Connect::Model::GetMetricDataRequest::HistoricalMetricsHasBeenSet
bool HistoricalMetricsHasBeenSet() const
Definition: GetMetricDataRequest.h:417
Aws::Connect::Model::GetMetricDataRequest::SetInstanceId
void SetInstanceId(const Aws::String &value)
Definition: GetMetricDataRequest.h:56
Aws::Connect::Model::GetMetricDataRequest::WithNextToken
GetMetricDataRequest & WithNextToken(const Aws::String &value)
Definition: GetMetricDataRequest.h:712
Aws::Connect::Model::Grouping
Grouping
Definition: Grouping.h:17
Aws::Connect::Model::GetMetricDataRequest::WithMaxResults
GetMetricDataRequest & WithMaxResults(int value)
Definition: GetMetricDataRequest.h:745
Aws::Connect::Model::GetMetricDataRequest::WithStartTime
GetMetricDataRequest & WithStartTime(const Aws::Utils::DateTime &value)
Definition: GetMetricDataRequest.h:132
Aws::Connect::Model::GetMetricDataRequest::AddHistoricalMetrics
GetMetricDataRequest & AddHistoricalMetrics(const HistoricalMetric &value)
Definition: GetMetricDataRequest.h:632
Aws::Connect::Model::GetMetricDataRequest::SetInstanceId
void SetInstanceId(Aws::String &&value)
Definition: GetMetricDataRequest.h:62
Aws::Connect::Model::GetMetricDataRequest::GetMetricDataRequest
GetMetricDataRequest()
Aws::Connect::Model::GetMetricDataRequest::WithHistoricalMetrics
GetMetricDataRequest & WithHistoricalMetrics(Aws::Vector< HistoricalMetric > &&value)
Definition: GetMetricDataRequest.h:589
Aws::Connect::Model::HistoricalMetric
Definition: HistoricalMetric.h:39
HistoricalMetric.h
Aws
Definition: AccessManagementClient.h:15
Aws::Connect::Model::GetMetricDataRequest::WithHistoricalMetrics
GetMetricDataRequest & WithHistoricalMetrics(const Aws::Vector< HistoricalMetric > &value)
Definition: GetMetricDataRequest.h:546
Aws::Connect::Model::GetMetricDataRequest::SetGroupings
void SetGroupings(const Aws::Vector< Grouping > &value)
Definition: GetMetricDataRequest.h:285
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::Connect::Model::GetMetricDataRequest::GetMaxResults
int GetMaxResults() const
Definition: GetMetricDataRequest.h:730
Aws::Connect::Model::GetMetricDataRequest::WithGroupings
GetMetricDataRequest & WithGroupings(const Aws::Vector< Grouping > &value)
Definition: GetMetricDataRequest.h:303
Filters.h
Aws::Connect::Model::GetMetricDataRequest::SetNextToken
void SetNextToken(const Aws::String &value)
Definition: GetMetricDataRequest.h:694
AWS_CONNECT_API
#define AWS_CONNECT_API
Definition: Connect_EXPORTS.h:28
Aws::Connect::Model::GetMetricDataRequest::WithStartTime
GetMetricDataRequest & WithStartTime(Aws::Utils::DateTime &&value)
Definition: GetMetricDataRequest.h:141
Connect_EXPORTS.h
ConnectRequest.h
Aws::Connect::Model::GetMetricDataRequest::SetEndTime
void SetEndTime(Aws::Utils::DateTime &&value)
Definition: GetMetricDataRequest.h:178
Aws::Connect::Model::GetMetricDataRequest::EndTimeHasBeenSet
bool EndTimeHasBeenSet() const
Definition: GetMetricDataRequest.h:160
Aws::Connect::Model::GetMetricDataRequest::NextTokenHasBeenSet
bool NextTokenHasBeenSet() const
Definition: GetMetricDataRequest.h:688
Aws::Connect::Model::GetMetricDataRequest::SetNextToken
void SetNextToken(Aws::String &&value)
Definition: GetMetricDataRequest.h:700
Aws::Connect::Model::GetMetricDataRequest::WithInstanceId
GetMetricDataRequest & WithInstanceId(const Aws::String &value)
Definition: GetMetricDataRequest.h:74