AWS SDK for C++  1.8.153
AWS SDK for C++
GetCurrentMetricDataRequest.h
Go to the documentation of this file.
1 
6 #pragma once
14 #include <utility>
15 
16 namespace Aws
17 {
18 namespace Connect
19 {
20 namespace Model
21 {
22 
26  {
27  public:
29 
30  // Service request name is the Operation name which will send this request out,
31  // each operation should has unique request name, so that we can get operation's name from this request.
32  // Note: this is not true for response, multiple operations may have the same response name,
33  // so we can not get operation's name from response.
34  inline virtual const char* GetServiceRequestName() const override { return "GetCurrentMetricData"; }
35 
36  Aws::String SerializePayload() const override;
37 
38 
42  inline const Aws::String& GetInstanceId() const{ return m_instanceId; }
43 
47  inline bool InstanceIdHasBeenSet() const { return m_instanceIdHasBeenSet; }
48 
52  inline void SetInstanceId(const Aws::String& value) { m_instanceIdHasBeenSet = true; m_instanceId = value; }
53 
57  inline void SetInstanceId(Aws::String&& value) { m_instanceIdHasBeenSet = true; m_instanceId = std::move(value); }
58 
62  inline void SetInstanceId(const char* value) { m_instanceIdHasBeenSet = true; m_instanceId.assign(value); }
63 
67  inline GetCurrentMetricDataRequest& WithInstanceId(const Aws::String& value) { SetInstanceId(value); return *this;}
68 
72  inline GetCurrentMetricDataRequest& WithInstanceId(Aws::String&& value) { SetInstanceId(std::move(value)); return *this;}
73 
77  inline GetCurrentMetricDataRequest& WithInstanceId(const char* value) { SetInstanceId(value); return *this;}
78 
79 
86  inline const Filters& GetFilters() const{ return m_filters; }
87 
94  inline bool FiltersHasBeenSet() const { return m_filtersHasBeenSet; }
95 
102  inline void SetFilters(const Filters& value) { m_filtersHasBeenSet = true; m_filters = value; }
103 
110  inline void SetFilters(Filters&& value) { m_filtersHasBeenSet = true; m_filters = std::move(value); }
111 
118  inline GetCurrentMetricDataRequest& WithFilters(const Filters& value) { SetFilters(value); return *this;}
119 
126  inline GetCurrentMetricDataRequest& WithFilters(Filters&& value) { SetFilters(std::move(value)); return *this;}
127 
128 
137  inline const Aws::Vector<Grouping>& GetGroupings() const{ return m_groupings; }
138 
147  inline bool GroupingsHasBeenSet() const { return m_groupingsHasBeenSet; }
148 
157  inline void SetGroupings(const Aws::Vector<Grouping>& value) { m_groupingsHasBeenSet = true; m_groupings = value; }
158 
167  inline void SetGroupings(Aws::Vector<Grouping>&& value) { m_groupingsHasBeenSet = true; m_groupings = std::move(value); }
168 
177  inline GetCurrentMetricDataRequest& WithGroupings(const Aws::Vector<Grouping>& value) { SetGroupings(value); return *this;}
178 
187  inline GetCurrentMetricDataRequest& WithGroupings(Aws::Vector<Grouping>&& value) { SetGroupings(std::move(value)); return *this;}
188 
197  inline GetCurrentMetricDataRequest& AddGroupings(const Grouping& value) { m_groupingsHasBeenSet = true; m_groupings.push_back(value); return *this; }
198 
207  inline GetCurrentMetricDataRequest& AddGroupings(Grouping&& value) { m_groupingsHasBeenSet = true; m_groupings.push_back(std::move(value)); return *this; }
208 
209 
260  inline const Aws::Vector<CurrentMetric>& GetCurrentMetrics() const{ return m_currentMetrics; }
261 
312  inline bool CurrentMetricsHasBeenSet() const { return m_currentMetricsHasBeenSet; }
313 
364  inline void SetCurrentMetrics(const Aws::Vector<CurrentMetric>& value) { m_currentMetricsHasBeenSet = true; m_currentMetrics = value; }
365 
416  inline void SetCurrentMetrics(Aws::Vector<CurrentMetric>&& value) { m_currentMetricsHasBeenSet = true; m_currentMetrics = std::move(value); }
417 
468  inline GetCurrentMetricDataRequest& WithCurrentMetrics(const Aws::Vector<CurrentMetric>& value) { SetCurrentMetrics(value); return *this;}
469 
520  inline GetCurrentMetricDataRequest& WithCurrentMetrics(Aws::Vector<CurrentMetric>&& value) { SetCurrentMetrics(std::move(value)); return *this;}
521 
572  inline GetCurrentMetricDataRequest& AddCurrentMetrics(const CurrentMetric& value) { m_currentMetricsHasBeenSet = true; m_currentMetrics.push_back(value); return *this; }
573 
624  inline GetCurrentMetricDataRequest& AddCurrentMetrics(CurrentMetric&& value) { m_currentMetricsHasBeenSet = true; m_currentMetrics.push_back(std::move(value)); return *this; }
625 
626 
634  inline const Aws::String& GetNextToken() const{ return m_nextToken; }
635 
643  inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
644 
652  inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
653 
661  inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
662 
670  inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
671 
679  inline GetCurrentMetricDataRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
680 
688  inline GetCurrentMetricDataRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
689 
697  inline GetCurrentMetricDataRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
698 
699 
703  inline int GetMaxResults() const{ return m_maxResults; }
704 
708  inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
709 
713  inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
714 
718  inline GetCurrentMetricDataRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
719 
720  private:
721 
722  Aws::String m_instanceId;
723  bool m_instanceIdHasBeenSet;
724 
725  Filters m_filters;
726  bool m_filtersHasBeenSet;
727 
728  Aws::Vector<Grouping> m_groupings;
729  bool m_groupingsHasBeenSet;
730 
731  Aws::Vector<CurrentMetric> m_currentMetrics;
732  bool m_currentMetricsHasBeenSet;
733 
734  Aws::String m_nextToken;
735  bool m_nextTokenHasBeenSet;
736 
737  int m_maxResults;
738  bool m_maxResultsHasBeenSet;
739  };
740 
741 } // namespace Model
742 } // namespace Connect
743 } // namespace Aws
CurrentMetric.h
Aws::Connect::Model::GetCurrentMetricDataRequest::WithCurrentMetrics
GetCurrentMetricDataRequest & WithCurrentMetrics(Aws::Vector< CurrentMetric > &&value)
Definition: GetCurrentMetricDataRequest.h:520
Aws::Connect::Model::GetCurrentMetricDataRequest::SetGroupings
void SetGroupings(Aws::Vector< Grouping > &&value)
Definition: GetCurrentMetricDataRequest.h:167
Aws::Connect::Model::GetCurrentMetricDataRequest::GetNextToken
const Aws::String & GetNextToken() const
Definition: GetCurrentMetricDataRequest.h:634
Aws::Connect::Model::GetCurrentMetricDataRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::Connect::Model::GetCurrentMetricDataRequest::SetCurrentMetrics
void SetCurrentMetrics(const Aws::Vector< CurrentMetric > &value)
Definition: GetCurrentMetricDataRequest.h:364
Aws::Connect::Model::GetCurrentMetricDataRequest::WithCurrentMetrics
GetCurrentMetricDataRequest & WithCurrentMetrics(const Aws::Vector< CurrentMetric > &value)
Definition: GetCurrentMetricDataRequest.h:468
Aws::Connect::Model::GetCurrentMetricDataRequest::WithNextToken
GetCurrentMetricDataRequest & WithNextToken(Aws::String &&value)
Definition: GetCurrentMetricDataRequest.h:688
Aws::Connect::Model::Filters
Definition: Filters.h:35
Aws::Connect::Model::CurrentMetric
Definition: CurrentMetric.h:37
Aws::Connect::Model::GetCurrentMetricDataRequest::WithInstanceId
GetCurrentMetricDataRequest & WithInstanceId(const Aws::String &value)
Definition: GetCurrentMetricDataRequest.h:67
Aws::Connect::Model::GetCurrentMetricDataRequest::SetCurrentMetrics
void SetCurrentMetrics(Aws::Vector< CurrentMetric > &&value)
Definition: GetCurrentMetricDataRequest.h:416
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::Connect::Model::GetCurrentMetricDataRequest
Definition: GetCurrentMetricDataRequest.h:26
Aws::Connect::Model::GetCurrentMetricDataRequest::FiltersHasBeenSet
bool FiltersHasBeenSet() const
Definition: GetCurrentMetricDataRequest.h:94
AWSVector.h
Aws::Connect::Model::GetCurrentMetricDataRequest::AddCurrentMetrics
GetCurrentMetricDataRequest & AddCurrentMetrics(CurrentMetric &&value)
Definition: GetCurrentMetricDataRequest.h:624
Aws::Connect::Model::GetCurrentMetricDataRequest::InstanceIdHasBeenSet
bool InstanceIdHasBeenSet() const
Definition: GetCurrentMetricDataRequest.h:47
Aws::Connect::Model::GetCurrentMetricDataRequest::SetNextToken
void SetNextToken(const Aws::String &value)
Definition: GetCurrentMetricDataRequest.h:652
Aws::Connect::Model::GetCurrentMetricDataRequest::WithMaxResults
GetCurrentMetricDataRequest & WithMaxResults(int value)
Definition: GetCurrentMetricDataRequest.h:718
Aws::Connect::Model::GetCurrentMetricDataRequest::SetInstanceId
void SetInstanceId(const char *value)
Definition: GetCurrentMetricDataRequest.h:62
Aws::Connect::Model::GetCurrentMetricDataRequest::WithNextToken
GetCurrentMetricDataRequest & WithNextToken(const char *value)
Definition: GetCurrentMetricDataRequest.h:697
Aws::Connect::Model::GetCurrentMetricDataRequest::WithInstanceId
GetCurrentMetricDataRequest & WithInstanceId(Aws::String &&value)
Definition: GetCurrentMetricDataRequest.h:72
Aws::Connect::Model::GetCurrentMetricDataRequest::AddCurrentMetrics
GetCurrentMetricDataRequest & AddCurrentMetrics(const CurrentMetric &value)
Definition: GetCurrentMetricDataRequest.h:572
Aws::Connect::Model::GetCurrentMetricDataRequest::MaxResultsHasBeenSet
bool MaxResultsHasBeenSet() const
Definition: GetCurrentMetricDataRequest.h:708
Grouping.h
Aws::Connect::Model::GetCurrentMetricDataRequest::SetNextToken
void SetNextToken(const char *value)
Definition: GetCurrentMetricDataRequest.h:670
Aws::Connect::Model::GetCurrentMetricDataRequest::GetInstanceId
const Aws::String & GetInstanceId() const
Definition: GetCurrentMetricDataRequest.h:42
Aws::Connect::ConnectRequest
Definition: ConnectRequest.h:17
Aws::Connect::Model::GetCurrentMetricDataRequest::SetGroupings
void SetGroupings(const Aws::Vector< Grouping > &value)
Definition: GetCurrentMetricDataRequest.h:157
Aws::Connect::Model::GetCurrentMetricDataRequest::SetInstanceId
void SetInstanceId(const Aws::String &value)
Definition: GetCurrentMetricDataRequest.h:52
Aws::Connect::Model::GetCurrentMetricDataRequest::SetMaxResults
void SetMaxResults(int value)
Definition: GetCurrentMetricDataRequest.h:713
Aws::Connect::Model::GetCurrentMetricDataRequest::GetFilters
const Filters & GetFilters() const
Definition: GetCurrentMetricDataRequest.h:86
Aws::Connect::Model::GetCurrentMetricDataRequest::WithInstanceId
GetCurrentMetricDataRequest & WithInstanceId(const char *value)
Definition: GetCurrentMetricDataRequest.h:77
Aws::Connect::Model::GetCurrentMetricDataRequest::SetNextToken
void SetNextToken(Aws::String &&value)
Definition: GetCurrentMetricDataRequest.h:661
AWSString.h
Aws::Connect::Model::GetCurrentMetricDataRequest::GetCurrentMetrics
const Aws::Vector< CurrentMetric > & GetCurrentMetrics() const
Definition: GetCurrentMetricDataRequest.h:260
Aws::Connect::Model::GetCurrentMetricDataRequest::AddGroupings
GetCurrentMetricDataRequest & AddGroupings(Grouping &&value)
Definition: GetCurrentMetricDataRequest.h:207
Aws::Connect::Model::Grouping
Grouping
Definition: Grouping.h:17
Aws::Connect::Model::GetCurrentMetricDataRequest::CurrentMetricsHasBeenSet
bool CurrentMetricsHasBeenSet() const
Definition: GetCurrentMetricDataRequest.h:312
Aws::Connect::Model::GetCurrentMetricDataRequest::SetFilters
void SetFilters(const Filters &value)
Definition: GetCurrentMetricDataRequest.h:102
Aws::Connect::Model::GetCurrentMetricDataRequest::GroupingsHasBeenSet
bool GroupingsHasBeenSet() const
Definition: GetCurrentMetricDataRequest.h:147
Aws::Connect::Model::GetCurrentMetricDataRequest::GetGroupings
const Aws::Vector< Grouping > & GetGroupings() const
Definition: GetCurrentMetricDataRequest.h:137
Aws::Connect::Model::GetCurrentMetricDataRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: GetCurrentMetricDataRequest.h:34
Aws::Connect::Model::GetCurrentMetricDataRequest::GetCurrentMetricDataRequest
GetCurrentMetricDataRequest()
Aws
Definition: AccessManagementClient.h:15
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::Connect::Model::GetCurrentMetricDataRequest::SetFilters
void SetFilters(Filters &&value)
Definition: GetCurrentMetricDataRequest.h:110
Aws::Connect::Model::GetCurrentMetricDataRequest::WithFilters
GetCurrentMetricDataRequest & WithFilters(const Filters &value)
Definition: GetCurrentMetricDataRequest.h:118
Filters.h
AWS_CONNECT_API
#define AWS_CONNECT_API
Definition: Connect_EXPORTS.h:28
Aws::Connect::Model::GetCurrentMetricDataRequest::WithFilters
GetCurrentMetricDataRequest & WithFilters(Filters &&value)
Definition: GetCurrentMetricDataRequest.h:126
Aws::Connect::Model::GetCurrentMetricDataRequest::WithGroupings
GetCurrentMetricDataRequest & WithGroupings(Aws::Vector< Grouping > &&value)
Definition: GetCurrentMetricDataRequest.h:187
Aws::Connect::Model::GetCurrentMetricDataRequest::WithGroupings
GetCurrentMetricDataRequest & WithGroupings(const Aws::Vector< Grouping > &value)
Definition: GetCurrentMetricDataRequest.h:177
Aws::Connect::Model::GetCurrentMetricDataRequest::AddGroupings
GetCurrentMetricDataRequest & AddGroupings(const Grouping &value)
Definition: GetCurrentMetricDataRequest.h:197
Connect_EXPORTS.h
ConnectRequest.h
Aws::Connect::Model::GetCurrentMetricDataRequest::GetMaxResults
int GetMaxResults() const
Definition: GetCurrentMetricDataRequest.h:703
Aws::Connect::Model::GetCurrentMetricDataRequest::NextTokenHasBeenSet
bool NextTokenHasBeenSet() const
Definition: GetCurrentMetricDataRequest.h:643
Aws::Connect::Model::GetCurrentMetricDataRequest::SetInstanceId
void SetInstanceId(Aws::String &&value)
Definition: GetCurrentMetricDataRequest.h:57
Aws::Connect::Model::GetCurrentMetricDataRequest::WithNextToken
GetCurrentMetricDataRequest & WithNextToken(const Aws::String &value)
Definition: GetCurrentMetricDataRequest.h:679