AWS SDK for C++

AWS SDK for C++ Version 1.11.755

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/elasticbeanstalk/ElasticBeanstalkRequest.h>
10#include <aws/elasticbeanstalk/ElasticBeanstalk_EXPORTS.h>
11#include <aws/elasticbeanstalk/model/EventSeverity.h>
12
13#include <utility>
14
15namespace Aws {
16namespace ElasticBeanstalk {
17namespace Model {
18
26 public:
27 AWS_ELASTICBEANSTALK_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_ELASTICBEANSTALK_API Aws::String SerializePayload() const override;
36
37 protected:
38 AWS_ELASTICBEANSTALK_API void DumpBodyToUrl(Aws::Http::URI& uri) const override;
39
40 public:
42
46 inline const Aws::String& GetApplicationName() const { return m_applicationName; }
47 inline bool ApplicationNameHasBeenSet() const { return m_applicationNameHasBeenSet; }
48 template <typename ApplicationNameT = Aws::String>
49 void SetApplicationName(ApplicationNameT&& value) {
50 m_applicationNameHasBeenSet = true;
51 m_applicationName = std::forward<ApplicationNameT>(value);
52 }
53 template <typename ApplicationNameT = Aws::String>
54 DescribeEventsRequest& WithApplicationName(ApplicationNameT&& value) {
55 SetApplicationName(std::forward<ApplicationNameT>(value));
56 return *this;
57 }
59
61
65 inline const Aws::String& GetVersionLabel() const { return m_versionLabel; }
66 inline bool VersionLabelHasBeenSet() const { return m_versionLabelHasBeenSet; }
67 template <typename VersionLabelT = Aws::String>
68 void SetVersionLabel(VersionLabelT&& value) {
69 m_versionLabelHasBeenSet = true;
70 m_versionLabel = std::forward<VersionLabelT>(value);
71 }
72 template <typename VersionLabelT = Aws::String>
73 DescribeEventsRequest& WithVersionLabel(VersionLabelT&& value) {
74 SetVersionLabel(std::forward<VersionLabelT>(value));
75 return *this;
76 }
78
80
84 inline const Aws::String& GetTemplateName() const { return m_templateName; }
85 inline bool TemplateNameHasBeenSet() const { return m_templateNameHasBeenSet; }
86 template <typename TemplateNameT = Aws::String>
87 void SetTemplateName(TemplateNameT&& value) {
88 m_templateNameHasBeenSet = true;
89 m_templateName = std::forward<TemplateNameT>(value);
90 }
91 template <typename TemplateNameT = Aws::String>
92 DescribeEventsRequest& WithTemplateName(TemplateNameT&& value) {
93 SetTemplateName(std::forward<TemplateNameT>(value));
94 return *this;
95 }
97
99
103 inline const Aws::String& GetEnvironmentId() const { return m_environmentId; }
104 inline bool EnvironmentIdHasBeenSet() const { return m_environmentIdHasBeenSet; }
105 template <typename EnvironmentIdT = Aws::String>
106 void SetEnvironmentId(EnvironmentIdT&& value) {
107 m_environmentIdHasBeenSet = true;
108 m_environmentId = std::forward<EnvironmentIdT>(value);
109 }
110 template <typename EnvironmentIdT = Aws::String>
111 DescribeEventsRequest& WithEnvironmentId(EnvironmentIdT&& value) {
112 SetEnvironmentId(std::forward<EnvironmentIdT>(value));
113 return *this;
114 }
116
118
122 inline const Aws::String& GetEnvironmentName() const { return m_environmentName; }
123 inline bool EnvironmentNameHasBeenSet() const { return m_environmentNameHasBeenSet; }
124 template <typename EnvironmentNameT = Aws::String>
125 void SetEnvironmentName(EnvironmentNameT&& value) {
126 m_environmentNameHasBeenSet = true;
127 m_environmentName = std::forward<EnvironmentNameT>(value);
128 }
129 template <typename EnvironmentNameT = Aws::String>
130 DescribeEventsRequest& WithEnvironmentName(EnvironmentNameT&& value) {
131 SetEnvironmentName(std::forward<EnvironmentNameT>(value));
132 return *this;
133 }
135
137
142 inline const Aws::String& GetPlatformArn() const { return m_platformArn; }
143 inline bool PlatformArnHasBeenSet() const { return m_platformArnHasBeenSet; }
144 template <typename PlatformArnT = Aws::String>
145 void SetPlatformArn(PlatformArnT&& value) {
146 m_platformArnHasBeenSet = true;
147 m_platformArn = std::forward<PlatformArnT>(value);
148 }
149 template <typename PlatformArnT = Aws::String>
150 DescribeEventsRequest& WithPlatformArn(PlatformArnT&& value) {
151 SetPlatformArn(std::forward<PlatformArnT>(value));
152 return *this;
153 }
155
157
161 inline const Aws::String& GetRequestId() const { return m_requestId; }
162 inline bool RequestIdHasBeenSet() const { return m_requestIdHasBeenSet; }
163 template <typename RequestIdT = Aws::String>
164 void SetRequestId(RequestIdT&& value) {
165 m_requestIdHasBeenSet = true;
166 m_requestId = std::forward<RequestIdT>(value);
167 }
168 template <typename RequestIdT = Aws::String>
170 SetRequestId(std::forward<RequestIdT>(value));
171 return *this;
172 }
174
176
180 inline EventSeverity GetSeverity() const { return m_severity; }
181 inline bool SeverityHasBeenSet() const { return m_severityHasBeenSet; }
182 inline void SetSeverity(EventSeverity value) {
183 m_severityHasBeenSet = true;
184 m_severity = value;
185 }
187 SetSeverity(value);
188 return *this;
189 }
191
193
197 inline const Aws::Utils::DateTime& GetStartTime() const { return m_startTime; }
198 inline bool StartTimeHasBeenSet() const { return m_startTimeHasBeenSet; }
199 template <typename StartTimeT = Aws::Utils::DateTime>
200 void SetStartTime(StartTimeT&& value) {
201 m_startTimeHasBeenSet = true;
202 m_startTime = std::forward<StartTimeT>(value);
203 }
204 template <typename StartTimeT = Aws::Utils::DateTime>
206 SetStartTime(std::forward<StartTimeT>(value));
207 return *this;
208 }
210
212
216 inline const Aws::Utils::DateTime& GetEndTime() const { return m_endTime; }
217 inline bool EndTimeHasBeenSet() const { return m_endTimeHasBeenSet; }
218 template <typename EndTimeT = Aws::Utils::DateTime>
219 void SetEndTime(EndTimeT&& value) {
220 m_endTimeHasBeenSet = true;
221 m_endTime = std::forward<EndTimeT>(value);
222 }
223 template <typename EndTimeT = Aws::Utils::DateTime>
225 SetEndTime(std::forward<EndTimeT>(value));
226 return *this;
227 }
229
231
235 inline int GetMaxRecords() const { return m_maxRecords; }
236 inline bool MaxRecordsHasBeenSet() const { return m_maxRecordsHasBeenSet; }
237 inline void SetMaxRecords(int value) {
238 m_maxRecordsHasBeenSet = true;
239 m_maxRecords = value;
240 }
242 SetMaxRecords(value);
243 return *this;
244 }
246
248
252 inline const Aws::String& GetNextToken() const { return m_nextToken; }
253 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
254 template <typename NextTokenT = Aws::String>
255 void SetNextToken(NextTokenT&& value) {
256 m_nextTokenHasBeenSet = true;
257 m_nextToken = std::forward<NextTokenT>(value);
258 }
259 template <typename NextTokenT = Aws::String>
261 SetNextToken(std::forward<NextTokenT>(value));
262 return *this;
263 }
265 private:
266 Aws::String m_applicationName;
267
268 Aws::String m_versionLabel;
269
270 Aws::String m_templateName;
271
272 Aws::String m_environmentId;
273
274 Aws::String m_environmentName;
275
276 Aws::String m_platformArn;
277
278 Aws::String m_requestId;
279
281
282 Aws::Utils::DateTime m_startTime{};
283
284 Aws::Utils::DateTime m_endTime{};
285
286 int m_maxRecords{0};
287
288 Aws::String m_nextToken;
289 bool m_applicationNameHasBeenSet = false;
290 bool m_versionLabelHasBeenSet = false;
291 bool m_templateNameHasBeenSet = false;
292 bool m_environmentIdHasBeenSet = false;
293 bool m_environmentNameHasBeenSet = false;
294 bool m_platformArnHasBeenSet = false;
295 bool m_requestIdHasBeenSet = false;
296 bool m_severityHasBeenSet = false;
297 bool m_startTimeHasBeenSet = false;
298 bool m_endTimeHasBeenSet = false;
299 bool m_maxRecordsHasBeenSet = false;
300 bool m_nextTokenHasBeenSet = false;
301};
302
303} // namespace Model
304} // namespace ElasticBeanstalk
305} // namespace Aws
DescribeEventsRequest & WithNextToken(NextTokenT &&value)
DescribeEventsRequest & WithApplicationName(ApplicationNameT &&value)
virtual const char * GetServiceRequestName() const override
DescribeEventsRequest & WithStartTime(StartTimeT &&value)
DescribeEventsRequest & WithEndTime(EndTimeT &&value)
DescribeEventsRequest & WithTemplateName(TemplateNameT &&value)
AWS_ELASTICBEANSTALK_API Aws::String SerializePayload() const override
DescribeEventsRequest & WithSeverity(EventSeverity value)
DescribeEventsRequest & WithRequestId(RequestIdT &&value)
AWS_ELASTICBEANSTALK_API DescribeEventsRequest()=default
DescribeEventsRequest & WithEnvironmentId(EnvironmentIdT &&value)
AWS_ELASTICBEANSTALK_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
DescribeEventsRequest & WithPlatformArn(PlatformArnT &&value)
DescribeEventsRequest & WithEnvironmentName(EnvironmentNameT &&value)
DescribeEventsRequest & WithVersionLabel(VersionLabelT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String