AWS SDK for C++  1.8.71
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
virtual const char * GetServiceRequestName() const override
GetInsightRuleReportRequest & AddMetrics(Aws::String &&value)
GetInsightRuleReportRequest & WithMetrics(Aws::Vector< Aws::String > &&value)
#define AWS_CLOUDWATCH_API
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
GetInsightRuleReportRequest & WithRuleName(const char *value)
GetInsightRuleReportRequest & WithEndTime(const Aws::Utils::DateTime &value)
GetInsightRuleReportRequest & AddMetrics(const char *value)
GetInsightRuleReportRequest & WithStartTime(Aws::Utils::DateTime &&value)
GetInsightRuleReportRequest & WithOrderBy(const char *value)
GetInsightRuleReportRequest & WithMetrics(const Aws::Vector< Aws::String > &value)
GetInsightRuleReportRequest & AddMetrics(const Aws::String &value)
void SetMetrics(const Aws::Vector< Aws::String > &value)
GetInsightRuleReportRequest & WithOrderBy(Aws::String &&value)
GetInsightRuleReportRequest & WithEndTime(Aws::Utils::DateTime &&value)
GetInsightRuleReportRequest & WithOrderBy(const Aws::String &value)
GetInsightRuleReportRequest & WithRuleName(Aws::String &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
const Aws::Vector< Aws::String > & GetMetrics() const
GetInsightRuleReportRequest & WithStartTime(const Aws::Utils::DateTime &value)
GetInsightRuleReportRequest & WithMaxContributorCount(int value)
GetInsightRuleReportRequest & WithRuleName(const Aws::String &value)