AWS SDK for C++

AWS SDK for C++ Version 1.11.748

Loading...
Searching...
No Matches
Test.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/devicefarm/DeviceFarm_EXPORTS.h>
10#include <aws/devicefarm/model/Counters.h>
11#include <aws/devicefarm/model/DeviceMinutes.h>
12#include <aws/devicefarm/model/ExecutionResult.h>
13#include <aws/devicefarm/model/ExecutionStatus.h>
14#include <aws/devicefarm/model/TestType.h>
15
16#include <utility>
17
18namespace Aws {
19namespace Utils {
20namespace Json {
21class JsonValue;
22class JsonView;
23} // namespace Json
24} // namespace Utils
25namespace DeviceFarm {
26namespace Model {
27
33class Test {
34 public:
35 AWS_DEVICEFARM_API Test() = default;
36 AWS_DEVICEFARM_API Test(Aws::Utils::Json::JsonView jsonValue);
37 AWS_DEVICEFARM_API Test& operator=(Aws::Utils::Json::JsonView jsonValue);
38 AWS_DEVICEFARM_API Aws::Utils::Json::JsonValue Jsonize() const;
39
41
44 inline const Aws::String& GetArn() const { return m_arn; }
45 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
46 template <typename ArnT = Aws::String>
47 void SetArn(ArnT&& value) {
48 m_arnHasBeenSet = true;
49 m_arn = std::forward<ArnT>(value);
50 }
51 template <typename ArnT = Aws::String>
52 Test& WithArn(ArnT&& value) {
53 SetArn(std::forward<ArnT>(value));
54 return *this;
55 }
57
59
62 inline const Aws::String& GetName() const { return m_name; }
63 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
64 template <typename NameT = Aws::String>
65 void SetName(NameT&& value) {
66 m_nameHasBeenSet = true;
67 m_name = std::forward<NameT>(value);
68 }
69 template <typename NameT = Aws::String>
70 Test& WithName(NameT&& value) {
71 SetName(std::forward<NameT>(value));
72 return *this;
73 }
75
77
87 inline TestType GetType() const { return m_type; }
88 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
89 inline void SetType(TestType value) {
90 m_typeHasBeenSet = true;
91 m_type = value;
92 }
93 inline Test& WithType(TestType value) {
94 SetType(value);
95 return *this;
96 }
98
100
103 inline const Aws::Utils::DateTime& GetCreated() const { return m_created; }
104 inline bool CreatedHasBeenSet() const { return m_createdHasBeenSet; }
105 template <typename CreatedT = Aws::Utils::DateTime>
106 void SetCreated(CreatedT&& value) {
107 m_createdHasBeenSet = true;
108 m_created = std::forward<CreatedT>(value);
109 }
110 template <typename CreatedT = Aws::Utils::DateTime>
111 Test& WithCreated(CreatedT&& value) {
112 SetCreated(std::forward<CreatedT>(value));
113 return *this;
114 }
116
118
125 inline ExecutionStatus GetStatus() const { return m_status; }
126 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
127 inline void SetStatus(ExecutionStatus value) {
128 m_statusHasBeenSet = true;
129 m_status = value;
130 }
132 SetStatus(value);
133 return *this;
134 }
136
138
144 inline ExecutionResult GetResult() const { return m_result; }
145 inline bool ResultHasBeenSet() const { return m_resultHasBeenSet; }
146 inline void SetResult(ExecutionResult value) {
147 m_resultHasBeenSet = true;
148 m_result = value;
149 }
151 SetResult(value);
152 return *this;
153 }
155
157
160 inline const Aws::Utils::DateTime& GetStarted() const { return m_started; }
161 inline bool StartedHasBeenSet() const { return m_startedHasBeenSet; }
162 template <typename StartedT = Aws::Utils::DateTime>
163 void SetStarted(StartedT&& value) {
164 m_startedHasBeenSet = true;
165 m_started = std::forward<StartedT>(value);
166 }
167 template <typename StartedT = Aws::Utils::DateTime>
168 Test& WithStarted(StartedT&& value) {
169 SetStarted(std::forward<StartedT>(value));
170 return *this;
171 }
173
175
178 inline const Aws::Utils::DateTime& GetStopped() const { return m_stopped; }
179 inline bool StoppedHasBeenSet() const { return m_stoppedHasBeenSet; }
180 template <typename StoppedT = Aws::Utils::DateTime>
181 void SetStopped(StoppedT&& value) {
182 m_stoppedHasBeenSet = true;
183 m_stopped = std::forward<StoppedT>(value);
184 }
185 template <typename StoppedT = Aws::Utils::DateTime>
186 Test& WithStopped(StoppedT&& value) {
187 SetStopped(std::forward<StoppedT>(value));
188 return *this;
189 }
191
193
196 inline const Counters& GetCounters() const { return m_counters; }
197 inline bool CountersHasBeenSet() const { return m_countersHasBeenSet; }
198 template <typename CountersT = Counters>
199 void SetCounters(CountersT&& value) {
200 m_countersHasBeenSet = true;
201 m_counters = std::forward<CountersT>(value);
202 }
203 template <typename CountersT = Counters>
204 Test& WithCounters(CountersT&& value) {
205 SetCounters(std::forward<CountersT>(value));
206 return *this;
207 }
209
211
214 inline const Aws::String& GetMessage() const { return m_message; }
215 inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
216 template <typename MessageT = Aws::String>
217 void SetMessage(MessageT&& value) {
218 m_messageHasBeenSet = true;
219 m_message = std::forward<MessageT>(value);
220 }
221 template <typename MessageT = Aws::String>
222 Test& WithMessage(MessageT&& value) {
223 SetMessage(std::forward<MessageT>(value));
224 return *this;
225 }
227
229
232 inline const DeviceMinutes& GetDeviceMinutes() const { return m_deviceMinutes; }
233 inline bool DeviceMinutesHasBeenSet() const { return m_deviceMinutesHasBeenSet; }
234 template <typename DeviceMinutesT = DeviceMinutes>
235 void SetDeviceMinutes(DeviceMinutesT&& value) {
236 m_deviceMinutesHasBeenSet = true;
237 m_deviceMinutes = std::forward<DeviceMinutesT>(value);
238 }
239 template <typename DeviceMinutesT = DeviceMinutes>
240 Test& WithDeviceMinutes(DeviceMinutesT&& value) {
241 SetDeviceMinutes(std::forward<DeviceMinutesT>(value));
242 return *this;
243 }
245 private:
246 Aws::String m_arn;
247
248 Aws::String m_name;
249
251
252 Aws::Utils::DateTime m_created{};
253
255
257
258 Aws::Utils::DateTime m_started{};
259
260 Aws::Utils::DateTime m_stopped{};
261
262 Counters m_counters;
263
264 Aws::String m_message;
265
266 DeviceMinutes m_deviceMinutes;
267 bool m_arnHasBeenSet = false;
268 bool m_nameHasBeenSet = false;
269 bool m_typeHasBeenSet = false;
270 bool m_createdHasBeenSet = false;
271 bool m_statusHasBeenSet = false;
272 bool m_resultHasBeenSet = false;
273 bool m_startedHasBeenSet = false;
274 bool m_stoppedHasBeenSet = false;
275 bool m_countersHasBeenSet = false;
276 bool m_messageHasBeenSet = false;
277 bool m_deviceMinutesHasBeenSet = false;
278};
279
280} // namespace Model
281} // namespace DeviceFarm
282} // namespace Aws
void SetResult(ExecutionResult value)
Definition Test.h:146
bool StartedHasBeenSet() const
Definition Test.h:161
bool StoppedHasBeenSet() const
Definition Test.h:179
void SetStatus(ExecutionStatus value)
Definition Test.h:127
void SetCreated(CreatedT &&value)
Definition Test.h:106
const Aws::String & GetName() const
Definition Test.h:62
Test & WithStatus(ExecutionStatus value)
Definition Test.h:131
bool StatusHasBeenSet() const
Definition Test.h:126
ExecutionStatus GetStatus() const
Definition Test.h:125
AWS_DEVICEFARM_API Test()=default
void SetType(TestType value)
Definition Test.h:89
void SetStopped(StoppedT &&value)
Definition Test.h:181
const Aws::String & GetArn() const
Definition Test.h:44
bool CountersHasBeenSet() const
Definition Test.h:197
void SetName(NameT &&value)
Definition Test.h:65
void SetDeviceMinutes(DeviceMinutesT &&value)
Definition Test.h:235
TestType GetType() const
Definition Test.h:87
const DeviceMinutes & GetDeviceMinutes() const
Definition Test.h:232
bool ArnHasBeenSet() const
Definition Test.h:45
bool DeviceMinutesHasBeenSet() const
Definition Test.h:233
bool ResultHasBeenSet() const
Definition Test.h:145
Test & WithArn(ArnT &&value)
Definition Test.h:52
bool CreatedHasBeenSet() const
Definition Test.h:104
Test & WithDeviceMinutes(DeviceMinutesT &&value)
Definition Test.h:240
void SetArn(ArnT &&value)
Definition Test.h:47
AWS_DEVICEFARM_API Aws::Utils::Json::JsonValue Jsonize() const
void SetMessage(MessageT &&value)
Definition Test.h:217
ExecutionResult GetResult() const
Definition Test.h:144
const Aws::Utils::DateTime & GetStopped() const
Definition Test.h:178
void SetCounters(CountersT &&value)
Definition Test.h:199
Test & WithResult(ExecutionResult value)
Definition Test.h:150
Test & WithMessage(MessageT &&value)
Definition Test.h:222
Test & WithCreated(CreatedT &&value)
Definition Test.h:111
bool NameHasBeenSet() const
Definition Test.h:63
AWS_DEVICEFARM_API Test & operator=(Aws::Utils::Json::JsonView jsonValue)
Test & WithStarted(StartedT &&value)
Definition Test.h:168
Test & WithName(NameT &&value)
Definition Test.h:70
const Aws::Utils::DateTime & GetCreated() const
Definition Test.h:103
const Aws::String & GetMessage() const
Definition Test.h:214
bool TypeHasBeenSet() const
Definition Test.h:88
void SetStarted(StartedT &&value)
Definition Test.h:163
const Aws::Utils::DateTime & GetStarted() const
Definition Test.h:160
Test & WithCounters(CountersT &&value)
Definition Test.h:204
bool MessageHasBeenSet() const
Definition Test.h:215
Test & WithStopped(StoppedT &&value)
Definition Test.h:186
AWS_DEVICEFARM_API Test(Aws::Utils::Json::JsonView jsonValue)
const Counters & GetCounters() const
Definition Test.h:196
Test & WithType(TestType value)
Definition Test.h:93
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue