AWS SDK for C++

AWS SDK for C++ Version 1.11.606

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() = default;
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 template<typename SourceIdentifierT = Aws::String>
51 void SetSourceIdentifier(SourceIdentifierT&& value) { m_sourceIdentifierHasBeenSet = true; m_sourceIdentifier = std::forward<SourceIdentifierT>(value); }
52 template<typename SourceIdentifierT = Aws::String>
53 DescribeEventsRequest& WithSourceIdentifier(SourceIdentifierT&& value) { SetSourceIdentifier(std::forward<SourceIdentifierT>(value)); return *this;}
55
57
61 inline SourceType GetSourceType() const { return m_sourceType; }
62 inline bool SourceTypeHasBeenSet() const { return m_sourceTypeHasBeenSet; }
63 inline void SetSourceType(SourceType value) { m_sourceTypeHasBeenSet = true; m_sourceType = value; }
64 inline DescribeEventsRequest& WithSourceType(SourceType value) { SetSourceType(value); return *this;}
66
68
71 inline const Aws::Utils::DateTime& GetStartTime() const { return m_startTime; }
72 inline bool StartTimeHasBeenSet() const { return m_startTimeHasBeenSet; }
73 template<typename StartTimeT = Aws::Utils::DateTime>
74 void SetStartTime(StartTimeT&& value) { m_startTimeHasBeenSet = true; m_startTime = std::forward<StartTimeT>(value); }
75 template<typename StartTimeT = Aws::Utils::DateTime>
76 DescribeEventsRequest& WithStartTime(StartTimeT&& value) { SetStartTime(std::forward<StartTimeT>(value)); return *this;}
78
80
83 inline const Aws::Utils::DateTime& GetEndTime() const { return m_endTime; }
84 inline bool EndTimeHasBeenSet() const { return m_endTimeHasBeenSet; }
85 template<typename EndTimeT = Aws::Utils::DateTime>
86 void SetEndTime(EndTimeT&& value) { m_endTimeHasBeenSet = true; m_endTime = std::forward<EndTimeT>(value); }
87 template<typename EndTimeT = Aws::Utils::DateTime>
88 DescribeEventsRequest& WithEndTime(EndTimeT&& value) { SetEndTime(std::forward<EndTimeT>(value)); return *this;}
90
92
95 inline int GetDuration() const { return m_duration; }
96 inline bool DurationHasBeenSet() const { return m_durationHasBeenSet; }
97 inline void SetDuration(int value) { m_durationHasBeenSet = true; m_duration = value; }
98 inline DescribeEventsRequest& WithDuration(int value) { SetDuration(value); return *this;}
100
102
105 inline const Aws::Vector<Aws::String>& GetEventCategories() const { return m_eventCategories; }
106 inline bool EventCategoriesHasBeenSet() const { return m_eventCategoriesHasBeenSet; }
107 template<typename EventCategoriesT = Aws::Vector<Aws::String>>
108 void SetEventCategories(EventCategoriesT&& value) { m_eventCategoriesHasBeenSet = true; m_eventCategories = std::forward<EventCategoriesT>(value); }
109 template<typename EventCategoriesT = Aws::Vector<Aws::String>>
110 DescribeEventsRequest& WithEventCategories(EventCategoriesT&& value) { SetEventCategories(std::forward<EventCategoriesT>(value)); return *this;}
111 template<typename EventCategoriesT = Aws::String>
112 DescribeEventsRequest& AddEventCategories(EventCategoriesT&& value) { m_eventCategoriesHasBeenSet = true; m_eventCategories.emplace_back(std::forward<EventCategoriesT>(value)); return *this; }
114
116
120 inline const Aws::Vector<Filter>& GetFilters() const { return m_filters; }
121 inline bool FiltersHasBeenSet() const { return m_filtersHasBeenSet; }
122 template<typename FiltersT = Aws::Vector<Filter>>
123 void SetFilters(FiltersT&& value) { m_filtersHasBeenSet = true; m_filters = std::forward<FiltersT>(value); }
124 template<typename FiltersT = Aws::Vector<Filter>>
125 DescribeEventsRequest& WithFilters(FiltersT&& value) { SetFilters(std::forward<FiltersT>(value)); return *this;}
126 template<typename FiltersT = Filter>
127 DescribeEventsRequest& AddFilters(FiltersT&& value) { m_filtersHasBeenSet = true; m_filters.emplace_back(std::forward<FiltersT>(value)); return *this; }
129
131
137 inline int GetMaxRecords() const { return m_maxRecords; }
138 inline bool MaxRecordsHasBeenSet() const { return m_maxRecordsHasBeenSet; }
139 inline void SetMaxRecords(int value) { m_maxRecordsHasBeenSet = true; m_maxRecords = value; }
140 inline DescribeEventsRequest& WithMaxRecords(int value) { SetMaxRecords(value); return *this;}
142
144
149 inline const Aws::String& GetMarker() const { return m_marker; }
150 inline bool MarkerHasBeenSet() const { return m_markerHasBeenSet; }
151 template<typename MarkerT = Aws::String>
152 void SetMarker(MarkerT&& value) { m_markerHasBeenSet = true; m_marker = std::forward<MarkerT>(value); }
153 template<typename MarkerT = Aws::String>
154 DescribeEventsRequest& WithMarker(MarkerT&& value) { SetMarker(std::forward<MarkerT>(value)); return *this;}
156 private:
157
158 Aws::String m_sourceIdentifier;
159 bool m_sourceIdentifierHasBeenSet = false;
160
161 SourceType m_sourceType{SourceType::NOT_SET};
162 bool m_sourceTypeHasBeenSet = false;
163
164 Aws::Utils::DateTime m_startTime{};
165 bool m_startTimeHasBeenSet = false;
166
167 Aws::Utils::DateTime m_endTime{};
168 bool m_endTimeHasBeenSet = false;
169
170 int m_duration{0};
171 bool m_durationHasBeenSet = false;
172
173 Aws::Vector<Aws::String> m_eventCategories;
174 bool m_eventCategoriesHasBeenSet = false;
175
176 Aws::Vector<Filter> m_filters;
177 bool m_filtersHasBeenSet = false;
178
179 int m_maxRecords{0};
180 bool m_maxRecordsHasBeenSet = false;
181
182 Aws::String m_marker;
183 bool m_markerHasBeenSet = false;
184 };
185
186} // namespace Model
187} // namespace DatabaseMigrationService
188} // 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