7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/monitoring/CloudWatchRequest.h>
11#include <aws/monitoring/CloudWatch_EXPORTS.h>
12#include <aws/monitoring/model/LabelOptions.h>
13#include <aws/monitoring/model/MetricDataQuery.h>
14#include <aws/monitoring/model/ScanBy.h>
47 template <
typename MetricDataQueriesT = Aws::Vector<MetricDataQuery>>
49 m_metricDataQueriesHasBeenSet =
true;
50 m_metricDataQueries = std::forward<MetricDataQueriesT>(value);
52 template <
typename MetricDataQueriesT = Aws::Vector<MetricDataQuery>>
57 template <
typename MetricDataQueriesT = MetricDataQuery>
59 m_metricDataQueriesHasBeenSet =
true;
60 m_metricDataQueries.emplace_back(std::forward<MetricDataQueriesT>(value));
92 template <
typename StartTimeT = Aws::Utils::DateTime>
94 m_startTimeHasBeenSet =
true;
95 m_startTime = std::forward<StartTimeT>(value);
97 template <
typename StartTimeT = Aws::Utils::DateTime>
117 template <
typename EndTimeT = Aws::Utils::DateTime>
119 m_endTimeHasBeenSet =
true;
120 m_endTime = std::forward<EndTimeT>(value);
122 template <
typename EndTimeT = Aws::Utils::DateTime>
136 template <
typename NextTokenT = Aws::String>
138 m_nextTokenHasBeenSet =
true;
139 m_nextToken = std::forward<NextTokenT>(value);
141 template <
typename NextTokenT = Aws::String>
160 m_scanByHasBeenSet =
true;
177 m_maxDatapointsHasBeenSet =
true;
178 m_maxDatapoints = value;
194 template <
typename LabelOptionsT = LabelOptions>
196 m_labelOptionsHasBeenSet =
true;
197 m_labelOptions = std::forward<LabelOptionsT>(value);
199 template <
typename LabelOptionsT = LabelOptions>
216 int m_maxDatapoints{0};
218 LabelOptions m_labelOptions;
219 bool m_metricDataQueriesHasBeenSet =
false;
220 bool m_startTimeHasBeenSet =
false;
221 bool m_endTimeHasBeenSet =
false;
222 bool m_nextTokenHasBeenSet =
false;
223 bool m_scanByHasBeenSet =
false;
224 bool m_maxDatapointsHasBeenSet =
false;
225 bool m_labelOptionsHasBeenSet =
false;
GetMetricDataRequest & WithScanBy(ScanBy value)
bool MetricDataQueriesHasBeenSet() const
GetMetricDataRequest & WithMaxDatapoints(int value)
GetMetricDataRequest & AddMetricDataQueries(MetricDataQueriesT &&value)
const Aws::String & GetNextToken() const
bool NextTokenHasBeenSet() const
GetMetricDataRequest & WithStartTime(StartTimeT &&value)
bool ScanByHasBeenSet() const
void SetMetricDataQueries(MetricDataQueriesT &&value)
const Aws::Utils::DateTime & GetStartTime() const
virtual const char * GetServiceRequestName() const override
const LabelOptions & GetLabelOptions() const
bool MaxDatapointsHasBeenSet() const
AWS_CLOUDWATCH_API GetMetricDataRequest()=default
GetMetricDataRequest & WithLabelOptions(LabelOptionsT &&value)
void SetMaxDatapoints(int value)
void SetNextToken(NextTokenT &&value)
GetMetricDataRequest & WithMetricDataQueries(MetricDataQueriesT &&value)
void SetStartTime(StartTimeT &&value)
GetMetricDataRequest & WithNextToken(NextTokenT &&value)
void SetLabelOptions(LabelOptionsT &&value)
const Aws::Utils::DateTime & GetEndTime() const
void SetScanBy(ScanBy value)
AWS_CLOUDWATCH_API Aws::String SerializePayload() const override
void SetEndTime(EndTimeT &&value)
GetMetricDataRequest & WithEndTime(EndTimeT &&value)
bool LabelOptionsHasBeenSet() const
int GetMaxDatapoints() const
const Aws::Vector< MetricDataQuery > & GetMetricDataQueries() const
AWS_CLOUDWATCH_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
bool StartTimeHasBeenSet() const
bool EndTimeHasBeenSet() const
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector