/aws-cpp-sdk-devicefarm/include/aws/devicefarm/model/Test.h

https://github.com/aws/aws-sdk-cpp · C Header · 562 lines · 130 code · 99 blank · 333 comment · 0 complexity · 7b1d6e2e86e0fe23b3c9d8aae63b7788 MD5 · raw file

  1. /**
  2. * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
  3. * SPDX-License-Identifier: Apache-2.0.
  4. */
  5. #pragma once
  6. #include <aws/devicefarm/DeviceFarm_EXPORTS.h>
  7. #include <aws/core/utils/memory/stl/AWSString.h>
  8. #include <aws/devicefarm/model/TestType.h>
  9. #include <aws/core/utils/DateTime.h>
  10. #include <aws/devicefarm/model/ExecutionStatus.h>
  11. #include <aws/devicefarm/model/ExecutionResult.h>
  12. #include <aws/devicefarm/model/Counters.h>
  13. #include <aws/devicefarm/model/DeviceMinutes.h>
  14. #include <utility>
  15. namespace Aws
  16. {
  17. namespace Utils
  18. {
  19. namespace Json
  20. {
  21. class JsonValue;
  22. class JsonView;
  23. } // namespace Json
  24. } // namespace Utils
  25. namespace DeviceFarm
  26. {
  27. namespace Model
  28. {
  29. /**
  30. * <p>Represents a condition that is evaluated.</p><p><h3>See Also:</h3> <a
  31. * href="http://docs.aws.amazon.com/goto/WebAPI/devicefarm-2015-06-23/Test">AWS API
  32. * Reference</a></p>
  33. */
  34. class AWS_DEVICEFARM_API Test
  35. {
  36. public:
  37. Test();
  38. Test(Aws::Utils::Json::JsonView jsonValue);
  39. Test& operator=(Aws::Utils::Json::JsonView jsonValue);
  40. Aws::Utils::Json::JsonValue Jsonize() const;
  41. /**
  42. * <p>The test's ARN.</p>
  43. */
  44. inline const Aws::String& GetArn() const{ return m_arn; }
  45. /**
  46. * <p>The test's ARN.</p>
  47. */
  48. inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
  49. /**
  50. * <p>The test's ARN.</p>
  51. */
  52. inline void SetArn(const Aws::String& value) { m_arnHasBeenSet = true; m_arn = value; }
  53. /**
  54. * <p>The test's ARN.</p>
  55. */
  56. inline void SetArn(Aws::String&& value) { m_arnHasBeenSet = true; m_arn = std::move(value); }
  57. /**
  58. * <p>The test's ARN.</p>
  59. */
  60. inline void SetArn(const char* value) { m_arnHasBeenSet = true; m_arn.assign(value); }
  61. /**
  62. * <p>The test's ARN.</p>
  63. */
  64. inline Test& WithArn(const Aws::String& value) { SetArn(value); return *this;}
  65. /**
  66. * <p>The test's ARN.</p>
  67. */
  68. inline Test& WithArn(Aws::String&& value) { SetArn(std::move(value)); return *this;}
  69. /**
  70. * <p>The test's ARN.</p>
  71. */
  72. inline Test& WithArn(const char* value) { SetArn(value); return *this;}
  73. /**
  74. * <p>The test's name.</p>
  75. */
  76. inline const Aws::String& GetName() const{ return m_name; }
  77. /**
  78. * <p>The test's name.</p>
  79. */
  80. inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
  81. /**
  82. * <p>The test's name.</p>
  83. */
  84. inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
  85. /**
  86. * <p>The test's name.</p>
  87. */
  88. inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
  89. /**
  90. * <p>The test's name.</p>
  91. */
  92. inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
  93. /**
  94. * <p>The test's name.</p>
  95. */
  96. inline Test& WithName(const Aws::String& value) { SetName(value); return *this;}
  97. /**
  98. * <p>The test's name.</p>
  99. */
  100. inline Test& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
  101. /**
  102. * <p>The test's name.</p>
  103. */
  104. inline Test& WithName(const char* value) { SetName(value); return *this;}
  105. /**
  106. * <p>The test's type.</p> <p>Must be one of the following values:</p> <ul> <li>
  107. * <p>BUILTIN_FUZZ</p> </li> <li> <p>BUILTIN_EXPLORER</p> <p>For Android, an
  108. * app explorer that traverses an Android app, interacting with it and capturing
  109. * screenshots at the same time.</p> </li> <li> <p>APPIUM_JAVA_JUNIT</p>
  110. * </li> <li> <p>APPIUM_JAVA_TESTNG</p> </li> <li> <p>APPIUM_PYTHON</p> </li> <li>
  111. * <p>APPIUM_NODE</p> </li> <li> <p>APPIUM_RUBY</p> </li> <li>
  112. * <p>APPIUM_WEB_JAVA_JUNIT</p> </li> <li> <p>APPIUM_WEB_JAVA_TESTNG</p> </li> <li>
  113. * <p>APPIUM_WEB_PYTHON</p> </li> <li> <p>APPIUM_WEB_NODE</p> </li> <li>
  114. * <p>APPIUM_WEB_RUBY</p> </li> <li> <p>CALABASH</p> </li> <li>
  115. * <p>INSTRUMENTATION</p> </li> <li> <p>UIAUTOMATION</p> </li> <li>
  116. * <p>UIAUTOMATOR</p> </li> <li> <p>XCTEST</p> </li> <li> <p>XCTEST_UI</p> </li>
  117. * </ul>
  118. */
  119. inline const TestType& GetType() const{ return m_type; }
  120. /**
  121. * <p>The test's type.</p> <p>Must be one of the following values:</p> <ul> <li>
  122. * <p>BUILTIN_FUZZ</p> </li> <li> <p>BUILTIN_EXPLORER</p> <p>For Android, an
  123. * app explorer that traverses an Android app, interacting with it and capturing
  124. * screenshots at the same time.</p> </li> <li> <p>APPIUM_JAVA_JUNIT</p>
  125. * </li> <li> <p>APPIUM_JAVA_TESTNG</p> </li> <li> <p>APPIUM_PYTHON</p> </li> <li>
  126. * <p>APPIUM_NODE</p> </li> <li> <p>APPIUM_RUBY</p> </li> <li>
  127. * <p>APPIUM_WEB_JAVA_JUNIT</p> </li> <li> <p>APPIUM_WEB_JAVA_TESTNG</p> </li> <li>
  128. * <p>APPIUM_WEB_PYTHON</p> </li> <li> <p>APPIUM_WEB_NODE</p> </li> <li>
  129. * <p>APPIUM_WEB_RUBY</p> </li> <li> <p>CALABASH</p> </li> <li>
  130. * <p>INSTRUMENTATION</p> </li> <li> <p>UIAUTOMATION</p> </li> <li>
  131. * <p>UIAUTOMATOR</p> </li> <li> <p>XCTEST</p> </li> <li> <p>XCTEST_UI</p> </li>
  132. * </ul>
  133. */
  134. inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
  135. /**
  136. * <p>The test's type.</p> <p>Must be one of the following values:</p> <ul> <li>
  137. * <p>BUILTIN_FUZZ</p> </li> <li> <p>BUILTIN_EXPLORER</p> <p>For Android, an
  138. * app explorer that traverses an Android app, interacting with it and capturing
  139. * screenshots at the same time.</p> </li> <li> <p>APPIUM_JAVA_JUNIT</p>
  140. * </li> <li> <p>APPIUM_JAVA_TESTNG</p> </li> <li> <p>APPIUM_PYTHON</p> </li> <li>
  141. * <p>APPIUM_NODE</p> </li> <li> <p>APPIUM_RUBY</p> </li> <li>
  142. * <p>APPIUM_WEB_JAVA_JUNIT</p> </li> <li> <p>APPIUM_WEB_JAVA_TESTNG</p> </li> <li>
  143. * <p>APPIUM_WEB_PYTHON</p> </li> <li> <p>APPIUM_WEB_NODE</p> </li> <li>
  144. * <p>APPIUM_WEB_RUBY</p> </li> <li> <p>CALABASH</p> </li> <li>
  145. * <p>INSTRUMENTATION</p> </li> <li> <p>UIAUTOMATION</p> </li> <li>
  146. * <p>UIAUTOMATOR</p> </li> <li> <p>XCTEST</p> </li> <li> <p>XCTEST_UI</p> </li>
  147. * </ul>
  148. */
  149. inline void SetType(const TestType& value) { m_typeHasBeenSet = true; m_type = value; }
  150. /**
  151. * <p>The test's type.</p> <p>Must be one of the following values:</p> <ul> <li>
  152. * <p>BUILTIN_FUZZ</p> </li> <li> <p>BUILTIN_EXPLORER</p> <p>For Android, an
  153. * app explorer that traverses an Android app, interacting with it and capturing
  154. * screenshots at the same time.</p> </li> <li> <p>APPIUM_JAVA_JUNIT</p>
  155. * </li> <li> <p>APPIUM_JAVA_TESTNG</p> </li> <li> <p>APPIUM_PYTHON</p> </li> <li>
  156. * <p>APPIUM_NODE</p> </li> <li> <p>APPIUM_RUBY</p> </li> <li>
  157. * <p>APPIUM_WEB_JAVA_JUNIT</p> </li> <li> <p>APPIUM_WEB_JAVA_TESTNG</p> </li> <li>
  158. * <p>APPIUM_WEB_PYTHON</p> </li> <li> <p>APPIUM_WEB_NODE</p> </li> <li>
  159. * <p>APPIUM_WEB_RUBY</p> </li> <li> <p>CALABASH</p> </li> <li>
  160. * <p>INSTRUMENTATION</p> </li> <li> <p>UIAUTOMATION</p> </li> <li>
  161. * <p>UIAUTOMATOR</p> </li> <li> <p>XCTEST</p> </li> <li> <p>XCTEST_UI</p> </li>
  162. * </ul>
  163. */
  164. inline void SetType(TestType&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
  165. /**
  166. * <p>The test's type.</p> <p>Must be one of the following values:</p> <ul> <li>
  167. * <p>BUILTIN_FUZZ</p> </li> <li> <p>BUILTIN_EXPLORER</p> <p>For Android, an
  168. * app explorer that traverses an Android app, interacting with it and capturing
  169. * screenshots at the same time.</p> </li> <li> <p>APPIUM_JAVA_JUNIT</p>
  170. * </li> <li> <p>APPIUM_JAVA_TESTNG</p> </li> <li> <p>APPIUM_PYTHON</p> </li> <li>
  171. * <p>APPIUM_NODE</p> </li> <li> <p>APPIUM_RUBY</p> </li> <li>
  172. * <p>APPIUM_WEB_JAVA_JUNIT</p> </li> <li> <p>APPIUM_WEB_JAVA_TESTNG</p> </li> <li>
  173. * <p>APPIUM_WEB_PYTHON</p> </li> <li> <p>APPIUM_WEB_NODE</p> </li> <li>
  174. * <p>APPIUM_WEB_RUBY</p> </li> <li> <p>CALABASH</p> </li> <li>
  175. * <p>INSTRUMENTATION</p> </li> <li> <p>UIAUTOMATION</p> </li> <li>
  176. * <p>UIAUTOMATOR</p> </li> <li> <p>XCTEST</p> </li> <li> <p>XCTEST_UI</p> </li>
  177. * </ul>
  178. */
  179. inline Test& WithType(const TestType& value) { SetType(value); return *this;}
  180. /**
  181. * <p>The test's type.</p> <p>Must be one of the following values:</p> <ul> <li>
  182. * <p>BUILTIN_FUZZ</p> </li> <li> <p>BUILTIN_EXPLORER</p> <p>For Android, an
  183. * app explorer that traverses an Android app, interacting with it and capturing
  184. * screenshots at the same time.</p> </li> <li> <p>APPIUM_JAVA_JUNIT</p>
  185. * </li> <li> <p>APPIUM_JAVA_TESTNG</p> </li> <li> <p>APPIUM_PYTHON</p> </li> <li>
  186. * <p>APPIUM_NODE</p> </li> <li> <p>APPIUM_RUBY</p> </li> <li>
  187. * <p>APPIUM_WEB_JAVA_JUNIT</p> </li> <li> <p>APPIUM_WEB_JAVA_TESTNG</p> </li> <li>
  188. * <p>APPIUM_WEB_PYTHON</p> </li> <li> <p>APPIUM_WEB_NODE</p> </li> <li>
  189. * <p>APPIUM_WEB_RUBY</p> </li> <li> <p>CALABASH</p> </li> <li>
  190. * <p>INSTRUMENTATION</p> </li> <li> <p>UIAUTOMATION</p> </li> <li>
  191. * <p>UIAUTOMATOR</p> </li> <li> <p>XCTEST</p> </li> <li> <p>XCTEST_UI</p> </li>
  192. * </ul>
  193. */
  194. inline Test& WithType(TestType&& value) { SetType(std::move(value)); return *this;}
  195. /**
  196. * <p>When the test was created.</p>
  197. */
  198. inline const Aws::Utils::DateTime& GetCreated() const{ return m_created; }
  199. /**
  200. * <p>When the test was created.</p>
  201. */
  202. inline bool CreatedHasBeenSet() const { return m_createdHasBeenSet; }
  203. /**
  204. * <p>When the test was created.</p>
  205. */
  206. inline void SetCreated(const Aws::Utils::DateTime& value) { m_createdHasBeenSet = true; m_created = value; }
  207. /**
  208. * <p>When the test was created.</p>
  209. */
  210. inline void SetCreated(Aws::Utils::DateTime&& value) { m_createdHasBeenSet = true; m_created = std::move(value); }
  211. /**
  212. * <p>When the test was created.</p>
  213. */
  214. inline Test& WithCreated(const Aws::Utils::DateTime& value) { SetCreated(value); return *this;}
  215. /**
  216. * <p>When the test was created.</p>
  217. */
  218. inline Test& WithCreated(Aws::Utils::DateTime&& value) { SetCreated(std::move(value)); return *this;}
  219. /**
  220. * <p>The test's status.</p> <p>Allowed values include:</p> <ul> <li>
  221. * <p>PENDING</p> </li> <li> <p>PENDING_CONCURRENCY</p> </li> <li>
  222. * <p>PENDING_DEVICE</p> </li> <li> <p>PROCESSING</p> </li> <li> <p>SCHEDULING</p>
  223. * </li> <li> <p>PREPARING</p> </li> <li> <p>RUNNING</p> </li> <li>
  224. * <p>COMPLETED</p> </li> <li> <p>STOPPING</p> </li> </ul>
  225. */
  226. inline const ExecutionStatus& GetStatus() const{ return m_status; }
  227. /**
  228. * <p>The test's status.</p> <p>Allowed values include:</p> <ul> <li>
  229. * <p>PENDING</p> </li> <li> <p>PENDING_CONCURRENCY</p> </li> <li>
  230. * <p>PENDING_DEVICE</p> </li> <li> <p>PROCESSING</p> </li> <li> <p>SCHEDULING</p>
  231. * </li> <li> <p>PREPARING</p> </li> <li> <p>RUNNING</p> </li> <li>
  232. * <p>COMPLETED</p> </li> <li> <p>STOPPING</p> </li> </ul>
  233. */
  234. inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
  235. /**
  236. * <p>The test's status.</p> <p>Allowed values include:</p> <ul> <li>
  237. * <p>PENDING</p> </li> <li> <p>PENDING_CONCURRENCY</p> </li> <li>
  238. * <p>PENDING_DEVICE</p> </li> <li> <p>PROCESSING</p> </li> <li> <p>SCHEDULING</p>
  239. * </li> <li> <p>PREPARING</p> </li> <li> <p>RUNNING</p> </li> <li>
  240. * <p>COMPLETED</p> </li> <li> <p>STOPPING</p> </li> </ul>
  241. */
  242. inline void SetStatus(const ExecutionStatus& value) { m_statusHasBeenSet = true; m_status = value; }
  243. /**
  244. * <p>The test's status.</p> <p>Allowed values include:</p> <ul> <li>
  245. * <p>PENDING</p> </li> <li> <p>PENDING_CONCURRENCY</p> </li> <li>
  246. * <p>PENDING_DEVICE</p> </li> <li> <p>PROCESSING</p> </li> <li> <p>SCHEDULING</p>
  247. * </li> <li> <p>PREPARING</p> </li> <li> <p>RUNNING</p> </li> <li>
  248. * <p>COMPLETED</p> </li> <li> <p>STOPPING</p> </li> </ul>
  249. */
  250. inline void SetStatus(ExecutionStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
  251. /**
  252. * <p>The test's status.</p> <p>Allowed values include:</p> <ul> <li>
  253. * <p>PENDING</p> </li> <li> <p>PENDING_CONCURRENCY</p> </li> <li>
  254. * <p>PENDING_DEVICE</p> </li> <li> <p>PROCESSING</p> </li> <li> <p>SCHEDULING</p>
  255. * </li> <li> <p>PREPARING</p> </li> <li> <p>RUNNING</p> </li> <li>
  256. * <p>COMPLETED</p> </li> <li> <p>STOPPING</p> </li> </ul>
  257. */
  258. inline Test& WithStatus(const ExecutionStatus& value) { SetStatus(value); return *this;}
  259. /**
  260. * <p>The test's status.</p> <p>Allowed values include:</p> <ul> <li>
  261. * <p>PENDING</p> </li> <li> <p>PENDING_CONCURRENCY</p> </li> <li>
  262. * <p>PENDING_DEVICE</p> </li> <li> <p>PROCESSING</p> </li> <li> <p>SCHEDULING</p>
  263. * </li> <li> <p>PREPARING</p> </li> <li> <p>RUNNING</p> </li> <li>
  264. * <p>COMPLETED</p> </li> <li> <p>STOPPING</p> </li> </ul>
  265. */
  266. inline Test& WithStatus(ExecutionStatus&& value) { SetStatus(std::move(value)); return *this;}
  267. /**
  268. * <p>The test's result.</p> <p>Allowed values include:</p> <ul> <li>
  269. * <p>PENDING</p> </li> <li> <p>PASSED</p> </li> <li> <p>WARNED</p> </li> <li>
  270. * <p>FAILED</p> </li> <li> <p>SKIPPED</p> </li> <li> <p>ERRORED</p> </li> <li>
  271. * <p>STOPPED</p> </li> </ul>
  272. */
  273. inline const ExecutionResult& GetResult() const{ return m_result; }
  274. /**
  275. * <p>The test's result.</p> <p>Allowed values include:</p> <ul> <li>
  276. * <p>PENDING</p> </li> <li> <p>PASSED</p> </li> <li> <p>WARNED</p> </li> <li>
  277. * <p>FAILED</p> </li> <li> <p>SKIPPED</p> </li> <li> <p>ERRORED</p> </li> <li>
  278. * <p>STOPPED</p> </li> </ul>
  279. */
  280. inline bool ResultHasBeenSet() const { return m_resultHasBeenSet; }
  281. /**
  282. * <p>The test's result.</p> <p>Allowed values include:</p> <ul> <li>
  283. * <p>PENDING</p> </li> <li> <p>PASSED</p> </li> <li> <p>WARNED</p> </li> <li>
  284. * <p>FAILED</p> </li> <li> <p>SKIPPED</p> </li> <li> <p>ERRORED</p> </li> <li>
  285. * <p>STOPPED</p> </li> </ul>
  286. */
  287. inline void SetResult(const ExecutionResult& value) { m_resultHasBeenSet = true; m_result = value; }
  288. /**
  289. * <p>The test's result.</p> <p>Allowed values include:</p> <ul> <li>
  290. * <p>PENDING</p> </li> <li> <p>PASSED</p> </li> <li> <p>WARNED</p> </li> <li>
  291. * <p>FAILED</p> </li> <li> <p>SKIPPED</p> </li> <li> <p>ERRORED</p> </li> <li>
  292. * <p>STOPPED</p> </li> </ul>
  293. */
  294. inline void SetResult(ExecutionResult&& value) { m_resultHasBeenSet = true; m_result = std::move(value); }
  295. /**
  296. * <p>The test's result.</p> <p>Allowed values include:</p> <ul> <li>
  297. * <p>PENDING</p> </li> <li> <p>PASSED</p> </li> <li> <p>WARNED</p> </li> <li>
  298. * <p>FAILED</p> </li> <li> <p>SKIPPED</p> </li> <li> <p>ERRORED</p> </li> <li>
  299. * <p>STOPPED</p> </li> </ul>
  300. */
  301. inline Test& WithResult(const ExecutionResult& value) { SetResult(value); return *this;}
  302. /**
  303. * <p>The test's result.</p> <p>Allowed values include:</p> <ul> <li>
  304. * <p>PENDING</p> </li> <li> <p>PASSED</p> </li> <li> <p>WARNED</p> </li> <li>
  305. * <p>FAILED</p> </li> <li> <p>SKIPPED</p> </li> <li> <p>ERRORED</p> </li> <li>
  306. * <p>STOPPED</p> </li> </ul>
  307. */
  308. inline Test& WithResult(ExecutionResult&& value) { SetResult(std::move(value)); return *this;}
  309. /**
  310. * <p>The test's start time.</p>
  311. */
  312. inline const Aws::Utils::DateTime& GetStarted() const{ return m_started; }
  313. /**
  314. * <p>The test's start time.</p>
  315. */
  316. inline bool StartedHasBeenSet() const { return m_startedHasBeenSet; }
  317. /**
  318. * <p>The test's start time.</p>
  319. */
  320. inline void SetStarted(const Aws::Utils::DateTime& value) { m_startedHasBeenSet = true; m_started = value; }
  321. /**
  322. * <p>The test's start time.</p>
  323. */
  324. inline void SetStarted(Aws::Utils::DateTime&& value) { m_startedHasBeenSet = true; m_started = std::move(value); }
  325. /**
  326. * <p>The test's start time.</p>
  327. */
  328. inline Test& WithStarted(const Aws::Utils::DateTime& value) { SetStarted(value); return *this;}
  329. /**
  330. * <p>The test's start time.</p>
  331. */
  332. inline Test& WithStarted(Aws::Utils::DateTime&& value) { SetStarted(std::move(value)); return *this;}
  333. /**
  334. * <p>The test's stop time.</p>
  335. */
  336. inline const Aws::Utils::DateTime& GetStopped() const{ return m_stopped; }
  337. /**
  338. * <p>The test's stop time.</p>
  339. */
  340. inline bool StoppedHasBeenSet() const { return m_stoppedHasBeenSet; }
  341. /**
  342. * <p>The test's stop time.</p>
  343. */
  344. inline void SetStopped(const Aws::Utils::DateTime& value) { m_stoppedHasBeenSet = true; m_stopped = value; }
  345. /**
  346. * <p>The test's stop time.</p>
  347. */
  348. inline void SetStopped(Aws::Utils::DateTime&& value) { m_stoppedHasBeenSet = true; m_stopped = std::move(value); }
  349. /**
  350. * <p>The test's stop time.</p>
  351. */
  352. inline Test& WithStopped(const Aws::Utils::DateTime& value) { SetStopped(value); return *this;}
  353. /**
  354. * <p>The test's stop time.</p>
  355. */
  356. inline Test& WithStopped(Aws::Utils::DateTime&& value) { SetStopped(std::move(value)); return *this;}
  357. /**
  358. * <p>The test's result counters.</p>
  359. */
  360. inline const Counters& GetCounters() const{ return m_counters; }
  361. /**
  362. * <p>The test's result counters.</p>
  363. */
  364. inline bool CountersHasBeenSet() const { return m_countersHasBeenSet; }
  365. /**
  366. * <p>The test's result counters.</p>
  367. */
  368. inline void SetCounters(const Counters& value) { m_countersHasBeenSet = true; m_counters = value; }
  369. /**
  370. * <p>The test's result counters.</p>
  371. */
  372. inline void SetCounters(Counters&& value) { m_countersHasBeenSet = true; m_counters = std::move(value); }
  373. /**
  374. * <p>The test's result counters.</p>
  375. */
  376. inline Test& WithCounters(const Counters& value) { SetCounters(value); return *this;}
  377. /**
  378. * <p>The test's result counters.</p>
  379. */
  380. inline Test& WithCounters(Counters&& value) { SetCounters(std::move(value)); return *this;}
  381. /**
  382. * <p>A message about the test's result.</p>
  383. */
  384. inline const Aws::String& GetMessage() const{ return m_message; }
  385. /**
  386. * <p>A message about the test's result.</p>
  387. */
  388. inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
  389. /**
  390. * <p>A message about the test's result.</p>
  391. */
  392. inline void SetMessage(const Aws::String& value) { m_messageHasBeenSet = true; m_message = value; }
  393. /**
  394. * <p>A message about the test's result.</p>
  395. */
  396. inline void SetMessage(Aws::String&& value) { m_messageHasBeenSet = true; m_message = std::move(value); }
  397. /**
  398. * <p>A message about the test's result.</p>
  399. */
  400. inline void SetMessage(const char* value) { m_messageHasBeenSet = true; m_message.assign(value); }
  401. /**
  402. * <p>A message about the test's result.</p>
  403. */
  404. inline Test& WithMessage(const Aws::String& value) { SetMessage(value); return *this;}
  405. /**
  406. * <p>A message about the test's result.</p>
  407. */
  408. inline Test& WithMessage(Aws::String&& value) { SetMessage(std::move(value)); return *this;}
  409. /**
  410. * <p>A message about the test's result.</p>
  411. */
  412. inline Test& WithMessage(const char* value) { SetMessage(value); return *this;}
  413. /**
  414. * <p>Represents the total (metered or unmetered) minutes used by the test.</p>
  415. */
  416. inline const DeviceMinutes& GetDeviceMinutes() const{ return m_deviceMinutes; }
  417. /**
  418. * <p>Represents the total (metered or unmetered) minutes used by the test.</p>
  419. */
  420. inline bool DeviceMinutesHasBeenSet() const { return m_deviceMinutesHasBeenSet; }
  421. /**
  422. * <p>Represents the total (metered or unmetered) minutes used by the test.</p>
  423. */
  424. inline void SetDeviceMinutes(const DeviceMinutes& value) { m_deviceMinutesHasBeenSet = true; m_deviceMinutes = value; }
  425. /**
  426. * <p>Represents the total (metered or unmetered) minutes used by the test.</p>
  427. */
  428. inline void SetDeviceMinutes(DeviceMinutes&& value) { m_deviceMinutesHasBeenSet = true; m_deviceMinutes = std::move(value); }
  429. /**
  430. * <p>Represents the total (metered or unmetered) minutes used by the test.</p>
  431. */
  432. inline Test& WithDeviceMinutes(const DeviceMinutes& value) { SetDeviceMinutes(value); return *this;}
  433. /**
  434. * <p>Represents the total (metered or unmetered) minutes used by the test.</p>
  435. */
  436. inline Test& WithDeviceMinutes(DeviceMinutes&& value) { SetDeviceMinutes(std::move(value)); return *this;}
  437. private:
  438. Aws::String m_arn;
  439. bool m_arnHasBeenSet;
  440. Aws::String m_name;
  441. bool m_nameHasBeenSet;
  442. TestType m_type;
  443. bool m_typeHasBeenSet;
  444. Aws::Utils::DateTime m_created;
  445. bool m_createdHasBeenSet;
  446. ExecutionStatus m_status;
  447. bool m_statusHasBeenSet;
  448. ExecutionResult m_result;
  449. bool m_resultHasBeenSet;
  450. Aws::Utils::DateTime m_started;
  451. bool m_startedHasBeenSet;
  452. Aws::Utils::DateTime m_stopped;
  453. bool m_stoppedHasBeenSet;
  454. Counters m_counters;
  455. bool m_countersHasBeenSet;
  456. Aws::String m_message;
  457. bool m_messageHasBeenSet;
  458. DeviceMinutes m_deviceMinutes;
  459. bool m_deviceMinutesHasBeenSet;
  460. };
  461. } // namespace Model
  462. } // namespace DeviceFarm
  463. } // namespace Aws