PageRenderTime 43ms CodeModel.GetById 14ms RepoModel.GetById 0ms app.codeStats 0ms

/sdk/src/Services/DeviceFarm/Generated/Model/Job.cs

https://gitlab.com/CORP-RESELLER/aws-sdk-net
C# | 398 lines | 133 code | 28 blank | 237 comment | 9 complexity | f0f40ce90cf4cdf5c4071f9e8b3937ee MD5 | raw file
  1. /*
  2. * Copyright 2010-2014 Amazon.com, Inc. or its affiliates. All Rights Reserved.
  3. *
  4. * Licensed under the Apache License, Version 2.0 (the "License").
  5. * You may not use this file except in compliance with the License.
  6. * A copy of the License is located at
  7. *
  8. * http://aws.amazon.com/apache2.0
  9. *
  10. * or in the "license" file accompanying this file. This file is distributed
  11. * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
  12. * express or implied. See the License for the specific language governing
  13. * permissions and limitations under the License.
  14. */
  15. /*
  16. * Do not modify this file. This file is generated from the devicefarm-2015-06-23.normal.json service model.
  17. */
  18. using System;
  19. using System.Collections.Generic;
  20. using System.Xml.Serialization;
  21. using System.Text;
  22. using System.IO;
  23. using Amazon.Runtime;
  24. using Amazon.Runtime.Internal;
  25. namespace Amazon.DeviceFarm.Model
  26. {
  27. /// <summary>
  28. /// Represents a device.
  29. /// </summary>
  30. public partial class Job
  31. {
  32. private string _arn;
  33. private Counters _counters;
  34. private DateTime? _created;
  35. private Device _device;
  36. private DeviceMinutes _deviceMinutes;
  37. private string _message;
  38. private string _name;
  39. private ExecutionResult _result;
  40. private DateTime? _started;
  41. private ExecutionStatus _status;
  42. private DateTime? _stopped;
  43. private TestType _type;
  44. /// <summary>
  45. /// Gets and sets the property Arn.
  46. /// <para>
  47. /// The job's ARN.
  48. /// </para>
  49. /// </summary>
  50. public string Arn
  51. {
  52. get { return this._arn; }
  53. set { this._arn = value; }
  54. }
  55. // Check to see if Arn property is set
  56. internal bool IsSetArn()
  57. {
  58. return this._arn != null;
  59. }
  60. /// <summary>
  61. /// Gets and sets the property Counters.
  62. /// <para>
  63. /// The job's result counters.
  64. /// </para>
  65. /// </summary>
  66. public Counters Counters
  67. {
  68. get { return this._counters; }
  69. set { this._counters = value; }
  70. }
  71. // Check to see if Counters property is set
  72. internal bool IsSetCounters()
  73. {
  74. return this._counters != null;
  75. }
  76. /// <summary>
  77. /// Gets and sets the property Created.
  78. /// <para>
  79. /// When the job was created.
  80. /// </para>
  81. /// </summary>
  82. public DateTime Created
  83. {
  84. get { return this._created.GetValueOrDefault(); }
  85. set { this._created = value; }
  86. }
  87. // Check to see if Created property is set
  88. internal bool IsSetCreated()
  89. {
  90. return this._created.HasValue;
  91. }
  92. /// <summary>
  93. /// Gets and sets the property Device.
  94. /// </summary>
  95. public Device Device
  96. {
  97. get { return this._device; }
  98. set { this._device = value; }
  99. }
  100. // Check to see if Device property is set
  101. internal bool IsSetDevice()
  102. {
  103. return this._device != null;
  104. }
  105. /// <summary>
  106. /// Gets and sets the property DeviceMinutes.
  107. /// <para>
  108. /// Represents the total (metered or unmetered) minutes used by the job.
  109. /// </para>
  110. /// </summary>
  111. public DeviceMinutes DeviceMinutes
  112. {
  113. get { return this._deviceMinutes; }
  114. set { this._deviceMinutes = value; }
  115. }
  116. // Check to see if DeviceMinutes property is set
  117. internal bool IsSetDeviceMinutes()
  118. {
  119. return this._deviceMinutes != null;
  120. }
  121. /// <summary>
  122. /// Gets and sets the property Message.
  123. /// <para>
  124. /// A message about the job's result.
  125. /// </para>
  126. /// </summary>
  127. public string Message
  128. {
  129. get { return this._message; }
  130. set { this._message = value; }
  131. }
  132. // Check to see if Message property is set
  133. internal bool IsSetMessage()
  134. {
  135. return this._message != null;
  136. }
  137. /// <summary>
  138. /// Gets and sets the property Name.
  139. /// <para>
  140. /// The job's name.
  141. /// </para>
  142. /// </summary>
  143. public string Name
  144. {
  145. get { return this._name; }
  146. set { this._name = value; }
  147. }
  148. // Check to see if Name property is set
  149. internal bool IsSetName()
  150. {
  151. return this._name != null;
  152. }
  153. /// <summary>
  154. /// Gets and sets the property Result.
  155. /// <para>
  156. /// The job's result.
  157. /// </para>
  158. ///
  159. /// <para>
  160. /// Allowed values include:
  161. /// </para>
  162. /// <ul> <li>
  163. /// <para>
  164. /// PENDING: A pending condition.
  165. /// </para>
  166. /// </li> <li>
  167. /// <para>
  168. /// PASSED: A passing condition.
  169. /// </para>
  170. /// </li> <li>
  171. /// <para>
  172. /// WARNED: A warning condition.
  173. /// </para>
  174. /// </li> <li>
  175. /// <para>
  176. /// FAILED: A failed condition.
  177. /// </para>
  178. /// </li> <li>
  179. /// <para>
  180. /// SKIPPED: A skipped condition.
  181. /// </para>
  182. /// </li> <li>
  183. /// <para>
  184. /// ERRORED: An error condition.
  185. /// </para>
  186. /// </li> <li>
  187. /// <para>
  188. /// STOPPED: A stopped condition.
  189. /// </para>
  190. /// </li> </ul>
  191. /// </summary>
  192. public ExecutionResult Result
  193. {
  194. get { return this._result; }
  195. set { this._result = value; }
  196. }
  197. // Check to see if Result property is set
  198. internal bool IsSetResult()
  199. {
  200. return this._result != null;
  201. }
  202. /// <summary>
  203. /// Gets and sets the property Started.
  204. /// <para>
  205. /// The job's start time.
  206. /// </para>
  207. /// </summary>
  208. public DateTime Started
  209. {
  210. get { return this._started.GetValueOrDefault(); }
  211. set { this._started = value; }
  212. }
  213. // Check to see if Started property is set
  214. internal bool IsSetStarted()
  215. {
  216. return this._started.HasValue;
  217. }
  218. /// <summary>
  219. /// Gets and sets the property Status.
  220. /// <para>
  221. /// The job's status.
  222. /// </para>
  223. ///
  224. /// <para>
  225. /// Allowed values include:
  226. /// </para>
  227. /// <ul> <li>
  228. /// <para>
  229. /// PENDING: A pending status.
  230. /// </para>
  231. /// </li> <li>
  232. /// <para>
  233. /// PENDING_CONCURRENCY: A pending concurrency status.
  234. /// </para>
  235. /// </li> <li>
  236. /// <para>
  237. /// PENDING_DEVICE: A pending device status.
  238. /// </para>
  239. /// </li> <li>
  240. /// <para>
  241. /// PROCESSING: A processing status.
  242. /// </para>
  243. /// </li> <li>
  244. /// <para>
  245. /// SCHEDULING: A scheduling status.
  246. /// </para>
  247. /// </li> <li>
  248. /// <para>
  249. /// PREPARING: A preparing status.
  250. /// </para>
  251. /// </li> <li>
  252. /// <para>
  253. /// RUNNING: A running status.
  254. /// </para>
  255. /// </li> <li>
  256. /// <para>
  257. /// COMPLETED: A completed status.
  258. /// </para>
  259. /// </li> <li>
  260. /// <para>
  261. /// STOPPING: A stopping status.
  262. /// </para>
  263. /// </li> </ul>
  264. /// </summary>
  265. public ExecutionStatus Status
  266. {
  267. get { return this._status; }
  268. set { this._status = value; }
  269. }
  270. // Check to see if Status property is set
  271. internal bool IsSetStatus()
  272. {
  273. return this._status != null;
  274. }
  275. /// <summary>
  276. /// Gets and sets the property Stopped.
  277. /// <para>
  278. /// The job's stop time.
  279. /// </para>
  280. /// </summary>
  281. public DateTime Stopped
  282. {
  283. get { return this._stopped.GetValueOrDefault(); }
  284. set { this._stopped = value; }
  285. }
  286. // Check to see if Stopped property is set
  287. internal bool IsSetStopped()
  288. {
  289. return this._stopped.HasValue;
  290. }
  291. /// <summary>
  292. /// Gets and sets the property Type.
  293. /// <para>
  294. /// The job's type.
  295. /// </para>
  296. ///
  297. /// <para>
  298. /// Allowed values include the following:
  299. /// </para>
  300. /// <ul> <li>
  301. /// <para>
  302. /// BUILTIN_FUZZ: The built-in fuzz type.
  303. /// </para>
  304. /// </li> <li>
  305. /// <para>
  306. /// BUILTIN_EXPLORER: For Android, an app explorer that will traverse an Android app,
  307. /// interacting with it and capturing screenshots at the same time.
  308. /// </para>
  309. /// </li> <li>
  310. /// <para>
  311. /// APPIUM_JAVA_JUNIT: The Appium Java JUnit type.
  312. /// </para>
  313. /// </li> <li>
  314. /// <para>
  315. /// APPIUM_JAVA_TESTNG: The Appium Java TestNG type.
  316. /// </para>
  317. /// </li> <li>
  318. /// <para>
  319. /// APPIUM_PYTHON: The Appium Python type.
  320. /// </para>
  321. /// </li> <li>
  322. /// <para>
  323. /// APPIUM_WEB_JAVA_JUNIT: The Appium Java JUnit type for Web apps.
  324. /// </para>
  325. /// </li> <li>
  326. /// <para>
  327. /// APPIUM_WEB_JAVA_TESTNG: The Appium Java TestNG type for Web apps.
  328. /// </para>
  329. /// </li> <li>
  330. /// <para>
  331. /// APPIUM_WEB_PYTHON: The Appium Python type for Web apps.
  332. /// </para>
  333. /// </li> <li>
  334. /// <para>
  335. /// CALABASH: The Calabash type.
  336. /// </para>
  337. /// </li> <li>
  338. /// <para>
  339. /// INSTRUMENTATION: The Instrumentation type.
  340. /// </para>
  341. /// </li> <li>
  342. /// <para>
  343. /// UIAUTOMATION: The uiautomation type.
  344. /// </para>
  345. /// </li> <li>
  346. /// <para>
  347. /// UIAUTOMATOR: The uiautomator type.
  348. /// </para>
  349. /// </li> <li>
  350. /// <para>
  351. /// XCTEST: The XCode test type.
  352. /// </para>
  353. /// </li> <li>
  354. /// <para>
  355. /// XCTEST_UI: The XCode UI test type.
  356. /// </para>
  357. /// </li> </ul>
  358. /// </summary>
  359. public TestType Type
  360. {
  361. get { return this._type; }
  362. set { this._type = value; }
  363. }
  364. // Check to see if Type property is set
  365. internal bool IsSetType()
  366. {
  367. return this._type != null;
  368. }
  369. }
  370. }