AWS SDK for C++

AWS SDK for C++ Version 1.11.740

Loading...
Searching...
No Matches
DescribeEventAggregatesRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/health/HealthRequest.h>
9#include <aws/health/Health_EXPORTS.h>
10#include <aws/health/model/EventAggregateField.h>
11#include <aws/health/model/EventFilter.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Health {
17namespace Model {
18
22 public:
23 AWS_HEALTH_API DescribeEventAggregatesRequest() = default;
24
25 // Service request name is the Operation name which will send this request out,
26 // each operation should has unique request name, so that we can get operation's name from this request.
27 // Note: this is not true for response, multiple operations may have the same response name,
28 // so we can not get operation's name from response.
29 inline virtual const char* GetServiceRequestName() const override { return "DescribeEventAggregates"; }
30
31 AWS_HEALTH_API Aws::String SerializePayload() const override;
32
34
36
39 inline const EventFilter& GetFilter() const { return m_filter; }
40 inline bool FilterHasBeenSet() const { return m_filterHasBeenSet; }
41 template <typename FilterT = EventFilter>
42 void SetFilter(FilterT&& value) {
43 m_filterHasBeenSet = true;
44 m_filter = std::forward<FilterT>(value);
45 }
46 template <typename FilterT = EventFilter>
48 SetFilter(std::forward<FilterT>(value));
49 return *this;
50 }
52
54
57 inline EventAggregateField GetAggregateField() const { return m_aggregateField; }
58 inline bool AggregateFieldHasBeenSet() const { return m_aggregateFieldHasBeenSet; }
60 m_aggregateFieldHasBeenSet = true;
61 m_aggregateField = value;
62 }
64 SetAggregateField(value);
65 return *this;
66 }
68
70
74 inline int GetMaxResults() const { return m_maxResults; }
75 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
76 inline void SetMaxResults(int value) {
77 m_maxResultsHasBeenSet = true;
78 m_maxResults = value;
79 }
81 SetMaxResults(value);
82 return *this;
83 }
85
87
94 inline const Aws::String& GetNextToken() const { return m_nextToken; }
95 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
96 template <typename NextTokenT = Aws::String>
97 void SetNextToken(NextTokenT&& value) {
98 m_nextTokenHasBeenSet = true;
99 m_nextToken = std::forward<NextTokenT>(value);
100 }
101 template <typename NextTokenT = Aws::String>
103 SetNextToken(std::forward<NextTokenT>(value));
104 return *this;
105 }
107 private:
108 EventFilter m_filter;
109
111
112 int m_maxResults{0};
113
114 Aws::String m_nextToken;
115 bool m_filterHasBeenSet = false;
116 bool m_aggregateFieldHasBeenSet = false;
117 bool m_maxResultsHasBeenSet = false;
118 bool m_nextTokenHasBeenSet = false;
119};
120
121} // namespace Model
122} // namespace Health
123} // namespace Aws
AWS_HEALTH_API Aws::String SerializePayload() const override
DescribeEventAggregatesRequest & WithAggregateField(EventAggregateField value)
DescribeEventAggregatesRequest & WithNextToken(NextTokenT &&value)
DescribeEventAggregatesRequest & WithFilter(FilterT &&value)
DescribeEventAggregatesRequest & WithMaxResults(int value)
AWS_HEALTH_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
AWS_HEALTH_API DescribeEventAggregatesRequest()=default
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String