AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
GetMetricStatisticsRequest.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/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/core/utils/DateTime.h>
12#include <aws/monitoring/model/StandardUnit.h>
13#include <aws/monitoring/model/Dimension.h>
14#include <aws/monitoring/model/Statistic.h>
15#include <utility>
16
17namespace Aws
18{
19namespace CloudWatch
20{
21namespace Model
22{
23
27 {
28 public:
29 AWS_CLOUDWATCH_API GetMetricStatisticsRequest();
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 "GetMetricStatistics"; }
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
48 inline const Aws::String& GetNamespace() const{ return m_namespace; }
49 inline bool NamespaceHasBeenSet() const { return m_namespaceHasBeenSet; }
50 inline void SetNamespace(const Aws::String& value) { m_namespaceHasBeenSet = true; m_namespace = value; }
51 inline void SetNamespace(Aws::String&& value) { m_namespaceHasBeenSet = true; m_namespace = std::move(value); }
52 inline void SetNamespace(const char* value) { m_namespaceHasBeenSet = true; m_namespace.assign(value); }
53 inline GetMetricStatisticsRequest& WithNamespace(const Aws::String& value) { SetNamespace(value); return *this;}
54 inline GetMetricStatisticsRequest& WithNamespace(Aws::String&& value) { SetNamespace(std::move(value)); return *this;}
55 inline GetMetricStatisticsRequest& WithNamespace(const char* value) { SetNamespace(value); return *this;}
57
59
62 inline const Aws::String& GetMetricName() const{ return m_metricName; }
63 inline bool MetricNameHasBeenSet() const { return m_metricNameHasBeenSet; }
64 inline void SetMetricName(const Aws::String& value) { m_metricNameHasBeenSet = true; m_metricName = value; }
65 inline void SetMetricName(Aws::String&& value) { m_metricNameHasBeenSet = true; m_metricName = std::move(value); }
66 inline void SetMetricName(const char* value) { m_metricNameHasBeenSet = true; m_metricName.assign(value); }
67 inline GetMetricStatisticsRequest& WithMetricName(const Aws::String& value) { SetMetricName(value); return *this;}
68 inline GetMetricStatisticsRequest& WithMetricName(Aws::String&& value) { SetMetricName(std::move(value)); return *this;}
69 inline GetMetricStatisticsRequest& WithMetricName(const char* value) { SetMetricName(value); return *this;}
71
73
85 inline const Aws::Vector<Dimension>& GetDimensions() const{ return m_dimensions; }
86 inline bool DimensionsHasBeenSet() const { return m_dimensionsHasBeenSet; }
87 inline void SetDimensions(const Aws::Vector<Dimension>& value) { m_dimensionsHasBeenSet = true; m_dimensions = value; }
88 inline void SetDimensions(Aws::Vector<Dimension>&& value) { m_dimensionsHasBeenSet = true; m_dimensions = std::move(value); }
90 inline GetMetricStatisticsRequest& WithDimensions(Aws::Vector<Dimension>&& value) { SetDimensions(std::move(value)); return *this;}
91 inline GetMetricStatisticsRequest& AddDimensions(const Dimension& value) { m_dimensionsHasBeenSet = true; m_dimensions.push_back(value); return *this; }
92 inline GetMetricStatisticsRequest& AddDimensions(Dimension&& value) { m_dimensionsHasBeenSet = true; m_dimensions.push_back(std::move(value)); return *this; }
94
96
117 inline const Aws::Utils::DateTime& GetStartTime() const{ return m_startTime; }
118 inline bool StartTimeHasBeenSet() const { return m_startTimeHasBeenSet; }
119 inline void SetStartTime(const Aws::Utils::DateTime& value) { m_startTimeHasBeenSet = true; m_startTime = value; }
120 inline void SetStartTime(Aws::Utils::DateTime&& value) { m_startTimeHasBeenSet = true; m_startTime = std::move(value); }
121 inline GetMetricStatisticsRequest& WithStartTime(const Aws::Utils::DateTime& value) { SetStartTime(value); return *this;}
122 inline GetMetricStatisticsRequest& WithStartTime(Aws::Utils::DateTime&& value) { SetStartTime(std::move(value)); return *this;}
124
126
132 inline const Aws::Utils::DateTime& GetEndTime() const{ return m_endTime; }
133 inline bool EndTimeHasBeenSet() const { return m_endTimeHasBeenSet; }
134 inline void SetEndTime(const Aws::Utils::DateTime& value) { m_endTimeHasBeenSet = true; m_endTime = value; }
135 inline void SetEndTime(Aws::Utils::DateTime&& value) { m_endTimeHasBeenSet = true; m_endTime = std::move(value); }
136 inline GetMetricStatisticsRequest& WithEndTime(const Aws::Utils::DateTime& value) { SetEndTime(value); return *this;}
137 inline GetMetricStatisticsRequest& WithEndTime(Aws::Utils::DateTime&& value) { SetEndTime(std::move(value)); return *this;}
139
141
156 inline int GetPeriod() const{ return m_period; }
157 inline bool PeriodHasBeenSet() const { return m_periodHasBeenSet; }
158 inline void SetPeriod(int value) { m_periodHasBeenSet = true; m_period = value; }
159 inline GetMetricStatisticsRequest& WithPeriod(int value) { SetPeriod(value); return *this;}
161
163
169 inline const Aws::Vector<Statistic>& GetStatistics() const{ return m_statistics; }
170 inline bool StatisticsHasBeenSet() const { return m_statisticsHasBeenSet; }
171 inline void SetStatistics(const Aws::Vector<Statistic>& value) { m_statisticsHasBeenSet = true; m_statistics = value; }
172 inline void SetStatistics(Aws::Vector<Statistic>&& value) { m_statisticsHasBeenSet = true; m_statistics = std::move(value); }
174 inline GetMetricStatisticsRequest& WithStatistics(Aws::Vector<Statistic>&& value) { SetStatistics(std::move(value)); return *this;}
175 inline GetMetricStatisticsRequest& AddStatistics(const Statistic& value) { m_statisticsHasBeenSet = true; m_statistics.push_back(value); return *this; }
176 inline GetMetricStatisticsRequest& AddStatistics(Statistic&& value) { m_statisticsHasBeenSet = true; m_statistics.push_back(std::move(value)); return *this; }
178
180
187 inline const Aws::Vector<Aws::String>& GetExtendedStatistics() const{ return m_extendedStatistics; }
188 inline bool ExtendedStatisticsHasBeenSet() const { return m_extendedStatisticsHasBeenSet; }
189 inline void SetExtendedStatistics(const Aws::Vector<Aws::String>& value) { m_extendedStatisticsHasBeenSet = true; m_extendedStatistics = value; }
190 inline void SetExtendedStatistics(Aws::Vector<Aws::String>&& value) { m_extendedStatisticsHasBeenSet = true; m_extendedStatistics = std::move(value); }
193 inline GetMetricStatisticsRequest& AddExtendedStatistics(const Aws::String& value) { m_extendedStatisticsHasBeenSet = true; m_extendedStatistics.push_back(value); return *this; }
194 inline GetMetricStatisticsRequest& AddExtendedStatistics(Aws::String&& value) { m_extendedStatisticsHasBeenSet = true; m_extendedStatistics.push_back(std::move(value)); return *this; }
195 inline GetMetricStatisticsRequest& AddExtendedStatistics(const char* value) { m_extendedStatisticsHasBeenSet = true; m_extendedStatistics.push_back(value); return *this; }
197
199
207 inline const StandardUnit& GetUnit() const{ return m_unit; }
208 inline bool UnitHasBeenSet() const { return m_unitHasBeenSet; }
209 inline void SetUnit(const StandardUnit& value) { m_unitHasBeenSet = true; m_unit = value; }
210 inline void SetUnit(StandardUnit&& value) { m_unitHasBeenSet = true; m_unit = std::move(value); }
211 inline GetMetricStatisticsRequest& WithUnit(const StandardUnit& value) { SetUnit(value); return *this;}
212 inline GetMetricStatisticsRequest& WithUnit(StandardUnit&& value) { SetUnit(std::move(value)); return *this;}
214 private:
215
216 Aws::String m_namespace;
217 bool m_namespaceHasBeenSet = false;
218
219 Aws::String m_metricName;
220 bool m_metricNameHasBeenSet = false;
221
222 Aws::Vector<Dimension> m_dimensions;
223 bool m_dimensionsHasBeenSet = false;
224
225 Aws::Utils::DateTime m_startTime;
226 bool m_startTimeHasBeenSet = false;
227
228 Aws::Utils::DateTime m_endTime;
229 bool m_endTimeHasBeenSet = false;
230
231 int m_period;
232 bool m_periodHasBeenSet = false;
233
234 Aws::Vector<Statistic> m_statistics;
235 bool m_statisticsHasBeenSet = false;
236
237 Aws::Vector<Aws::String> m_extendedStatistics;
238 bool m_extendedStatisticsHasBeenSet = false;
239
240 StandardUnit m_unit;
241 bool m_unitHasBeenSet = false;
242 };
243
244} // namespace Model
245} // namespace CloudWatch
246} // namespace Aws
GetMetricStatisticsRequest & WithStartTime(Aws::Utils::DateTime &&value)
GetMetricStatisticsRequest & WithNamespace(const Aws::String &value)
GetMetricStatisticsRequest & WithExtendedStatistics(const Aws::Vector< Aws::String > &value)
void SetDimensions(const Aws::Vector< Dimension > &value)
GetMetricStatisticsRequest & WithDimensions(const Aws::Vector< Dimension > &value)
const Aws::Vector< Statistic > & GetStatistics() const
void SetExtendedStatistics(const Aws::Vector< Aws::String > &value)
GetMetricStatisticsRequest & WithUnit(const StandardUnit &value)
GetMetricStatisticsRequest & WithStatistics(const Aws::Vector< Statistic > &value)
GetMetricStatisticsRequest & WithMetricName(const char *value)
GetMetricStatisticsRequest & AddExtendedStatistics(Aws::String &&value)
GetMetricStatisticsRequest & AddStatistics(Statistic &&value)
GetMetricStatisticsRequest & AddExtendedStatistics(const Aws::String &value)
const Aws::Vector< Dimension > & GetDimensions() const
GetMetricStatisticsRequest & WithEndTime(Aws::Utils::DateTime &&value)
GetMetricStatisticsRequest & AddExtendedStatistics(const char *value)
GetMetricStatisticsRequest & AddDimensions(const Dimension &value)
GetMetricStatisticsRequest & WithNamespace(const char *value)
void SetExtendedStatistics(Aws::Vector< Aws::String > &&value)
void SetStatistics(const Aws::Vector< Statistic > &value)
GetMetricStatisticsRequest & WithStatistics(Aws::Vector< Statistic > &&value)
GetMetricStatisticsRequest & WithNamespace(Aws::String &&value)
const Aws::Vector< Aws::String > & GetExtendedStatistics() const
GetMetricStatisticsRequest & AddStatistics(const Statistic &value)
GetMetricStatisticsRequest & WithUnit(StandardUnit &&value)
GetMetricStatisticsRequest & WithExtendedStatistics(Aws::Vector< Aws::String > &&value)
GetMetricStatisticsRequest & WithDimensions(Aws::Vector< Dimension > &&value)
AWS_CLOUDWATCH_API Aws::String SerializePayload() const override
GetMetricStatisticsRequest & WithStartTime(const Aws::Utils::DateTime &value)
GetMetricStatisticsRequest & WithMetricName(Aws::String &&value)
GetMetricStatisticsRequest & WithMetricName(const Aws::String &value)
GetMetricStatisticsRequest & WithEndTime(const Aws::Utils::DateTime &value)
AWS_CLOUDWATCH_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
GetMetricStatisticsRequest & AddDimensions(Dimension &&value)
virtual const char * GetServiceRequestName() const override
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector