AWS SDK for C++

AWS SDK for C++ Version 1.11.553

All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Pages
Loading...
Searching...
No Matches
GetMetricDataV2Request.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/core/utils/DateTime.h>
11#include <aws/connect/model/IntervalDetails.h>
12#include <aws/core/utils/memory/stl/AWSVector.h>
13#include <aws/connect/model/FilterV2.h>
14#include <aws/connect/model/MetricV2.h>
15#include <utility>
16
17namespace Aws
18{
19namespace Connect
20{
21namespace Model
22{
23
27 {
28 public:
29 AWS_CONNECT_API GetMetricDataV2Request() = 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 "GetMetricDataV2"; }
36
37 AWS_CONNECT_API Aws::String SerializePayload() const override;
38
39
41
45 inline const Aws::String& GetResourceArn() const { return m_resourceArn; }
46 inline bool ResourceArnHasBeenSet() const { return m_resourceArnHasBeenSet; }
47 template<typename ResourceArnT = Aws::String>
48 void SetResourceArn(ResourceArnT&& value) { m_resourceArnHasBeenSet = true; m_resourceArn = std::forward<ResourceArnT>(value); }
49 template<typename ResourceArnT = Aws::String>
50 GetMetricDataV2Request& WithResourceArn(ResourceArnT&& value) { SetResourceArn(std::forward<ResourceArnT>(value)); return *this;}
52
54
61 inline const Aws::Utils::DateTime& GetStartTime() const { return m_startTime; }
62 inline bool StartTimeHasBeenSet() const { return m_startTimeHasBeenSet; }
63 template<typename StartTimeT = Aws::Utils::DateTime>
64 void SetStartTime(StartTimeT&& value) { m_startTimeHasBeenSet = true; m_startTime = std::forward<StartTimeT>(value); }
65 template<typename StartTimeT = Aws::Utils::DateTime>
66 GetMetricDataV2Request& WithStartTime(StartTimeT&& value) { SetStartTime(std::forward<StartTimeT>(value)); return *this;}
68
70
76 inline const Aws::Utils::DateTime& GetEndTime() const { return m_endTime; }
77 inline bool EndTimeHasBeenSet() const { return m_endTimeHasBeenSet; }
78 template<typename EndTimeT = Aws::Utils::DateTime>
79 void SetEndTime(EndTimeT&& value) { m_endTimeHasBeenSet = true; m_endTime = std::forward<EndTimeT>(value); }
80 template<typename EndTimeT = Aws::Utils::DateTime>
81 GetMetricDataV2Request& WithEndTime(EndTimeT&& value) { SetEndTime(std::forward<EndTimeT>(value)); return *this;}
83
85
113 inline const IntervalDetails& GetInterval() const { return m_interval; }
114 inline bool IntervalHasBeenSet() const { return m_intervalHasBeenSet; }
115 template<typename IntervalT = IntervalDetails>
116 void SetInterval(IntervalT&& value) { m_intervalHasBeenSet = true; m_interval = std::forward<IntervalT>(value); }
117 template<typename IntervalT = IntervalDetails>
118 GetMetricDataV2Request& WithInterval(IntervalT&& value) { SetInterval(std::forward<IntervalT>(value)); return *this;}
120
122
184 inline const Aws::Vector<FilterV2>& GetFilters() const { return m_filters; }
185 inline bool FiltersHasBeenSet() const { return m_filtersHasBeenSet; }
186 template<typename FiltersT = Aws::Vector<FilterV2>>
187 void SetFilters(FiltersT&& value) { m_filtersHasBeenSet = true; m_filters = std::forward<FiltersT>(value); }
188 template<typename FiltersT = Aws::Vector<FilterV2>>
189 GetMetricDataV2Request& WithFilters(FiltersT&& value) { SetFilters(std::forward<FiltersT>(value)); return *this;}
190 template<typename FiltersT = FilterV2>
191 GetMetricDataV2Request& AddFilters(FiltersT&& value) { m_filtersHasBeenSet = true; m_filters.emplace_back(std::forward<FiltersT>(value)); return *this; }
193
195
224 inline const Aws::Vector<Aws::String>& GetGroupings() const { return m_groupings; }
225 inline bool GroupingsHasBeenSet() const { return m_groupingsHasBeenSet; }
226 template<typename GroupingsT = Aws::Vector<Aws::String>>
227 void SetGroupings(GroupingsT&& value) { m_groupingsHasBeenSet = true; m_groupings = std::forward<GroupingsT>(value); }
228 template<typename GroupingsT = Aws::Vector<Aws::String>>
229 GetMetricDataV2Request& WithGroupings(GroupingsT&& value) { SetGroupings(std::forward<GroupingsT>(value)); return *this;}
230 template<typename GroupingsT = Aws::String>
231 GetMetricDataV2Request& AddGroupings(GroupingsT&& value) { m_groupingsHasBeenSet = true; m_groupings.emplace_back(std::forward<GroupingsT>(value)); return *this; }
233
235
838 inline const Aws::Vector<MetricV2>& GetMetrics() const { return m_metrics; }
839 inline bool MetricsHasBeenSet() const { return m_metricsHasBeenSet; }
840 template<typename MetricsT = Aws::Vector<MetricV2>>
841 void SetMetrics(MetricsT&& value) { m_metricsHasBeenSet = true; m_metrics = std::forward<MetricsT>(value); }
842 template<typename MetricsT = Aws::Vector<MetricV2>>
843 GetMetricDataV2Request& WithMetrics(MetricsT&& value) { SetMetrics(std::forward<MetricsT>(value)); return *this;}
844 template<typename MetricsT = MetricV2>
845 GetMetricDataV2Request& AddMetrics(MetricsT&& value) { m_metricsHasBeenSet = true; m_metrics.emplace_back(std::forward<MetricsT>(value)); return *this; }
847
849
853 inline const Aws::String& GetNextToken() const { return m_nextToken; }
854 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
855 template<typename NextTokenT = Aws::String>
856 void SetNextToken(NextTokenT&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::forward<NextTokenT>(value); }
857 template<typename NextTokenT = Aws::String>
858 GetMetricDataV2Request& WithNextToken(NextTokenT&& value) { SetNextToken(std::forward<NextTokenT>(value)); return *this;}
860
862
865 inline int GetMaxResults() const { return m_maxResults; }
866 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
867 inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
868 inline GetMetricDataV2Request& WithMaxResults(int value) { SetMaxResults(value); return *this;}
870 private:
871
872 Aws::String m_resourceArn;
873 bool m_resourceArnHasBeenSet = false;
874
875 Aws::Utils::DateTime m_startTime{};
876 bool m_startTimeHasBeenSet = false;
877
878 Aws::Utils::DateTime m_endTime{};
879 bool m_endTimeHasBeenSet = false;
880
881 IntervalDetails m_interval;
882 bool m_intervalHasBeenSet = false;
883
884 Aws::Vector<FilterV2> m_filters;
885 bool m_filtersHasBeenSet = false;
886
887 Aws::Vector<Aws::String> m_groupings;
888 bool m_groupingsHasBeenSet = false;
889
890 Aws::Vector<MetricV2> m_metrics;
891 bool m_metricsHasBeenSet = false;
892
893 Aws::String m_nextToken;
894 bool m_nextTokenHasBeenSet = false;
895
896 int m_maxResults{0};
897 bool m_maxResultsHasBeenSet = false;
898 };
899
900} // namespace Model
901} // namespace Connect
902} // namespace Aws
const Aws::Utils::DateTime & GetStartTime() const
const Aws::Vector< Aws::String > & GetGroupings() const
GetMetricDataV2Request & WithStartTime(StartTimeT &&value)
GetMetricDataV2Request & AddFilters(FiltersT &&value)
const Aws::Vector< MetricV2 > & GetMetrics() const
GetMetricDataV2Request & WithFilters(FiltersT &&value)
GetMetricDataV2Request & WithMaxResults(int value)
AWS_CONNECT_API Aws::String SerializePayload() const override
GetMetricDataV2Request & WithGroupings(GroupingsT &&value)
GetMetricDataV2Request & WithMetrics(MetricsT &&value)
const Aws::Vector< FilterV2 > & GetFilters() const
virtual const char * GetServiceRequestName() const override
GetMetricDataV2Request & WithNextToken(NextTokenT &&value)
GetMetricDataV2Request & AddGroupings(GroupingsT &&value)
GetMetricDataV2Request & WithInterval(IntervalT &&value)
GetMetricDataV2Request & WithEndTime(EndTimeT &&value)
AWS_CONNECT_API GetMetricDataV2Request()=default
GetMetricDataV2Request & WithResourceArn(ResourceArnT &&value)
GetMetricDataV2Request & AddMetrics(MetricsT &&value)
const Aws::Utils::DateTime & GetEndTime() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector