AWS SDK for C++

AWS SDK for C++ Version 1.11.935

Loading...
Searching...
No Matches
TestCaseRun.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/iotdeviceadvisor/IoTDeviceAdvisor_EXPORTS.h>
11#include <aws/iotdeviceadvisor/model/Status.h>
12#include <aws/iotdeviceadvisor/model/TestCaseScenario.h>
13
14#include <utility>
15
16namespace Aws {
17namespace Utils {
18namespace Json {
19class JsonValue;
20class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace IoTDeviceAdvisor {
24namespace Model {
25
32 public:
33 AWS_IOTDEVICEADVISOR_API TestCaseRun() = default;
34 AWS_IOTDEVICEADVISOR_API TestCaseRun(Aws::Utils::Json::JsonView jsonValue);
35 AWS_IOTDEVICEADVISOR_API TestCaseRun& operator=(Aws::Utils::Json::JsonView jsonValue);
36 AWS_IOTDEVICEADVISOR_API Aws::Utils::Json::JsonValue Jsonize() const;
37
39
42 inline const Aws::String& GetTestCaseRunId() const { return m_testCaseRunId; }
43 inline bool TestCaseRunIdHasBeenSet() const { return m_testCaseRunIdHasBeenSet; }
44 template <typename TestCaseRunIdT = Aws::String>
45 void SetTestCaseRunId(TestCaseRunIdT&& value) {
46 m_testCaseRunIdHasBeenSet = true;
47 m_testCaseRunId = std::forward<TestCaseRunIdT>(value);
48 }
49 template <typename TestCaseRunIdT = Aws::String>
50 TestCaseRun& WithTestCaseRunId(TestCaseRunIdT&& value) {
51 SetTestCaseRunId(std::forward<TestCaseRunIdT>(value));
52 return *this;
53 }
55
57
60 inline const Aws::String& GetTestCaseDefinitionId() const { return m_testCaseDefinitionId; }
61 inline bool TestCaseDefinitionIdHasBeenSet() const { return m_testCaseDefinitionIdHasBeenSet; }
62 template <typename TestCaseDefinitionIdT = Aws::String>
63 void SetTestCaseDefinitionId(TestCaseDefinitionIdT&& value) {
64 m_testCaseDefinitionIdHasBeenSet = true;
65 m_testCaseDefinitionId = std::forward<TestCaseDefinitionIdT>(value);
66 }
67 template <typename TestCaseDefinitionIdT = Aws::String>
68 TestCaseRun& WithTestCaseDefinitionId(TestCaseDefinitionIdT&& value) {
69 SetTestCaseDefinitionId(std::forward<TestCaseDefinitionIdT>(value));
70 return *this;
71 }
73
75
78 inline const Aws::String& GetTestCaseDefinitionName() const { return m_testCaseDefinitionName; }
79 inline bool TestCaseDefinitionNameHasBeenSet() const { return m_testCaseDefinitionNameHasBeenSet; }
80 template <typename TestCaseDefinitionNameT = Aws::String>
81 void SetTestCaseDefinitionName(TestCaseDefinitionNameT&& value) {
82 m_testCaseDefinitionNameHasBeenSet = true;
83 m_testCaseDefinitionName = std::forward<TestCaseDefinitionNameT>(value);
84 }
85 template <typename TestCaseDefinitionNameT = Aws::String>
86 TestCaseRun& WithTestCaseDefinitionName(TestCaseDefinitionNameT&& value) {
87 SetTestCaseDefinitionName(std::forward<TestCaseDefinitionNameT>(value));
88 return *this;
89 }
91
93
105 inline Status GetStatus() const { return m_status; }
106 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
107 inline void SetStatus(Status value) {
108 m_statusHasBeenSet = true;
109 m_status = value;
110 }
112 SetStatus(value);
113 return *this;
114 }
116
118
121 inline const Aws::Utils::DateTime& GetStartTime() const { return m_startTime; }
122 inline bool StartTimeHasBeenSet() const { return m_startTimeHasBeenSet; }
123 template <typename StartTimeT = Aws::Utils::DateTime>
124 void SetStartTime(StartTimeT&& value) {
125 m_startTimeHasBeenSet = true;
126 m_startTime = std::forward<StartTimeT>(value);
127 }
128 template <typename StartTimeT = Aws::Utils::DateTime>
129 TestCaseRun& WithStartTime(StartTimeT&& value) {
130 SetStartTime(std::forward<StartTimeT>(value));
131 return *this;
132 }
134
136
139 inline const Aws::Utils::DateTime& GetEndTime() const { return m_endTime; }
140 inline bool EndTimeHasBeenSet() const { return m_endTimeHasBeenSet; }
141 template <typename EndTimeT = Aws::Utils::DateTime>
142 void SetEndTime(EndTimeT&& value) {
143 m_endTimeHasBeenSet = true;
144 m_endTime = std::forward<EndTimeT>(value);
145 }
146 template <typename EndTimeT = Aws::Utils::DateTime>
147 TestCaseRun& WithEndTime(EndTimeT&& value) {
148 SetEndTime(std::forward<EndTimeT>(value));
149 return *this;
150 }
152
154
157 inline const Aws::String& GetLogUrl() const { return m_logUrl; }
158 inline bool LogUrlHasBeenSet() const { return m_logUrlHasBeenSet; }
159 template <typename LogUrlT = Aws::String>
160 void SetLogUrl(LogUrlT&& value) {
161 m_logUrlHasBeenSet = true;
162 m_logUrl = std::forward<LogUrlT>(value);
163 }
164 template <typename LogUrlT = Aws::String>
165 TestCaseRun& WithLogUrl(LogUrlT&& value) {
166 SetLogUrl(std::forward<LogUrlT>(value));
167 return *this;
168 }
170
172
175 inline const Aws::String& GetWarnings() const { return m_warnings; }
176 inline bool WarningsHasBeenSet() const { return m_warningsHasBeenSet; }
177 template <typename WarningsT = Aws::String>
178 void SetWarnings(WarningsT&& value) {
179 m_warningsHasBeenSet = true;
180 m_warnings = std::forward<WarningsT>(value);
181 }
182 template <typename WarningsT = Aws::String>
183 TestCaseRun& WithWarnings(WarningsT&& value) {
184 SetWarnings(std::forward<WarningsT>(value));
185 return *this;
186 }
188
190
193 inline const Aws::String& GetFailure() const { return m_failure; }
194 inline bool FailureHasBeenSet() const { return m_failureHasBeenSet; }
195 template <typename FailureT = Aws::String>
196 void SetFailure(FailureT&& value) {
197 m_failureHasBeenSet = true;
198 m_failure = std::forward<FailureT>(value);
199 }
200 template <typename FailureT = Aws::String>
201 TestCaseRun& WithFailure(FailureT&& value) {
202 SetFailure(std::forward<FailureT>(value));
203 return *this;
204 }
206
208
211 inline const Aws::Vector<TestCaseScenario>& GetTestScenarios() const { return m_testScenarios; }
212 inline bool TestScenariosHasBeenSet() const { return m_testScenariosHasBeenSet; }
213 template <typename TestScenariosT = Aws::Vector<TestCaseScenario>>
214 void SetTestScenarios(TestScenariosT&& value) {
215 m_testScenariosHasBeenSet = true;
216 m_testScenarios = std::forward<TestScenariosT>(value);
217 }
218 template <typename TestScenariosT = Aws::Vector<TestCaseScenario>>
219 TestCaseRun& WithTestScenarios(TestScenariosT&& value) {
220 SetTestScenarios(std::forward<TestScenariosT>(value));
221 return *this;
222 }
223 template <typename TestScenariosT = TestCaseScenario>
224 TestCaseRun& AddTestScenarios(TestScenariosT&& value) {
225 m_testScenariosHasBeenSet = true;
226 m_testScenarios.emplace_back(std::forward<TestScenariosT>(value));
227 return *this;
228 }
230 private:
231 Aws::String m_testCaseRunId;
232
233 Aws::String m_testCaseDefinitionId;
234
235 Aws::String m_testCaseDefinitionName;
236
237 Status m_status{Status::NOT_SET};
238
239 Aws::Utils::DateTime m_startTime{};
240
241 Aws::Utils::DateTime m_endTime{};
242
243 Aws::String m_logUrl;
244
245 Aws::String m_warnings;
246
247 Aws::String m_failure;
248
249 Aws::Vector<TestCaseScenario> m_testScenarios;
250 bool m_testCaseRunIdHasBeenSet = false;
251 bool m_testCaseDefinitionIdHasBeenSet = false;
252 bool m_testCaseDefinitionNameHasBeenSet = false;
253 bool m_statusHasBeenSet = false;
254 bool m_startTimeHasBeenSet = false;
255 bool m_endTimeHasBeenSet = false;
256 bool m_logUrlHasBeenSet = false;
257 bool m_warningsHasBeenSet = false;
258 bool m_failureHasBeenSet = false;
259 bool m_testScenariosHasBeenSet = false;
260};
261
262} // namespace Model
263} // namespace IoTDeviceAdvisor
264} // namespace Aws
const Aws::Utils::DateTime & GetEndTime() const
void SetTestCaseRunId(TestCaseRunIdT &&value)
Definition TestCaseRun.h:45
const Aws::String & GetTestCaseRunId() const
Definition TestCaseRun.h:42
TestCaseRun & WithEndTime(EndTimeT &&value)
TestCaseRun & WithLogUrl(LogUrlT &&value)
TestCaseRun & WithTestCaseRunId(TestCaseRunIdT &&value)
Definition TestCaseRun.h:50
TestCaseRun & WithStartTime(StartTimeT &&value)
TestCaseRun & WithWarnings(WarningsT &&value)
TestCaseRun & WithFailure(FailureT &&value)
void SetTestScenarios(TestScenariosT &&value)
const Aws::String & GetLogUrl() const
const Aws::String & GetWarnings() const
TestCaseRun & WithTestCaseDefinitionName(TestCaseDefinitionNameT &&value)
Definition TestCaseRun.h:86
void SetTestCaseDefinitionId(TestCaseDefinitionIdT &&value)
Definition TestCaseRun.h:63
const Aws::String & GetTestCaseDefinitionName() const
Definition TestCaseRun.h:78
const Aws::String & GetFailure() const
void SetStartTime(StartTimeT &&value)
AWS_IOTDEVICEADVISOR_API TestCaseRun()=default
const Aws::Utils::DateTime & GetStartTime() const
void SetTestCaseDefinitionName(TestCaseDefinitionNameT &&value)
Definition TestCaseRun.h:81
const Aws::String & GetTestCaseDefinitionId() const
Definition TestCaseRun.h:60
TestCaseRun & WithStatus(Status value)
TestCaseRun & WithTestCaseDefinitionId(TestCaseDefinitionIdT &&value)
Definition TestCaseRun.h:68
AWS_IOTDEVICEADVISOR_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::Vector< TestCaseScenario > & GetTestScenarios() const
TestCaseRun & AddTestScenarios(TestScenariosT &&value)
TestCaseRun & WithTestScenarios(TestScenariosT &&value)
AWS_IOTDEVICEADVISOR_API TestCaseRun(Aws::Utils::Json::JsonView jsonValue)
AWS_IOTDEVICEADVISOR_API TestCaseRun & operator=(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue