AWS SDK for C++

AWS SDK for C++ Version 1.11.681

Loading...
Searching...
No Matches
DescribeEventsRequest.h
1
6#pragma once
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/neptune/NeptuneRequest.h>
11#include <aws/neptune/Neptune_EXPORTS.h>
12#include <aws/neptune/model/Filter.h>
13#include <aws/neptune/model/SourceType.h>
14
15#include <utility>
16
17namespace Aws {
18namespace Neptune {
19namespace Model {
20
24 public:
25 AWS_NEPTUNE_API DescribeEventsRequest() = default;
26
27 // Service request name is the Operation name which will send this request out,
28 // each operation should has unique request name, so that we can get operation's name from this request.
29 // Note: this is not true for response, multiple operations may have the same response name,
30 // so we can not get operation's name from response.
31 inline virtual const char* GetServiceRequestName() const override { return "DescribeEvents"; }
32
33 AWS_NEPTUNE_API Aws::String SerializePayload() const override;
34
35 protected:
36 AWS_NEPTUNE_API void DumpBodyToUrl(Aws::Http::URI& uri) const override;
37
38 public:
40
54 inline const Aws::String& GetSourceIdentifier() const { return m_sourceIdentifier; }
55 inline bool SourceIdentifierHasBeenSet() const { return m_sourceIdentifierHasBeenSet; }
56 template <typename SourceIdentifierT = Aws::String>
57 void SetSourceIdentifier(SourceIdentifierT&& value) {
58 m_sourceIdentifierHasBeenSet = true;
59 m_sourceIdentifier = std::forward<SourceIdentifierT>(value);
60 }
61 template <typename SourceIdentifierT = Aws::String>
62 DescribeEventsRequest& WithSourceIdentifier(SourceIdentifierT&& value) {
63 SetSourceIdentifier(std::forward<SourceIdentifierT>(value));
64 return *this;
65 }
67
69
73 inline SourceType GetSourceType() const { return m_sourceType; }
74 inline bool SourceTypeHasBeenSet() const { return m_sourceTypeHasBeenSet; }
75 inline void SetSourceType(SourceType value) {
76 m_sourceTypeHasBeenSet = true;
77 m_sourceType = value;
78 }
80 SetSourceType(value);
81 return *this;
82 }
84
86
92 inline const Aws::Utils::DateTime& GetStartTime() const { return m_startTime; }
93 inline bool StartTimeHasBeenSet() const { return m_startTimeHasBeenSet; }
94 template <typename StartTimeT = Aws::Utils::DateTime>
95 void SetStartTime(StartTimeT&& value) {
96 m_startTimeHasBeenSet = true;
97 m_startTime = std::forward<StartTimeT>(value);
98 }
99 template <typename StartTimeT = Aws::Utils::DateTime>
101 SetStartTime(std::forward<StartTimeT>(value));
102 return *this;
103 }
105
107
113 inline const Aws::Utils::DateTime& GetEndTime() const { return m_endTime; }
114 inline bool EndTimeHasBeenSet() const { return m_endTimeHasBeenSet; }
115 template <typename EndTimeT = Aws::Utils::DateTime>
116 void SetEndTime(EndTimeT&& value) {
117 m_endTimeHasBeenSet = true;
118 m_endTime = std::forward<EndTimeT>(value);
119 }
120 template <typename EndTimeT = Aws::Utils::DateTime>
122 SetEndTime(std::forward<EndTimeT>(value));
123 return *this;
124 }
126
128
131 inline int GetDuration() const { return m_duration; }
132 inline bool DurationHasBeenSet() const { return m_durationHasBeenSet; }
133 inline void SetDuration(int value) {
134 m_durationHasBeenSet = true;
135 m_duration = value;
136 }
138 SetDuration(value);
139 return *this;
140 }
142
144
148 inline const Aws::Vector<Aws::String>& GetEventCategories() const { return m_eventCategories; }
149 inline bool EventCategoriesHasBeenSet() const { return m_eventCategoriesHasBeenSet; }
150 template <typename EventCategoriesT = Aws::Vector<Aws::String>>
151 void SetEventCategories(EventCategoriesT&& value) {
152 m_eventCategoriesHasBeenSet = true;
153 m_eventCategories = std::forward<EventCategoriesT>(value);
154 }
155 template <typename EventCategoriesT = Aws::Vector<Aws::String>>
156 DescribeEventsRequest& WithEventCategories(EventCategoriesT&& value) {
157 SetEventCategories(std::forward<EventCategoriesT>(value));
158 return *this;
159 }
160 template <typename EventCategoriesT = Aws::String>
161 DescribeEventsRequest& AddEventCategories(EventCategoriesT&& value) {
162 m_eventCategoriesHasBeenSet = true;
163 m_eventCategories.emplace_back(std::forward<EventCategoriesT>(value));
164 return *this;
165 }
167
169
172 inline const Aws::Vector<Filter>& GetFilters() const { return m_filters; }
173 inline bool FiltersHasBeenSet() const { return m_filtersHasBeenSet; }
174 template <typename FiltersT = Aws::Vector<Filter>>
175 void SetFilters(FiltersT&& value) {
176 m_filtersHasBeenSet = true;
177 m_filters = std::forward<FiltersT>(value);
178 }
179 template <typename FiltersT = Aws::Vector<Filter>>
181 SetFilters(std::forward<FiltersT>(value));
182 return *this;
183 }
184 template <typename FiltersT = Filter>
186 m_filtersHasBeenSet = true;
187 m_filters.emplace_back(std::forward<FiltersT>(value));
188 return *this;
189 }
191
193
199 inline int GetMaxRecords() const { return m_maxRecords; }
200 inline bool MaxRecordsHasBeenSet() const { return m_maxRecordsHasBeenSet; }
201 inline void SetMaxRecords(int value) {
202 m_maxRecordsHasBeenSet = true;
203 m_maxRecords = value;
204 }
206 SetMaxRecords(value);
207 return *this;
208 }
210
212
217 inline const Aws::String& GetMarker() const { return m_marker; }
218 inline bool MarkerHasBeenSet() const { return m_markerHasBeenSet; }
219 template <typename MarkerT = Aws::String>
220 void SetMarker(MarkerT&& value) {
221 m_markerHasBeenSet = true;
222 m_marker = std::forward<MarkerT>(value);
223 }
224 template <typename MarkerT = Aws::String>
226 SetMarker(std::forward<MarkerT>(value));
227 return *this;
228 }
230 private:
231 Aws::String m_sourceIdentifier;
232 bool m_sourceIdentifierHasBeenSet = false;
233
234 SourceType m_sourceType{SourceType::NOT_SET};
235 bool m_sourceTypeHasBeenSet = false;
236
237 Aws::Utils::DateTime m_startTime{};
238 bool m_startTimeHasBeenSet = false;
239
240 Aws::Utils::DateTime m_endTime{};
241 bool m_endTimeHasBeenSet = false;
242
243 int m_duration{0};
244 bool m_durationHasBeenSet = false;
245
246 Aws::Vector<Aws::String> m_eventCategories;
247 bool m_eventCategoriesHasBeenSet = false;
248
249 Aws::Vector<Filter> m_filters;
250 bool m_filtersHasBeenSet = false;
251
252 int m_maxRecords{0};
253 bool m_maxRecordsHasBeenSet = false;
254
255 Aws::String m_marker;
256 bool m_markerHasBeenSet = false;
257};
258
259} // namespace Model
260} // namespace Neptune
261} // namespace Aws
DescribeEventsRequest & WithMarker(MarkerT &&value)
const Aws::Vector< Aws::String > & GetEventCategories() const
void SetSourceIdentifier(SourceIdentifierT &&value)
AWS_NEPTUNE_API DescribeEventsRequest()=default
DescribeEventsRequest & WithSourceIdentifier(SourceIdentifierT &&value)
AWS_NEPTUNE_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
void SetEventCategories(EventCategoriesT &&value)
const Aws::Utils::DateTime & GetStartTime() const
const Aws::Vector< Filter > & GetFilters() const
DescribeEventsRequest & WithDuration(int value)
const Aws::Utils::DateTime & GetEndTime() const
DescribeEventsRequest & WithEndTime(EndTimeT &&value)
virtual const char * GetServiceRequestName() const override
DescribeEventsRequest & WithMaxRecords(int value)
DescribeEventsRequest & WithSourceType(SourceType value)
DescribeEventsRequest & AddEventCategories(EventCategoriesT &&value)
DescribeEventsRequest & WithStartTime(StartTimeT &&value)
DescribeEventsRequest & AddFilters(FiltersT &&value)
DescribeEventsRequest & WithFilters(FiltersT &&value)
DescribeEventsRequest & WithEventCategories(EventCategoriesT &&value)
AWS_NEPTUNE_API Aws::String SerializePayload() const override
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector