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/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();
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 inline void SetSourceIdentifier(const Aws::String& value) { m_sourceIdentifierHasBeenSet = true; m_sourceIdentifier = value; }
68 inline void SetSourceIdentifier(Aws::String&& value) { m_sourceIdentifierHasBeenSet = true; m_sourceIdentifier = std::move(value); }
69 inline void SetSourceIdentifier(const char* value) { m_sourceIdentifierHasBeenSet = true; m_sourceIdentifier.assign(value); }
70 inline DescribeEventsRequest& WithSourceIdentifier(const Aws::String& value) { SetSourceIdentifier(value); return *this;}
71 inline DescribeEventsRequest& WithSourceIdentifier(Aws::String&& value) { SetSourceIdentifier(std::move(value)); return *this;}
72 inline DescribeEventsRequest& WithSourceIdentifier(const char* value) { SetSourceIdentifier(value); return *this;}
74
76
80 inline const SourceType& GetSourceType() const{ return m_sourceType; }
81 inline bool SourceTypeHasBeenSet() const { return m_sourceTypeHasBeenSet; }
82 inline void SetSourceType(const SourceType& value) { m_sourceTypeHasBeenSet = true; m_sourceType = value; }
83 inline void SetSourceType(SourceType&& value) { m_sourceTypeHasBeenSet = true; m_sourceType = std::move(value); }
84 inline DescribeEventsRequest& WithSourceType(const SourceType& value) { SetSourceType(value); return *this;}
85 inline DescribeEventsRequest& WithSourceType(SourceType&& value) { SetSourceType(std::move(value)); return *this;}
87
89
95 inline const Aws::Utils::DateTime& GetStartTime() const{ return m_startTime; }
96 inline bool StartTimeHasBeenSet() const { return m_startTimeHasBeenSet; }
97 inline void SetStartTime(const Aws::Utils::DateTime& value) { m_startTimeHasBeenSet = true; m_startTime = value; }
98 inline void SetStartTime(Aws::Utils::DateTime&& value) { m_startTimeHasBeenSet = true; m_startTime = std::move(value); }
99 inline DescribeEventsRequest& WithStartTime(const Aws::Utils::DateTime& value) { SetStartTime(value); return *this;}
100 inline DescribeEventsRequest& WithStartTime(Aws::Utils::DateTime&& value) { SetStartTime(std::move(value)); return *this;}
102
104
110 inline const Aws::Utils::DateTime& GetEndTime() const{ return m_endTime; }
111 inline bool EndTimeHasBeenSet() const { return m_endTimeHasBeenSet; }
112 inline void SetEndTime(const Aws::Utils::DateTime& value) { m_endTimeHasBeenSet = true; m_endTime = value; }
113 inline void SetEndTime(Aws::Utils::DateTime&& value) { m_endTimeHasBeenSet = true; m_endTime = std::move(value); }
114 inline DescribeEventsRequest& WithEndTime(const Aws::Utils::DateTime& value) { SetEndTime(value); return *this;}
115 inline DescribeEventsRequest& WithEndTime(Aws::Utils::DateTime&& value) { SetEndTime(std::move(value)); return *this;}
117
119
122 inline int GetDuration() const{ return m_duration; }
123 inline bool DurationHasBeenSet() const { return m_durationHasBeenSet; }
124 inline void SetDuration(int value) { m_durationHasBeenSet = true; m_duration = value; }
125 inline DescribeEventsRequest& WithDuration(int value) { SetDuration(value); return *this;}
127
129
133 inline const Aws::Vector<Aws::String>& GetEventCategories() const{ return m_eventCategories; }
134 inline bool EventCategoriesHasBeenSet() const { return m_eventCategoriesHasBeenSet; }
135 inline void SetEventCategories(const Aws::Vector<Aws::String>& value) { m_eventCategoriesHasBeenSet = true; m_eventCategories = value; }
136 inline void SetEventCategories(Aws::Vector<Aws::String>&& value) { m_eventCategoriesHasBeenSet = true; m_eventCategories = std::move(value); }
139 inline DescribeEventsRequest& AddEventCategories(const Aws::String& value) { m_eventCategoriesHasBeenSet = true; m_eventCategories.push_back(value); return *this; }
140 inline DescribeEventsRequest& AddEventCategories(Aws::String&& value) { m_eventCategoriesHasBeenSet = true; m_eventCategories.push_back(std::move(value)); return *this; }
141 inline DescribeEventsRequest& AddEventCategories(const char* value) { m_eventCategoriesHasBeenSet = true; m_eventCategories.push_back(value); return *this; }
143
145
148 inline const Aws::Vector<Filter>& GetFilters() const{ return m_filters; }
149 inline bool FiltersHasBeenSet() const { return m_filtersHasBeenSet; }
150 inline void SetFilters(const Aws::Vector<Filter>& value) { m_filtersHasBeenSet = true; m_filters = value; }
151 inline void SetFilters(Aws::Vector<Filter>&& value) { m_filtersHasBeenSet = true; m_filters = std::move(value); }
152 inline DescribeEventsRequest& WithFilters(const Aws::Vector<Filter>& value) { SetFilters(value); return *this;}
153 inline DescribeEventsRequest& WithFilters(Aws::Vector<Filter>&& value) { SetFilters(std::move(value)); return *this;}
154 inline DescribeEventsRequest& AddFilters(const Filter& value) { m_filtersHasBeenSet = true; m_filters.push_back(value); return *this; }
155 inline DescribeEventsRequest& AddFilters(Filter&& value) { m_filtersHasBeenSet = true; m_filters.push_back(std::move(value)); return *this; }
157
159
166 inline int GetMaxRecords() const{ return m_maxRecords; }
167 inline bool MaxRecordsHasBeenSet() const { return m_maxRecordsHasBeenSet; }
168 inline void SetMaxRecords(int value) { m_maxRecordsHasBeenSet = true; m_maxRecords = value; }
169 inline DescribeEventsRequest& WithMaxRecords(int value) { SetMaxRecords(value); return *this;}
171
173
178 inline const Aws::String& GetMarker() const{ return m_marker; }
179 inline bool MarkerHasBeenSet() const { return m_markerHasBeenSet; }
180 inline void SetMarker(const Aws::String& value) { m_markerHasBeenSet = true; m_marker = value; }
181 inline void SetMarker(Aws::String&& value) { m_markerHasBeenSet = true; m_marker = std::move(value); }
182 inline void SetMarker(const char* value) { m_markerHasBeenSet = true; m_marker.assign(value); }
183 inline DescribeEventsRequest& WithMarker(const Aws::String& value) { SetMarker(value); return *this;}
184 inline DescribeEventsRequest& WithMarker(Aws::String&& value) { SetMarker(std::move(value)); return *this;}
185 inline DescribeEventsRequest& WithMarker(const char* value) { SetMarker(value); return *this;}
187 private:
188
189 Aws::String m_sourceIdentifier;
190 bool m_sourceIdentifierHasBeenSet = false;
191
192 SourceType m_sourceType;
193 bool m_sourceTypeHasBeenSet = false;
194
195 Aws::Utils::DateTime m_startTime;
196 bool m_startTimeHasBeenSet = false;
197
198 Aws::Utils::DateTime m_endTime;
199 bool m_endTimeHasBeenSet = false;
200
201 int m_duration;
202 bool m_durationHasBeenSet = false;
203
204 Aws::Vector<Aws::String> m_eventCategories;
205 bool m_eventCategoriesHasBeenSet = false;
206
207 Aws::Vector<Filter> m_filters;
208 bool m_filtersHasBeenSet = false;
209
210 int m_maxRecords;
211 bool m_maxRecordsHasBeenSet = false;
212
213 Aws::String m_marker;
214 bool m_markerHasBeenSet = false;
215 };
216
217} // namespace Model
218} // namespace RDS
219} // namespace Aws
DescribeEventsRequest & WithSourceType(const SourceType &value)
DescribeEventsRequest & WithMarker(Aws::String &&value)
void SetFilters(Aws::Vector< Filter > &&value)
AWS_RDS_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
DescribeEventsRequest & WithMaxRecords(int value)
void SetStartTime(const Aws::Utils::DateTime &value)
DescribeEventsRequest & WithEventCategories(const Aws::Vector< Aws::String > &value)
const Aws::Vector< Filter > & GetFilters() const
void SetStartTime(Aws::Utils::DateTime &&value)
DescribeEventsRequest & WithMarker(const Aws::String &value)
DescribeEventsRequest & AddFilters(Filter &&value)
void SetSourceIdentifier(const Aws::String &value)
DescribeEventsRequest & WithEventCategories(Aws::Vector< Aws::String > &&value)
const Aws::Utils::DateTime & GetStartTime() const
DescribeEventsRequest & WithSourceIdentifier(const Aws::String &value)
DescribeEventsRequest & WithStartTime(Aws::Utils::DateTime &&value)
DescribeEventsRequest & WithEndTime(const Aws::Utils::DateTime &value)
DescribeEventsRequest & AddFilters(const Filter &value)
const Aws::String & GetSourceIdentifier() const
DescribeEventsRequest & WithSourceIdentifier(Aws::String &&value)
void SetEventCategories(const Aws::Vector< Aws::String > &value)
DescribeEventsRequest & AddEventCategories(const Aws::String &value)
DescribeEventsRequest & WithSourceType(SourceType &&value)
DescribeEventsRequest & WithFilters(const Aws::Vector< Filter > &value)
virtual const char * GetServiceRequestName() const override
DescribeEventsRequest & AddEventCategories(const char *value)
const Aws::Vector< Aws::String > & GetEventCategories() const
DescribeEventsRequest & WithFilters(Aws::Vector< Filter > &&value)
DescribeEventsRequest & WithEndTime(Aws::Utils::DateTime &&value)
DescribeEventsRequest & AddEventCategories(Aws::String &&value)
void SetFilters(const Aws::Vector< Filter > &value)
DescribeEventsRequest & WithSourceIdentifier(const char *value)
void SetEndTime(const Aws::Utils::DateTime &value)
DescribeEventsRequest & WithMarker(const char *value)
void SetEventCategories(Aws::Vector< Aws::String > &&value)
void SetMarker(const Aws::String &value)
DescribeEventsRequest & WithStartTime(const Aws::Utils::DateTime &value)
void SetEndTime(Aws::Utils::DateTime &&value)
AWS_RDS_API Aws::String SerializePayload() const override
void SetSourceType(const SourceType &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