AWS SDK for C++

AWS SDK for C++ Version 1.11.741

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/dms/DatabaseMigrationServiceRequest.h>
11#include <aws/dms/DatabaseMigrationService_EXPORTS.h>
12#include <aws/dms/model/Filter.h>
13#include <aws/dms/model/SourceType.h>
14
15#include <utility>
16
17namespace Aws {
18namespace DatabaseMigrationService {
19namespace Model {
20
27 public:
28 AWS_DATABASEMIGRATIONSERVICE_API DescribeEventsRequest() = default;
29
30 // Service request name is the Operation name which will send this request out,
31 // each operation should has unique request name, so that we can get operation's name from this request.
32 // Note: this is not true for response, multiple operations may have the same response name,
33 // so we can not get operation's name from response.
34 inline virtual const char* GetServiceRequestName() const override { return "DescribeEvents"; }
35
36 AWS_DATABASEMIGRATIONSERVICE_API Aws::String SerializePayload() const override;
37
38 AWS_DATABASEMIGRATIONSERVICE_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
39
41
44 inline const Aws::String& GetSourceIdentifier() const { return m_sourceIdentifier; }
45 inline bool SourceIdentifierHasBeenSet() const { return m_sourceIdentifierHasBeenSet; }
46 template <typename SourceIdentifierT = Aws::String>
47 void SetSourceIdentifier(SourceIdentifierT&& value) {
48 m_sourceIdentifierHasBeenSet = true;
49 m_sourceIdentifier = std::forward<SourceIdentifierT>(value);
50 }
51 template <typename SourceIdentifierT = Aws::String>
52 DescribeEventsRequest& WithSourceIdentifier(SourceIdentifierT&& value) {
53 SetSourceIdentifier(std::forward<SourceIdentifierT>(value));
54 return *this;
55 }
57
59
63 inline SourceType GetSourceType() const { return m_sourceType; }
64 inline bool SourceTypeHasBeenSet() const { return m_sourceTypeHasBeenSet; }
65 inline void SetSourceType(SourceType value) {
66 m_sourceTypeHasBeenSet = true;
67 m_sourceType = value;
68 }
70 SetSourceType(value);
71 return *this;
72 }
74
76
79 inline const Aws::Utils::DateTime& GetStartTime() const { return m_startTime; }
80 inline bool StartTimeHasBeenSet() const { return m_startTimeHasBeenSet; }
81 template <typename StartTimeT = Aws::Utils::DateTime>
82 void SetStartTime(StartTimeT&& value) {
83 m_startTimeHasBeenSet = true;
84 m_startTime = std::forward<StartTimeT>(value);
85 }
86 template <typename StartTimeT = Aws::Utils::DateTime>
87 DescribeEventsRequest& WithStartTime(StartTimeT&& value) {
88 SetStartTime(std::forward<StartTimeT>(value));
89 return *this;
90 }
92
94
97 inline const Aws::Utils::DateTime& GetEndTime() const { return m_endTime; }
98 inline bool EndTimeHasBeenSet() const { return m_endTimeHasBeenSet; }
99 template <typename EndTimeT = Aws::Utils::DateTime>
100 void SetEndTime(EndTimeT&& value) {
101 m_endTimeHasBeenSet = true;
102 m_endTime = std::forward<EndTimeT>(value);
103 }
104 template <typename EndTimeT = Aws::Utils::DateTime>
106 SetEndTime(std::forward<EndTimeT>(value));
107 return *this;
108 }
110
112
115 inline int GetDuration() const { return m_duration; }
116 inline bool DurationHasBeenSet() const { return m_durationHasBeenSet; }
117 inline void SetDuration(int value) {
118 m_durationHasBeenSet = true;
119 m_duration = value;
120 }
122 SetDuration(value);
123 return *this;
124 }
126
128
131 inline const Aws::Vector<Aws::String>& GetEventCategories() const { return m_eventCategories; }
132 inline bool EventCategoriesHasBeenSet() const { return m_eventCategoriesHasBeenSet; }
133 template <typename EventCategoriesT = Aws::Vector<Aws::String>>
134 void SetEventCategories(EventCategoriesT&& value) {
135 m_eventCategoriesHasBeenSet = true;
136 m_eventCategories = std::forward<EventCategoriesT>(value);
137 }
138 template <typename EventCategoriesT = Aws::Vector<Aws::String>>
139 DescribeEventsRequest& WithEventCategories(EventCategoriesT&& value) {
140 SetEventCategories(std::forward<EventCategoriesT>(value));
141 return *this;
142 }
143 template <typename EventCategoriesT = Aws::String>
144 DescribeEventsRequest& AddEventCategories(EventCategoriesT&& value) {
145 m_eventCategoriesHasBeenSet = true;
146 m_eventCategories.emplace_back(std::forward<EventCategoriesT>(value));
147 return *this;
148 }
150
152
156 inline const Aws::Vector<Filter>& GetFilters() const { return m_filters; }
157 inline bool FiltersHasBeenSet() const { return m_filtersHasBeenSet; }
158 template <typename FiltersT = Aws::Vector<Filter>>
159 void SetFilters(FiltersT&& value) {
160 m_filtersHasBeenSet = true;
161 m_filters = std::forward<FiltersT>(value);
162 }
163 template <typename FiltersT = Aws::Vector<Filter>>
165 SetFilters(std::forward<FiltersT>(value));
166 return *this;
167 }
168 template <typename FiltersT = Filter>
170 m_filtersHasBeenSet = true;
171 m_filters.emplace_back(std::forward<FiltersT>(value));
172 return *this;
173 }
175
177
183 inline int GetMaxRecords() const { return m_maxRecords; }
184 inline bool MaxRecordsHasBeenSet() const { return m_maxRecordsHasBeenSet; }
185 inline void SetMaxRecords(int value) {
186 m_maxRecordsHasBeenSet = true;
187 m_maxRecords = value;
188 }
190 SetMaxRecords(value);
191 return *this;
192 }
194
196
201 inline const Aws::String& GetMarker() const { return m_marker; }
202 inline bool MarkerHasBeenSet() const { return m_markerHasBeenSet; }
203 template <typename MarkerT = Aws::String>
204 void SetMarker(MarkerT&& value) {
205 m_markerHasBeenSet = true;
206 m_marker = std::forward<MarkerT>(value);
207 }
208 template <typename MarkerT = Aws::String>
210 SetMarker(std::forward<MarkerT>(value));
211 return *this;
212 }
214 private:
215 Aws::String m_sourceIdentifier;
216
217 SourceType m_sourceType{SourceType::NOT_SET};
218
219 Aws::Utils::DateTime m_startTime{};
220
221 Aws::Utils::DateTime m_endTime{};
222
223 int m_duration{0};
224
225 Aws::Vector<Aws::String> m_eventCategories;
226
227 Aws::Vector<Filter> m_filters;
228
229 int m_maxRecords{0};
230
231 Aws::String m_marker;
232 bool m_sourceIdentifierHasBeenSet = false;
233 bool m_sourceTypeHasBeenSet = false;
234 bool m_startTimeHasBeenSet = false;
235 bool m_endTimeHasBeenSet = false;
236 bool m_durationHasBeenSet = false;
237 bool m_eventCategoriesHasBeenSet = false;
238 bool m_filtersHasBeenSet = false;
239 bool m_maxRecordsHasBeenSet = false;
240 bool m_markerHasBeenSet = false;
241};
242
243} // namespace Model
244} // namespace DatabaseMigrationService
245} // namespace Aws
DescribeEventsRequest & WithStartTime(StartTimeT &&value)
DescribeEventsRequest & WithEventCategories(EventCategoriesT &&value)
AWS_DATABASEMIGRATIONSERVICE_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
DescribeEventsRequest & AddEventCategories(EventCategoriesT &&value)
const Aws::Vector< Aws::String > & GetEventCategories() const
DescribeEventsRequest & WithSourceIdentifier(SourceIdentifierT &&value)
AWS_DATABASEMIGRATIONSERVICE_API Aws::String SerializePayload() const override
AWS_DATABASEMIGRATIONSERVICE_API DescribeEventsRequest()=default
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector