AWS SDK for C++  1.9.159
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 
43  inline const Aws::String& GetInstanceId() const{ return m_instanceId; }
44 
49  inline bool InstanceIdHasBeenSet() const { return m_instanceIdHasBeenSet; }
50 
55  inline void SetInstanceId(const Aws::String& value) { m_instanceIdHasBeenSet = true; m_instanceId = value; }
56 
61  inline void SetInstanceId(Aws::String&& value) { m_instanceIdHasBeenSet = true; m_instanceId = std::move(value); }
62 
67  inline void SetInstanceId(const char* value) { m_instanceIdHasBeenSet = true; m_instanceId.assign(value); }
68 
73  inline GetCurrentMetricDataRequest& WithInstanceId(const Aws::String& value) { SetInstanceId(value); return *this;}
74 
79  inline GetCurrentMetricDataRequest& WithInstanceId(Aws::String&& value) { SetInstanceId(std::move(value)); return *this;}
80 
85  inline GetCurrentMetricDataRequest& WithInstanceId(const char* value) { SetInstanceId(value); return *this;}
86 
87 
94  inline const Filters& GetFilters() const{ return m_filters; }
95 
102  inline bool FiltersHasBeenSet() const { return m_filtersHasBeenSet; }
103 
110  inline void SetFilters(const Filters& value) { m_filtersHasBeenSet = true; m_filters = value; }
111 
118  inline void SetFilters(Filters&& value) { m_filtersHasBeenSet = true; m_filters = std::move(value); }
119 
126  inline GetCurrentMetricDataRequest& WithFilters(const Filters& value) { SetFilters(value); return *this;}
127 
134  inline GetCurrentMetricDataRequest& WithFilters(Filters&& value) { SetFilters(std::move(value)); return *this;}
135 
136 
145  inline const Aws::Vector<Grouping>& GetGroupings() const{ return m_groupings; }
146 
155  inline bool GroupingsHasBeenSet() const { return m_groupingsHasBeenSet; }
156 
165  inline void SetGroupings(const Aws::Vector<Grouping>& value) { m_groupingsHasBeenSet = true; m_groupings = value; }
166 
175  inline void SetGroupings(Aws::Vector<Grouping>&& value) { m_groupingsHasBeenSet = true; m_groupings = std::move(value); }
176 
185  inline GetCurrentMetricDataRequest& WithGroupings(const Aws::Vector<Grouping>& value) { SetGroupings(value); return *this;}
186 
195  inline GetCurrentMetricDataRequest& WithGroupings(Aws::Vector<Grouping>&& value) { SetGroupings(std::move(value)); return *this;}
196 
205  inline GetCurrentMetricDataRequest& AddGroupings(const Grouping& value) { m_groupingsHasBeenSet = true; m_groupings.push_back(value); return *this; }
206 
215  inline GetCurrentMetricDataRequest& AddGroupings(Grouping&& value) { m_groupingsHasBeenSet = true; m_groupings.push_back(std::move(value)); return *this; }
216 
217 
269  inline const Aws::Vector<CurrentMetric>& GetCurrentMetrics() const{ return m_currentMetrics; }
270 
322  inline bool CurrentMetricsHasBeenSet() const { return m_currentMetricsHasBeenSet; }
323 
375  inline void SetCurrentMetrics(const Aws::Vector<CurrentMetric>& value) { m_currentMetricsHasBeenSet = true; m_currentMetrics = value; }
376 
428  inline void SetCurrentMetrics(Aws::Vector<CurrentMetric>&& value) { m_currentMetricsHasBeenSet = true; m_currentMetrics = std::move(value); }
429 
481  inline GetCurrentMetricDataRequest& WithCurrentMetrics(const Aws::Vector<CurrentMetric>& value) { SetCurrentMetrics(value); return *this;}
482 
534  inline GetCurrentMetricDataRequest& WithCurrentMetrics(Aws::Vector<CurrentMetric>&& value) { SetCurrentMetrics(std::move(value)); return *this;}
535 
587  inline GetCurrentMetricDataRequest& AddCurrentMetrics(const CurrentMetric& value) { m_currentMetricsHasBeenSet = true; m_currentMetrics.push_back(value); return *this; }
588 
640  inline GetCurrentMetricDataRequest& AddCurrentMetrics(CurrentMetric&& value) { m_currentMetricsHasBeenSet = true; m_currentMetrics.push_back(std::move(value)); return *this; }
641 
642 
650  inline const Aws::String& GetNextToken() const{ return m_nextToken; }
651 
659  inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
660 
668  inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
669 
677  inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
678 
686  inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
687 
695  inline GetCurrentMetricDataRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
696 
704  inline GetCurrentMetricDataRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
705 
713  inline GetCurrentMetricDataRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
714 
715 
719  inline int GetMaxResults() const{ return m_maxResults; }
720 
724  inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
725 
729  inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
730 
734  inline GetCurrentMetricDataRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
735 
736  private:
737 
738  Aws::String m_instanceId;
739  bool m_instanceIdHasBeenSet;
740 
741  Filters m_filters;
742  bool m_filtersHasBeenSet;
743 
744  Aws::Vector<Grouping> m_groupings;
745  bool m_groupingsHasBeenSet;
746 
747  Aws::Vector<CurrentMetric> m_currentMetrics;
748  bool m_currentMetricsHasBeenSet;
749 
750  Aws::String m_nextToken;
751  bool m_nextTokenHasBeenSet;
752 
753  int m_maxResults;
754  bool m_maxResultsHasBeenSet;
755  };
756 
757 } // namespace Model
758 } // namespace Connect
759 } // namespace Aws
CurrentMetric.h
Aws::Connect::Model::GetCurrentMetricDataRequest::WithCurrentMetrics
GetCurrentMetricDataRequest & WithCurrentMetrics(Aws::Vector< CurrentMetric > &&value)
Definition: GetCurrentMetricDataRequest.h:534
Aws::Connect::Model::GetCurrentMetricDataRequest::SetGroupings
void SetGroupings(Aws::Vector< Grouping > &&value)
Definition: GetCurrentMetricDataRequest.h:175
Aws::Connect::Model::GetCurrentMetricDataRequest::GetNextToken
const Aws::String & GetNextToken() const
Definition: GetCurrentMetricDataRequest.h:650
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:375
Aws::Connect::Model::GetCurrentMetricDataRequest::WithCurrentMetrics
GetCurrentMetricDataRequest & WithCurrentMetrics(const Aws::Vector< CurrentMetric > &value)
Definition: GetCurrentMetricDataRequest.h:481
Aws::Connect::Model::GetCurrentMetricDataRequest::WithNextToken
GetCurrentMetricDataRequest & WithNextToken(Aws::String &&value)
Definition: GetCurrentMetricDataRequest.h:704
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:73
Aws::Connect::Model::GetCurrentMetricDataRequest::SetCurrentMetrics
void SetCurrentMetrics(Aws::Vector< CurrentMetric > &&value)
Definition: GetCurrentMetricDataRequest.h:428
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:102
AWSVector.h
Aws::Connect::Model::GetCurrentMetricDataRequest::AddCurrentMetrics
GetCurrentMetricDataRequest & AddCurrentMetrics(CurrentMetric &&value)
Definition: GetCurrentMetricDataRequest.h:640
Aws::Connect::Model::GetCurrentMetricDataRequest::InstanceIdHasBeenSet
bool InstanceIdHasBeenSet() const
Definition: GetCurrentMetricDataRequest.h:49
Aws::Connect::Model::GetCurrentMetricDataRequest::SetNextToken
void SetNextToken(const Aws::String &value)
Definition: GetCurrentMetricDataRequest.h:668
Aws::Connect::Model::GetCurrentMetricDataRequest::WithMaxResults
GetCurrentMetricDataRequest & WithMaxResults(int value)
Definition: GetCurrentMetricDataRequest.h:734
Aws::Connect::Model::GetCurrentMetricDataRequest::SetInstanceId
void SetInstanceId(const char *value)
Definition: GetCurrentMetricDataRequest.h:67
Aws::Connect::Model::GetCurrentMetricDataRequest::WithNextToken
GetCurrentMetricDataRequest & WithNextToken(const char *value)
Definition: GetCurrentMetricDataRequest.h:713
Aws::Connect::Model::GetCurrentMetricDataRequest::WithInstanceId
GetCurrentMetricDataRequest & WithInstanceId(Aws::String &&value)
Definition: GetCurrentMetricDataRequest.h:79
Aws::Connect::Model::GetCurrentMetricDataRequest::AddCurrentMetrics
GetCurrentMetricDataRequest & AddCurrentMetrics(const CurrentMetric &value)
Definition: GetCurrentMetricDataRequest.h:587
Aws::Connect::Model::GetCurrentMetricDataRequest::MaxResultsHasBeenSet
bool MaxResultsHasBeenSet() const
Definition: GetCurrentMetricDataRequest.h:724
Grouping.h
Aws::Connect::Model::GetCurrentMetricDataRequest::SetNextToken
void SetNextToken(const char *value)
Definition: GetCurrentMetricDataRequest.h:686
Aws::Connect::Model::GetCurrentMetricDataRequest::GetInstanceId
const Aws::String & GetInstanceId() const
Definition: GetCurrentMetricDataRequest.h:43
Aws::Connect::ConnectRequest
Definition: ConnectRequest.h:17
Aws::Connect::Model::GetCurrentMetricDataRequest::SetGroupings
void SetGroupings(const Aws::Vector< Grouping > &value)
Definition: GetCurrentMetricDataRequest.h:165
Aws::Connect::Model::GetCurrentMetricDataRequest::SetInstanceId
void SetInstanceId(const Aws::String &value)
Definition: GetCurrentMetricDataRequest.h:55
Aws::Connect::Model::GetCurrentMetricDataRequest::SetMaxResults
void SetMaxResults(int value)
Definition: GetCurrentMetricDataRequest.h:729
Aws::Connect::Model::GetCurrentMetricDataRequest::GetFilters
const Filters & GetFilters() const
Definition: GetCurrentMetricDataRequest.h:94
Aws::Connect::Model::GetCurrentMetricDataRequest::WithInstanceId
GetCurrentMetricDataRequest & WithInstanceId(const char *value)
Definition: GetCurrentMetricDataRequest.h:85
Aws::Connect::Model::GetCurrentMetricDataRequest::SetNextToken
void SetNextToken(Aws::String &&value)
Definition: GetCurrentMetricDataRequest.h:677
AWSString.h
Aws::Connect::Model::GetCurrentMetricDataRequest::GetCurrentMetrics
const Aws::Vector< CurrentMetric > & GetCurrentMetrics() const
Definition: GetCurrentMetricDataRequest.h:269
Aws::Connect::Model::GetCurrentMetricDataRequest::AddGroupings
GetCurrentMetricDataRequest & AddGroupings(Grouping &&value)
Definition: GetCurrentMetricDataRequest.h:215
Aws::Connect::Model::Grouping
Grouping
Definition: Grouping.h:17
Aws::Connect::Model::GetCurrentMetricDataRequest::CurrentMetricsHasBeenSet
bool CurrentMetricsHasBeenSet() const
Definition: GetCurrentMetricDataRequest.h:322
Aws::Connect::Model::GetCurrentMetricDataRequest::SetFilters
void SetFilters(const Filters &value)
Definition: GetCurrentMetricDataRequest.h:110
Aws::Connect::Model::GetCurrentMetricDataRequest::GroupingsHasBeenSet
bool GroupingsHasBeenSet() const
Definition: GetCurrentMetricDataRequest.h:155
Aws::Connect::Model::GetCurrentMetricDataRequest::GetGroupings
const Aws::Vector< Grouping > & GetGroupings() const
Definition: GetCurrentMetricDataRequest.h:145
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:118
Aws::Connect::Model::GetCurrentMetricDataRequest::WithFilters
GetCurrentMetricDataRequest & WithFilters(const Filters &value)
Definition: GetCurrentMetricDataRequest.h:126
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:134
Aws::Connect::Model::GetCurrentMetricDataRequest::WithGroupings
GetCurrentMetricDataRequest & WithGroupings(Aws::Vector< Grouping > &&value)
Definition: GetCurrentMetricDataRequest.h:195
Aws::Connect::Model::GetCurrentMetricDataRequest::WithGroupings
GetCurrentMetricDataRequest & WithGroupings(const Aws::Vector< Grouping > &value)
Definition: GetCurrentMetricDataRequest.h:185
Aws::Connect::Model::GetCurrentMetricDataRequest::AddGroupings
GetCurrentMetricDataRequest & AddGroupings(const Grouping &value)
Definition: GetCurrentMetricDataRequest.h:205
Connect_EXPORTS.h
ConnectRequest.h
Aws::Connect::Model::GetCurrentMetricDataRequest::GetMaxResults
int GetMaxResults() const
Definition: GetCurrentMetricDataRequest.h:719
Aws::Connect::Model::GetCurrentMetricDataRequest::NextTokenHasBeenSet
bool NextTokenHasBeenSet() const
Definition: GetCurrentMetricDataRequest.h:659
Aws::Connect::Model::GetCurrentMetricDataRequest::SetInstanceId
void SetInstanceId(Aws::String &&value)
Definition: GetCurrentMetricDataRequest.h:61
Aws::Connect::Model::GetCurrentMetricDataRequest::WithNextToken
GetCurrentMetricDataRequest & WithNextToken(const Aws::String &value)
Definition: GetCurrentMetricDataRequest.h:695