AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
ProgressEvent.h
1
6#pragma once
7#include <aws/cloudcontrol/CloudControlApi_EXPORTS.h>
8#include <aws/cloudcontrol/model/HandlerErrorCode.h>
9#include <aws/cloudcontrol/model/Operation.h>
10#include <aws/cloudcontrol/model/OperationStatus.h>
11#include <aws/core/utils/DateTime.h>
12#include <aws/core/utils/memory/stl/AWSString.h>
13
14#include <utility>
15
16namespace Aws {
17namespace Utils {
18namespace Json {
19class JsonValue;
20class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace CloudControlApi {
24namespace Model {
25
36 public:
37 AWS_CLOUDCONTROLAPI_API ProgressEvent() = default;
38 AWS_CLOUDCONTROLAPI_API ProgressEvent(Aws::Utils::Json::JsonView jsonValue);
39 AWS_CLOUDCONTROLAPI_API ProgressEvent& operator=(Aws::Utils::Json::JsonView jsonValue);
40 AWS_CLOUDCONTROLAPI_API Aws::Utils::Json::JsonValue Jsonize() const;
41
43
46 inline const Aws::String& GetTypeName() const { return m_typeName; }
47 inline bool TypeNameHasBeenSet() const { return m_typeNameHasBeenSet; }
48 template <typename TypeNameT = Aws::String>
49 void SetTypeName(TypeNameT&& value) {
50 m_typeNameHasBeenSet = true;
51 m_typeName = std::forward<TypeNameT>(value);
52 }
53 template <typename TypeNameT = Aws::String>
54 ProgressEvent& WithTypeName(TypeNameT&& value) {
55 SetTypeName(std::forward<TypeNameT>(value));
56 return *this;
57 }
59
61
66 inline const Aws::String& GetIdentifier() const { return m_identifier; }
67 inline bool IdentifierHasBeenSet() const { return m_identifierHasBeenSet; }
68 template <typename IdentifierT = Aws::String>
69 void SetIdentifier(IdentifierT&& value) {
70 m_identifierHasBeenSet = true;
71 m_identifier = std::forward<IdentifierT>(value);
72 }
73 template <typename IdentifierT = Aws::String>
74 ProgressEvent& WithIdentifier(IdentifierT&& value) {
75 SetIdentifier(std::forward<IdentifierT>(value));
76 return *this;
77 }
79
81
87 inline const Aws::String& GetRequestToken() const { return m_requestToken; }
88 inline bool RequestTokenHasBeenSet() const { return m_requestTokenHasBeenSet; }
89 template <typename RequestTokenT = Aws::String>
90 void SetRequestToken(RequestTokenT&& value) {
91 m_requestTokenHasBeenSet = true;
92 m_requestToken = std::forward<RequestTokenT>(value);
93 }
94 template <typename RequestTokenT = Aws::String>
95 ProgressEvent& WithRequestToken(RequestTokenT&& value) {
96 SetRequestToken(std::forward<RequestTokenT>(value));
97 return *this;
98 }
100
102
105 inline const Aws::String& GetHooksRequestToken() const { return m_hooksRequestToken; }
106 inline bool HooksRequestTokenHasBeenSet() const { return m_hooksRequestTokenHasBeenSet; }
107 template <typename HooksRequestTokenT = Aws::String>
108 void SetHooksRequestToken(HooksRequestTokenT&& value) {
109 m_hooksRequestTokenHasBeenSet = true;
110 m_hooksRequestToken = std::forward<HooksRequestTokenT>(value);
111 }
112 template <typename HooksRequestTokenT = Aws::String>
113 ProgressEvent& WithHooksRequestToken(HooksRequestTokenT&& value) {
114 SetHooksRequestToken(std::forward<HooksRequestTokenT>(value));
115 return *this;
116 }
118
120
123 inline Operation GetOperation() const { return m_operation; }
124 inline bool OperationHasBeenSet() const { return m_operationHasBeenSet; }
125 inline void SetOperation(Operation value) {
126 m_operationHasBeenSet = true;
127 m_operation = value;
128 }
130 SetOperation(value);
131 return *this;
132 }
134
136
148 inline OperationStatus GetOperationStatus() const { return m_operationStatus; }
149 inline bool OperationStatusHasBeenSet() const { return m_operationStatusHasBeenSet; }
151 m_operationStatusHasBeenSet = true;
152 m_operationStatus = value;
153 }
155 SetOperationStatus(value);
156 return *this;
157 }
159
161
164 inline const Aws::Utils::DateTime& GetEventTime() const { return m_eventTime; }
165 inline bool EventTimeHasBeenSet() const { return m_eventTimeHasBeenSet; }
166 template <typename EventTimeT = Aws::Utils::DateTime>
167 void SetEventTime(EventTimeT&& value) {
168 m_eventTimeHasBeenSet = true;
169 m_eventTime = std::forward<EventTimeT>(value);
170 }
171 template <typename EventTimeT = Aws::Utils::DateTime>
172 ProgressEvent& WithEventTime(EventTimeT&& value) {
173 SetEventTime(std::forward<EventTimeT>(value));
174 return *this;
175 }
177
179
183 inline const Aws::String& GetResourceModel() const { return m_resourceModel; }
184 inline bool ResourceModelHasBeenSet() const { return m_resourceModelHasBeenSet; }
185 template <typename ResourceModelT = Aws::String>
186 void SetResourceModel(ResourceModelT&& value) {
187 m_resourceModelHasBeenSet = true;
188 m_resourceModel = std::forward<ResourceModelT>(value);
189 }
190 template <typename ResourceModelT = Aws::String>
191 ProgressEvent& WithResourceModel(ResourceModelT&& value) {
192 SetResourceModel(std::forward<ResourceModelT>(value));
193 return *this;
194 }
196
198
201 inline const Aws::String& GetStatusMessage() const { return m_statusMessage; }
202 inline bool StatusMessageHasBeenSet() const { return m_statusMessageHasBeenSet; }
203 template <typename StatusMessageT = Aws::String>
204 void SetStatusMessage(StatusMessageT&& value) {
205 m_statusMessageHasBeenSet = true;
206 m_statusMessage = std::forward<StatusMessageT>(value);
207 }
208 template <typename StatusMessageT = Aws::String>
209 ProgressEvent& WithStatusMessage(StatusMessageT&& value) {
210 SetStatusMessage(std::forward<StatusMessageT>(value));
211 return *this;
212 }
214
216
223 inline HandlerErrorCode GetErrorCode() const { return m_errorCode; }
224 inline bool ErrorCodeHasBeenSet() const { return m_errorCodeHasBeenSet; }
225 inline void SetErrorCode(HandlerErrorCode value) {
226 m_errorCodeHasBeenSet = true;
227 m_errorCode = value;
228 }
230 SetErrorCode(value);
231 return *this;
232 }
234
236
239 inline const Aws::Utils::DateTime& GetRetryAfter() const { return m_retryAfter; }
240 inline bool RetryAfterHasBeenSet() const { return m_retryAfterHasBeenSet; }
241 template <typename RetryAfterT = Aws::Utils::DateTime>
242 void SetRetryAfter(RetryAfterT&& value) {
243 m_retryAfterHasBeenSet = true;
244 m_retryAfter = std::forward<RetryAfterT>(value);
245 }
246 template <typename RetryAfterT = Aws::Utils::DateTime>
247 ProgressEvent& WithRetryAfter(RetryAfterT&& value) {
248 SetRetryAfter(std::forward<RetryAfterT>(value));
249 return *this;
250 }
252 private:
253 Aws::String m_typeName;
254
255 Aws::String m_identifier;
256
257 Aws::String m_requestToken;
258
259 Aws::String m_hooksRequestToken;
260
261 Operation m_operation{Operation::NOT_SET};
262
263 OperationStatus m_operationStatus{OperationStatus::NOT_SET};
264
265 Aws::Utils::DateTime m_eventTime{};
266
267 Aws::String m_resourceModel;
268
269 Aws::String m_statusMessage;
270
272
273 Aws::Utils::DateTime m_retryAfter{};
274 bool m_typeNameHasBeenSet = false;
275 bool m_identifierHasBeenSet = false;
276 bool m_requestTokenHasBeenSet = false;
277 bool m_hooksRequestTokenHasBeenSet = false;
278 bool m_operationHasBeenSet = false;
279 bool m_operationStatusHasBeenSet = false;
280 bool m_eventTimeHasBeenSet = false;
281 bool m_resourceModelHasBeenSet = false;
282 bool m_statusMessageHasBeenSet = false;
283 bool m_errorCodeHasBeenSet = false;
284 bool m_retryAfterHasBeenSet = false;
285};
286
287} // namespace Model
288} // namespace CloudControlApi
289} // namespace Aws
void SetRequestToken(RequestTokenT &&value)
void SetErrorCode(HandlerErrorCode value)
void SetIdentifier(IdentifierT &&value)
const Aws::String & GetStatusMessage() const
ProgressEvent & WithRetryAfter(RetryAfterT &&value)
ProgressEvent & WithIdentifier(IdentifierT &&value)
AWS_CLOUDCONTROLAPI_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::String & GetResourceModel() const
ProgressEvent & WithResourceModel(ResourceModelT &&value)
AWS_CLOUDCONTROLAPI_API ProgressEvent()=default
ProgressEvent & WithTypeName(TypeNameT &&value)
ProgressEvent & WithRequestToken(RequestTokenT &&value)
ProgressEvent & WithOperationStatus(OperationStatus value)
AWS_CLOUDCONTROLAPI_API ProgressEvent(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetIdentifier() const
ProgressEvent & WithStatusMessage(StatusMessageT &&value)
ProgressEvent & WithErrorCode(HandlerErrorCode value)
AWS_CLOUDCONTROLAPI_API ProgressEvent & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetTypeName() const
void SetOperationStatus(OperationStatus value)
void SetHooksRequestToken(HooksRequestTokenT &&value)
ProgressEvent & WithOperation(Operation value)
const Aws::Utils::DateTime & GetEventTime() const
void SetResourceModel(ResourceModelT &&value)
const Aws::String & GetRequestToken() const
const Aws::Utils::DateTime & GetRetryAfter() const
void SetStatusMessage(StatusMessageT &&value)
ProgressEvent & WithEventTime(EventTimeT &&value)
const Aws::String & GetHooksRequestToken() const
ProgressEvent & WithHooksRequestToken(HooksRequestTokenT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue