AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
DescribeEventsRequest.h
1
6#pragma once
7#include <aws/dms/DatabaseMigrationService_EXPORTS.h>
8#include <aws/dms/DatabaseMigrationServiceRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/dms/model/SourceType.h>
11#include <aws/core/utils/DateTime.h>
12#include <aws/core/utils/memory/stl/AWSVector.h>
13#include <aws/dms/model/Filter.h>
14#include <utility>
15
16namespace Aws
17{
18namespace DatabaseMigrationService
19{
20namespace Model
21{
22
29 {
30 public:
31 AWS_DATABASEMIGRATIONSERVICE_API DescribeEventsRequest();
32
33 // Service request name is the Operation name which will send this request out,
34 // each operation should has unique request name, so that we can get operation's name from this request.
35 // Note: this is not true for response, multiple operations may have the same response name,
36 // so we can not get operation's name from response.
37 inline virtual const char* GetServiceRequestName() const override { return "DescribeEvents"; }
38
39 AWS_DATABASEMIGRATIONSERVICE_API Aws::String SerializePayload() const override;
40
41 AWS_DATABASEMIGRATIONSERVICE_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
42
43
45
48 inline const Aws::String& GetSourceIdentifier() const{ return m_sourceIdentifier; }
49 inline bool SourceIdentifierHasBeenSet() const { return m_sourceIdentifierHasBeenSet; }
50 inline void SetSourceIdentifier(const Aws::String& value) { m_sourceIdentifierHasBeenSet = true; m_sourceIdentifier = value; }
51 inline void SetSourceIdentifier(Aws::String&& value) { m_sourceIdentifierHasBeenSet = true; m_sourceIdentifier = std::move(value); }
52 inline void SetSourceIdentifier(const char* value) { m_sourceIdentifierHasBeenSet = true; m_sourceIdentifier.assign(value); }
53 inline DescribeEventsRequest& WithSourceIdentifier(const Aws::String& value) { SetSourceIdentifier(value); return *this;}
54 inline DescribeEventsRequest& WithSourceIdentifier(Aws::String&& value) { SetSourceIdentifier(std::move(value)); return *this;}
55 inline DescribeEventsRequest& WithSourceIdentifier(const char* value) { SetSourceIdentifier(value); return *this;}
57
59
63 inline const SourceType& GetSourceType() const{ return m_sourceType; }
64 inline bool SourceTypeHasBeenSet() const { return m_sourceTypeHasBeenSet; }
65 inline void SetSourceType(const SourceType& value) { m_sourceTypeHasBeenSet = true; m_sourceType = value; }
66 inline void SetSourceType(SourceType&& value) { m_sourceTypeHasBeenSet = true; m_sourceType = std::move(value); }
67 inline DescribeEventsRequest& WithSourceType(const SourceType& value) { SetSourceType(value); return *this;}
68 inline DescribeEventsRequest& WithSourceType(SourceType&& value) { SetSourceType(std::move(value)); return *this;}
70
72
75 inline const Aws::Utils::DateTime& GetStartTime() const{ return m_startTime; }
76 inline bool StartTimeHasBeenSet() const { return m_startTimeHasBeenSet; }
77 inline void SetStartTime(const Aws::Utils::DateTime& value) { m_startTimeHasBeenSet = true; m_startTime = value; }
78 inline void SetStartTime(Aws::Utils::DateTime&& value) { m_startTimeHasBeenSet = true; m_startTime = std::move(value); }
79 inline DescribeEventsRequest& WithStartTime(const Aws::Utils::DateTime& value) { SetStartTime(value); return *this;}
80 inline DescribeEventsRequest& WithStartTime(Aws::Utils::DateTime&& value) { SetStartTime(std::move(value)); return *this;}
82
84
87 inline const Aws::Utils::DateTime& GetEndTime() const{ return m_endTime; }
88 inline bool EndTimeHasBeenSet() const { return m_endTimeHasBeenSet; }
89 inline void SetEndTime(const Aws::Utils::DateTime& value) { m_endTimeHasBeenSet = true; m_endTime = value; }
90 inline void SetEndTime(Aws::Utils::DateTime&& value) { m_endTimeHasBeenSet = true; m_endTime = std::move(value); }
91 inline DescribeEventsRequest& WithEndTime(const Aws::Utils::DateTime& value) { SetEndTime(value); return *this;}
92 inline DescribeEventsRequest& WithEndTime(Aws::Utils::DateTime&& value) { SetEndTime(std::move(value)); return *this;}
94
96
99 inline int GetDuration() const{ return m_duration; }
100 inline bool DurationHasBeenSet() const { return m_durationHasBeenSet; }
101 inline void SetDuration(int value) { m_durationHasBeenSet = true; m_duration = value; }
102 inline DescribeEventsRequest& WithDuration(int value) { SetDuration(value); return *this;}
104
106
109 inline const Aws::Vector<Aws::String>& GetEventCategories() const{ return m_eventCategories; }
110 inline bool EventCategoriesHasBeenSet() const { return m_eventCategoriesHasBeenSet; }
111 inline void SetEventCategories(const Aws::Vector<Aws::String>& value) { m_eventCategoriesHasBeenSet = true; m_eventCategories = value; }
112 inline void SetEventCategories(Aws::Vector<Aws::String>&& value) { m_eventCategoriesHasBeenSet = true; m_eventCategories = std::move(value); }
115 inline DescribeEventsRequest& AddEventCategories(const Aws::String& value) { m_eventCategoriesHasBeenSet = true; m_eventCategories.push_back(value); return *this; }
116 inline DescribeEventsRequest& AddEventCategories(Aws::String&& value) { m_eventCategoriesHasBeenSet = true; m_eventCategories.push_back(std::move(value)); return *this; }
117 inline DescribeEventsRequest& AddEventCategories(const char* value) { m_eventCategoriesHasBeenSet = true; m_eventCategories.push_back(value); return *this; }
119
121
125 inline const Aws::Vector<Filter>& GetFilters() const{ return m_filters; }
126 inline bool FiltersHasBeenSet() const { return m_filtersHasBeenSet; }
127 inline void SetFilters(const Aws::Vector<Filter>& value) { m_filtersHasBeenSet = true; m_filters = value; }
128 inline void SetFilters(Aws::Vector<Filter>&& value) { m_filtersHasBeenSet = true; m_filters = std::move(value); }
129 inline DescribeEventsRequest& WithFilters(const Aws::Vector<Filter>& value) { SetFilters(value); return *this;}
130 inline DescribeEventsRequest& WithFilters(Aws::Vector<Filter>&& value) { SetFilters(std::move(value)); return *this;}
131 inline DescribeEventsRequest& AddFilters(const Filter& value) { m_filtersHasBeenSet = true; m_filters.push_back(value); return *this; }
132 inline DescribeEventsRequest& AddFilters(Filter&& value) { m_filtersHasBeenSet = true; m_filters.push_back(std::move(value)); return *this; }
134
136
142 inline int GetMaxRecords() const{ return m_maxRecords; }
143 inline bool MaxRecordsHasBeenSet() const { return m_maxRecordsHasBeenSet; }
144 inline void SetMaxRecords(int value) { m_maxRecordsHasBeenSet = true; m_maxRecords = value; }
145 inline DescribeEventsRequest& WithMaxRecords(int value) { SetMaxRecords(value); return *this;}
147
149
154 inline const Aws::String& GetMarker() const{ return m_marker; }
155 inline bool MarkerHasBeenSet() const { return m_markerHasBeenSet; }
156 inline void SetMarker(const Aws::String& value) { m_markerHasBeenSet = true; m_marker = value; }
157 inline void SetMarker(Aws::String&& value) { m_markerHasBeenSet = true; m_marker = std::move(value); }
158 inline void SetMarker(const char* value) { m_markerHasBeenSet = true; m_marker.assign(value); }
159 inline DescribeEventsRequest& WithMarker(const Aws::String& value) { SetMarker(value); return *this;}
160 inline DescribeEventsRequest& WithMarker(Aws::String&& value) { SetMarker(std::move(value)); return *this;}
161 inline DescribeEventsRequest& WithMarker(const char* value) { SetMarker(value); return *this;}
163 private:
164
165 Aws::String m_sourceIdentifier;
166 bool m_sourceIdentifierHasBeenSet = false;
167
168 SourceType m_sourceType;
169 bool m_sourceTypeHasBeenSet = false;
170
171 Aws::Utils::DateTime m_startTime;
172 bool m_startTimeHasBeenSet = false;
173
174 Aws::Utils::DateTime m_endTime;
175 bool m_endTimeHasBeenSet = false;
176
177 int m_duration;
178 bool m_durationHasBeenSet = false;
179
180 Aws::Vector<Aws::String> m_eventCategories;
181 bool m_eventCategoriesHasBeenSet = false;
182
183 Aws::Vector<Filter> m_filters;
184 bool m_filtersHasBeenSet = false;
185
186 int m_maxRecords;
187 bool m_maxRecordsHasBeenSet = false;
188
189 Aws::String m_marker;
190 bool m_markerHasBeenSet = false;
191 };
192
193} // namespace Model
194} // namespace DatabaseMigrationService
195} // namespace Aws
DescribeEventsRequest & WithSourceType(SourceType &&value)
DescribeEventsRequest & WithMarker(Aws::String &&value)
DescribeEventsRequest & WithFilters(const Aws::Vector< Filter > &value)
DescribeEventsRequest & WithEndTime(Aws::Utils::DateTime &&value)
DescribeEventsRequest & WithSourceType(const SourceType &value)
void SetEventCategories(const Aws::Vector< Aws::String > &value)
AWS_DATABASEMIGRATIONSERVICE_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
DescribeEventsRequest & WithEventCategories(Aws::Vector< Aws::String > &&value)
AWS_DATABASEMIGRATIONSERVICE_API DescribeEventsRequest()
DescribeEventsRequest & WithStartTime(Aws::Utils::DateTime &&value)
const Aws::Vector< Aws::String > & GetEventCategories() const
DescribeEventsRequest & WithMarker(const Aws::String &value)
DescribeEventsRequest & WithEndTime(const Aws::Utils::DateTime &value)
DescribeEventsRequest & WithSourceIdentifier(const Aws::String &value)
DescribeEventsRequest & WithStartTime(const Aws::Utils::DateTime &value)
AWS_DATABASEMIGRATIONSERVICE_API Aws::String SerializePayload() const override
DescribeEventsRequest & AddEventCategories(const char *value)
DescribeEventsRequest & AddFilters(const Filter &value)
DescribeEventsRequest & WithSourceIdentifier(const char *value)
DescribeEventsRequest & WithEventCategories(const Aws::Vector< Aws::String > &value)
DescribeEventsRequest & WithSourceIdentifier(Aws::String &&value)
DescribeEventsRequest & AddEventCategories(Aws::String &&value)
DescribeEventsRequest & AddEventCategories(const Aws::String &value)
DescribeEventsRequest & WithFilters(Aws::Vector< Filter > &&value)
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