AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
Step.h
1
6#pragma once
7#include <aws/amplify/Amplify_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/DateTime.h>
10#include <aws/amplify/model/JobStatus.h>
11#include <aws/core/utils/memory/stl/AWSMap.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 Amplify
25{
26namespace Model
27{
28
35 class Step
36 {
37 public:
38 AWS_AMPLIFY_API Step();
39 AWS_AMPLIFY_API Step(Aws::Utils::Json::JsonView jsonValue);
40 AWS_AMPLIFY_API Step& operator=(Aws::Utils::Json::JsonView jsonValue);
41 AWS_AMPLIFY_API Aws::Utils::Json::JsonValue Jsonize() const;
42
43
45
48 inline const Aws::String& GetStepName() const{ return m_stepName; }
49 inline bool StepNameHasBeenSet() const { return m_stepNameHasBeenSet; }
50 inline void SetStepName(const Aws::String& value) { m_stepNameHasBeenSet = true; m_stepName = value; }
51 inline void SetStepName(Aws::String&& value) { m_stepNameHasBeenSet = true; m_stepName = std::move(value); }
52 inline void SetStepName(const char* value) { m_stepNameHasBeenSet = true; m_stepName.assign(value); }
53 inline Step& WithStepName(const Aws::String& value) { SetStepName(value); return *this;}
54 inline Step& WithStepName(Aws::String&& value) { SetStepName(std::move(value)); return *this;}
55 inline Step& WithStepName(const char* value) { SetStepName(value); return *this;}
57
59
62 inline const Aws::Utils::DateTime& GetStartTime() const{ return m_startTime; }
63 inline bool StartTimeHasBeenSet() const { return m_startTimeHasBeenSet; }
64 inline void SetStartTime(const Aws::Utils::DateTime& value) { m_startTimeHasBeenSet = true; m_startTime = value; }
65 inline void SetStartTime(Aws::Utils::DateTime&& value) { m_startTimeHasBeenSet = true; m_startTime = std::move(value); }
66 inline Step& WithStartTime(const Aws::Utils::DateTime& value) { SetStartTime(value); return *this;}
67 inline Step& WithStartTime(Aws::Utils::DateTime&& value) { SetStartTime(std::move(value)); return *this;}
69
71
74 inline const JobStatus& GetStatus() const{ return m_status; }
75 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
76 inline void SetStatus(const JobStatus& value) { m_statusHasBeenSet = true; m_status = value; }
77 inline void SetStatus(JobStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
78 inline Step& WithStatus(const JobStatus& value) { SetStatus(value); return *this;}
79 inline Step& WithStatus(JobStatus&& value) { SetStatus(std::move(value)); return *this;}
81
83
86 inline const Aws::Utils::DateTime& GetEndTime() const{ return m_endTime; }
87 inline bool EndTimeHasBeenSet() const { return m_endTimeHasBeenSet; }
88 inline void SetEndTime(const Aws::Utils::DateTime& value) { m_endTimeHasBeenSet = true; m_endTime = value; }
89 inline void SetEndTime(Aws::Utils::DateTime&& value) { m_endTimeHasBeenSet = true; m_endTime = std::move(value); }
90 inline Step& WithEndTime(const Aws::Utils::DateTime& value) { SetEndTime(value); return *this;}
91 inline Step& WithEndTime(Aws::Utils::DateTime&& value) { SetEndTime(std::move(value)); return *this;}
93
95
98 inline const Aws::String& GetLogUrl() const{ return m_logUrl; }
99 inline bool LogUrlHasBeenSet() const { return m_logUrlHasBeenSet; }
100 inline void SetLogUrl(const Aws::String& value) { m_logUrlHasBeenSet = true; m_logUrl = value; }
101 inline void SetLogUrl(Aws::String&& value) { m_logUrlHasBeenSet = true; m_logUrl = std::move(value); }
102 inline void SetLogUrl(const char* value) { m_logUrlHasBeenSet = true; m_logUrl.assign(value); }
103 inline Step& WithLogUrl(const Aws::String& value) { SetLogUrl(value); return *this;}
104 inline Step& WithLogUrl(Aws::String&& value) { SetLogUrl(std::move(value)); return *this;}
105 inline Step& WithLogUrl(const char* value) { SetLogUrl(value); return *this;}
107
109
112 inline const Aws::String& GetArtifactsUrl() const{ return m_artifactsUrl; }
113 inline bool ArtifactsUrlHasBeenSet() const { return m_artifactsUrlHasBeenSet; }
114 inline void SetArtifactsUrl(const Aws::String& value) { m_artifactsUrlHasBeenSet = true; m_artifactsUrl = value; }
115 inline void SetArtifactsUrl(Aws::String&& value) { m_artifactsUrlHasBeenSet = true; m_artifactsUrl = std::move(value); }
116 inline void SetArtifactsUrl(const char* value) { m_artifactsUrlHasBeenSet = true; m_artifactsUrl.assign(value); }
117 inline Step& WithArtifactsUrl(const Aws::String& value) { SetArtifactsUrl(value); return *this;}
118 inline Step& WithArtifactsUrl(Aws::String&& value) { SetArtifactsUrl(std::move(value)); return *this;}
119 inline Step& WithArtifactsUrl(const char* value) { SetArtifactsUrl(value); return *this;}
121
123
126 inline const Aws::String& GetTestArtifactsUrl() const{ return m_testArtifactsUrl; }
127 inline bool TestArtifactsUrlHasBeenSet() const { return m_testArtifactsUrlHasBeenSet; }
128 inline void SetTestArtifactsUrl(const Aws::String& value) { m_testArtifactsUrlHasBeenSet = true; m_testArtifactsUrl = value; }
129 inline void SetTestArtifactsUrl(Aws::String&& value) { m_testArtifactsUrlHasBeenSet = true; m_testArtifactsUrl = std::move(value); }
130 inline void SetTestArtifactsUrl(const char* value) { m_testArtifactsUrlHasBeenSet = true; m_testArtifactsUrl.assign(value); }
131 inline Step& WithTestArtifactsUrl(const Aws::String& value) { SetTestArtifactsUrl(value); return *this;}
132 inline Step& WithTestArtifactsUrl(Aws::String&& value) { SetTestArtifactsUrl(std::move(value)); return *this;}
133 inline Step& WithTestArtifactsUrl(const char* value) { SetTestArtifactsUrl(value); return *this;}
135
137
140 inline const Aws::String& GetTestConfigUrl() const{ return m_testConfigUrl; }
141 inline bool TestConfigUrlHasBeenSet() const { return m_testConfigUrlHasBeenSet; }
142 inline void SetTestConfigUrl(const Aws::String& value) { m_testConfigUrlHasBeenSet = true; m_testConfigUrl = value; }
143 inline void SetTestConfigUrl(Aws::String&& value) { m_testConfigUrlHasBeenSet = true; m_testConfigUrl = std::move(value); }
144 inline void SetTestConfigUrl(const char* value) { m_testConfigUrlHasBeenSet = true; m_testConfigUrl.assign(value); }
145 inline Step& WithTestConfigUrl(const Aws::String& value) { SetTestConfigUrl(value); return *this;}
146 inline Step& WithTestConfigUrl(Aws::String&& value) { SetTestConfigUrl(std::move(value)); return *this;}
147 inline Step& WithTestConfigUrl(const char* value) { SetTestConfigUrl(value); return *this;}
149
151
154 inline const Aws::Map<Aws::String, Aws::String>& GetScreenshots() const{ return m_screenshots; }
155 inline bool ScreenshotsHasBeenSet() const { return m_screenshotsHasBeenSet; }
156 inline void SetScreenshots(const Aws::Map<Aws::String, Aws::String>& value) { m_screenshotsHasBeenSet = true; m_screenshots = value; }
157 inline void SetScreenshots(Aws::Map<Aws::String, Aws::String>&& value) { m_screenshotsHasBeenSet = true; m_screenshots = std::move(value); }
158 inline Step& WithScreenshots(const Aws::Map<Aws::String, Aws::String>& value) { SetScreenshots(value); return *this;}
159 inline Step& WithScreenshots(Aws::Map<Aws::String, Aws::String>&& value) { SetScreenshots(std::move(value)); return *this;}
160 inline Step& AddScreenshots(const Aws::String& key, const Aws::String& value) { m_screenshotsHasBeenSet = true; m_screenshots.emplace(key, value); return *this; }
161 inline Step& AddScreenshots(Aws::String&& key, const Aws::String& value) { m_screenshotsHasBeenSet = true; m_screenshots.emplace(std::move(key), value); return *this; }
162 inline Step& AddScreenshots(const Aws::String& key, Aws::String&& value) { m_screenshotsHasBeenSet = true; m_screenshots.emplace(key, std::move(value)); return *this; }
163 inline Step& AddScreenshots(Aws::String&& key, Aws::String&& value) { m_screenshotsHasBeenSet = true; m_screenshots.emplace(std::move(key), std::move(value)); return *this; }
164 inline Step& AddScreenshots(const char* key, Aws::String&& value) { m_screenshotsHasBeenSet = true; m_screenshots.emplace(key, std::move(value)); return *this; }
165 inline Step& AddScreenshots(Aws::String&& key, const char* value) { m_screenshotsHasBeenSet = true; m_screenshots.emplace(std::move(key), value); return *this; }
166 inline Step& AddScreenshots(const char* key, const char* value) { m_screenshotsHasBeenSet = true; m_screenshots.emplace(key, value); return *this; }
168
170
173 inline const Aws::String& GetStatusReason() const{ return m_statusReason; }
174 inline bool StatusReasonHasBeenSet() const { return m_statusReasonHasBeenSet; }
175 inline void SetStatusReason(const Aws::String& value) { m_statusReasonHasBeenSet = true; m_statusReason = value; }
176 inline void SetStatusReason(Aws::String&& value) { m_statusReasonHasBeenSet = true; m_statusReason = std::move(value); }
177 inline void SetStatusReason(const char* value) { m_statusReasonHasBeenSet = true; m_statusReason.assign(value); }
178 inline Step& WithStatusReason(const Aws::String& value) { SetStatusReason(value); return *this;}
179 inline Step& WithStatusReason(Aws::String&& value) { SetStatusReason(std::move(value)); return *this;}
180 inline Step& WithStatusReason(const char* value) { SetStatusReason(value); return *this;}
182
184
188 inline const Aws::String& GetContext() const{ return m_context; }
189 inline bool ContextHasBeenSet() const { return m_contextHasBeenSet; }
190 inline void SetContext(const Aws::String& value) { m_contextHasBeenSet = true; m_context = value; }
191 inline void SetContext(Aws::String&& value) { m_contextHasBeenSet = true; m_context = std::move(value); }
192 inline void SetContext(const char* value) { m_contextHasBeenSet = true; m_context.assign(value); }
193 inline Step& WithContext(const Aws::String& value) { SetContext(value); return *this;}
194 inline Step& WithContext(Aws::String&& value) { SetContext(std::move(value)); return *this;}
195 inline Step& WithContext(const char* value) { SetContext(value); return *this;}
197 private:
198
199 Aws::String m_stepName;
200 bool m_stepNameHasBeenSet = false;
201
202 Aws::Utils::DateTime m_startTime;
203 bool m_startTimeHasBeenSet = false;
204
205 JobStatus m_status;
206 bool m_statusHasBeenSet = false;
207
208 Aws::Utils::DateTime m_endTime;
209 bool m_endTimeHasBeenSet = false;
210
211 Aws::String m_logUrl;
212 bool m_logUrlHasBeenSet = false;
213
214 Aws::String m_artifactsUrl;
215 bool m_artifactsUrlHasBeenSet = false;
216
217 Aws::String m_testArtifactsUrl;
218 bool m_testArtifactsUrlHasBeenSet = false;
219
220 Aws::String m_testConfigUrl;
221 bool m_testConfigUrlHasBeenSet = false;
222
224 bool m_screenshotsHasBeenSet = false;
225
226 Aws::String m_statusReason;
227 bool m_statusReasonHasBeenSet = false;
228
229 Aws::String m_context;
230 bool m_contextHasBeenSet = false;
231 };
232
233} // namespace Model
234} // namespace Amplify
235} // namespace Aws
void SetTestConfigUrl(const char *value)
Definition Step.h:144
const Aws::Map< Aws::String, Aws::String > & GetScreenshots() const
Definition Step.h:154
void SetContext(Aws::String &&value)
Definition Step.h:191
void SetLogUrl(Aws::String &&value)
Definition Step.h:101
void SetTestArtifactsUrl(const char *value)
Definition Step.h:130
Step & WithStatusReason(Aws::String &&value)
Definition Step.h:179
void SetEndTime(const Aws::Utils::DateTime &value)
Definition Step.h:88
Step & WithStepName(const Aws::String &value)
Definition Step.h:53
Step & WithLogUrl(const Aws::String &value)
Definition Step.h:103
AWS_AMPLIFY_API Aws::Utils::Json::JsonValue Jsonize() const
Step & WithEndTime(Aws::Utils::DateTime &&value)
Definition Step.h:91
Step & WithLogUrl(Aws::String &&value)
Definition Step.h:104
Step & WithArtifactsUrl(Aws::String &&value)
Definition Step.h:118
void SetContext(const Aws::String &value)
Definition Step.h:190
AWS_AMPLIFY_API Step()
bool TestArtifactsUrlHasBeenSet() const
Definition Step.h:127
const Aws::String & GetTestArtifactsUrl() const
Definition Step.h:126
bool ArtifactsUrlHasBeenSet() const
Definition Step.h:113
Step & AddScreenshots(Aws::String &&key, const Aws::String &value)
Definition Step.h:161
Step & WithStatusReason(const Aws::String &value)
Definition Step.h:178
void SetTestArtifactsUrl(const Aws::String &value)
Definition Step.h:128
void SetLogUrl(const char *value)
Definition Step.h:102
const Aws::String & GetStatusReason() const
Definition Step.h:173
void SetStepName(const Aws::String &value)
Definition Step.h:50
bool StepNameHasBeenSet() const
Definition Step.h:49
void SetStatusReason(const Aws::String &value)
Definition Step.h:175
bool ContextHasBeenSet() const
Definition Step.h:189
Step & WithStartTime(const Aws::Utils::DateTime &value)
Definition Step.h:66
bool TestConfigUrlHasBeenSet() const
Definition Step.h:141
Step & AddScreenshots(const char *key, const char *value)
Definition Step.h:166
AWS_AMPLIFY_API Step & operator=(Aws::Utils::Json::JsonView jsonValue)
Step & WithLogUrl(const char *value)
Definition Step.h:105
void SetStatus(JobStatus &&value)
Definition Step.h:77
Step & WithScreenshots(const Aws::Map< Aws::String, Aws::String > &value)
Definition Step.h:158
Step & WithStatus(JobStatus &&value)
Definition Step.h:79
void SetStatus(const JobStatus &value)
Definition Step.h:76
Step & WithStepName(Aws::String &&value)
Definition Step.h:54
void SetStatusReason(Aws::String &&value)
Definition Step.h:176
Step & AddScreenshots(const Aws::String &key, Aws::String &&value)
Definition Step.h:162
void SetScreenshots(Aws::Map< Aws::String, Aws::String > &&value)
Definition Step.h:157
Step & WithStartTime(Aws::Utils::DateTime &&value)
Definition Step.h:67
const Aws::Utils::DateTime & GetEndTime() const
Definition Step.h:86
bool ScreenshotsHasBeenSet() const
Definition Step.h:155
Step & WithArtifactsUrl(const Aws::String &value)
Definition Step.h:117
const Aws::String & GetLogUrl() const
Definition Step.h:98
Step & WithEndTime(const Aws::Utils::DateTime &value)
Definition Step.h:90
void SetLogUrl(const Aws::String &value)
Definition Step.h:100
void SetScreenshots(const Aws::Map< Aws::String, Aws::String > &value)
Definition Step.h:156
Step & AddScreenshots(const Aws::String &key, const Aws::String &value)
Definition Step.h:160
void SetStepName(const char *value)
Definition Step.h:52
Step & WithContext(Aws::String &&value)
Definition Step.h:194
void SetTestConfigUrl(Aws::String &&value)
Definition Step.h:143
Step & AddScreenshots(Aws::String &&key, const char *value)
Definition Step.h:165
bool LogUrlHasBeenSet() const
Definition Step.h:99
void SetArtifactsUrl(const Aws::String &value)
Definition Step.h:114
bool EndTimeHasBeenSet() const
Definition Step.h:87
Step & AddScreenshots(Aws::String &&key, Aws::String &&value)
Definition Step.h:163
Step & WithStatusReason(const char *value)
Definition Step.h:180
void SetEndTime(Aws::Utils::DateTime &&value)
Definition Step.h:89
const Aws::String & GetTestConfigUrl() const
Definition Step.h:140
Step & WithScreenshots(Aws::Map< Aws::String, Aws::String > &&value)
Definition Step.h:159
bool StatusHasBeenSet() const
Definition Step.h:75
void SetStartTime(const Aws::Utils::DateTime &value)
Definition Step.h:64
void SetArtifactsUrl(const char *value)
Definition Step.h:116
Step & WithContext(const Aws::String &value)
Definition Step.h:193
const Aws::Utils::DateTime & GetStartTime() const
Definition Step.h:62
void SetStatusReason(const char *value)
Definition Step.h:177
void SetContext(const char *value)
Definition Step.h:192
Step & WithTestArtifactsUrl(const Aws::String &value)
Definition Step.h:131
Step & WithStatus(const JobStatus &value)
Definition Step.h:78
const Aws::String & GetArtifactsUrl() const
Definition Step.h:112
Step & WithContext(const char *value)
Definition Step.h:195
const Aws::String & GetContext() const
Definition Step.h:188
const JobStatus & GetStatus() const
Definition Step.h:74
Step & WithTestConfigUrl(Aws::String &&value)
Definition Step.h:146
void SetArtifactsUrl(Aws::String &&value)
Definition Step.h:115
Step & WithArtifactsUrl(const char *value)
Definition Step.h:119
Step & WithTestConfigUrl(const Aws::String &value)
Definition Step.h:145
Step & AddScreenshots(const char *key, Aws::String &&value)
Definition Step.h:164
bool StatusReasonHasBeenSet() const
Definition Step.h:174
void SetTestConfigUrl(const Aws::String &value)
Definition Step.h:142
Step & WithTestArtifactsUrl(Aws::String &&value)
Definition Step.h:132
void SetStepName(Aws::String &&value)
Definition Step.h:51
const Aws::String & GetStepName() const
Definition Step.h:48
Step & WithStepName(const char *value)
Definition Step.h:55
Step & WithTestConfigUrl(const char *value)
Definition Step.h:147
bool StartTimeHasBeenSet() const
Definition Step.h:63
void SetStartTime(Aws::Utils::DateTime &&value)
Definition Step.h:65
void SetTestArtifactsUrl(Aws::String &&value)
Definition Step.h:129
Step & WithTestArtifactsUrl(const char *value)
Definition Step.h:133
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