AWS SDK for C++

AWS SDK for C++ Version 1.11.714

Loading...
Searching...
No Matches
DescribeEventsRequest.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/redshift/RedshiftRequest.h>
10#include <aws/redshift/Redshift_EXPORTS.h>
11#include <aws/redshift/model/SourceType.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Redshift {
17namespace Model {
18
25 public:
26 AWS_REDSHIFT_API DescribeEventsRequest() = default;
27
28 // Service request name is the Operation name which will send this request out,
29 // each operation should has unique request name, so that we can get operation's name from this request.
30 // Note: this is not true for response, multiple operations may have the same response name,
31 // so we can not get operation's name from response.
32 inline virtual const char* GetServiceRequestName() const override { return "DescribeEvents"; }
33
34 AWS_REDSHIFT_API Aws::String SerializePayload() const override;
35
36 protected:
37 AWS_REDSHIFT_API void DumpBodyToUrl(Aws::Http::URI& uri) const override;
38
39 public:
41
54 inline const Aws::String& GetSourceIdentifier() const { return m_sourceIdentifier; }
55 inline bool SourceIdentifierHasBeenSet() const { return m_sourceIdentifierHasBeenSet; }
56 template <typename SourceIdentifierT = Aws::String>
57 void SetSourceIdentifier(SourceIdentifierT&& value) {
58 m_sourceIdentifierHasBeenSet = true;
59 m_sourceIdentifier = std::forward<SourceIdentifierT>(value);
60 }
61 template <typename SourceIdentifierT = Aws::String>
62 DescribeEventsRequest& WithSourceIdentifier(SourceIdentifierT&& value) {
63 SetSourceIdentifier(std::forward<SourceIdentifierT>(value));
64 return *this;
65 }
67
69
81 inline SourceType GetSourceType() const { return m_sourceType; }
82 inline bool SourceTypeHasBeenSet() const { return m_sourceTypeHasBeenSet; }
83 inline void SetSourceType(SourceType value) {
84 m_sourceTypeHasBeenSet = true;
85 m_sourceType = value;
86 }
88 SetSourceType(value);
89 return *this;
90 }
92
94
100 inline const Aws::Utils::DateTime& GetStartTime() const { return m_startTime; }
101 inline bool StartTimeHasBeenSet() const { return m_startTimeHasBeenSet; }
102 template <typename StartTimeT = Aws::Utils::DateTime>
103 void SetStartTime(StartTimeT&& value) {
104 m_startTimeHasBeenSet = true;
105 m_startTime = std::forward<StartTimeT>(value);
106 }
107 template <typename StartTimeT = Aws::Utils::DateTime>
109 SetStartTime(std::forward<StartTimeT>(value));
110 return *this;
111 }
113
115
121 inline const Aws::Utils::DateTime& GetEndTime() const { return m_endTime; }
122 inline bool EndTimeHasBeenSet() const { return m_endTimeHasBeenSet; }
123 template <typename EndTimeT = Aws::Utils::DateTime>
124 void SetEndTime(EndTimeT&& value) {
125 m_endTimeHasBeenSet = true;
126 m_endTime = std::forward<EndTimeT>(value);
127 }
128 template <typename EndTimeT = Aws::Utils::DateTime>
130 SetEndTime(std::forward<EndTimeT>(value));
131 return *this;
132 }
134
136
142 inline int GetDuration() const { return m_duration; }
143 inline bool DurationHasBeenSet() const { return m_durationHasBeenSet; }
144 inline void SetDuration(int value) {
145 m_durationHasBeenSet = true;
146 m_duration = value;
147 }
149 SetDuration(value);
150 return *this;
151 }
153
155
163 inline int GetMaxRecords() const { return m_maxRecords; }
164 inline bool MaxRecordsHasBeenSet() const { return m_maxRecordsHasBeenSet; }
165 inline void SetMaxRecords(int value) {
166 m_maxRecordsHasBeenSet = true;
167 m_maxRecords = value;
168 }
170 SetMaxRecords(value);
171 return *this;
172 }
174
176
184 inline const Aws::String& GetMarker() const { return m_marker; }
185 inline bool MarkerHasBeenSet() const { return m_markerHasBeenSet; }
186 template <typename MarkerT = Aws::String>
187 void SetMarker(MarkerT&& value) {
188 m_markerHasBeenSet = true;
189 m_marker = std::forward<MarkerT>(value);
190 }
191 template <typename MarkerT = Aws::String>
193 SetMarker(std::forward<MarkerT>(value));
194 return *this;
195 }
197 private:
198 Aws::String m_sourceIdentifier;
199
200 SourceType m_sourceType{SourceType::NOT_SET};
201
202 Aws::Utils::DateTime m_startTime{};
203
204 Aws::Utils::DateTime m_endTime{};
205
206 int m_duration{0};
207
208 int m_maxRecords{0};
209
210 Aws::String m_marker;
211 bool m_sourceIdentifierHasBeenSet = false;
212 bool m_sourceTypeHasBeenSet = false;
213 bool m_startTimeHasBeenSet = false;
214 bool m_endTimeHasBeenSet = false;
215 bool m_durationHasBeenSet = false;
216 bool m_maxRecordsHasBeenSet = false;
217 bool m_markerHasBeenSet = false;
218};
219
220} // namespace Model
221} // namespace Redshift
222} // namespace Aws
virtual const char * GetServiceRequestName() const override
DescribeEventsRequest & WithSourceType(SourceType value)
DescribeEventsRequest & WithMaxRecords(int value)
DescribeEventsRequest & WithEndTime(EndTimeT &&value)
AWS_REDSHIFT_API DescribeEventsRequest()=default
const Aws::Utils::DateTime & GetEndTime() const
AWS_REDSHIFT_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
DescribeEventsRequest & WithStartTime(StartTimeT &&value)
void SetSourceIdentifier(SourceIdentifierT &&value)
DescribeEventsRequest & WithMarker(MarkerT &&value)
DescribeEventsRequest & WithDuration(int value)
const Aws::Utils::DateTime & GetStartTime() const
DescribeEventsRequest & WithSourceIdentifier(SourceIdentifierT &&value)
AWS_REDSHIFT_API Aws::String SerializePayload() const override
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String