PageRenderTime 58ms CodeModel.GetById 25ms RepoModel.GetById 0ms app.codeStats 0ms

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

https://gitlab.com/vectorci/aws-sdk-net
C# | 187 lines | 53 code | 12 blank | 122 comment | 4 complexity | 428c71308afc71d3b57ffc8be2ee4807 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. /// Container for the parameters to the CreateUpload operation.
  29. /// Uploads an app or test scripts.
  30. /// </summary>
  31. public partial class CreateUploadRequest : AmazonDeviceFarmRequest
  32. {
  33. private string _contentType;
  34. private string _name;
  35. private string _projectArn;
  36. private UploadType _type;
  37. /// <summary>
  38. /// Gets and sets the property ContentType.
  39. /// <para>
  40. /// The upload's content type (for example, "application/octet-stream").
  41. /// </para>
  42. /// </summary>
  43. public string ContentType
  44. {
  45. get { return this._contentType; }
  46. set { this._contentType = value; }
  47. }
  48. // Check to see if ContentType property is set
  49. internal bool IsSetContentType()
  50. {
  51. return this._contentType != null;
  52. }
  53. /// <summary>
  54. /// Gets and sets the property Name.
  55. /// <para>
  56. /// The upload's file name. The name should not contain the '/' character.
  57. /// </para>
  58. /// </summary>
  59. public string Name
  60. {
  61. get { return this._name; }
  62. set { this._name = value; }
  63. }
  64. // Check to see if Name property is set
  65. internal bool IsSetName()
  66. {
  67. return this._name != null;
  68. }
  69. /// <summary>
  70. /// Gets and sets the property ProjectArn.
  71. /// <para>
  72. /// The ARN of the project for the upload.
  73. /// </para>
  74. /// </summary>
  75. public string ProjectArn
  76. {
  77. get { return this._projectArn; }
  78. set { this._projectArn = value; }
  79. }
  80. // Check to see if ProjectArn property is set
  81. internal bool IsSetProjectArn()
  82. {
  83. return this._projectArn != null;
  84. }
  85. /// <summary>
  86. /// Gets and sets the property Type.
  87. /// <para>
  88. /// The upload's upload type.
  89. /// </para>
  90. ///
  91. /// <para>
  92. /// Must be one of the following values:
  93. /// </para>
  94. /// <ul> <li>
  95. /// <para>
  96. /// ANDROID_APP: An Android upload.
  97. /// </para>
  98. /// </li> <li>
  99. /// <para>
  100. /// IOS_APP: An iOS upload.
  101. /// </para>
  102. /// </li> <li>
  103. /// <para>
  104. /// WEB_APP: A web appliction upload.
  105. /// </para>
  106. /// </li> <li>
  107. /// <para>
  108. /// EXTERNAL_DATA: An external data upload.
  109. /// </para>
  110. /// </li> <li>
  111. /// <para>
  112. /// APPIUM_JAVA_JUNIT_TEST_PACKAGE: An Appium Java JUnit test package upload.
  113. /// </para>
  114. /// </li> <li>
  115. /// <para>
  116. /// APPIUM_JAVA_TESTNG_TEST_PACKAGE: An Appium Java TestNG test package upload.
  117. /// </para>
  118. /// </li> <li>
  119. /// <para>
  120. /// APPIUM_PYTHON_TEST_PACKAGE: An Appium Python test package upload.
  121. /// </para>
  122. /// </li> <li>
  123. /// <para>
  124. /// APPIUM_WEB_JAVA_JUNIT_TEST_PACKAGE: An Appium Java JUnit test package upload.
  125. /// </para>
  126. /// </li> <li>
  127. /// <para>
  128. /// APPIUM_WEB_JAVA_TESTNG_TEST_PACKAGE: An Appium Java TestNG test package upload.
  129. /// </para>
  130. /// </li> <li>
  131. /// <para>
  132. /// APPIUM_WEB_PYTHON_TEST_PACKAGE: An Appium Python test package upload.
  133. /// </para>
  134. /// </li> <li>
  135. /// <para>
  136. /// CALABASH_TEST_PACKAGE: A Calabash test package upload.
  137. /// </para>
  138. /// </li> <li>
  139. /// <para>
  140. /// INSTRUMENTATION_TEST_PACKAGE: An instrumentation upload.
  141. /// </para>
  142. /// </li> <li>
  143. /// <para>
  144. /// UIAUTOMATION_TEST_PACKAGE: A uiautomation test package upload.
  145. /// </para>
  146. /// </li> <li>
  147. /// <para>
  148. /// UIAUTOMATOR_TEST_PACKAGE: A uiautomator test package upload.
  149. /// </para>
  150. /// </li> <li>
  151. /// <para>
  152. /// XCTEST_TEST_PACKAGE: An XCode test package upload.
  153. /// </para>
  154. /// </li> <li>
  155. /// <para>
  156. /// XCTEST_UI_TEST_PACKAGE: An XCode UI test package upload.
  157. /// </para>
  158. /// </li> </ul>
  159. /// <para>
  160. /// <b>Note</b> If you call <code>CreateUpload</code> with <code>WEB_APP</code> specified,
  161. /// AWS Device Farm throws an <code>ArgumentException</code> error.
  162. /// </para>
  163. /// </summary>
  164. public UploadType Type
  165. {
  166. get { return this._type; }
  167. set { this._type = value; }
  168. }
  169. // Check to see if Type property is set
  170. internal bool IsSetType()
  171. {
  172. return this._type != null;
  173. }
  174. }
  175. }