AWS SDK for C++  1.9.104
AWS SDK for C++
GetMetricDataRequest.h
Go to the documentation of this file.
1 
6 #pragma once
15 #include <utility>
16 
17 namespace Aws
18 {
19 namespace CloudWatch
20 {
21 namespace Model
22 {
23 
27  {
28  public:
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::String SerializePayload() const override;
38 
39  protected:
40  void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
41 
42  public:
43 
50  inline const Aws::Vector<MetricDataQuery>& GetMetricDataQueries() const{ return m_metricDataQueries; }
51 
58  inline bool MetricDataQueriesHasBeenSet() const { return m_metricDataQueriesHasBeenSet; }
59 
66  inline void SetMetricDataQueries(const Aws::Vector<MetricDataQuery>& value) { m_metricDataQueriesHasBeenSet = true; m_metricDataQueries = value; }
67 
74  inline void SetMetricDataQueries(Aws::Vector<MetricDataQuery>&& value) { m_metricDataQueriesHasBeenSet = true; m_metricDataQueries = std::move(value); }
75 
82  inline GetMetricDataRequest& WithMetricDataQueries(const Aws::Vector<MetricDataQuery>& value) { SetMetricDataQueries(value); return *this;}
83 
90  inline GetMetricDataRequest& WithMetricDataQueries(Aws::Vector<MetricDataQuery>&& value) { SetMetricDataQueries(std::move(value)); return *this;}
91 
98  inline GetMetricDataRequest& AddMetricDataQueries(const MetricDataQuery& value) { m_metricDataQueriesHasBeenSet = true; m_metricDataQueries.push_back(value); return *this; }
99 
106  inline GetMetricDataRequest& AddMetricDataQueries(MetricDataQuery&& value) { m_metricDataQueriesHasBeenSet = true; m_metricDataQueries.push_back(std::move(value)); return *this; }
107 
108 
133  inline const Aws::Utils::DateTime& GetStartTime() const{ return m_startTime; }
134 
159  inline bool StartTimeHasBeenSet() const { return m_startTimeHasBeenSet; }
160 
185  inline void SetStartTime(const Aws::Utils::DateTime& value) { m_startTimeHasBeenSet = true; m_startTime = value; }
186 
211  inline void SetStartTime(Aws::Utils::DateTime&& value) { m_startTimeHasBeenSet = true; m_startTime = std::move(value); }
212 
237  inline GetMetricDataRequest& WithStartTime(const Aws::Utils::DateTime& value) { SetStartTime(value); return *this;}
238 
263  inline GetMetricDataRequest& WithStartTime(Aws::Utils::DateTime&& value) { SetStartTime(std::move(value)); return *this;}
264 
265 
276  inline const Aws::Utils::DateTime& GetEndTime() const{ return m_endTime; }
277 
288  inline bool EndTimeHasBeenSet() const { return m_endTimeHasBeenSet; }
289 
300  inline void SetEndTime(const Aws::Utils::DateTime& value) { m_endTimeHasBeenSet = true; m_endTime = value; }
301 
312  inline void SetEndTime(Aws::Utils::DateTime&& value) { m_endTimeHasBeenSet = true; m_endTime = std::move(value); }
313 
324  inline GetMetricDataRequest& WithEndTime(const Aws::Utils::DateTime& value) { SetEndTime(value); return *this;}
325 
336  inline GetMetricDataRequest& WithEndTime(Aws::Utils::DateTime&& value) { SetEndTime(std::move(value)); return *this;}
337 
338 
343  inline const Aws::String& GetNextToken() const{ return m_nextToken; }
344 
349  inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
350 
355  inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
356 
361  inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
362 
367  inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
368 
373  inline GetMetricDataRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
374 
379  inline GetMetricDataRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
380 
385  inline GetMetricDataRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
386 
387 
395  inline const ScanBy& GetScanBy() const{ return m_scanBy; }
396 
404  inline bool ScanByHasBeenSet() const { return m_scanByHasBeenSet; }
405 
413  inline void SetScanBy(const ScanBy& value) { m_scanByHasBeenSet = true; m_scanBy = value; }
414 
422  inline void SetScanBy(ScanBy&& value) { m_scanByHasBeenSet = true; m_scanBy = std::move(value); }
423 
431  inline GetMetricDataRequest& WithScanBy(const ScanBy& value) { SetScanBy(value); return *this;}
432 
440  inline GetMetricDataRequest& WithScanBy(ScanBy&& value) { SetScanBy(std::move(value)); return *this;}
441 
442 
447  inline int GetMaxDatapoints() const{ return m_maxDatapoints; }
448 
453  inline bool MaxDatapointsHasBeenSet() const { return m_maxDatapointsHasBeenSet; }
454 
459  inline void SetMaxDatapoints(int value) { m_maxDatapointsHasBeenSet = true; m_maxDatapoints = value; }
460 
465  inline GetMetricDataRequest& WithMaxDatapoints(int value) { SetMaxDatapoints(value); return *this;}
466 
467 
473  inline const LabelOptions& GetLabelOptions() const{ return m_labelOptions; }
474 
480  inline bool LabelOptionsHasBeenSet() const { return m_labelOptionsHasBeenSet; }
481 
487  inline void SetLabelOptions(const LabelOptions& value) { m_labelOptionsHasBeenSet = true; m_labelOptions = value; }
488 
494  inline void SetLabelOptions(LabelOptions&& value) { m_labelOptionsHasBeenSet = true; m_labelOptions = std::move(value); }
495 
501  inline GetMetricDataRequest& WithLabelOptions(const LabelOptions& value) { SetLabelOptions(value); return *this;}
502 
508  inline GetMetricDataRequest& WithLabelOptions(LabelOptions&& value) { SetLabelOptions(std::move(value)); return *this;}
509 
510  private:
511 
512  Aws::Vector<MetricDataQuery> m_metricDataQueries;
513  bool m_metricDataQueriesHasBeenSet;
514 
515  Aws::Utils::DateTime m_startTime;
516  bool m_startTimeHasBeenSet;
517 
518  Aws::Utils::DateTime m_endTime;
519  bool m_endTimeHasBeenSet;
520 
521  Aws::String m_nextToken;
522  bool m_nextTokenHasBeenSet;
523 
524  ScanBy m_scanBy;
525  bool m_scanByHasBeenSet;
526 
527  int m_maxDatapoints;
528  bool m_maxDatapointsHasBeenSet;
529 
530  LabelOptions m_labelOptions;
531  bool m_labelOptionsHasBeenSet;
532  };
533 
534 } // namespace Model
535 } // namespace CloudWatch
536 } // namespace Aws
Aws::Utils::DateTime
Definition: DateTime.h:55
Aws::CloudWatch::Model::GetMetricDataRequest::SetLabelOptions
void SetLabelOptions(const LabelOptions &value)
Definition: GetMetricDataRequest.h:487
Aws::CloudWatch::Model::GetMetricDataRequest::DumpBodyToUrl
void DumpBodyToUrl(Aws::Http::URI &uri) const override
Aws::CloudWatch::Model::GetMetricDataRequest::WithEndTime
GetMetricDataRequest & WithEndTime(Aws::Utils::DateTime &&value)
Definition: GetMetricDataRequest.h:336
Aws::CloudWatch::Model::GetMetricDataRequest::SetNextToken
void SetNextToken(const char *value)
Definition: GetMetricDataRequest.h:367
Aws::CloudWatch::Model::GetMetricDataRequest::SetStartTime
void SetStartTime(const Aws::Utils::DateTime &value)
Definition: GetMetricDataRequest.h:185
Aws::Http::URI
Definition: URI.h:32
AWS_CLOUDWATCH_API
#define AWS_CLOUDWATCH_API
Definition: CloudWatch_EXPORTS.h:28
Aws::CloudWatch::Model::GetMetricDataRequest::SetScanBy
void SetScanBy(ScanBy &&value)
Definition: GetMetricDataRequest.h:422
Aws::CloudWatch::Model::GetMetricDataRequest::WithStartTime
GetMetricDataRequest & WithStartTime(const Aws::Utils::DateTime &value)
Definition: GetMetricDataRequest.h:237
Aws::CloudWatch::Model::GetMetricDataRequest::StartTimeHasBeenSet
bool StartTimeHasBeenSet() const
Definition: GetMetricDataRequest.h:159
Aws::CloudWatch::Model::GetMetricDataRequest::WithScanBy
GetMetricDataRequest & WithScanBy(ScanBy &&value)
Definition: GetMetricDataRequest.h:440
DateTime.h
Aws::CloudWatch::Model::GetMetricDataRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: GetMetricDataRequest.h:35
Aws::CloudWatch::Model::GetMetricDataRequest::GetMetricDataRequest
GetMetricDataRequest()
Aws::CloudWatch::Model::GetMetricDataRequest::WithNextToken
GetMetricDataRequest & WithNextToken(const Aws::String &value)
Definition: GetMetricDataRequest.h:373
Aws::CloudWatch::Model::GetMetricDataRequest::SetEndTime
void SetEndTime(Aws::Utils::DateTime &&value)
Definition: GetMetricDataRequest.h:312
Aws::CloudWatch::Model::GetMetricDataRequest::WithNextToken
GetMetricDataRequest & WithNextToken(const char *value)
Definition: GetMetricDataRequest.h:385
Aws::CloudWatch::Model::GetMetricDataRequest::SetNextToken
void SetNextToken(Aws::String &&value)
Definition: GetMetricDataRequest.h:361
Aws::CloudWatch::Model::GetMetricDataRequest::ScanByHasBeenSet
bool ScanByHasBeenSet() const
Definition: GetMetricDataRequest.h:404
Aws::CloudWatch::Model::GetMetricDataRequest::GetScanBy
const ScanBy & GetScanBy() const
Definition: GetMetricDataRequest.h:395
Aws::CloudWatch::Model::GetMetricDataRequest::MetricDataQueriesHasBeenSet
bool MetricDataQueriesHasBeenSet() const
Definition: GetMetricDataRequest.h:58
Aws::CloudWatch::Model::GetMetricDataRequest::GetMaxDatapoints
int GetMaxDatapoints() const
Definition: GetMetricDataRequest.h:447
Aws::CloudWatch::Model::GetMetricDataRequest::GetStartTime
const Aws::Utils::DateTime & GetStartTime() const
Definition: GetMetricDataRequest.h:133
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::CloudWatch::Model::GetMetricDataRequest::LabelOptionsHasBeenSet
bool LabelOptionsHasBeenSet() const
Definition: GetMetricDataRequest.h:480
Aws::CloudWatch::Model::GetMetricDataRequest::WithMetricDataQueries
GetMetricDataRequest & WithMetricDataQueries(Aws::Vector< MetricDataQuery > &&value)
Definition: GetMetricDataRequest.h:90
AWSVector.h
Aws::CloudWatch::Model::MetricDataQuery
Definition: MetricDataQuery.h:57
MetricDataQuery.h
Aws::CloudWatch::Model::GetMetricDataRequest::SetNextToken
void SetNextToken(const Aws::String &value)
Definition: GetMetricDataRequest.h:355
Aws::CloudWatch::Model::GetMetricDataRequest::GetNextToken
const Aws::String & GetNextToken() const
Definition: GetMetricDataRequest.h:343
LabelOptions.h
Aws::CloudWatch::Model::GetMetricDataRequest::MaxDatapointsHasBeenSet
bool MaxDatapointsHasBeenSet() const
Definition: GetMetricDataRequest.h:453
Aws::CloudWatch::Model::GetMetricDataRequest
Definition: GetMetricDataRequest.h:27
Aws::CloudWatch::Model::GetMetricDataRequest::EndTimeHasBeenSet
bool EndTimeHasBeenSet() const
Definition: GetMetricDataRequest.h:288
Aws::CloudWatch::Model::GetMetricDataRequest::SetMaxDatapoints
void SetMaxDatapoints(int value)
Definition: GetMetricDataRequest.h:459
Aws::CloudWatch::Model::GetMetricDataRequest::SetMetricDataQueries
void SetMetricDataQueries(Aws::Vector< MetricDataQuery > &&value)
Definition: GetMetricDataRequest.h:74
Aws::CloudWatch::Model::GetMetricDataRequest::WithEndTime
GetMetricDataRequest & WithEndTime(const Aws::Utils::DateTime &value)
Definition: GetMetricDataRequest.h:324
Aws::CloudWatch::Model::GetMetricDataRequest::AddMetricDataQueries
GetMetricDataRequest & AddMetricDataQueries(MetricDataQuery &&value)
Definition: GetMetricDataRequest.h:106
Aws::CloudWatch::Model::GetMetricDataRequest::SetScanBy
void SetScanBy(const ScanBy &value)
Definition: GetMetricDataRequest.h:413
Aws::CloudWatch::Model::GetMetricDataRequest::SetEndTime
void SetEndTime(const Aws::Utils::DateTime &value)
Definition: GetMetricDataRequest.h:300
Aws::CloudWatch::Model::ScanBy
ScanBy
Definition: ScanBy.h:17
Aws::CloudWatch::Model::GetMetricDataRequest::SetStartTime
void SetStartTime(Aws::Utils::DateTime &&value)
Definition: GetMetricDataRequest.h:211
Aws::CloudWatch::CloudWatchRequest
Definition: CloudWatchRequest.h:17
Aws::CloudWatch::Model::GetMetricDataRequest::NextTokenHasBeenSet
bool NextTokenHasBeenSet() const
Definition: GetMetricDataRequest.h:349
Aws::CloudWatch::Model::LabelOptions
Definition: LabelOptions.h:39
AWSString.h
Aws::CloudWatch::Model::GetMetricDataRequest::WithNextToken
GetMetricDataRequest & WithNextToken(Aws::String &&value)
Definition: GetMetricDataRequest.h:379
ScanBy.h
Aws::CloudWatch::Model::GetMetricDataRequest::GetEndTime
const Aws::Utils::DateTime & GetEndTime() const
Definition: GetMetricDataRequest.h:276
Aws::CloudWatch::Model::GetMetricDataRequest::WithMetricDataQueries
GetMetricDataRequest & WithMetricDataQueries(const Aws::Vector< MetricDataQuery > &value)
Definition: GetMetricDataRequest.h:82
Aws::CloudWatch::Model::GetMetricDataRequest::WithMaxDatapoints
GetMetricDataRequest & WithMaxDatapoints(int value)
Definition: GetMetricDataRequest.h:465
Aws::CloudWatch::Model::GetMetricDataRequest::SerializePayload
Aws::String SerializePayload() const override
CloudWatchRequest.h
Aws::CloudWatch::Model::GetMetricDataRequest::WithLabelOptions
GetMetricDataRequest & WithLabelOptions(const LabelOptions &value)
Definition: GetMetricDataRequest.h:501
CloudWatch_EXPORTS.h
Aws
Definition: AccessManagementClient.h:15
Aws::CloudWatch::Model::GetMetricDataRequest::SetLabelOptions
void SetLabelOptions(LabelOptions &&value)
Definition: GetMetricDataRequest.h:494
Aws::CloudWatch::Model::GetMetricDataRequest::WithStartTime
GetMetricDataRequest & WithStartTime(Aws::Utils::DateTime &&value)
Definition: GetMetricDataRequest.h:263
Aws::CloudWatch::Model::GetMetricDataRequest::WithScanBy
GetMetricDataRequest & WithScanBy(const ScanBy &value)
Definition: GetMetricDataRequest.h:431
Aws::CloudWatch::Model::GetMetricDataRequest::GetMetricDataQueries
const Aws::Vector< MetricDataQuery > & GetMetricDataQueries() const
Definition: GetMetricDataRequest.h:50
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::CloudWatch::Model::GetMetricDataRequest::GetLabelOptions
const LabelOptions & GetLabelOptions() const
Definition: GetMetricDataRequest.h:473
Aws::CloudWatch::Model::GetMetricDataRequest::SetMetricDataQueries
void SetMetricDataQueries(const Aws::Vector< MetricDataQuery > &value)
Definition: GetMetricDataRequest.h:66
Aws::CloudWatch::Model::GetMetricDataRequest::WithLabelOptions
GetMetricDataRequest & WithLabelOptions(LabelOptions &&value)
Definition: GetMetricDataRequest.h:508
Aws::CloudWatch::Model::GetMetricDataRequest::AddMetricDataQueries
GetMetricDataRequest & AddMetricDataQueries(const MetricDataQuery &value)
Definition: GetMetricDataRequest.h:98