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/docdb/DocDB_EXPORTS.h>
8#include <aws/docdb/DocDBRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/docdb/model/SourceType.h>
11#include <aws/core/utils/DateTime.h>
12#include <aws/core/utils/memory/stl/AWSVector.h>
13#include <aws/docdb/model/Filter.h>
14#include <utility>
15
16namespace Aws
17{
18namespace DocDB
19{
20namespace Model
21{
22
29 {
30 public:
31 AWS_DOCDB_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_DOCDB_API Aws::String SerializePayload() const override;
40
41 protected:
42 AWS_DOCDB_API void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
43
44 public:
45
47
61 inline const Aws::String& GetSourceIdentifier() const{ return m_sourceIdentifier; }
62 inline bool SourceIdentifierHasBeenSet() const { return m_sourceIdentifierHasBeenSet; }
63 inline void SetSourceIdentifier(const Aws::String& value) { m_sourceIdentifierHasBeenSet = true; m_sourceIdentifier = value; }
64 inline void SetSourceIdentifier(Aws::String&& value) { m_sourceIdentifierHasBeenSet = true; m_sourceIdentifier = std::move(value); }
65 inline void SetSourceIdentifier(const char* value) { m_sourceIdentifierHasBeenSet = true; m_sourceIdentifier.assign(value); }
66 inline DescribeEventsRequest& WithSourceIdentifier(const Aws::String& value) { SetSourceIdentifier(value); return *this;}
67 inline DescribeEventsRequest& WithSourceIdentifier(Aws::String&& value) { SetSourceIdentifier(std::move(value)); return *this;}
68 inline DescribeEventsRequest& WithSourceIdentifier(const char* value) { SetSourceIdentifier(value); return *this;}
70
72
76 inline const SourceType& GetSourceType() const{ return m_sourceType; }
77 inline bool SourceTypeHasBeenSet() const { return m_sourceTypeHasBeenSet; }
78 inline void SetSourceType(const SourceType& value) { m_sourceTypeHasBeenSet = true; m_sourceType = value; }
79 inline void SetSourceType(SourceType&& value) { m_sourceTypeHasBeenSet = true; m_sourceType = std::move(value); }
80 inline DescribeEventsRequest& WithSourceType(const SourceType& value) { SetSourceType(value); return *this;}
81 inline DescribeEventsRequest& WithSourceType(SourceType&& value) { SetSourceType(std::move(value)); return *this;}
83
85
89 inline const Aws::Utils::DateTime& GetStartTime() const{ return m_startTime; }
90 inline bool StartTimeHasBeenSet() const { return m_startTimeHasBeenSet; }
91 inline void SetStartTime(const Aws::Utils::DateTime& value) { m_startTimeHasBeenSet = true; m_startTime = value; }
92 inline void SetStartTime(Aws::Utils::DateTime&& value) { m_startTimeHasBeenSet = true; m_startTime = std::move(value); }
93 inline DescribeEventsRequest& WithStartTime(const Aws::Utils::DateTime& value) { SetStartTime(value); return *this;}
94 inline DescribeEventsRequest& WithStartTime(Aws::Utils::DateTime&& value) { SetStartTime(std::move(value)); return *this;}
96
98
102 inline const Aws::Utils::DateTime& GetEndTime() const{ return m_endTime; }
103 inline bool EndTimeHasBeenSet() const { return m_endTimeHasBeenSet; }
104 inline void SetEndTime(const Aws::Utils::DateTime& value) { m_endTimeHasBeenSet = true; m_endTime = value; }
105 inline void SetEndTime(Aws::Utils::DateTime&& value) { m_endTimeHasBeenSet = true; m_endTime = std::move(value); }
106 inline DescribeEventsRequest& WithEndTime(const Aws::Utils::DateTime& value) { SetEndTime(value); return *this;}
107 inline DescribeEventsRequest& WithEndTime(Aws::Utils::DateTime&& value) { SetEndTime(std::move(value)); return *this;}
109
111
114 inline int GetDuration() const{ return m_duration; }
115 inline bool DurationHasBeenSet() const { return m_durationHasBeenSet; }
116 inline void SetDuration(int value) { m_durationHasBeenSet = true; m_duration = value; }
117 inline DescribeEventsRequest& WithDuration(int value) { SetDuration(value); return *this;}
119
121
125 inline const Aws::Vector<Aws::String>& GetEventCategories() const{ return m_eventCategories; }
126 inline bool EventCategoriesHasBeenSet() const { return m_eventCategoriesHasBeenSet; }
127 inline void SetEventCategories(const Aws::Vector<Aws::String>& value) { m_eventCategoriesHasBeenSet = true; m_eventCategories = value; }
128 inline void SetEventCategories(Aws::Vector<Aws::String>&& value) { m_eventCategoriesHasBeenSet = true; m_eventCategories = std::move(value); }
131 inline DescribeEventsRequest& AddEventCategories(const Aws::String& value) { m_eventCategoriesHasBeenSet = true; m_eventCategories.push_back(value); return *this; }
132 inline DescribeEventsRequest& AddEventCategories(Aws::String&& value) { m_eventCategoriesHasBeenSet = true; m_eventCategories.push_back(std::move(value)); return *this; }
133 inline DescribeEventsRequest& AddEventCategories(const char* value) { m_eventCategoriesHasBeenSet = true; m_eventCategories.push_back(value); return *this; }
135
137
140 inline const Aws::Vector<Filter>& GetFilters() const{ return m_filters; }
141 inline bool FiltersHasBeenSet() const { return m_filtersHasBeenSet; }
142 inline void SetFilters(const Aws::Vector<Filter>& value) { m_filtersHasBeenSet = true; m_filters = value; }
143 inline void SetFilters(Aws::Vector<Filter>&& value) { m_filtersHasBeenSet = true; m_filters = std::move(value); }
144 inline DescribeEventsRequest& WithFilters(const Aws::Vector<Filter>& value) { SetFilters(value); return *this;}
145 inline DescribeEventsRequest& WithFilters(Aws::Vector<Filter>&& value) { SetFilters(std::move(value)); return *this;}
146 inline DescribeEventsRequest& AddFilters(const Filter& value) { m_filtersHasBeenSet = true; m_filters.push_back(value); return *this; }
147 inline DescribeEventsRequest& AddFilters(Filter&& value) { m_filtersHasBeenSet = true; m_filters.push_back(std::move(value)); return *this; }
149
151
157 inline int GetMaxRecords() const{ return m_maxRecords; }
158 inline bool MaxRecordsHasBeenSet() const { return m_maxRecordsHasBeenSet; }
159 inline void SetMaxRecords(int value) { m_maxRecordsHasBeenSet = true; m_maxRecords = value; }
160 inline DescribeEventsRequest& WithMaxRecords(int value) { SetMaxRecords(value); return *this;}
162
164
169 inline const Aws::String& GetMarker() const{ return m_marker; }
170 inline bool MarkerHasBeenSet() const { return m_markerHasBeenSet; }
171 inline void SetMarker(const Aws::String& value) { m_markerHasBeenSet = true; m_marker = value; }
172 inline void SetMarker(Aws::String&& value) { m_markerHasBeenSet = true; m_marker = std::move(value); }
173 inline void SetMarker(const char* value) { m_markerHasBeenSet = true; m_marker.assign(value); }
174 inline DescribeEventsRequest& WithMarker(const Aws::String& value) { SetMarker(value); return *this;}
175 inline DescribeEventsRequest& WithMarker(Aws::String&& value) { SetMarker(std::move(value)); return *this;}
176 inline DescribeEventsRequest& WithMarker(const char* value) { SetMarker(value); return *this;}
178 private:
179
180 Aws::String m_sourceIdentifier;
181 bool m_sourceIdentifierHasBeenSet = false;
182
183 SourceType m_sourceType;
184 bool m_sourceTypeHasBeenSet = false;
185
186 Aws::Utils::DateTime m_startTime;
187 bool m_startTimeHasBeenSet = false;
188
189 Aws::Utils::DateTime m_endTime;
190 bool m_endTimeHasBeenSet = false;
191
192 int m_duration;
193 bool m_durationHasBeenSet = false;
194
195 Aws::Vector<Aws::String> m_eventCategories;
196 bool m_eventCategoriesHasBeenSet = false;
197
198 Aws::Vector<Filter> m_filters;
199 bool m_filtersHasBeenSet = false;
200
201 int m_maxRecords;
202 bool m_maxRecordsHasBeenSet = false;
203
204 Aws::String m_marker;
205 bool m_markerHasBeenSet = false;
206 };
207
208} // namespace Model
209} // namespace DocDB
210} // namespace Aws
void SetEventCategories(const Aws::Vector< Aws::String > &value)
DescribeEventsRequest & AddFilters(const Filter &value)
const Aws::Utils::DateTime & GetEndTime() const
DescribeEventsRequest & AddFilters(Filter &&value)
AWS_DOCDB_API Aws::String SerializePayload() const override
void SetStartTime(Aws::Utils::DateTime &&value)
void SetStartTime(const Aws::Utils::DateTime &value)
void SetFilters(const Aws::Vector< Filter > &value)
const Aws::Vector< Aws::String > & GetEventCategories() const
const Aws::Utils::DateTime & GetStartTime() const
DescribeEventsRequest & WithMarker(const Aws::String &value)
DescribeEventsRequest & WithSourceIdentifier(const char *value)
void SetSourceIdentifier(const Aws::String &value)
void SetEventCategories(Aws::Vector< Aws::String > &&value)
DescribeEventsRequest & WithEventCategories(const Aws::Vector< Aws::String > &value)
DescribeEventsRequest & WithMaxRecords(int value)
void SetEndTime(const Aws::Utils::DateTime &value)
const Aws::String & GetSourceIdentifier() const
void SetSourceType(const SourceType &value)
DescribeEventsRequest & WithSourceIdentifier(const Aws::String &value)
DescribeEventsRequest & WithEndTime(const Aws::Utils::DateTime &value)
DescribeEventsRequest & WithSourceType(const SourceType &value)
DescribeEventsRequest & WithStartTime(Aws::Utils::DateTime &&value)
DescribeEventsRequest & AddEventCategories(const char *value)
DescribeEventsRequest & WithSourceIdentifier(Aws::String &&value)
const Aws::Vector< Filter > & GetFilters() const
void SetFilters(Aws::Vector< Filter > &&value)
DescribeEventsRequest & WithMarker(const char *value)
DescribeEventsRequest & AddEventCategories(Aws::String &&value)
virtual const char * GetServiceRequestName() const override
DescribeEventsRequest & WithSourceType(SourceType &&value)
void SetEndTime(Aws::Utils::DateTime &&value)
DescribeEventsRequest & WithDuration(int value)
DescribeEventsRequest & WithFilters(Aws::Vector< Filter > &&value)
DescribeEventsRequest & WithFilters(const Aws::Vector< Filter > &value)
DescribeEventsRequest & WithEndTime(Aws::Utils::DateTime &&value)
DescribeEventsRequest & WithStartTime(const Aws::Utils::DateTime &value)
AWS_DOCDB_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
DescribeEventsRequest & WithMarker(Aws::String &&value)
DescribeEventsRequest & WithEventCategories(Aws::Vector< Aws::String > &&value)
DescribeEventsRequest & AddEventCategories(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector