AWS SDK for C++

AWS SDK for C++ Version 1.11.743

Loading...
Searching...
No Matches
Step.h
1
6#pragma once
7#include <aws/amplify/Amplify_EXPORTS.h>
8#include <aws/amplify/model/JobStatus.h>
9#include <aws/core/utils/DateTime.h>
10#include <aws/core/utils/memory/stl/AWSMap.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 Amplify {
23namespace Model {
24
31class Step {
32 public:
33 AWS_AMPLIFY_API Step() = default;
34 AWS_AMPLIFY_API Step(Aws::Utils::Json::JsonView jsonValue);
35 AWS_AMPLIFY_API Step& operator=(Aws::Utils::Json::JsonView jsonValue);
36 AWS_AMPLIFY_API Aws::Utils::Json::JsonValue Jsonize() const;
37
39
42 inline const Aws::String& GetStepName() const { return m_stepName; }
43 inline bool StepNameHasBeenSet() const { return m_stepNameHasBeenSet; }
44 template <typename StepNameT = Aws::String>
45 void SetStepName(StepNameT&& value) {
46 m_stepNameHasBeenSet = true;
47 m_stepName = std::forward<StepNameT>(value);
48 }
49 template <typename StepNameT = Aws::String>
50 Step& WithStepName(StepNameT&& value) {
51 SetStepName(std::forward<StepNameT>(value));
52 return *this;
53 }
55
57
60 inline const Aws::Utils::DateTime& GetStartTime() const { return m_startTime; }
61 inline bool StartTimeHasBeenSet() const { return m_startTimeHasBeenSet; }
62 template <typename StartTimeT = Aws::Utils::DateTime>
63 void SetStartTime(StartTimeT&& value) {
64 m_startTimeHasBeenSet = true;
65 m_startTime = std::forward<StartTimeT>(value);
66 }
67 template <typename StartTimeT = Aws::Utils::DateTime>
68 Step& WithStartTime(StartTimeT&& value) {
69 SetStartTime(std::forward<StartTimeT>(value));
70 return *this;
71 }
73
75
78 inline JobStatus GetStatus() const { return m_status; }
79 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
80 inline void SetStatus(JobStatus value) {
81 m_statusHasBeenSet = true;
82 m_status = value;
83 }
84 inline Step& WithStatus(JobStatus value) {
85 SetStatus(value);
86 return *this;
87 }
89
91
94 inline const Aws::Utils::DateTime& GetEndTime() const { return m_endTime; }
95 inline bool EndTimeHasBeenSet() const { return m_endTimeHasBeenSet; }
96 template <typename EndTimeT = Aws::Utils::DateTime>
97 void SetEndTime(EndTimeT&& value) {
98 m_endTimeHasBeenSet = true;
99 m_endTime = std::forward<EndTimeT>(value);
100 }
101 template <typename EndTimeT = Aws::Utils::DateTime>
102 Step& WithEndTime(EndTimeT&& value) {
103 SetEndTime(std::forward<EndTimeT>(value));
104 return *this;
105 }
107
109
112 inline const Aws::String& GetLogUrl() const { return m_logUrl; }
113 inline bool LogUrlHasBeenSet() const { return m_logUrlHasBeenSet; }
114 template <typename LogUrlT = Aws::String>
115 void SetLogUrl(LogUrlT&& value) {
116 m_logUrlHasBeenSet = true;
117 m_logUrl = std::forward<LogUrlT>(value);
118 }
119 template <typename LogUrlT = Aws::String>
120 Step& WithLogUrl(LogUrlT&& value) {
121 SetLogUrl(std::forward<LogUrlT>(value));
122 return *this;
123 }
125
127
130 inline const Aws::String& GetArtifactsUrl() const { return m_artifactsUrl; }
131 inline bool ArtifactsUrlHasBeenSet() const { return m_artifactsUrlHasBeenSet; }
132 template <typename ArtifactsUrlT = Aws::String>
133 void SetArtifactsUrl(ArtifactsUrlT&& value) {
134 m_artifactsUrlHasBeenSet = true;
135 m_artifactsUrl = std::forward<ArtifactsUrlT>(value);
136 }
137 template <typename ArtifactsUrlT = Aws::String>
138 Step& WithArtifactsUrl(ArtifactsUrlT&& value) {
139 SetArtifactsUrl(std::forward<ArtifactsUrlT>(value));
140 return *this;
141 }
143
145
148 inline const Aws::String& GetTestArtifactsUrl() const { return m_testArtifactsUrl; }
149 inline bool TestArtifactsUrlHasBeenSet() const { return m_testArtifactsUrlHasBeenSet; }
150 template <typename TestArtifactsUrlT = Aws::String>
151 void SetTestArtifactsUrl(TestArtifactsUrlT&& value) {
152 m_testArtifactsUrlHasBeenSet = true;
153 m_testArtifactsUrl = std::forward<TestArtifactsUrlT>(value);
154 }
155 template <typename TestArtifactsUrlT = Aws::String>
156 Step& WithTestArtifactsUrl(TestArtifactsUrlT&& value) {
157 SetTestArtifactsUrl(std::forward<TestArtifactsUrlT>(value));
158 return *this;
159 }
161
163
166 inline const Aws::String& GetTestConfigUrl() const { return m_testConfigUrl; }
167 inline bool TestConfigUrlHasBeenSet() const { return m_testConfigUrlHasBeenSet; }
168 template <typename TestConfigUrlT = Aws::String>
169 void SetTestConfigUrl(TestConfigUrlT&& value) {
170 m_testConfigUrlHasBeenSet = true;
171 m_testConfigUrl = std::forward<TestConfigUrlT>(value);
172 }
173 template <typename TestConfigUrlT = Aws::String>
174 Step& WithTestConfigUrl(TestConfigUrlT&& value) {
175 SetTestConfigUrl(std::forward<TestConfigUrlT>(value));
176 return *this;
177 }
179
181
184 inline const Aws::Map<Aws::String, Aws::String>& GetScreenshots() const { return m_screenshots; }
185 inline bool ScreenshotsHasBeenSet() const { return m_screenshotsHasBeenSet; }
186 template <typename ScreenshotsT = Aws::Map<Aws::String, Aws::String>>
187 void SetScreenshots(ScreenshotsT&& value) {
188 m_screenshotsHasBeenSet = true;
189 m_screenshots = std::forward<ScreenshotsT>(value);
190 }
191 template <typename ScreenshotsT = Aws::Map<Aws::String, Aws::String>>
192 Step& WithScreenshots(ScreenshotsT&& value) {
193 SetScreenshots(std::forward<ScreenshotsT>(value));
194 return *this;
195 }
196 template <typename ScreenshotsKeyT = Aws::String, typename ScreenshotsValueT = Aws::String>
197 Step& AddScreenshots(ScreenshotsKeyT&& key, ScreenshotsValueT&& value) {
198 m_screenshotsHasBeenSet = true;
199 m_screenshots.emplace(std::forward<ScreenshotsKeyT>(key), std::forward<ScreenshotsValueT>(value));
200 return *this;
201 }
203
205
208 inline const Aws::String& GetStatusReason() const { return m_statusReason; }
209 inline bool StatusReasonHasBeenSet() const { return m_statusReasonHasBeenSet; }
210 template <typename StatusReasonT = Aws::String>
211 void SetStatusReason(StatusReasonT&& value) {
212 m_statusReasonHasBeenSet = true;
213 m_statusReason = std::forward<StatusReasonT>(value);
214 }
215 template <typename StatusReasonT = Aws::String>
216 Step& WithStatusReason(StatusReasonT&& value) {
217 SetStatusReason(std::forward<StatusReasonT>(value));
218 return *this;
219 }
221
223
227 inline const Aws::String& GetContext() const { return m_context; }
228 inline bool ContextHasBeenSet() const { return m_contextHasBeenSet; }
229 template <typename ContextT = Aws::String>
230 void SetContext(ContextT&& value) {
231 m_contextHasBeenSet = true;
232 m_context = std::forward<ContextT>(value);
233 }
234 template <typename ContextT = Aws::String>
235 Step& WithContext(ContextT&& value) {
236 SetContext(std::forward<ContextT>(value));
237 return *this;
238 }
240 private:
241 Aws::String m_stepName;
242
243 Aws::Utils::DateTime m_startTime{};
244
246
247 Aws::Utils::DateTime m_endTime{};
248
249 Aws::String m_logUrl;
250
251 Aws::String m_artifactsUrl;
252
253 Aws::String m_testArtifactsUrl;
254
255 Aws::String m_testConfigUrl;
256
258
259 Aws::String m_statusReason;
260
261 Aws::String m_context;
262 bool m_stepNameHasBeenSet = false;
263 bool m_startTimeHasBeenSet = false;
264 bool m_statusHasBeenSet = false;
265 bool m_endTimeHasBeenSet = false;
266 bool m_logUrlHasBeenSet = false;
267 bool m_artifactsUrlHasBeenSet = false;
268 bool m_testArtifactsUrlHasBeenSet = false;
269 bool m_testConfigUrlHasBeenSet = false;
270 bool m_screenshotsHasBeenSet = false;
271 bool m_statusReasonHasBeenSet = false;
272 bool m_contextHasBeenSet = false;
273};
274
275} // namespace Model
276} // namespace Amplify
277} // namespace Aws
const Aws::Map< Aws::String, Aws::String > & GetScreenshots() const
Definition Step.h:184
Step & WithScreenshots(ScreenshotsT &&value)
Definition Step.h:192
void SetLogUrl(LogUrlT &&value)
Definition Step.h:115
Step & WithArtifactsUrl(ArtifactsUrlT &&value)
Definition Step.h:138
Step & WithTestConfigUrl(TestConfigUrlT &&value)
Definition Step.h:174
AWS_AMPLIFY_API Aws::Utils::Json::JsonValue Jsonize() const
void SetScreenshots(ScreenshotsT &&value)
Definition Step.h:187
bool TestArtifactsUrlHasBeenSet() const
Definition Step.h:149
const Aws::String & GetTestArtifactsUrl() const
Definition Step.h:148
bool ArtifactsUrlHasBeenSet() const
Definition Step.h:131
const Aws::String & GetStatusReason() const
Definition Step.h:208
bool StepNameHasBeenSet() const
Definition Step.h:43
void SetStatus(JobStatus value)
Definition Step.h:80
AWS_AMPLIFY_API Step()=default
bool ContextHasBeenSet() const
Definition Step.h:228
bool TestConfigUrlHasBeenSet() const
Definition Step.h:167
Step & WithStatus(JobStatus value)
Definition Step.h:84
Step & AddScreenshots(ScreenshotsKeyT &&key, ScreenshotsValueT &&value)
Definition Step.h:197
Step & WithStepName(StepNameT &&value)
Definition Step.h:50
Step & WithTestArtifactsUrl(TestArtifactsUrlT &&value)
Definition Step.h:156
AWS_AMPLIFY_API Step & operator=(Aws::Utils::Json::JsonView jsonValue)
Step & WithStatusReason(StatusReasonT &&value)
Definition Step.h:216
void SetStepName(StepNameT &&value)
Definition Step.h:45
void SetEndTime(EndTimeT &&value)
Definition Step.h:97
void SetTestArtifactsUrl(TestArtifactsUrlT &&value)
Definition Step.h:151
JobStatus GetStatus() const
Definition Step.h:78
Step & WithContext(ContextT &&value)
Definition Step.h:235
const Aws::Utils::DateTime & GetEndTime() const
Definition Step.h:94
bool ScreenshotsHasBeenSet() const
Definition Step.h:185
const Aws::String & GetLogUrl() const
Definition Step.h:112
bool LogUrlHasBeenSet() const
Definition Step.h:113
bool EndTimeHasBeenSet() const
Definition Step.h:95
const Aws::String & GetTestConfigUrl() const
Definition Step.h:166
void SetArtifactsUrl(ArtifactsUrlT &&value)
Definition Step.h:133
void SetTestConfigUrl(TestConfigUrlT &&value)
Definition Step.h:169
bool StatusHasBeenSet() const
Definition Step.h:79
void SetStartTime(StartTimeT &&value)
Definition Step.h:63
const Aws::Utils::DateTime & GetStartTime() const
Definition Step.h:60
void SetContext(ContextT &&value)
Definition Step.h:230
Step & WithStartTime(StartTimeT &&value)
Definition Step.h:68
const Aws::String & GetArtifactsUrl() const
Definition Step.h:130
void SetStatusReason(StatusReasonT &&value)
Definition Step.h:211
Step & WithEndTime(EndTimeT &&value)
Definition Step.h:102
const Aws::String & GetContext() const
Definition Step.h:227
bool StatusReasonHasBeenSet() const
Definition Step.h:209
const Aws::String & GetStepName() const
Definition Step.h:42
Step & WithLogUrl(LogUrlT &&value)
Definition Step.h:120
bool StartTimeHasBeenSet() const
Definition Step.h:61
AWS_AMPLIFY_API Step(Aws::Utils::Json::JsonView jsonValue)
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue