AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
ActionExecution.h
1
6#pragma once
7#include <aws/codepipeline/CodePipeline_EXPORTS.h>
8#include <aws/codepipeline/model/ActionExecutionStatus.h>
9#include <aws/codepipeline/model/ErrorDetails.h>
10#include <aws/core/utils/DateTime.h>
11#include <aws/core/utils/memory/stl/AWSString.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Json {
18class JsonValue;
19class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace CodePipeline {
23namespace Model {
24
32 public:
33 AWS_CODEPIPELINE_API ActionExecution() = default;
34 AWS_CODEPIPELINE_API ActionExecution(Aws::Utils::Json::JsonView jsonValue);
35 AWS_CODEPIPELINE_API ActionExecution& operator=(Aws::Utils::Json::JsonView jsonValue);
36 AWS_CODEPIPELINE_API Aws::Utils::Json::JsonValue Jsonize() const;
37
39
46 inline const Aws::String& GetActionExecutionId() const { return m_actionExecutionId; }
47 inline bool ActionExecutionIdHasBeenSet() const { return m_actionExecutionIdHasBeenSet; }
48 template <typename ActionExecutionIdT = Aws::String>
49 void SetActionExecutionId(ActionExecutionIdT&& value) {
50 m_actionExecutionIdHasBeenSet = true;
51 m_actionExecutionId = std::forward<ActionExecutionIdT>(value);
52 }
53 template <typename ActionExecutionIdT = Aws::String>
54 ActionExecution& WithActionExecutionId(ActionExecutionIdT&& value) {
55 SetActionExecutionId(std::forward<ActionExecutionIdT>(value));
56 return *this;
57 }
59
61
65 inline ActionExecutionStatus GetStatus() const { return m_status; }
66 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
67 inline void SetStatus(ActionExecutionStatus value) {
68 m_statusHasBeenSet = true;
69 m_status = value;
70 }
72 SetStatus(value);
73 return *this;
74 }
76
78
81 inline const Aws::String& GetSummary() const { return m_summary; }
82 inline bool SummaryHasBeenSet() const { return m_summaryHasBeenSet; }
83 template <typename SummaryT = Aws::String>
84 void SetSummary(SummaryT&& value) {
85 m_summaryHasBeenSet = true;
86 m_summary = std::forward<SummaryT>(value);
87 }
88 template <typename SummaryT = Aws::String>
89 ActionExecution& WithSummary(SummaryT&& value) {
90 SetSummary(std::forward<SummaryT>(value));
91 return *this;
92 }
94
96
99 inline const Aws::Utils::DateTime& GetLastStatusChange() const { return m_lastStatusChange; }
100 inline bool LastStatusChangeHasBeenSet() const { return m_lastStatusChangeHasBeenSet; }
101 template <typename LastStatusChangeT = Aws::Utils::DateTime>
102 void SetLastStatusChange(LastStatusChangeT&& value) {
103 m_lastStatusChangeHasBeenSet = true;
104 m_lastStatusChange = std::forward<LastStatusChangeT>(value);
105 }
106 template <typename LastStatusChangeT = Aws::Utils::DateTime>
107 ActionExecution& WithLastStatusChange(LastStatusChangeT&& value) {
108 SetLastStatusChange(std::forward<LastStatusChangeT>(value));
109 return *this;
110 }
112
114
120 inline const Aws::String& GetToken() const { return m_token; }
121 inline bool TokenHasBeenSet() const { return m_tokenHasBeenSet; }
122 template <typename TokenT = Aws::String>
123 void SetToken(TokenT&& value) {
124 m_tokenHasBeenSet = true;
125 m_token = std::forward<TokenT>(value);
126 }
127 template <typename TokenT = Aws::String>
128 ActionExecution& WithToken(TokenT&& value) {
129 SetToken(std::forward<TokenT>(value));
130 return *this;
131 }
133
135
138 inline const Aws::String& GetLastUpdatedBy() const { return m_lastUpdatedBy; }
139 inline bool LastUpdatedByHasBeenSet() const { return m_lastUpdatedByHasBeenSet; }
140 template <typename LastUpdatedByT = Aws::String>
141 void SetLastUpdatedBy(LastUpdatedByT&& value) {
142 m_lastUpdatedByHasBeenSet = true;
143 m_lastUpdatedBy = std::forward<LastUpdatedByT>(value);
144 }
145 template <typename LastUpdatedByT = Aws::String>
146 ActionExecution& WithLastUpdatedBy(LastUpdatedByT&& value) {
147 SetLastUpdatedBy(std::forward<LastUpdatedByT>(value));
148 return *this;
149 }
151
153
156 inline const Aws::String& GetExternalExecutionId() const { return m_externalExecutionId; }
157 inline bool ExternalExecutionIdHasBeenSet() const { return m_externalExecutionIdHasBeenSet; }
158 template <typename ExternalExecutionIdT = Aws::String>
159 void SetExternalExecutionId(ExternalExecutionIdT&& value) {
160 m_externalExecutionIdHasBeenSet = true;
161 m_externalExecutionId = std::forward<ExternalExecutionIdT>(value);
162 }
163 template <typename ExternalExecutionIdT = Aws::String>
164 ActionExecution& WithExternalExecutionId(ExternalExecutionIdT&& value) {
165 SetExternalExecutionId(std::forward<ExternalExecutionIdT>(value));
166 return *this;
167 }
169
171
175 inline const Aws::String& GetExternalExecutionUrl() const { return m_externalExecutionUrl; }
176 inline bool ExternalExecutionUrlHasBeenSet() const { return m_externalExecutionUrlHasBeenSet; }
177 template <typename ExternalExecutionUrlT = Aws::String>
178 void SetExternalExecutionUrl(ExternalExecutionUrlT&& value) {
179 m_externalExecutionUrlHasBeenSet = true;
180 m_externalExecutionUrl = std::forward<ExternalExecutionUrlT>(value);
181 }
182 template <typename ExternalExecutionUrlT = Aws::String>
183 ActionExecution& WithExternalExecutionUrl(ExternalExecutionUrlT&& value) {
184 SetExternalExecutionUrl(std::forward<ExternalExecutionUrlT>(value));
185 return *this;
186 }
188
190
193 inline int GetPercentComplete() const { return m_percentComplete; }
194 inline bool PercentCompleteHasBeenSet() const { return m_percentCompleteHasBeenSet; }
195 inline void SetPercentComplete(int value) {
196 m_percentCompleteHasBeenSet = true;
197 m_percentComplete = value;
198 }
200 SetPercentComplete(value);
201 return *this;
202 }
204
206
210 inline const ErrorDetails& GetErrorDetails() const { return m_errorDetails; }
211 inline bool ErrorDetailsHasBeenSet() const { return m_errorDetailsHasBeenSet; }
212 template <typename ErrorDetailsT = ErrorDetails>
213 void SetErrorDetails(ErrorDetailsT&& value) {
214 m_errorDetailsHasBeenSet = true;
215 m_errorDetails = std::forward<ErrorDetailsT>(value);
216 }
217 template <typename ErrorDetailsT = ErrorDetails>
218 ActionExecution& WithErrorDetails(ErrorDetailsT&& value) {
219 SetErrorDetails(std::forward<ErrorDetailsT>(value));
220 return *this;
221 }
223
225
228 inline const Aws::String& GetLogStreamARN() const { return m_logStreamARN; }
229 inline bool LogStreamARNHasBeenSet() const { return m_logStreamARNHasBeenSet; }
230 template <typename LogStreamARNT = Aws::String>
231 void SetLogStreamARN(LogStreamARNT&& value) {
232 m_logStreamARNHasBeenSet = true;
233 m_logStreamARN = std::forward<LogStreamARNT>(value);
234 }
235 template <typename LogStreamARNT = Aws::String>
236 ActionExecution& WithLogStreamARN(LogStreamARNT&& value) {
237 SetLogStreamARN(std::forward<LogStreamARNT>(value));
238 return *this;
239 }
241 private:
242 Aws::String m_actionExecutionId;
243
245
246 Aws::String m_summary;
247
248 Aws::Utils::DateTime m_lastStatusChange{};
249
250 Aws::String m_token;
251
252 Aws::String m_lastUpdatedBy;
253
254 Aws::String m_externalExecutionId;
255
256 Aws::String m_externalExecutionUrl;
257
258 int m_percentComplete{0};
259
260 ErrorDetails m_errorDetails;
261
262 Aws::String m_logStreamARN;
263 bool m_actionExecutionIdHasBeenSet = false;
264 bool m_statusHasBeenSet = false;
265 bool m_summaryHasBeenSet = false;
266 bool m_lastStatusChangeHasBeenSet = false;
267 bool m_tokenHasBeenSet = false;
268 bool m_lastUpdatedByHasBeenSet = false;
269 bool m_externalExecutionIdHasBeenSet = false;
270 bool m_externalExecutionUrlHasBeenSet = false;
271 bool m_percentCompleteHasBeenSet = false;
272 bool m_errorDetailsHasBeenSet = false;
273 bool m_logStreamARNHasBeenSet = false;
274};
275
276} // namespace Model
277} // namespace CodePipeline
278} // namespace Aws
ActionExecution & WithErrorDetails(ErrorDetailsT &&value)
const Aws::String & GetActionExecutionId() const
ActionExecution & WithSummary(SummaryT &&value)
void SetExternalExecutionUrl(ExternalExecutionUrlT &&value)
void SetStatus(ActionExecutionStatus value)
const Aws::String & GetExternalExecutionId() const
void SetActionExecutionId(ActionExecutionIdT &&value)
ActionExecution & WithLogStreamARN(LogStreamARNT &&value)
ActionExecution & WithExternalExecutionId(ExternalExecutionIdT &&value)
AWS_CODEPIPELINE_API ActionExecution(Aws::Utils::Json::JsonView jsonValue)
void SetLogStreamARN(LogStreamARNT &&value)
void SetErrorDetails(ErrorDetailsT &&value)
ActionExecution & WithPercentComplete(int value)
AWS_CODEPIPELINE_API Aws::Utils::Json::JsonValue Jsonize() const
ActionExecution & WithLastStatusChange(LastStatusChangeT &&value)
const Aws::String & GetLastUpdatedBy() const
ActionExecution & WithLastUpdatedBy(LastUpdatedByT &&value)
ActionExecution & WithActionExecutionId(ActionExecutionIdT &&value)
AWS_CODEPIPELINE_API ActionExecution & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetExternalExecutionId(ExternalExecutionIdT &&value)
const Aws::String & GetLogStreamARN() const
ActionExecution & WithStatus(ActionExecutionStatus value)
const Aws::String & GetSummary() const
void SetLastUpdatedBy(LastUpdatedByT &&value)
ActionExecution & WithToken(TokenT &&value)
ActionExecutionStatus GetStatus() const
const Aws::String & GetExternalExecutionUrl() const
void SetLastStatusChange(LastStatusChangeT &&value)
const Aws::Utils::DateTime & GetLastStatusChange() const
ActionExecution & WithExternalExecutionUrl(ExternalExecutionUrlT &&value)
AWS_CODEPIPELINE_API ActionExecution()=default
const ErrorDetails & GetErrorDetails() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue