AWS SDK for C++

AWS SDK for C++ Version 1.11.607

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() = default;
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 template<typename StepNameT = Aws::String>
51 void SetStepName(StepNameT&& value) { m_stepNameHasBeenSet = true; m_stepName = std::forward<StepNameT>(value); }
52 template<typename StepNameT = Aws::String>
53 Step& WithStepName(StepNameT&& value) { SetStepName(std::forward<StepNameT>(value)); return *this;}
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) { m_startTimeHasBeenSet = true; m_startTime = std::forward<StartTimeT>(value); }
64 template<typename StartTimeT = Aws::Utils::DateTime>
65 Step& WithStartTime(StartTimeT&& value) { SetStartTime(std::forward<StartTimeT>(value)); return *this;}
67
69
72 inline JobStatus GetStatus() const { return m_status; }
73 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
74 inline void SetStatus(JobStatus value) { m_statusHasBeenSet = true; m_status = value; }
75 inline Step& WithStatus(JobStatus value) { SetStatus(value); return *this;}
77
79
82 inline const Aws::Utils::DateTime& GetEndTime() const { return m_endTime; }
83 inline bool EndTimeHasBeenSet() const { return m_endTimeHasBeenSet; }
84 template<typename EndTimeT = Aws::Utils::DateTime>
85 void SetEndTime(EndTimeT&& value) { m_endTimeHasBeenSet = true; m_endTime = std::forward<EndTimeT>(value); }
86 template<typename EndTimeT = Aws::Utils::DateTime>
87 Step& WithEndTime(EndTimeT&& value) { SetEndTime(std::forward<EndTimeT>(value)); return *this;}
89
91
94 inline const Aws::String& GetLogUrl() const { return m_logUrl; }
95 inline bool LogUrlHasBeenSet() const { return m_logUrlHasBeenSet; }
96 template<typename LogUrlT = Aws::String>
97 void SetLogUrl(LogUrlT&& value) { m_logUrlHasBeenSet = true; m_logUrl = std::forward<LogUrlT>(value); }
98 template<typename LogUrlT = Aws::String>
99 Step& WithLogUrl(LogUrlT&& value) { SetLogUrl(std::forward<LogUrlT>(value)); return *this;}
101
103
106 inline const Aws::String& GetArtifactsUrl() const { return m_artifactsUrl; }
107 inline bool ArtifactsUrlHasBeenSet() const { return m_artifactsUrlHasBeenSet; }
108 template<typename ArtifactsUrlT = Aws::String>
109 void SetArtifactsUrl(ArtifactsUrlT&& value) { m_artifactsUrlHasBeenSet = true; m_artifactsUrl = std::forward<ArtifactsUrlT>(value); }
110 template<typename ArtifactsUrlT = Aws::String>
111 Step& WithArtifactsUrl(ArtifactsUrlT&& value) { SetArtifactsUrl(std::forward<ArtifactsUrlT>(value)); return *this;}
113
115
118 inline const Aws::String& GetTestArtifactsUrl() const { return m_testArtifactsUrl; }
119 inline bool TestArtifactsUrlHasBeenSet() const { return m_testArtifactsUrlHasBeenSet; }
120 template<typename TestArtifactsUrlT = Aws::String>
121 void SetTestArtifactsUrl(TestArtifactsUrlT&& value) { m_testArtifactsUrlHasBeenSet = true; m_testArtifactsUrl = std::forward<TestArtifactsUrlT>(value); }
122 template<typename TestArtifactsUrlT = Aws::String>
123 Step& WithTestArtifactsUrl(TestArtifactsUrlT&& value) { SetTestArtifactsUrl(std::forward<TestArtifactsUrlT>(value)); return *this;}
125
127
130 inline const Aws::String& GetTestConfigUrl() const { return m_testConfigUrl; }
131 inline bool TestConfigUrlHasBeenSet() const { return m_testConfigUrlHasBeenSet; }
132 template<typename TestConfigUrlT = Aws::String>
133 void SetTestConfigUrl(TestConfigUrlT&& value) { m_testConfigUrlHasBeenSet = true; m_testConfigUrl = std::forward<TestConfigUrlT>(value); }
134 template<typename TestConfigUrlT = Aws::String>
135 Step& WithTestConfigUrl(TestConfigUrlT&& value) { SetTestConfigUrl(std::forward<TestConfigUrlT>(value)); return *this;}
137
139
142 inline const Aws::Map<Aws::String, Aws::String>& GetScreenshots() const { return m_screenshots; }
143 inline bool ScreenshotsHasBeenSet() const { return m_screenshotsHasBeenSet; }
144 template<typename ScreenshotsT = Aws::Map<Aws::String, Aws::String>>
145 void SetScreenshots(ScreenshotsT&& value) { m_screenshotsHasBeenSet = true; m_screenshots = std::forward<ScreenshotsT>(value); }
146 template<typename ScreenshotsT = Aws::Map<Aws::String, Aws::String>>
147 Step& WithScreenshots(ScreenshotsT&& value) { SetScreenshots(std::forward<ScreenshotsT>(value)); return *this;}
148 template<typename ScreenshotsKeyT = Aws::String, typename ScreenshotsValueT = Aws::String>
149 Step& AddScreenshots(ScreenshotsKeyT&& key, ScreenshotsValueT&& value) {
150 m_screenshotsHasBeenSet = true; m_screenshots.emplace(std::forward<ScreenshotsKeyT>(key), std::forward<ScreenshotsValueT>(value)); return *this;
151 }
153
155
158 inline const Aws::String& GetStatusReason() const { return m_statusReason; }
159 inline bool StatusReasonHasBeenSet() const { return m_statusReasonHasBeenSet; }
160 template<typename StatusReasonT = Aws::String>
161 void SetStatusReason(StatusReasonT&& value) { m_statusReasonHasBeenSet = true; m_statusReason = std::forward<StatusReasonT>(value); }
162 template<typename StatusReasonT = Aws::String>
163 Step& WithStatusReason(StatusReasonT&& value) { SetStatusReason(std::forward<StatusReasonT>(value)); return *this;}
165
167
171 inline const Aws::String& GetContext() const { return m_context; }
172 inline bool ContextHasBeenSet() const { return m_contextHasBeenSet; }
173 template<typename ContextT = Aws::String>
174 void SetContext(ContextT&& value) { m_contextHasBeenSet = true; m_context = std::forward<ContextT>(value); }
175 template<typename ContextT = Aws::String>
176 Step& WithContext(ContextT&& value) { SetContext(std::forward<ContextT>(value)); return *this;}
178 private:
179
180 Aws::String m_stepName;
181 bool m_stepNameHasBeenSet = false;
182
183 Aws::Utils::DateTime m_startTime{};
184 bool m_startTimeHasBeenSet = false;
185
187 bool m_statusHasBeenSet = false;
188
189 Aws::Utils::DateTime m_endTime{};
190 bool m_endTimeHasBeenSet = false;
191
192 Aws::String m_logUrl;
193 bool m_logUrlHasBeenSet = false;
194
195 Aws::String m_artifactsUrl;
196 bool m_artifactsUrlHasBeenSet = false;
197
198 Aws::String m_testArtifactsUrl;
199 bool m_testArtifactsUrlHasBeenSet = false;
200
201 Aws::String m_testConfigUrl;
202 bool m_testConfigUrlHasBeenSet = false;
203
205 bool m_screenshotsHasBeenSet = false;
206
207 Aws::String m_statusReason;
208 bool m_statusReasonHasBeenSet = false;
209
210 Aws::String m_context;
211 bool m_contextHasBeenSet = false;
212 };
213
214} // namespace Model
215} // namespace Amplify
216} // namespace Aws
const Aws::Map< Aws::String, Aws::String > & GetScreenshots() const
Definition Step.h:142
Step & WithScreenshots(ScreenshotsT &&value)
Definition Step.h:147
void SetLogUrl(LogUrlT &&value)
Definition Step.h:97
Step & WithArtifactsUrl(ArtifactsUrlT &&value)
Definition Step.h:111
Step & WithTestConfigUrl(TestConfigUrlT &&value)
Definition Step.h:135
AWS_AMPLIFY_API Aws::Utils::Json::JsonValue Jsonize() const
void SetScreenshots(ScreenshotsT &&value)
Definition Step.h:145
bool TestArtifactsUrlHasBeenSet() const
Definition Step.h:119
const Aws::String & GetTestArtifactsUrl() const
Definition Step.h:118
bool ArtifactsUrlHasBeenSet() const
Definition Step.h:107
const Aws::String & GetStatusReason() const
Definition Step.h:158
bool StepNameHasBeenSet() const
Definition Step.h:49
void SetStatus(JobStatus value)
Definition Step.h:74
AWS_AMPLIFY_API Step()=default
bool ContextHasBeenSet() const
Definition Step.h:172
bool TestConfigUrlHasBeenSet() const
Definition Step.h:131
Step & WithStatus(JobStatus value)
Definition Step.h:75
Step & AddScreenshots(ScreenshotsKeyT &&key, ScreenshotsValueT &&value)
Definition Step.h:149
Step & WithStepName(StepNameT &&value)
Definition Step.h:53
Step & WithTestArtifactsUrl(TestArtifactsUrlT &&value)
Definition Step.h:123
AWS_AMPLIFY_API Step & operator=(Aws::Utils::Json::JsonView jsonValue)
Step & WithStatusReason(StatusReasonT &&value)
Definition Step.h:163
void SetStepName(StepNameT &&value)
Definition Step.h:51
void SetEndTime(EndTimeT &&value)
Definition Step.h:85
void SetTestArtifactsUrl(TestArtifactsUrlT &&value)
Definition Step.h:121
JobStatus GetStatus() const
Definition Step.h:72
Step & WithContext(ContextT &&value)
Definition Step.h:176
const Aws::Utils::DateTime & GetEndTime() const
Definition Step.h:82
bool ScreenshotsHasBeenSet() const
Definition Step.h:143
const Aws::String & GetLogUrl() const
Definition Step.h:94
bool LogUrlHasBeenSet() const
Definition Step.h:95
bool EndTimeHasBeenSet() const
Definition Step.h:83
const Aws::String & GetTestConfigUrl() const
Definition Step.h:130
void SetArtifactsUrl(ArtifactsUrlT &&value)
Definition Step.h:109
void SetTestConfigUrl(TestConfigUrlT &&value)
Definition Step.h:133
bool StatusHasBeenSet() const
Definition Step.h:73
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:174
Step & WithStartTime(StartTimeT &&value)
Definition Step.h:65
const Aws::String & GetArtifactsUrl() const
Definition Step.h:106
void SetStatusReason(StatusReasonT &&value)
Definition Step.h:161
Step & WithEndTime(EndTimeT &&value)
Definition Step.h:87
const Aws::String & GetContext() const
Definition Step.h:171
bool StatusReasonHasBeenSet() const
Definition Step.h:159
const Aws::String & GetStepName() const
Definition Step.h:48
Step & WithLogUrl(LogUrlT &&value)
Definition Step.h:99
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