AWS SDK for C++  1.8.71
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 
87  inline const Filters& GetFilters() const{ return m_filters; }
88 
96  inline bool FiltersHasBeenSet() const { return m_filtersHasBeenSet; }
97 
105  inline void SetFilters(const Filters& value) { m_filtersHasBeenSet = true; m_filters = value; }
106 
114  inline void SetFilters(Filters&& value) { m_filtersHasBeenSet = true; m_filters = std::move(value); }
115 
123  inline GetCurrentMetricDataRequest& WithFilters(const Filters& value) { SetFilters(value); return *this;}
124 
132  inline GetCurrentMetricDataRequest& WithFilters(Filters&& value) { SetFilters(std::move(value)); return *this;}
133 
134 
143  inline const Aws::Vector<Grouping>& GetGroupings() const{ return m_groupings; }
144 
153  inline bool GroupingsHasBeenSet() const { return m_groupingsHasBeenSet; }
154 
163  inline void SetGroupings(const Aws::Vector<Grouping>& value) { m_groupingsHasBeenSet = true; m_groupings = value; }
164 
173  inline void SetGroupings(Aws::Vector<Grouping>&& value) { m_groupingsHasBeenSet = true; m_groupings = std::move(value); }
174 
183  inline GetCurrentMetricDataRequest& WithGroupings(const Aws::Vector<Grouping>& value) { SetGroupings(value); return *this;}
184 
193  inline GetCurrentMetricDataRequest& WithGroupings(Aws::Vector<Grouping>&& value) { SetGroupings(std::move(value)); return *this;}
194 
203  inline GetCurrentMetricDataRequest& AddGroupings(const Grouping& value) { m_groupingsHasBeenSet = true; m_groupings.push_back(value); return *this; }
204 
213  inline GetCurrentMetricDataRequest& AddGroupings(Grouping&& value) { m_groupingsHasBeenSet = true; m_groupings.push_back(std::move(value)); return *this; }
214 
215 
266  inline const Aws::Vector<CurrentMetric>& GetCurrentMetrics() const{ return m_currentMetrics; }
267 
318  inline bool CurrentMetricsHasBeenSet() const { return m_currentMetricsHasBeenSet; }
319 
370  inline void SetCurrentMetrics(const Aws::Vector<CurrentMetric>& value) { m_currentMetricsHasBeenSet = true; m_currentMetrics = value; }
371 
422  inline void SetCurrentMetrics(Aws::Vector<CurrentMetric>&& value) { m_currentMetricsHasBeenSet = true; m_currentMetrics = std::move(value); }
423 
474  inline GetCurrentMetricDataRequest& WithCurrentMetrics(const Aws::Vector<CurrentMetric>& value) { SetCurrentMetrics(value); return *this;}
475 
526  inline GetCurrentMetricDataRequest& WithCurrentMetrics(Aws::Vector<CurrentMetric>&& value) { SetCurrentMetrics(std::move(value)); return *this;}
527 
578  inline GetCurrentMetricDataRequest& AddCurrentMetrics(const CurrentMetric& value) { m_currentMetricsHasBeenSet = true; m_currentMetrics.push_back(value); return *this; }
579 
630  inline GetCurrentMetricDataRequest& AddCurrentMetrics(CurrentMetric&& value) { m_currentMetricsHasBeenSet = true; m_currentMetrics.push_back(std::move(value)); return *this; }
631 
632 
640  inline const Aws::String& GetNextToken() const{ return m_nextToken; }
641 
649  inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
650 
658  inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
659 
667  inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
668 
676  inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
677 
685  inline GetCurrentMetricDataRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
686 
694  inline GetCurrentMetricDataRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
695 
703  inline GetCurrentMetricDataRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
704 
705 
709  inline int GetMaxResults() const{ return m_maxResults; }
710 
714  inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
715 
719  inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
720 
724  inline GetCurrentMetricDataRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
725 
726  private:
727 
728  Aws::String m_instanceId;
729  bool m_instanceIdHasBeenSet;
730 
731  Filters m_filters;
732  bool m_filtersHasBeenSet;
733 
734  Aws::Vector<Grouping> m_groupings;
735  bool m_groupingsHasBeenSet;
736 
737  Aws::Vector<CurrentMetric> m_currentMetrics;
738  bool m_currentMetricsHasBeenSet;
739 
740  Aws::String m_nextToken;
741  bool m_nextTokenHasBeenSet;
742 
743  int m_maxResults;
744  bool m_maxResultsHasBeenSet;
745  };
746 
747 } // namespace Model
748 } // namespace Connect
749 } // namespace Aws
GetCurrentMetricDataRequest & WithNextToken(Aws::String &&value)
GetCurrentMetricDataRequest & WithNextToken(const char *value)
#define AWS_CONNECT_API
const Aws::Vector< CurrentMetric > & GetCurrentMetrics() const
const Aws::Vector< Grouping > & GetGroupings() const
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
GetCurrentMetricDataRequest & WithCurrentMetrics(const Aws::Vector< CurrentMetric > &value)
GetCurrentMetricDataRequest & WithFilters(Filters &&value)
GetCurrentMetricDataRequest & AddGroupings(const Grouping &value)
GetCurrentMetricDataRequest & WithInstanceId(const Aws::String &value)
GetCurrentMetricDataRequest & AddCurrentMetrics(const CurrentMetric &value)
GetCurrentMetricDataRequest & WithGroupings(Aws::Vector< Grouping > &&value)
GetCurrentMetricDataRequest & WithInstanceId(Aws::String &&value)
GetCurrentMetricDataRequest & WithNextToken(const Aws::String &value)
GetCurrentMetricDataRequest & WithInstanceId(const char *value)
GetCurrentMetricDataRequest & AddCurrentMetrics(CurrentMetric &&value)
GetCurrentMetricDataRequest & AddGroupings(Grouping &&value)
GetCurrentMetricDataRequest & WithFilters(const Filters &value)
virtual const char * GetServiceRequestName() const override
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
void SetCurrentMetrics(Aws::Vector< CurrentMetric > &&value)
GetCurrentMetricDataRequest & WithCurrentMetrics(Aws::Vector< CurrentMetric > &&value)
void SetCurrentMetrics(const Aws::Vector< CurrentMetric > &value)
void SetGroupings(const Aws::Vector< Grouping > &value)
GetCurrentMetricDataRequest & WithGroupings(const Aws::Vector< Grouping > &value)
GetCurrentMetricDataRequest & WithMaxResults(int value)