AWS SDK for C++

AWS SDK for C++ Version 1.11.612

Loading...
Searching...
No Matches
ActionExecution.h
1
6#pragma once
7#include <aws/codepipeline/CodePipeline_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/codepipeline/model/ActionExecutionStatus.h>
10#include <aws/core/utils/DateTime.h>
11#include <aws/codepipeline/model/ErrorDetails.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Utils
17{
18namespace Json
19{
20 class JsonValue;
21 class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace CodePipeline
25{
26namespace Model
27{
28
36 {
37 public:
38 AWS_CODEPIPELINE_API ActionExecution() = default;
39 AWS_CODEPIPELINE_API ActionExecution(Aws::Utils::Json::JsonView jsonValue);
40 AWS_CODEPIPELINE_API ActionExecution& operator=(Aws::Utils::Json::JsonView jsonValue);
41 AWS_CODEPIPELINE_API Aws::Utils::Json::JsonValue Jsonize() const;
42
43
45
52 inline const Aws::String& GetActionExecutionId() const { return m_actionExecutionId; }
53 inline bool ActionExecutionIdHasBeenSet() const { return m_actionExecutionIdHasBeenSet; }
54 template<typename ActionExecutionIdT = Aws::String>
55 void SetActionExecutionId(ActionExecutionIdT&& value) { m_actionExecutionIdHasBeenSet = true; m_actionExecutionId = std::forward<ActionExecutionIdT>(value); }
56 template<typename ActionExecutionIdT = Aws::String>
57 ActionExecution& WithActionExecutionId(ActionExecutionIdT&& value) { SetActionExecutionId(std::forward<ActionExecutionIdT>(value)); return *this;}
59
61
65 inline ActionExecutionStatus GetStatus() const { return m_status; }
66 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
67 inline void SetStatus(ActionExecutionStatus value) { m_statusHasBeenSet = true; m_status = value; }
68 inline ActionExecution& WithStatus(ActionExecutionStatus value) { SetStatus(value); return *this;}
70
72
75 inline const Aws::String& GetSummary() const { return m_summary; }
76 inline bool SummaryHasBeenSet() const { return m_summaryHasBeenSet; }
77 template<typename SummaryT = Aws::String>
78 void SetSummary(SummaryT&& value) { m_summaryHasBeenSet = true; m_summary = std::forward<SummaryT>(value); }
79 template<typename SummaryT = Aws::String>
80 ActionExecution& WithSummary(SummaryT&& value) { SetSummary(std::forward<SummaryT>(value)); return *this;}
82
84
87 inline const Aws::Utils::DateTime& GetLastStatusChange() const { return m_lastStatusChange; }
88 inline bool LastStatusChangeHasBeenSet() const { return m_lastStatusChangeHasBeenSet; }
89 template<typename LastStatusChangeT = Aws::Utils::DateTime>
90 void SetLastStatusChange(LastStatusChangeT&& value) { m_lastStatusChangeHasBeenSet = true; m_lastStatusChange = std::forward<LastStatusChangeT>(value); }
91 template<typename LastStatusChangeT = Aws::Utils::DateTime>
92 ActionExecution& WithLastStatusChange(LastStatusChangeT&& value) { SetLastStatusChange(std::forward<LastStatusChangeT>(value)); return *this;}
94
96
102 inline const Aws::String& GetToken() const { return m_token; }
103 inline bool TokenHasBeenSet() const { return m_tokenHasBeenSet; }
104 template<typename TokenT = Aws::String>
105 void SetToken(TokenT&& value) { m_tokenHasBeenSet = true; m_token = std::forward<TokenT>(value); }
106 template<typename TokenT = Aws::String>
107 ActionExecution& WithToken(TokenT&& value) { SetToken(std::forward<TokenT>(value)); return *this;}
109
111
114 inline const Aws::String& GetLastUpdatedBy() const { return m_lastUpdatedBy; }
115 inline bool LastUpdatedByHasBeenSet() const { return m_lastUpdatedByHasBeenSet; }
116 template<typename LastUpdatedByT = Aws::String>
117 void SetLastUpdatedBy(LastUpdatedByT&& value) { m_lastUpdatedByHasBeenSet = true; m_lastUpdatedBy = std::forward<LastUpdatedByT>(value); }
118 template<typename LastUpdatedByT = Aws::String>
119 ActionExecution& WithLastUpdatedBy(LastUpdatedByT&& value) { SetLastUpdatedBy(std::forward<LastUpdatedByT>(value)); return *this;}
121
123
126 inline const Aws::String& GetExternalExecutionId() const { return m_externalExecutionId; }
127 inline bool ExternalExecutionIdHasBeenSet() const { return m_externalExecutionIdHasBeenSet; }
128 template<typename ExternalExecutionIdT = Aws::String>
129 void SetExternalExecutionId(ExternalExecutionIdT&& value) { m_externalExecutionIdHasBeenSet = true; m_externalExecutionId = std::forward<ExternalExecutionIdT>(value); }
130 template<typename ExternalExecutionIdT = Aws::String>
131 ActionExecution& WithExternalExecutionId(ExternalExecutionIdT&& value) { SetExternalExecutionId(std::forward<ExternalExecutionIdT>(value)); return *this;}
133
135
139 inline const Aws::String& GetExternalExecutionUrl() const { return m_externalExecutionUrl; }
140 inline bool ExternalExecutionUrlHasBeenSet() const { return m_externalExecutionUrlHasBeenSet; }
141 template<typename ExternalExecutionUrlT = Aws::String>
142 void SetExternalExecutionUrl(ExternalExecutionUrlT&& value) { m_externalExecutionUrlHasBeenSet = true; m_externalExecutionUrl = std::forward<ExternalExecutionUrlT>(value); }
143 template<typename ExternalExecutionUrlT = Aws::String>
144 ActionExecution& WithExternalExecutionUrl(ExternalExecutionUrlT&& value) { SetExternalExecutionUrl(std::forward<ExternalExecutionUrlT>(value)); return *this;}
146
148
151 inline int GetPercentComplete() const { return m_percentComplete; }
152 inline bool PercentCompleteHasBeenSet() const { return m_percentCompleteHasBeenSet; }
153 inline void SetPercentComplete(int value) { m_percentCompleteHasBeenSet = true; m_percentComplete = value; }
154 inline ActionExecution& WithPercentComplete(int value) { SetPercentComplete(value); return *this;}
156
158
162 inline const ErrorDetails& GetErrorDetails() const { return m_errorDetails; }
163 inline bool ErrorDetailsHasBeenSet() const { return m_errorDetailsHasBeenSet; }
164 template<typename ErrorDetailsT = ErrorDetails>
165 void SetErrorDetails(ErrorDetailsT&& value) { m_errorDetailsHasBeenSet = true; m_errorDetails = std::forward<ErrorDetailsT>(value); }
166 template<typename ErrorDetailsT = ErrorDetails>
167 ActionExecution& WithErrorDetails(ErrorDetailsT&& value) { SetErrorDetails(std::forward<ErrorDetailsT>(value)); return *this;}
169
171
174 inline const Aws::String& GetLogStreamARN() const { return m_logStreamARN; }
175 inline bool LogStreamARNHasBeenSet() const { return m_logStreamARNHasBeenSet; }
176 template<typename LogStreamARNT = Aws::String>
177 void SetLogStreamARN(LogStreamARNT&& value) { m_logStreamARNHasBeenSet = true; m_logStreamARN = std::forward<LogStreamARNT>(value); }
178 template<typename LogStreamARNT = Aws::String>
179 ActionExecution& WithLogStreamARN(LogStreamARNT&& value) { SetLogStreamARN(std::forward<LogStreamARNT>(value)); return *this;}
181 private:
182
183 Aws::String m_actionExecutionId;
184 bool m_actionExecutionIdHasBeenSet = false;
185
187 bool m_statusHasBeenSet = false;
188
189 Aws::String m_summary;
190 bool m_summaryHasBeenSet = false;
191
192 Aws::Utils::DateTime m_lastStatusChange{};
193 bool m_lastStatusChangeHasBeenSet = false;
194
195 Aws::String m_token;
196 bool m_tokenHasBeenSet = false;
197
198 Aws::String m_lastUpdatedBy;
199 bool m_lastUpdatedByHasBeenSet = false;
200
201 Aws::String m_externalExecutionId;
202 bool m_externalExecutionIdHasBeenSet = false;
203
204 Aws::String m_externalExecutionUrl;
205 bool m_externalExecutionUrlHasBeenSet = false;
206
207 int m_percentComplete{0};
208 bool m_percentCompleteHasBeenSet = false;
209
210 ErrorDetails m_errorDetails;
211 bool m_errorDetailsHasBeenSet = false;
212
213 Aws::String m_logStreamARN;
214 bool m_logStreamARNHasBeenSet = false;
215 };
216
217} // namespace Model
218} // namespace CodePipeline
219} // 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