AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetResourceArn(const Aws::String& value) { m_resourceArnHasBeenSet = true; m_resourceArn = value; }
48 inline void SetResourceArn(Aws::String&& value) { m_resourceArnHasBeenSet = true; m_resourceArn = std::move(value); }
49 inline void SetResourceArn(const char* value) { m_resourceArnHasBeenSet = true; m_resourceArn.assign(value); }
50 inline GetMetricDataV2Request& WithResourceArn(const Aws::String& value) { SetResourceArn(value); return *this;}
51 inline GetMetricDataV2Request& WithResourceArn(Aws::String&& value) { SetResourceArn(std::move(value)); return *this;}
52 inline GetMetricDataV2Request& WithResourceArn(const char* value) { SetResourceArn(value); return *this;}
54
56
63 inline const Aws::Utils::DateTime& GetStartTime() const{ return m_startTime; }
64 inline bool StartTimeHasBeenSet() const { return m_startTimeHasBeenSet; }
65 inline void SetStartTime(const Aws::Utils::DateTime& value) { m_startTimeHasBeenSet = true; m_startTime = value; }
66 inline void SetStartTime(Aws::Utils::DateTime&& value) { m_startTimeHasBeenSet = true; m_startTime = std::move(value); }
67 inline GetMetricDataV2Request& WithStartTime(const Aws::Utils::DateTime& value) { SetStartTime(value); return *this;}
68 inline GetMetricDataV2Request& WithStartTime(Aws::Utils::DateTime&& value) { SetStartTime(std::move(value)); return *this;}
70
72
78 inline const Aws::Utils::DateTime& GetEndTime() const{ return m_endTime; }
79 inline bool EndTimeHasBeenSet() const { return m_endTimeHasBeenSet; }
80 inline void SetEndTime(const Aws::Utils::DateTime& value) { m_endTimeHasBeenSet = true; m_endTime = value; }
81 inline void SetEndTime(Aws::Utils::DateTime&& value) { m_endTimeHasBeenSet = true; m_endTime = std::move(value); }
82 inline GetMetricDataV2Request& WithEndTime(const Aws::Utils::DateTime& value) { SetEndTime(value); return *this;}
83 inline GetMetricDataV2Request& WithEndTime(Aws::Utils::DateTime&& value) { SetEndTime(std::move(value)); return *this;}
85
87
115 inline const IntervalDetails& GetInterval() const{ return m_interval; }
116 inline bool IntervalHasBeenSet() const { return m_intervalHasBeenSet; }
117 inline void SetInterval(const IntervalDetails& value) { m_intervalHasBeenSet = true; m_interval = value; }
118 inline void SetInterval(IntervalDetails&& value) { m_intervalHasBeenSet = true; m_interval = std::move(value); }
119 inline GetMetricDataV2Request& WithInterval(const IntervalDetails& value) { SetInterval(value); return *this;}
120 inline GetMetricDataV2Request& WithInterval(IntervalDetails&& value) { SetInterval(std::move(value)); return *this;}
122
124
176 inline const Aws::Vector<FilterV2>& GetFilters() const{ return m_filters; }
177 inline bool FiltersHasBeenSet() const { return m_filtersHasBeenSet; }
178 inline void SetFilters(const Aws::Vector<FilterV2>& value) { m_filtersHasBeenSet = true; m_filters = value; }
179 inline void SetFilters(Aws::Vector<FilterV2>&& value) { m_filtersHasBeenSet = true; m_filters = std::move(value); }
180 inline GetMetricDataV2Request& WithFilters(const Aws::Vector<FilterV2>& value) { SetFilters(value); return *this;}
181 inline GetMetricDataV2Request& WithFilters(Aws::Vector<FilterV2>&& value) { SetFilters(std::move(value)); return *this;}
182 inline GetMetricDataV2Request& AddFilters(const FilterV2& value) { m_filtersHasBeenSet = true; m_filters.push_back(value); return *this; }
183 inline GetMetricDataV2Request& AddFilters(FilterV2&& value) { m_filtersHasBeenSet = true; m_filters.push_back(std::move(value)); return *this; }
185
187
207 inline const Aws::Vector<Aws::String>& GetGroupings() const{ return m_groupings; }
208 inline bool GroupingsHasBeenSet() const { return m_groupingsHasBeenSet; }
209 inline void SetGroupings(const Aws::Vector<Aws::String>& value) { m_groupingsHasBeenSet = true; m_groupings = value; }
210 inline void SetGroupings(Aws::Vector<Aws::String>&& value) { m_groupingsHasBeenSet = true; m_groupings = std::move(value); }
211 inline GetMetricDataV2Request& WithGroupings(const Aws::Vector<Aws::String>& value) { SetGroupings(value); return *this;}
212 inline GetMetricDataV2Request& WithGroupings(Aws::Vector<Aws::String>&& value) { SetGroupings(std::move(value)); return *this;}
213 inline GetMetricDataV2Request& AddGroupings(const Aws::String& value) { m_groupingsHasBeenSet = true; m_groupings.push_back(value); return *this; }
214 inline GetMetricDataV2Request& AddGroupings(Aws::String&& value) { m_groupingsHasBeenSet = true; m_groupings.push_back(std::move(value)); return *this; }
215 inline GetMetricDataV2Request& AddGroupings(const char* value) { m_groupingsHasBeenSet = true; m_groupings.push_back(value); return *this; }
217
219
734 inline const Aws::Vector<MetricV2>& GetMetrics() const{ return m_metrics; }
735 inline bool MetricsHasBeenSet() const { return m_metricsHasBeenSet; }
736 inline void SetMetrics(const Aws::Vector<MetricV2>& value) { m_metricsHasBeenSet = true; m_metrics = value; }
737 inline void SetMetrics(Aws::Vector<MetricV2>&& value) { m_metricsHasBeenSet = true; m_metrics = std::move(value); }
738 inline GetMetricDataV2Request& WithMetrics(const Aws::Vector<MetricV2>& value) { SetMetrics(value); return *this;}
739 inline GetMetricDataV2Request& WithMetrics(Aws::Vector<MetricV2>&& value) { SetMetrics(std::move(value)); return *this;}
740 inline GetMetricDataV2Request& AddMetrics(const MetricV2& value) { m_metricsHasBeenSet = true; m_metrics.push_back(value); return *this; }
741 inline GetMetricDataV2Request& AddMetrics(MetricV2&& value) { m_metricsHasBeenSet = true; m_metrics.push_back(std::move(value)); return *this; }
743
745
749 inline const Aws::String& GetNextToken() const{ return m_nextToken; }
750 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
751 inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
752 inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
753 inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
754 inline GetMetricDataV2Request& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
755 inline GetMetricDataV2Request& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
756 inline GetMetricDataV2Request& WithNextToken(const char* value) { SetNextToken(value); return *this;}
758
760
763 inline int GetMaxResults() const{ return m_maxResults; }
764 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
765 inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
766 inline GetMetricDataV2Request& WithMaxResults(int value) { SetMaxResults(value); return *this;}
768 private:
769
770 Aws::String m_resourceArn;
771 bool m_resourceArnHasBeenSet = false;
772
773 Aws::Utils::DateTime m_startTime;
774 bool m_startTimeHasBeenSet = false;
775
776 Aws::Utils::DateTime m_endTime;
777 bool m_endTimeHasBeenSet = false;
778
779 IntervalDetails m_interval;
780 bool m_intervalHasBeenSet = false;
781
782 Aws::Vector<FilterV2> m_filters;
783 bool m_filtersHasBeenSet = false;
784
785 Aws::Vector<Aws::String> m_groupings;
786 bool m_groupingsHasBeenSet = false;
787
788 Aws::Vector<MetricV2> m_metrics;
789 bool m_metricsHasBeenSet = false;
790
791 Aws::String m_nextToken;
792 bool m_nextTokenHasBeenSet = false;
793
794 int m_maxResults;
795 bool m_maxResultsHasBeenSet = false;
796 };
797
798} // namespace Model
799} // namespace Connect
800} // namespace Aws
const Aws::Utils::DateTime & GetStartTime() const
const Aws::Vector< Aws::String > & GetGroupings() const
GetMetricDataV2Request & AddMetrics(const MetricV2 &value)
void SetEndTime(const Aws::Utils::DateTime &value)
GetMetricDataV2Request & WithGroupings(const Aws::Vector< Aws::String > &value)
GetMetricDataV2Request & AddGroupings(const char *value)
GetMetricDataV2Request & AddMetrics(MetricV2 &&value)
GetMetricDataV2Request & AddGroupings(Aws::String &&value)
const Aws::Vector< MetricV2 > & GetMetrics() const
GetMetricDataV2Request & WithInterval(IntervalDetails &&value)
void SetInterval(const IntervalDetails &value)
GetMetricDataV2Request & WithResourceArn(Aws::String &&value)
GetMetricDataV2Request & WithInterval(const IntervalDetails &value)
GetMetricDataV2Request & WithStartTime(Aws::Utils::DateTime &&value)
GetMetricDataV2Request & WithMaxResults(int value)
GetMetricDataV2Request & WithGroupings(Aws::Vector< Aws::String > &&value)
AWS_CONNECT_API Aws::String SerializePayload() const override
void SetStartTime(Aws::Utils::DateTime &&value)
void SetGroupings(const Aws::Vector< Aws::String > &value)
GetMetricDataV2Request & AddGroupings(const Aws::String &value)
GetMetricDataV2Request & WithFilters(Aws::Vector< FilterV2 > &&value)
GetMetricDataV2Request & WithNextToken(Aws::String &&value)
void SetGroupings(Aws::Vector< Aws::String > &&value)
void SetFilters(Aws::Vector< FilterV2 > &&value)
GetMetricDataV2Request & AddFilters(const FilterV2 &value)
void SetStartTime(const Aws::Utils::DateTime &value)
GetMetricDataV2Request & WithMetrics(const Aws::Vector< MetricV2 > &value)
const Aws::Vector< FilterV2 > & GetFilters() const
virtual const char * GetServiceRequestName() const override
GetMetricDataV2Request & WithNextToken(const Aws::String &value)
GetMetricDataV2Request & WithMetrics(Aws::Vector< MetricV2 > &&value)
void SetMetrics(const Aws::Vector< MetricV2 > &value)
GetMetricDataV2Request & WithResourceArn(const char *value)
GetMetricDataV2Request & WithResourceArn(const Aws::String &value)
GetMetricDataV2Request & AddFilters(FilterV2 &&value)
GetMetricDataV2Request & WithStartTime(const Aws::Utils::DateTime &value)
void SetEndTime(Aws::Utils::DateTime &&value)
void SetMetrics(Aws::Vector< MetricV2 > &&value)
GetMetricDataV2Request & WithEndTime(Aws::Utils::DateTime &&value)
GetMetricDataV2Request & WithNextToken(const char *value)
void SetFilters(const Aws::Vector< FilterV2 > &value)
GetMetricDataV2Request & WithFilters(const Aws::Vector< FilterV2 > &value)
GetMetricDataV2Request & WithEndTime(const Aws::Utils::DateTime &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