AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
GetMetricDataRequest.h
1
6#pragma once
7#include <aws/monitoring/CloudWatch_EXPORTS.h>
8#include <aws/monitoring/CloudWatchRequest.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/core/utils/DateTime.h>
11#include <aws/core/utils/memory/stl/AWSString.h>
12#include <aws/monitoring/model/ScanBy.h>
13#include <aws/monitoring/model/LabelOptions.h>
14#include <aws/monitoring/model/MetricDataQuery.h>
15#include <utility>
16
17namespace Aws
18{
19namespace CloudWatch
20{
21namespace Model
22{
23
27 {
28 public:
29 AWS_CLOUDWATCH_API GetMetricDataRequest();
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 "GetMetricData"; }
36
37 AWS_CLOUDWATCH_API Aws::String SerializePayload() const override;
38
39 protected:
40 AWS_CLOUDWATCH_API void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
41
42 public:
43
45
51 inline const Aws::Vector<MetricDataQuery>& GetMetricDataQueries() const{ return m_metricDataQueries; }
52 inline bool MetricDataQueriesHasBeenSet() const { return m_metricDataQueriesHasBeenSet; }
53 inline void SetMetricDataQueries(const Aws::Vector<MetricDataQuery>& value) { m_metricDataQueriesHasBeenSet = true; m_metricDataQueries = value; }
54 inline void SetMetricDataQueries(Aws::Vector<MetricDataQuery>&& value) { m_metricDataQueriesHasBeenSet = true; m_metricDataQueries = std::move(value); }
57 inline GetMetricDataRequest& AddMetricDataQueries(const MetricDataQuery& value) { m_metricDataQueriesHasBeenSet = true; m_metricDataQueries.push_back(value); return *this; }
58 inline GetMetricDataRequest& AddMetricDataQueries(MetricDataQuery&& value) { m_metricDataQueriesHasBeenSet = true; m_metricDataQueries.push_back(std::move(value)); return *this; }
60
62
86 inline const Aws::Utils::DateTime& GetStartTime() const{ return m_startTime; }
87 inline bool StartTimeHasBeenSet() const { return m_startTimeHasBeenSet; }
88 inline void SetStartTime(const Aws::Utils::DateTime& value) { m_startTimeHasBeenSet = true; m_startTime = value; }
89 inline void SetStartTime(Aws::Utils::DateTime&& value) { m_startTimeHasBeenSet = true; m_startTime = std::move(value); }
90 inline GetMetricDataRequest& WithStartTime(const Aws::Utils::DateTime& value) { SetStartTime(value); return *this;}
91 inline GetMetricDataRequest& WithStartTime(Aws::Utils::DateTime&& value) { SetStartTime(std::move(value)); return *this;}
93
95
105 inline const Aws::Utils::DateTime& GetEndTime() const{ return m_endTime; }
106 inline bool EndTimeHasBeenSet() const { return m_endTimeHasBeenSet; }
107 inline void SetEndTime(const Aws::Utils::DateTime& value) { m_endTimeHasBeenSet = true; m_endTime = value; }
108 inline void SetEndTime(Aws::Utils::DateTime&& value) { m_endTimeHasBeenSet = true; m_endTime = std::move(value); }
109 inline GetMetricDataRequest& WithEndTime(const Aws::Utils::DateTime& value) { SetEndTime(value); return *this;}
110 inline GetMetricDataRequest& WithEndTime(Aws::Utils::DateTime&& value) { SetEndTime(std::move(value)); return *this;}
112
114
118 inline const Aws::String& GetNextToken() const{ return m_nextToken; }
119 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
120 inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
121 inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
122 inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
123 inline GetMetricDataRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
124 inline GetMetricDataRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
125 inline GetMetricDataRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
127
129
137 inline const ScanBy& GetScanBy() const{ return m_scanBy; }
138 inline bool ScanByHasBeenSet() const { return m_scanByHasBeenSet; }
139 inline void SetScanBy(const ScanBy& value) { m_scanByHasBeenSet = true; m_scanBy = value; }
140 inline void SetScanBy(ScanBy&& value) { m_scanByHasBeenSet = true; m_scanBy = std::move(value); }
141 inline GetMetricDataRequest& WithScanBy(const ScanBy& value) { SetScanBy(value); return *this;}
142 inline GetMetricDataRequest& WithScanBy(ScanBy&& value) { SetScanBy(std::move(value)); return *this;}
144
146
150 inline int GetMaxDatapoints() const{ return m_maxDatapoints; }
151 inline bool MaxDatapointsHasBeenSet() const { return m_maxDatapointsHasBeenSet; }
152 inline void SetMaxDatapoints(int value) { m_maxDatapointsHasBeenSet = true; m_maxDatapoints = value; }
153 inline GetMetricDataRequest& WithMaxDatapoints(int value) { SetMaxDatapoints(value); return *this;}
155
157
162 inline const LabelOptions& GetLabelOptions() const{ return m_labelOptions; }
163 inline bool LabelOptionsHasBeenSet() const { return m_labelOptionsHasBeenSet; }
164 inline void SetLabelOptions(const LabelOptions& value) { m_labelOptionsHasBeenSet = true; m_labelOptions = value; }
165 inline void SetLabelOptions(LabelOptions&& value) { m_labelOptionsHasBeenSet = true; m_labelOptions = std::move(value); }
166 inline GetMetricDataRequest& WithLabelOptions(const LabelOptions& value) { SetLabelOptions(value); return *this;}
167 inline GetMetricDataRequest& WithLabelOptions(LabelOptions&& value) { SetLabelOptions(std::move(value)); return *this;}
169 private:
170
171 Aws::Vector<MetricDataQuery> m_metricDataQueries;
172 bool m_metricDataQueriesHasBeenSet = false;
173
174 Aws::Utils::DateTime m_startTime;
175 bool m_startTimeHasBeenSet = false;
176
177 Aws::Utils::DateTime m_endTime;
178 bool m_endTimeHasBeenSet = false;
179
180 Aws::String m_nextToken;
181 bool m_nextTokenHasBeenSet = false;
182
183 ScanBy m_scanBy;
184 bool m_scanByHasBeenSet = false;
185
186 int m_maxDatapoints;
187 bool m_maxDatapointsHasBeenSet = false;
188
189 LabelOptions m_labelOptions;
190 bool m_labelOptionsHasBeenSet = false;
191 };
192
193} // namespace Model
194} // namespace CloudWatch
195} // namespace Aws
GetMetricDataRequest & WithNextToken(const char *value)
GetMetricDataRequest & WithMaxDatapoints(int value)
GetMetricDataRequest & WithLabelOptions(const LabelOptions &value)
GetMetricDataRequest & WithMetricDataQueries(const Aws::Vector< MetricDataQuery > &value)
GetMetricDataRequest & WithMetricDataQueries(Aws::Vector< MetricDataQuery > &&value)
GetMetricDataRequest & WithStartTime(const Aws::Utils::DateTime &value)
const Aws::Utils::DateTime & GetStartTime() const
virtual const char * GetServiceRequestName() const override
void SetEndTime(Aws::Utils::DateTime &&value)
GetMetricDataRequest & WithNextToken(const Aws::String &value)
GetMetricDataRequest & WithEndTime(const Aws::Utils::DateTime &value)
void SetLabelOptions(const LabelOptions &value)
void SetStartTime(const Aws::Utils::DateTime &value)
GetMetricDataRequest & WithScanBy(const ScanBy &value)
GetMetricDataRequest & AddMetricDataQueries(MetricDataQuery &&value)
GetMetricDataRequest & AddMetricDataQueries(const MetricDataQuery &value)
GetMetricDataRequest & WithLabelOptions(LabelOptions &&value)
GetMetricDataRequest & WithEndTime(Aws::Utils::DateTime &&value)
const Aws::Utils::DateTime & GetEndTime() const
void SetStartTime(Aws::Utils::DateTime &&value)
GetMetricDataRequest & WithStartTime(Aws::Utils::DateTime &&value)
AWS_CLOUDWATCH_API Aws::String SerializePayload() const override
void SetMetricDataQueries(Aws::Vector< MetricDataQuery > &&value)
void SetEndTime(const Aws::Utils::DateTime &value)
const Aws::Vector< MetricDataQuery > & GetMetricDataQueries() const
GetMetricDataRequest & WithNextToken(Aws::String &&value)
GetMetricDataRequest & WithScanBy(ScanBy &&value)
void SetMetricDataQueries(const Aws::Vector< MetricDataQuery > &value)
AWS_CLOUDWATCH_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector