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/neptune/Neptune_EXPORTS.h>
8#include <aws/neptune/NeptuneRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/neptune/model/SourceType.h>
11#include <aws/core/utils/DateTime.h>
12#include <aws/core/utils/memory/stl/AWSVector.h>
13#include <aws/neptune/model/Filter.h>
14#include <utility>
15
16namespace Aws
17{
18namespace Neptune
19{
20namespace Model
21{
22
26 {
27 public:
28 AWS_NEPTUNE_API DescribeEventsRequest();
29
30 // Service request name is the Operation name which will send this request out,
31 // each operation should has unique request name, so that we can get operation's name from this request.
32 // Note: this is not true for response, multiple operations may have the same response name,
33 // so we can not get operation's name from response.
34 inline virtual const char* GetServiceRequestName() const override { return "DescribeEvents"; }
35
36 AWS_NEPTUNE_API Aws::String SerializePayload() const override;
37
38 protected:
39 AWS_NEPTUNE_API void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
40
41 public:
42
44
58 inline const Aws::String& GetSourceIdentifier() const{ return m_sourceIdentifier; }
59 inline bool SourceIdentifierHasBeenSet() const { return m_sourceIdentifierHasBeenSet; }
60 inline void SetSourceIdentifier(const Aws::String& value) { m_sourceIdentifierHasBeenSet = true; m_sourceIdentifier = value; }
61 inline void SetSourceIdentifier(Aws::String&& value) { m_sourceIdentifierHasBeenSet = true; m_sourceIdentifier = std::move(value); }
62 inline void SetSourceIdentifier(const char* value) { m_sourceIdentifierHasBeenSet = true; m_sourceIdentifier.assign(value); }
63 inline DescribeEventsRequest& WithSourceIdentifier(const Aws::String& value) { SetSourceIdentifier(value); return *this;}
64 inline DescribeEventsRequest& WithSourceIdentifier(Aws::String&& value) { SetSourceIdentifier(std::move(value)); return *this;}
65 inline DescribeEventsRequest& WithSourceIdentifier(const char* value) { SetSourceIdentifier(value); return *this;}
67
69
73 inline const SourceType& GetSourceType() const{ return m_sourceType; }
74 inline bool SourceTypeHasBeenSet() const { return m_sourceTypeHasBeenSet; }
75 inline void SetSourceType(const SourceType& value) { m_sourceTypeHasBeenSet = true; m_sourceType = value; }
76 inline void SetSourceType(SourceType&& value) { m_sourceTypeHasBeenSet = true; m_sourceType = std::move(value); }
77 inline DescribeEventsRequest& WithSourceType(const SourceType& value) { SetSourceType(value); return *this;}
78 inline DescribeEventsRequest& WithSourceType(SourceType&& value) { SetSourceType(std::move(value)); return *this;}
80
82
88 inline const Aws::Utils::DateTime& GetStartTime() const{ return m_startTime; }
89 inline bool StartTimeHasBeenSet() const { return m_startTimeHasBeenSet; }
90 inline void SetStartTime(const Aws::Utils::DateTime& value) { m_startTimeHasBeenSet = true; m_startTime = value; }
91 inline void SetStartTime(Aws::Utils::DateTime&& value) { m_startTimeHasBeenSet = true; m_startTime = std::move(value); }
92 inline DescribeEventsRequest& WithStartTime(const Aws::Utils::DateTime& value) { SetStartTime(value); return *this;}
93 inline DescribeEventsRequest& WithStartTime(Aws::Utils::DateTime&& value) { SetStartTime(std::move(value)); return *this;}
95
97
103 inline const Aws::Utils::DateTime& GetEndTime() const{ return m_endTime; }
104 inline bool EndTimeHasBeenSet() const { return m_endTimeHasBeenSet; }
105 inline void SetEndTime(const Aws::Utils::DateTime& value) { m_endTimeHasBeenSet = true; m_endTime = value; }
106 inline void SetEndTime(Aws::Utils::DateTime&& value) { m_endTimeHasBeenSet = true; m_endTime = std::move(value); }
107 inline DescribeEventsRequest& WithEndTime(const Aws::Utils::DateTime& value) { SetEndTime(value); return *this;}
108 inline DescribeEventsRequest& WithEndTime(Aws::Utils::DateTime&& value) { SetEndTime(std::move(value)); return *this;}
110
112
115 inline int GetDuration() const{ return m_duration; }
116 inline bool DurationHasBeenSet() const { return m_durationHasBeenSet; }
117 inline void SetDuration(int value) { m_durationHasBeenSet = true; m_duration = value; }
118 inline DescribeEventsRequest& WithDuration(int value) { SetDuration(value); return *this;}
120
122
126 inline const Aws::Vector<Aws::String>& GetEventCategories() const{ return m_eventCategories; }
127 inline bool EventCategoriesHasBeenSet() const { return m_eventCategoriesHasBeenSet; }
128 inline void SetEventCategories(const Aws::Vector<Aws::String>& value) { m_eventCategoriesHasBeenSet = true; m_eventCategories = value; }
129 inline void SetEventCategories(Aws::Vector<Aws::String>&& value) { m_eventCategoriesHasBeenSet = true; m_eventCategories = std::move(value); }
132 inline DescribeEventsRequest& AddEventCategories(const Aws::String& value) { m_eventCategoriesHasBeenSet = true; m_eventCategories.push_back(value); return *this; }
133 inline DescribeEventsRequest& AddEventCategories(Aws::String&& value) { m_eventCategoriesHasBeenSet = true; m_eventCategories.push_back(std::move(value)); return *this; }
134 inline DescribeEventsRequest& AddEventCategories(const char* value) { m_eventCategoriesHasBeenSet = true; m_eventCategories.push_back(value); return *this; }
136
138
141 inline const Aws::Vector<Filter>& GetFilters() const{ return m_filters; }
142 inline bool FiltersHasBeenSet() const { return m_filtersHasBeenSet; }
143 inline void SetFilters(const Aws::Vector<Filter>& value) { m_filtersHasBeenSet = true; m_filters = value; }
144 inline void SetFilters(Aws::Vector<Filter>&& value) { m_filtersHasBeenSet = true; m_filters = std::move(value); }
145 inline DescribeEventsRequest& WithFilters(const Aws::Vector<Filter>& value) { SetFilters(value); return *this;}
146 inline DescribeEventsRequest& WithFilters(Aws::Vector<Filter>&& value) { SetFilters(std::move(value)); return *this;}
147 inline DescribeEventsRequest& AddFilters(const Filter& value) { m_filtersHasBeenSet = true; m_filters.push_back(value); return *this; }
148 inline DescribeEventsRequest& AddFilters(Filter&& value) { m_filtersHasBeenSet = true; m_filters.push_back(std::move(value)); return *this; }
150
152
158 inline int GetMaxRecords() const{ return m_maxRecords; }
159 inline bool MaxRecordsHasBeenSet() const { return m_maxRecordsHasBeenSet; }
160 inline void SetMaxRecords(int value) { m_maxRecordsHasBeenSet = true; m_maxRecords = value; }
161 inline DescribeEventsRequest& WithMaxRecords(int value) { SetMaxRecords(value); return *this;}
163
165
170 inline const Aws::String& GetMarker() const{ return m_marker; }
171 inline bool MarkerHasBeenSet() const { return m_markerHasBeenSet; }
172 inline void SetMarker(const Aws::String& value) { m_markerHasBeenSet = true; m_marker = value; }
173 inline void SetMarker(Aws::String&& value) { m_markerHasBeenSet = true; m_marker = std::move(value); }
174 inline void SetMarker(const char* value) { m_markerHasBeenSet = true; m_marker.assign(value); }
175 inline DescribeEventsRequest& WithMarker(const Aws::String& value) { SetMarker(value); return *this;}
176 inline DescribeEventsRequest& WithMarker(Aws::String&& value) { SetMarker(std::move(value)); return *this;}
177 inline DescribeEventsRequest& WithMarker(const char* value) { SetMarker(value); return *this;}
179 private:
180
181 Aws::String m_sourceIdentifier;
182 bool m_sourceIdentifierHasBeenSet = false;
183
184 SourceType m_sourceType;
185 bool m_sourceTypeHasBeenSet = false;
186
187 Aws::Utils::DateTime m_startTime;
188 bool m_startTimeHasBeenSet = false;
189
190 Aws::Utils::DateTime m_endTime;
191 bool m_endTimeHasBeenSet = false;
192
193 int m_duration;
194 bool m_durationHasBeenSet = false;
195
196 Aws::Vector<Aws::String> m_eventCategories;
197 bool m_eventCategoriesHasBeenSet = false;
198
199 Aws::Vector<Filter> m_filters;
200 bool m_filtersHasBeenSet = false;
201
202 int m_maxRecords;
203 bool m_maxRecordsHasBeenSet = false;
204
205 Aws::String m_marker;
206 bool m_markerHasBeenSet = false;
207 };
208
209} // namespace Model
210} // namespace Neptune
211} // namespace Aws
DescribeEventsRequest & WithFilters(Aws::Vector< Filter > &&value)
const Aws::Vector< Aws::String > & GetEventCategories() const
DescribeEventsRequest & WithFilters(const Aws::Vector< Filter > &value)
AWS_NEPTUNE_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
void SetStartTime(const Aws::Utils::DateTime &value)
DescribeEventsRequest & WithSourceType(const SourceType &value)
DescribeEventsRequest & WithSourceIdentifier(const char *value)
DescribeEventsRequest & AddEventCategories(const char *value)
DescribeEventsRequest & WithSourceIdentifier(const Aws::String &value)
const Aws::Utils::DateTime & GetStartTime() const
void SetFilters(const Aws::Vector< Filter > &value)
DescribeEventsRequest & AddFilters(Filter &&value)
DescribeEventsRequest & WithEventCategories(const Aws::Vector< Aws::String > &value)
void SetSourceIdentifier(const Aws::String &value)
DescribeEventsRequest & WithSourceIdentifier(Aws::String &&value)
DescribeEventsRequest & WithEventCategories(Aws::Vector< Aws::String > &&value)
DescribeEventsRequest & WithMarker(const Aws::String &value)
DescribeEventsRequest & WithEndTime(Aws::Utils::DateTime &&value)
void SetEndTime(Aws::Utils::DateTime &&value)
const Aws::Vector< Filter > & GetFilters() const
DescribeEventsRequest & WithDuration(int value)
const Aws::Utils::DateTime & GetEndTime() const
DescribeEventsRequest & WithSourceType(SourceType &&value)
virtual const char * GetServiceRequestName() const override
void SetEndTime(const Aws::Utils::DateTime &value)
DescribeEventsRequest & WithEndTime(const Aws::Utils::DateTime &value)
DescribeEventsRequest & AddEventCategories(Aws::String &&value)
DescribeEventsRequest & WithMarker(Aws::String &&value)
DescribeEventsRequest & AddFilters(const Filter &value)
DescribeEventsRequest & WithMaxRecords(int value)
void SetFilters(Aws::Vector< Filter > &&value)
void SetEventCategories(Aws::Vector< Aws::String > &&value)
DescribeEventsRequest & WithStartTime(const Aws::Utils::DateTime &value)
DescribeEventsRequest & WithMarker(const char *value)
DescribeEventsRequest & AddEventCategories(const Aws::String &value)
void SetStartTime(Aws::Utils::DateTime &&value)
void SetEventCategories(const Aws::Vector< Aws::String > &value)
DescribeEventsRequest & WithStartTime(Aws::Utils::DateTime &&value)
AWS_NEPTUNE_API Aws::String SerializePayload() const override
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector