AWS SDK for C++  1.8.154
AWS SDK for C++
GetInsightRuleReportRequest.h
Go to the documentation of this file.
1 
6 #pragma once
12 #include <utility>
13 
14 namespace Aws
15 {
16 namespace CloudWatch
17 {
18 namespace Model
19 {
20 
24  {
25  public:
27 
28  // Service request name is the Operation name which will send this request out,
29  // each operation should has unique request name, so that we can get operation's name from this request.
30  // Note: this is not true for response, multiple operations may have the same response name,
31  // so we can not get operation's name from response.
32  inline virtual const char* GetServiceRequestName() const override { return "GetInsightRuleReport"; }
33 
34  Aws::String SerializePayload() const override;
35 
36  protected:
37  void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
38 
39  public:
40 
44  inline const Aws::String& GetRuleName() const{ return m_ruleName; }
45 
49  inline bool RuleNameHasBeenSet() const { return m_ruleNameHasBeenSet; }
50 
54  inline void SetRuleName(const Aws::String& value) { m_ruleNameHasBeenSet = true; m_ruleName = value; }
55 
59  inline void SetRuleName(Aws::String&& value) { m_ruleNameHasBeenSet = true; m_ruleName = std::move(value); }
60 
64  inline void SetRuleName(const char* value) { m_ruleNameHasBeenSet = true; m_ruleName.assign(value); }
65 
69  inline GetInsightRuleReportRequest& WithRuleName(const Aws::String& value) { SetRuleName(value); return *this;}
70 
74  inline GetInsightRuleReportRequest& WithRuleName(Aws::String&& value) { SetRuleName(std::move(value)); return *this;}
75 
79  inline GetInsightRuleReportRequest& WithRuleName(const char* value) { SetRuleName(value); return *this;}
80 
81 
87  inline const Aws::Utils::DateTime& GetStartTime() const{ return m_startTime; }
88 
94  inline bool StartTimeHasBeenSet() const { return m_startTimeHasBeenSet; }
95 
101  inline void SetStartTime(const Aws::Utils::DateTime& value) { m_startTimeHasBeenSet = true; m_startTime = value; }
102 
108  inline void SetStartTime(Aws::Utils::DateTime&& value) { m_startTimeHasBeenSet = true; m_startTime = std::move(value); }
109 
115  inline GetInsightRuleReportRequest& WithStartTime(const Aws::Utils::DateTime& value) { SetStartTime(value); return *this;}
116 
122  inline GetInsightRuleReportRequest& WithStartTime(Aws::Utils::DateTime&& value) { SetStartTime(std::move(value)); return *this;}
123 
124 
130  inline const Aws::Utils::DateTime& GetEndTime() const{ return m_endTime; }
131 
137  inline bool EndTimeHasBeenSet() const { return m_endTimeHasBeenSet; }
138 
144  inline void SetEndTime(const Aws::Utils::DateTime& value) { m_endTimeHasBeenSet = true; m_endTime = value; }
145 
151  inline void SetEndTime(Aws::Utils::DateTime&& value) { m_endTimeHasBeenSet = true; m_endTime = std::move(value); }
152 
158  inline GetInsightRuleReportRequest& WithEndTime(const Aws::Utils::DateTime& value) { SetEndTime(value); return *this;}
159 
165  inline GetInsightRuleReportRequest& WithEndTime(Aws::Utils::DateTime&& value) { SetEndTime(std::move(value)); return *this;}
166 
167 
172  inline int GetPeriod() const{ return m_period; }
173 
178  inline bool PeriodHasBeenSet() const { return m_periodHasBeenSet; }
179 
184  inline void SetPeriod(int value) { m_periodHasBeenSet = true; m_period = value; }
185 
190  inline GetInsightRuleReportRequest& WithPeriod(int value) { SetPeriod(value); return *this;}
191 
192 
197  inline int GetMaxContributorCount() const{ return m_maxContributorCount; }
198 
203  inline bool MaxContributorCountHasBeenSet() const { return m_maxContributorCountHasBeenSet; }
204 
209  inline void SetMaxContributorCount(int value) { m_maxContributorCountHasBeenSet = true; m_maxContributorCount = value; }
210 
215  inline GetInsightRuleReportRequest& WithMaxContributorCount(int value) { SetMaxContributorCount(value); return *this;}
216 
217 
239  inline const Aws::Vector<Aws::String>& GetMetrics() const{ return m_metrics; }
240 
262  inline bool MetricsHasBeenSet() const { return m_metricsHasBeenSet; }
263 
285  inline void SetMetrics(const Aws::Vector<Aws::String>& value) { m_metricsHasBeenSet = true; m_metrics = value; }
286 
308  inline void SetMetrics(Aws::Vector<Aws::String>&& value) { m_metricsHasBeenSet = true; m_metrics = std::move(value); }
309 
331  inline GetInsightRuleReportRequest& WithMetrics(const Aws::Vector<Aws::String>& value) { SetMetrics(value); return *this;}
332 
354  inline GetInsightRuleReportRequest& WithMetrics(Aws::Vector<Aws::String>&& value) { SetMetrics(std::move(value)); return *this;}
355 
377  inline GetInsightRuleReportRequest& AddMetrics(const Aws::String& value) { m_metricsHasBeenSet = true; m_metrics.push_back(value); return *this; }
378 
400  inline GetInsightRuleReportRequest& AddMetrics(Aws::String&& value) { m_metricsHasBeenSet = true; m_metrics.push_back(std::move(value)); return *this; }
401 
423  inline GetInsightRuleReportRequest& AddMetrics(const char* value) { m_metricsHasBeenSet = true; m_metrics.push_back(value); return *this; }
424 
425 
430  inline const Aws::String& GetOrderBy() const{ return m_orderBy; }
431 
436  inline bool OrderByHasBeenSet() const { return m_orderByHasBeenSet; }
437 
442  inline void SetOrderBy(const Aws::String& value) { m_orderByHasBeenSet = true; m_orderBy = value; }
443 
448  inline void SetOrderBy(Aws::String&& value) { m_orderByHasBeenSet = true; m_orderBy = std::move(value); }
449 
454  inline void SetOrderBy(const char* value) { m_orderByHasBeenSet = true; m_orderBy.assign(value); }
455 
460  inline GetInsightRuleReportRequest& WithOrderBy(const Aws::String& value) { SetOrderBy(value); return *this;}
461 
466  inline GetInsightRuleReportRequest& WithOrderBy(Aws::String&& value) { SetOrderBy(std::move(value)); return *this;}
467 
472  inline GetInsightRuleReportRequest& WithOrderBy(const char* value) { SetOrderBy(value); return *this;}
473 
474  private:
475 
476  Aws::String m_ruleName;
477  bool m_ruleNameHasBeenSet;
478 
479  Aws::Utils::DateTime m_startTime;
480  bool m_startTimeHasBeenSet;
481 
482  Aws::Utils::DateTime m_endTime;
483  bool m_endTimeHasBeenSet;
484 
485  int m_period;
486  bool m_periodHasBeenSet;
487 
488  int m_maxContributorCount;
489  bool m_maxContributorCountHasBeenSet;
490 
491  Aws::Vector<Aws::String> m_metrics;
492  bool m_metricsHasBeenSet;
493 
494  Aws::String m_orderBy;
495  bool m_orderByHasBeenSet;
496  };
497 
498 } // namespace Model
499 } // namespace CloudWatch
500 } // namespace Aws
Aws::Utils::DateTime
Definition: DateTime.h:55
Aws::CloudWatch::Model::GetInsightRuleReportRequest::WithOrderBy
GetInsightRuleReportRequest & WithOrderBy(const Aws::String &value)
Definition: GetInsightRuleReportRequest.h:460
Aws::CloudWatch::Model::GetInsightRuleReportRequest::WithRuleName
GetInsightRuleReportRequest & WithRuleName(Aws::String &&value)
Definition: GetInsightRuleReportRequest.h:74
Aws::CloudWatch::Model::GetInsightRuleReportRequest::WithStartTime
GetInsightRuleReportRequest & WithStartTime(Aws::Utils::DateTime &&value)
Definition: GetInsightRuleReportRequest.h:122
Aws::CloudWatch::Model::GetInsightRuleReportRequest::SetOrderBy
void SetOrderBy(const Aws::String &value)
Definition: GetInsightRuleReportRequest.h:442
Aws::Http::URI
Definition: URI.h:32
Aws::CloudWatch::Model::GetInsightRuleReportRequest::SetStartTime
void SetStartTime(const Aws::Utils::DateTime &value)
Definition: GetInsightRuleReportRequest.h:101
AWS_CLOUDWATCH_API
#define AWS_CLOUDWATCH_API
Definition: CloudWatch_EXPORTS.h:28
Aws::CloudWatch::Model::GetInsightRuleReportRequest::GetEndTime
const Aws::Utils::DateTime & GetEndTime() const
Definition: GetInsightRuleReportRequest.h:130
Aws::CloudWatch::Model::GetInsightRuleReportRequest::SetPeriod
void SetPeriod(int value)
Definition: GetInsightRuleReportRequest.h:184
Aws::CloudWatch::Model::GetInsightRuleReportRequest::WithRuleName
GetInsightRuleReportRequest & WithRuleName(const char *value)
Definition: GetInsightRuleReportRequest.h:79
Aws::CloudWatch::Model::GetInsightRuleReportRequest::GetMetrics
const Aws::Vector< Aws::String > & GetMetrics() const
Definition: GetInsightRuleReportRequest.h:239
Aws::CloudWatch::Model::GetInsightRuleReportRequest::RuleNameHasBeenSet
bool RuleNameHasBeenSet() const
Definition: GetInsightRuleReportRequest.h:49
Aws::CloudWatch::Model::GetInsightRuleReportRequest::MetricsHasBeenSet
bool MetricsHasBeenSet() const
Definition: GetInsightRuleReportRequest.h:262
Aws::CloudWatch::Model::GetInsightRuleReportRequest::WithPeriod
GetInsightRuleReportRequest & WithPeriod(int value)
Definition: GetInsightRuleReportRequest.h:190
DateTime.h
Aws::CloudWatch::Model::GetInsightRuleReportRequest::WithMetrics
GetInsightRuleReportRequest & WithMetrics(const Aws::Vector< Aws::String > &value)
Definition: GetInsightRuleReportRequest.h:331
Aws::CloudWatch::Model::GetInsightRuleReportRequest::SetStartTime
void SetStartTime(Aws::Utils::DateTime &&value)
Definition: GetInsightRuleReportRequest.h:108
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::CloudWatch::Model::GetInsightRuleReportRequest::GetMaxContributorCount
int GetMaxContributorCount() const
Definition: GetInsightRuleReportRequest.h:197
AWSVector.h
Aws::CloudWatch::Model::GetInsightRuleReportRequest::AddMetrics
GetInsightRuleReportRequest & AddMetrics(const Aws::String &value)
Definition: GetInsightRuleReportRequest.h:377
Aws::CloudWatch::Model::GetInsightRuleReportRequest::WithMaxContributorCount
GetInsightRuleReportRequest & WithMaxContributorCount(int value)
Definition: GetInsightRuleReportRequest.h:215
Aws::CloudWatch::Model::GetInsightRuleReportRequest::StartTimeHasBeenSet
bool StartTimeHasBeenSet() const
Definition: GetInsightRuleReportRequest.h:94
Aws::CloudWatch::Model::GetInsightRuleReportRequest::GetOrderBy
const Aws::String & GetOrderBy() const
Definition: GetInsightRuleReportRequest.h:430
Aws::CloudWatch::Model::GetInsightRuleReportRequest::AddMetrics
GetInsightRuleReportRequest & AddMetrics(const char *value)
Definition: GetInsightRuleReportRequest.h:423
Aws::CloudWatch::Model::GetInsightRuleReportRequest::MaxContributorCountHasBeenSet
bool MaxContributorCountHasBeenSet() const
Definition: GetInsightRuleReportRequest.h:203
Aws::CloudWatch::Model::GetInsightRuleReportRequest::SetOrderBy
void SetOrderBy(Aws::String &&value)
Definition: GetInsightRuleReportRequest.h:448
Aws::CloudWatch::Model::GetInsightRuleReportRequest::WithStartTime
GetInsightRuleReportRequest & WithStartTime(const Aws::Utils::DateTime &value)
Definition: GetInsightRuleReportRequest.h:115
Aws::CloudWatch::Model::GetInsightRuleReportRequest::PeriodHasBeenSet
bool PeriodHasBeenSet() const
Definition: GetInsightRuleReportRequest.h:178
Aws::CloudWatch::Model::GetInsightRuleReportRequest::SetMetrics
void SetMetrics(const Aws::Vector< Aws::String > &value)
Definition: GetInsightRuleReportRequest.h:285
Aws::CloudWatch::Model::GetInsightRuleReportRequest::WithEndTime
GetInsightRuleReportRequest & WithEndTime(Aws::Utils::DateTime &&value)
Definition: GetInsightRuleReportRequest.h:165
Aws::CloudWatch::Model::GetInsightRuleReportRequest::SetMetrics
void SetMetrics(Aws::Vector< Aws::String > &&value)
Definition: GetInsightRuleReportRequest.h:308
Aws::CloudWatch::CloudWatchRequest
Definition: CloudWatchRequest.h:17
Aws::CloudWatch::Model::GetInsightRuleReportRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: GetInsightRuleReportRequest.h:32
Aws::CloudWatch::Model::GetInsightRuleReportRequest::EndTimeHasBeenSet
bool EndTimeHasBeenSet() const
Definition: GetInsightRuleReportRequest.h:137
AWSString.h
Aws::CloudWatch::Model::GetInsightRuleReportRequest::DumpBodyToUrl
void DumpBodyToUrl(Aws::Http::URI &uri) const override
Aws::CloudWatch::Model::GetInsightRuleReportRequest::WithEndTime
GetInsightRuleReportRequest & WithEndTime(const Aws::Utils::DateTime &value)
Definition: GetInsightRuleReportRequest.h:158
Aws::CloudWatch::Model::GetInsightRuleReportRequest::SetRuleName
void SetRuleName(const char *value)
Definition: GetInsightRuleReportRequest.h:64
CloudWatchRequest.h
Aws::CloudWatch::Model::GetInsightRuleReportRequest::SetEndTime
void SetEndTime(const Aws::Utils::DateTime &value)
Definition: GetInsightRuleReportRequest.h:144
CloudWatch_EXPORTS.h
Aws::CloudWatch::Model::GetInsightRuleReportRequest::SetEndTime
void SetEndTime(Aws::Utils::DateTime &&value)
Definition: GetInsightRuleReportRequest.h:151
Aws
Definition: AccessManagementClient.h:15
Aws::CloudWatch::Model::GetInsightRuleReportRequest::SetOrderBy
void SetOrderBy(const char *value)
Definition: GetInsightRuleReportRequest.h:454
Aws::CloudWatch::Model::GetInsightRuleReportRequest::WithMetrics
GetInsightRuleReportRequest & WithMetrics(Aws::Vector< Aws::String > &&value)
Definition: GetInsightRuleReportRequest.h:354
Aws::CloudWatch::Model::GetInsightRuleReportRequest::WithOrderBy
GetInsightRuleReportRequest & WithOrderBy(Aws::String &&value)
Definition: GetInsightRuleReportRequest.h:466
Aws::CloudWatch::Model::GetInsightRuleReportRequest::GetStartTime
const Aws::Utils::DateTime & GetStartTime() const
Definition: GetInsightRuleReportRequest.h:87
Aws::CloudWatch::Model::GetInsightRuleReportRequest::GetRuleName
const Aws::String & GetRuleName() const
Definition: GetInsightRuleReportRequest.h:44
Aws::CloudWatch::Model::GetInsightRuleReportRequest::SetMaxContributorCount
void SetMaxContributorCount(int value)
Definition: GetInsightRuleReportRequest.h:209
Aws::CloudWatch::Model::GetInsightRuleReportRequest::WithRuleName
GetInsightRuleReportRequest & WithRuleName(const Aws::String &value)
Definition: GetInsightRuleReportRequest.h:69
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::CloudWatch::Model::GetInsightRuleReportRequest::SetRuleName
void SetRuleName(const Aws::String &value)
Definition: GetInsightRuleReportRequest.h:54
Aws::CloudWatch::Model::GetInsightRuleReportRequest::OrderByHasBeenSet
bool OrderByHasBeenSet() const
Definition: GetInsightRuleReportRequest.h:436
Aws::CloudWatch::Model::GetInsightRuleReportRequest
Definition: GetInsightRuleReportRequest.h:24
Aws::CloudWatch::Model::GetInsightRuleReportRequest::AddMetrics
GetInsightRuleReportRequest & AddMetrics(Aws::String &&value)
Definition: GetInsightRuleReportRequest.h:400
Aws::CloudWatch::Model::GetInsightRuleReportRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::CloudWatch::Model::GetInsightRuleReportRequest::GetPeriod
int GetPeriod() const
Definition: GetInsightRuleReportRequest.h:172
Aws::CloudWatch::Model::GetInsightRuleReportRequest::WithOrderBy
GetInsightRuleReportRequest & WithOrderBy(const char *value)
Definition: GetInsightRuleReportRequest.h:472
Aws::CloudWatch::Model::GetInsightRuleReportRequest::SetRuleName
void SetRuleName(Aws::String &&value)
Definition: GetInsightRuleReportRequest.h:59
Aws::CloudWatch::Model::GetInsightRuleReportRequest::GetInsightRuleReportRequest
GetInsightRuleReportRequest()