AWS SDK for C++

AWS SDK for C++ Version 1.11.716

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/elasticache/ElastiCacheRequest.h>
10#include <aws/elasticache/ElastiCache_EXPORTS.h>
11#include <aws/elasticache/model/SourceType.h>
12
13#include <utility>
14
15namespace Aws {
16namespace ElastiCache {
17namespace Model {
18
26 public:
27 AWS_ELASTICACHE_API DescribeEventsRequest() = default;
28
29 // Service request name is the Operation name which will send this request out,
30 // each operation should has unique request name, so that we can get operation's name from this request.
31 // Note: this is not true for response, multiple operations may have the same response name,
32 // so we can not get operation's name from response.
33 inline virtual const char* GetServiceRequestName() const override { return "DescribeEvents"; }
34
35 AWS_ELASTICACHE_API Aws::String SerializePayload() const override;
36
37 protected:
38 AWS_ELASTICACHE_API void DumpBodyToUrl(Aws::Http::URI& uri) const override;
39
40 public:
42
46 inline const Aws::String& GetSourceIdentifier() const { return m_sourceIdentifier; }
47 inline bool SourceIdentifierHasBeenSet() const { return m_sourceIdentifierHasBeenSet; }
48 template <typename SourceIdentifierT = Aws::String>
49 void SetSourceIdentifier(SourceIdentifierT&& value) {
50 m_sourceIdentifierHasBeenSet = true;
51 m_sourceIdentifier = std::forward<SourceIdentifierT>(value);
52 }
53 template <typename SourceIdentifierT = Aws::String>
54 DescribeEventsRequest& WithSourceIdentifier(SourceIdentifierT&& value) {
55 SetSourceIdentifier(std::forward<SourceIdentifierT>(value));
56 return *this;
57 }
59
61
65 inline SourceType GetSourceType() const { return m_sourceType; }
66 inline bool SourceTypeHasBeenSet() const { return m_sourceTypeHasBeenSet; }
67 inline void SetSourceType(SourceType value) {
68 m_sourceTypeHasBeenSet = true;
69 m_sourceType = value;
70 }
72 SetSourceType(value);
73 return *this;
74 }
76
78
82 inline const Aws::Utils::DateTime& GetStartTime() const { return m_startTime; }
83 inline bool StartTimeHasBeenSet() const { return m_startTimeHasBeenSet; }
84 template <typename StartTimeT = Aws::Utils::DateTime>
85 void SetStartTime(StartTimeT&& value) {
86 m_startTimeHasBeenSet = true;
87 m_startTime = std::forward<StartTimeT>(value);
88 }
89 template <typename StartTimeT = Aws::Utils::DateTime>
90 DescribeEventsRequest& WithStartTime(StartTimeT&& value) {
91 SetStartTime(std::forward<StartTimeT>(value));
92 return *this;
93 }
95
97
101 inline const Aws::Utils::DateTime& GetEndTime() const { return m_endTime; }
102 inline bool EndTimeHasBeenSet() const { return m_endTimeHasBeenSet; }
103 template <typename EndTimeT = Aws::Utils::DateTime>
104 void SetEndTime(EndTimeT&& value) {
105 m_endTimeHasBeenSet = true;
106 m_endTime = std::forward<EndTimeT>(value);
107 }
108 template <typename EndTimeT = Aws::Utils::DateTime>
110 SetEndTime(std::forward<EndTimeT>(value));
111 return *this;
112 }
114
116
119 inline int GetDuration() const { return m_duration; }
120 inline bool DurationHasBeenSet() const { return m_durationHasBeenSet; }
121 inline void SetDuration(int value) {
122 m_durationHasBeenSet = true;
123 m_duration = value;
124 }
126 SetDuration(value);
127 return *this;
128 }
130
132
138 inline int GetMaxRecords() const { return m_maxRecords; }
139 inline bool MaxRecordsHasBeenSet() const { return m_maxRecordsHasBeenSet; }
140 inline void SetMaxRecords(int value) {
141 m_maxRecordsHasBeenSet = true;
142 m_maxRecords = value;
143 }
145 SetMaxRecords(value);
146 return *this;
147 }
149
151
157 inline const Aws::String& GetMarker() const { return m_marker; }
158 inline bool MarkerHasBeenSet() const { return m_markerHasBeenSet; }
159 template <typename MarkerT = Aws::String>
160 void SetMarker(MarkerT&& value) {
161 m_markerHasBeenSet = true;
162 m_marker = std::forward<MarkerT>(value);
163 }
164 template <typename MarkerT = Aws::String>
166 SetMarker(std::forward<MarkerT>(value));
167 return *this;
168 }
170 private:
171 Aws::String m_sourceIdentifier;
172
173 SourceType m_sourceType{SourceType::NOT_SET};
174
175 Aws::Utils::DateTime m_startTime{};
176
177 Aws::Utils::DateTime m_endTime{};
178
179 int m_duration{0};
180
181 int m_maxRecords{0};
182
183 Aws::String m_marker;
184 bool m_sourceIdentifierHasBeenSet = false;
185 bool m_sourceTypeHasBeenSet = false;
186 bool m_startTimeHasBeenSet = false;
187 bool m_endTimeHasBeenSet = false;
188 bool m_durationHasBeenSet = false;
189 bool m_maxRecordsHasBeenSet = false;
190 bool m_markerHasBeenSet = false;
191};
192
193} // namespace Model
194} // namespace ElastiCache
195} // namespace Aws
DescribeEventsRequest & WithSourceType(SourceType value)
DescribeEventsRequest & WithEndTime(EndTimeT &&value)
const Aws::Utils::DateTime & GetEndTime() const
void SetSourceIdentifier(SourceIdentifierT &&value)
DescribeEventsRequest & WithSourceIdentifier(SourceIdentifierT &&value)
DescribeEventsRequest & WithDuration(int value)
DescribeEventsRequest & WithMarker(MarkerT &&value)
AWS_ELASTICACHE_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
AWS_ELASTICACHE_API DescribeEventsRequest()=default
AWS_ELASTICACHE_API Aws::String SerializePayload() const override
DescribeEventsRequest & WithStartTime(StartTimeT &&value)
DescribeEventsRequest & WithMaxRecords(int value)
virtual const char * GetServiceRequestName() const override
const Aws::Utils::DateTime & GetStartTime() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String