AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
ProgressEvent.h
1
6#pragma once
7#include <aws/cloudcontrol/CloudControlApi_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.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/cloudcontrol/model/HandlerErrorCode.h>
13#include <utility>
14
15namespace Aws
16{
17namespace Utils
18{
19namespace Json
20{
21 class JsonValue;
22 class JsonView;
23} // namespace Json
24} // namespace Utils
25namespace CloudControlApi
26{
27namespace Model
28{
29
40 {
41 public:
42 AWS_CLOUDCONTROLAPI_API ProgressEvent() = default;
43 AWS_CLOUDCONTROLAPI_API ProgressEvent(Aws::Utils::Json::JsonView jsonValue);
44 AWS_CLOUDCONTROLAPI_API ProgressEvent& operator=(Aws::Utils::Json::JsonView jsonValue);
45 AWS_CLOUDCONTROLAPI_API Aws::Utils::Json::JsonValue Jsonize() const;
46
47
49
52 inline const Aws::String& GetTypeName() const { return m_typeName; }
53 inline bool TypeNameHasBeenSet() const { return m_typeNameHasBeenSet; }
54 template<typename TypeNameT = Aws::String>
55 void SetTypeName(TypeNameT&& value) { m_typeNameHasBeenSet = true; m_typeName = std::forward<TypeNameT>(value); }
56 template<typename TypeNameT = Aws::String>
57 ProgressEvent& WithTypeName(TypeNameT&& value) { SetTypeName(std::forward<TypeNameT>(value)); return *this;}
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) { m_identifierHasBeenSet = true; m_identifier = std::forward<IdentifierT>(value); }
70 template<typename IdentifierT = Aws::String>
71 ProgressEvent& WithIdentifier(IdentifierT&& value) { SetIdentifier(std::forward<IdentifierT>(value)); return *this;}
73
75
81 inline const Aws::String& GetRequestToken() const { return m_requestToken; }
82 inline bool RequestTokenHasBeenSet() const { return m_requestTokenHasBeenSet; }
83 template<typename RequestTokenT = Aws::String>
84 void SetRequestToken(RequestTokenT&& value) { m_requestTokenHasBeenSet = true; m_requestToken = std::forward<RequestTokenT>(value); }
85 template<typename RequestTokenT = Aws::String>
86 ProgressEvent& WithRequestToken(RequestTokenT&& value) { SetRequestToken(std::forward<RequestTokenT>(value)); return *this;}
88
90
93 inline const Aws::String& GetHooksRequestToken() const { return m_hooksRequestToken; }
94 inline bool HooksRequestTokenHasBeenSet() const { return m_hooksRequestTokenHasBeenSet; }
95 template<typename HooksRequestTokenT = Aws::String>
96 void SetHooksRequestToken(HooksRequestTokenT&& value) { m_hooksRequestTokenHasBeenSet = true; m_hooksRequestToken = std::forward<HooksRequestTokenT>(value); }
97 template<typename HooksRequestTokenT = Aws::String>
98 ProgressEvent& WithHooksRequestToken(HooksRequestTokenT&& value) { SetHooksRequestToken(std::forward<HooksRequestTokenT>(value)); return *this;}
100
102
105 inline Operation GetOperation() const { return m_operation; }
106 inline bool OperationHasBeenSet() const { return m_operationHasBeenSet; }
107 inline void SetOperation(Operation value) { m_operationHasBeenSet = true; m_operation = value; }
108 inline ProgressEvent& WithOperation(Operation value) { SetOperation(value); return *this;}
110
112
124 inline OperationStatus GetOperationStatus() const { return m_operationStatus; }
125 inline bool OperationStatusHasBeenSet() const { return m_operationStatusHasBeenSet; }
126 inline void SetOperationStatus(OperationStatus value) { m_operationStatusHasBeenSet = true; m_operationStatus = value; }
129
131
134 inline const Aws::Utils::DateTime& GetEventTime() const { return m_eventTime; }
135 inline bool EventTimeHasBeenSet() const { return m_eventTimeHasBeenSet; }
136 template<typename EventTimeT = Aws::Utils::DateTime>
137 void SetEventTime(EventTimeT&& value) { m_eventTimeHasBeenSet = true; m_eventTime = std::forward<EventTimeT>(value); }
138 template<typename EventTimeT = Aws::Utils::DateTime>
139 ProgressEvent& WithEventTime(EventTimeT&& value) { SetEventTime(std::forward<EventTimeT>(value)); return *this;}
141
143
147 inline const Aws::String& GetResourceModel() const { return m_resourceModel; }
148 inline bool ResourceModelHasBeenSet() const { return m_resourceModelHasBeenSet; }
149 template<typename ResourceModelT = Aws::String>
150 void SetResourceModel(ResourceModelT&& value) { m_resourceModelHasBeenSet = true; m_resourceModel = std::forward<ResourceModelT>(value); }
151 template<typename ResourceModelT = Aws::String>
152 ProgressEvent& WithResourceModel(ResourceModelT&& value) { SetResourceModel(std::forward<ResourceModelT>(value)); return *this;}
154
156
159 inline const Aws::String& GetStatusMessage() const { return m_statusMessage; }
160 inline bool StatusMessageHasBeenSet() const { return m_statusMessageHasBeenSet; }
161 template<typename StatusMessageT = Aws::String>
162 void SetStatusMessage(StatusMessageT&& value) { m_statusMessageHasBeenSet = true; m_statusMessage = std::forward<StatusMessageT>(value); }
163 template<typename StatusMessageT = Aws::String>
164 ProgressEvent& WithStatusMessage(StatusMessageT&& value) { SetStatusMessage(std::forward<StatusMessageT>(value)); return *this;}
166
168
175 inline HandlerErrorCode GetErrorCode() const { return m_errorCode; }
176 inline bool ErrorCodeHasBeenSet() const { return m_errorCodeHasBeenSet; }
177 inline void SetErrorCode(HandlerErrorCode value) { m_errorCodeHasBeenSet = true; m_errorCode = value; }
178 inline ProgressEvent& WithErrorCode(HandlerErrorCode value) { SetErrorCode(value); return *this;}
180
182
185 inline const Aws::Utils::DateTime& GetRetryAfter() const { return m_retryAfter; }
186 inline bool RetryAfterHasBeenSet() const { return m_retryAfterHasBeenSet; }
187 template<typename RetryAfterT = Aws::Utils::DateTime>
188 void SetRetryAfter(RetryAfterT&& value) { m_retryAfterHasBeenSet = true; m_retryAfter = std::forward<RetryAfterT>(value); }
189 template<typename RetryAfterT = Aws::Utils::DateTime>
190 ProgressEvent& WithRetryAfter(RetryAfterT&& value) { SetRetryAfter(std::forward<RetryAfterT>(value)); return *this;}
192 private:
193
194 Aws::String m_typeName;
195 bool m_typeNameHasBeenSet = false;
196
197 Aws::String m_identifier;
198 bool m_identifierHasBeenSet = false;
199
200 Aws::String m_requestToken;
201 bool m_requestTokenHasBeenSet = false;
202
203 Aws::String m_hooksRequestToken;
204 bool m_hooksRequestTokenHasBeenSet = false;
205
206 Operation m_operation{Operation::NOT_SET};
207 bool m_operationHasBeenSet = false;
208
209 OperationStatus m_operationStatus{OperationStatus::NOT_SET};
210 bool m_operationStatusHasBeenSet = false;
211
212 Aws::Utils::DateTime m_eventTime{};
213 bool m_eventTimeHasBeenSet = false;
214
215 Aws::String m_resourceModel;
216 bool m_resourceModelHasBeenSet = false;
217
218 Aws::String m_statusMessage;
219 bool m_statusMessageHasBeenSet = false;
220
222 bool m_errorCodeHasBeenSet = false;
223
224 Aws::Utils::DateTime m_retryAfter{};
225 bool m_retryAfterHasBeenSet = false;
226 };
227
228} // namespace Model
229} // namespace CloudControlApi
230} // 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