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/rds/RDS_EXPORTS.h>
8#include <aws/rds/RDSRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/rds/model/SourceType.h>
11#include <aws/core/utils/DateTime.h>
12#include <aws/core/utils/memory/stl/AWSVector.h>
13#include <aws/rds/model/Filter.h>
14#include <utility>
15
16namespace Aws
17{
18namespace RDS
19{
20namespace Model
21{
22
29 {
30 public:
31 AWS_RDS_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_RDS_API Aws::String SerializePayload() const override;
40
41 protected:
42 AWS_RDS_API void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
43
44 public:
45
47
65 inline const Aws::String& GetSourceIdentifier() const { return m_sourceIdentifier; }
66 inline bool SourceIdentifierHasBeenSet() const { return m_sourceIdentifierHasBeenSet; }
67 template<typename SourceIdentifierT = Aws::String>
68 void SetSourceIdentifier(SourceIdentifierT&& value) { m_sourceIdentifierHasBeenSet = true; m_sourceIdentifier = std::forward<SourceIdentifierT>(value); }
69 template<typename SourceIdentifierT = Aws::String>
70 DescribeEventsRequest& WithSourceIdentifier(SourceIdentifierT&& value) { SetSourceIdentifier(std::forward<SourceIdentifierT>(value)); return *this;}
72
74
78 inline SourceType GetSourceType() const { return m_sourceType; }
79 inline bool SourceTypeHasBeenSet() const { return m_sourceTypeHasBeenSet; }
80 inline void SetSourceType(SourceType value) { m_sourceTypeHasBeenSet = true; m_sourceType = value; }
81 inline DescribeEventsRequest& WithSourceType(SourceType value) { SetSourceType(value); return *this;}
83
85
91 inline const Aws::Utils::DateTime& GetStartTime() const { return m_startTime; }
92 inline bool StartTimeHasBeenSet() const { return m_startTimeHasBeenSet; }
93 template<typename StartTimeT = Aws::Utils::DateTime>
94 void SetStartTime(StartTimeT&& value) { m_startTimeHasBeenSet = true; m_startTime = std::forward<StartTimeT>(value); }
95 template<typename StartTimeT = Aws::Utils::DateTime>
96 DescribeEventsRequest& WithStartTime(StartTimeT&& value) { SetStartTime(std::forward<StartTimeT>(value)); return *this;}
98
100
106 inline const Aws::Utils::DateTime& GetEndTime() const { return m_endTime; }
107 inline bool EndTimeHasBeenSet() const { return m_endTimeHasBeenSet; }
108 template<typename EndTimeT = Aws::Utils::DateTime>
109 void SetEndTime(EndTimeT&& value) { m_endTimeHasBeenSet = true; m_endTime = std::forward<EndTimeT>(value); }
110 template<typename EndTimeT = Aws::Utils::DateTime>
111 DescribeEventsRequest& WithEndTime(EndTimeT&& value) { SetEndTime(std::forward<EndTimeT>(value)); return *this;}
113
115
118 inline int GetDuration() const { return m_duration; }
119 inline bool DurationHasBeenSet() const { return m_durationHasBeenSet; }
120 inline void SetDuration(int value) { m_durationHasBeenSet = true; m_duration = value; }
121 inline DescribeEventsRequest& WithDuration(int value) { SetDuration(value); return *this;}
123
125
129 inline const Aws::Vector<Aws::String>& GetEventCategories() const { return m_eventCategories; }
130 inline bool EventCategoriesHasBeenSet() const { return m_eventCategoriesHasBeenSet; }
131 template<typename EventCategoriesT = Aws::Vector<Aws::String>>
132 void SetEventCategories(EventCategoriesT&& value) { m_eventCategoriesHasBeenSet = true; m_eventCategories = std::forward<EventCategoriesT>(value); }
133 template<typename EventCategoriesT = Aws::Vector<Aws::String>>
134 DescribeEventsRequest& WithEventCategories(EventCategoriesT&& value) { SetEventCategories(std::forward<EventCategoriesT>(value)); return *this;}
135 template<typename EventCategoriesT = Aws::String>
136 DescribeEventsRequest& AddEventCategories(EventCategoriesT&& value) { m_eventCategoriesHasBeenSet = true; m_eventCategories.emplace_back(std::forward<EventCategoriesT>(value)); return *this; }
138
140
143 inline const Aws::Vector<Filter>& GetFilters() const { return m_filters; }
144 inline bool FiltersHasBeenSet() const { return m_filtersHasBeenSet; }
145 template<typename FiltersT = Aws::Vector<Filter>>
146 void SetFilters(FiltersT&& value) { m_filtersHasBeenSet = true; m_filters = std::forward<FiltersT>(value); }
147 template<typename FiltersT = Aws::Vector<Filter>>
148 DescribeEventsRequest& WithFilters(FiltersT&& value) { SetFilters(std::forward<FiltersT>(value)); return *this;}
149 template<typename FiltersT = Filter>
150 DescribeEventsRequest& AddFilters(FiltersT&& value) { m_filtersHasBeenSet = true; m_filters.emplace_back(std::forward<FiltersT>(value)); return *this; }
152
154
161 inline int GetMaxRecords() const { return m_maxRecords; }
162 inline bool MaxRecordsHasBeenSet() const { return m_maxRecordsHasBeenSet; }
163 inline void SetMaxRecords(int value) { m_maxRecordsHasBeenSet = true; m_maxRecords = value; }
164 inline DescribeEventsRequest& WithMaxRecords(int value) { SetMaxRecords(value); return *this;}
166
168
173 inline const Aws::String& GetMarker() const { return m_marker; }
174 inline bool MarkerHasBeenSet() const { return m_markerHasBeenSet; }
175 template<typename MarkerT = Aws::String>
176 void SetMarker(MarkerT&& value) { m_markerHasBeenSet = true; m_marker = std::forward<MarkerT>(value); }
177 template<typename MarkerT = Aws::String>
178 DescribeEventsRequest& WithMarker(MarkerT&& value) { SetMarker(std::forward<MarkerT>(value)); return *this;}
180 private:
181
182 Aws::String m_sourceIdentifier;
183 bool m_sourceIdentifierHasBeenSet = false;
184
185 SourceType m_sourceType{SourceType::NOT_SET};
186 bool m_sourceTypeHasBeenSet = false;
187
188 Aws::Utils::DateTime m_startTime{};
189 bool m_startTimeHasBeenSet = false;
190
191 Aws::Utils::DateTime m_endTime{};
192 bool m_endTimeHasBeenSet = false;
193
194 int m_duration{0};
195 bool m_durationHasBeenSet = false;
196
197 Aws::Vector<Aws::String> m_eventCategories;
198 bool m_eventCategoriesHasBeenSet = false;
199
200 Aws::Vector<Filter> m_filters;
201 bool m_filtersHasBeenSet = false;
202
203 int m_maxRecords{0};
204 bool m_maxRecordsHasBeenSet = false;
205
206 Aws::String m_marker;
207 bool m_markerHasBeenSet = false;
208 };
209
210} // namespace Model
211} // namespace RDS
212} // namespace Aws
DescribeEventsRequest & WithEndTime(EndTimeT &&value)
DescribeEventsRequest & WithSourceIdentifier(SourceIdentifierT &&value)
AWS_RDS_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
AWS_RDS_API DescribeEventsRequest()=default
DescribeEventsRequest & WithMaxRecords(int value)
const Aws::Vector< Filter > & GetFilters() const
DescribeEventsRequest & AddEventCategories(EventCategoriesT &&value)
DescribeEventsRequest & WithStartTime(StartTimeT &&value)
const Aws::Utils::DateTime & GetStartTime() const
void SetEventCategories(EventCategoriesT &&value)
void SetSourceIdentifier(SourceIdentifierT &&value)
const Aws::String & GetSourceIdentifier() const
DescribeEventsRequest & WithFilters(FiltersT &&value)
virtual const char * GetServiceRequestName() const override
const Aws::Vector< Aws::String > & GetEventCategories() const
DescribeEventsRequest & WithSourceType(SourceType value)
DescribeEventsRequest & WithEventCategories(EventCategoriesT &&value)
DescribeEventsRequest & AddFilters(FiltersT &&value)
AWS_RDS_API Aws::String SerializePayload() const override
DescribeEventsRequest & WithMarker(MarkerT &&value)
const Aws::Utils::DateTime & GetEndTime() const
DescribeEventsRequest & WithDuration(int value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector