public CreateUploadRequest withType(UploadType type) {
        this.type = type.toString();
        return this;
    }
<p>
The upload's upload type.
</p>
<p>
Must be one of the following values:
</p>
<ul>
<li>
<p>
ANDROID_APP
</p>
</li>
<li>
<p>
IOS_APP
</p>
</li>
<li>
<p>
WEB_APP
</p>
</li>
<li>
<p>
EXTERNAL_DATA
</p>
</li>
<li>
<p>
APPIUM_JAVA_JUNIT_TEST_PACKAGE
</p>
</li>
<li>
<p>
APPIUM_JAVA_TESTNG_TEST_PACKAGE
</p>
</li>
<li>
<p>
APPIUM_PYTHON_TEST_PACKAGE
</p>
</li>
<li>
<p>
APPIUM_NODE_TEST_PACKAGE
</p>
</li>
<li>
<p>
APPIUM_RUBY_TEST_PACKAGE
</p>
</li>
<li>
<p>
APPIUM_WEB_JAVA_JUNIT_TEST_PACKAGE
</p>
</li>
<li>
<p>
APPIUM_WEB_JAVA_TESTNG_TEST_PACKAGE
</p>
</li>
<li>
<p>
APPIUM_WEB_PYTHON_TEST_PACKAGE
</p>
</li>
<li>
<p>
APPIUM_WEB_NODE_TEST_PACKAGE
</p>
</li>
<li>
<p>
APPIUM_WEB_RUBY_TEST_PACKAGE
</p>
</li>
<li>
<p>
CALABASH_TEST_PACKAGE
</p>
</li>
<li>
<p>
INSTRUMENTATION_TEST_PACKAGE
</p>
</li>
<li>
<p>
UIAUTOMATION_TEST_PACKAGE
</p>
</li>
<li>
<p>
UIAUTOMATOR_TEST_PACKAGE
</p>
</li>
<li>
<p>
XCTEST_TEST_PACKAGE
</p>
</li>
<li>
<p>
XCTEST_UI_TEST_PACKAGE
</p>
</li>
<li>
<p>
APPIUM_JAVA_JUNIT_TEST_SPEC
</p>
</li>
<li>
<p>
APPIUM_JAVA_TESTNG_TEST_SPEC
</p>
</li>
<li>
<p>
APPIUM_PYTHON_TEST_SPEC
</p>
</li>
<li>
<p>
APPIUM_NODE_TEST_SPEC
</p>
</li>
<li>
<p>
APPIUM_RUBY_TEST_SPEC
</p>
</li>
<li>
<p>
APPIUM_WEB_JAVA_JUNIT_TEST_SPEC
</p>
</li>
<li>
<p>
APPIUM_WEB_JAVA_TESTNG_TEST_SPEC
</p>
</li>
<li>
<p>
APPIUM_WEB_PYTHON_TEST_SPEC
</p>
</li>
<li>
<p>
APPIUM_WEB_NODE_TEST_SPEC
</p>
</li>
<li>
<p>
APPIUM_WEB_RUBY_TEST_SPEC
</p>
</li>
<li>
<p>
INSTRUMENTATION_TEST_SPEC
</p>
</li>
<li>
<p>
XCTEST_UI_TEST_SPEC
</p>
</li>
</ul>
<p>
If you call <code>CreateUpload</code> with <code>WEB_APP</code> specified, AWS Device Farm throws an
<code>ArgumentException</code> error.
</p>

@param type
       The upload's upload type.</p>
       <p>
       Must be one of the following values:
       </p>
       <ul>
       <li>
       <p>
       ANDROID_APP
       </p>
       </li>
       <li>
       <p>
       IOS_APP
       </p>
       </li>
       <li>
       <p>
       WEB_APP
       </p>
       </li>
       <li>
       <p>
       EXTERNAL_DATA
       </p>
       </li>
       <li>
       <p>
       APPIUM_JAVA_JUNIT_TEST_PACKAGE
       </p>
       </li>
       <li>
       <p>
       APPIUM_JAVA_TESTNG_TEST_PACKAGE
       </p>
       </li>
       <li>
       <p>
       APPIUM_PYTHON_TEST_PACKAGE
       </p>
       </li>
       <li>
       <p>
       APPIUM_NODE_TEST_PACKAGE
       </p>
       </li>
       <li>
       <p>
       APPIUM_RUBY_TEST_PACKAGE
       </p>
       </li>
       <li>
       <p>
       APPIUM_WEB_JAVA_JUNIT_TEST_PACKAGE
       </p>
       </li>
       <li>
       <p>
       APPIUM_WEB_JAVA_TESTNG_TEST_PACKAGE
       </p>
       </li>
       <li>
       <p>
       APPIUM_WEB_PYTHON_TEST_PACKAGE
       </p>
       </li>
       <li>
       <p>
       APPIUM_WEB_NODE_TEST_PACKAGE
       </p>
       </li>
       <li>
       <p>
       APPIUM_WEB_RUBY_TEST_PACKAGE
       </p>
       </li>
       <li>
       <p>
       CALABASH_TEST_PACKAGE
       </p>
       </li>
       <li>
       <p>
       INSTRUMENTATION_TEST_PACKAGE
       </p>
       </li>
       <li>
       <p>
       UIAUTOMATION_TEST_PACKAGE
       </p>
       </li>
       <li>
       <p>
       UIAUTOMATOR_TEST_PACKAGE
       </p>
       </li>
       <li>
       <p>
       XCTEST_TEST_PACKAGE
       </p>
       </li>
       <li>
       <p>
       XCTEST_UI_TEST_PACKAGE
       </p>
       </li>
       <li>
       <p>
       APPIUM_JAVA_JUNIT_TEST_SPEC
       </p>
       </li>
       <li>
       <p>
       APPIUM_JAVA_TESTNG_TEST_SPEC
       </p>
       </li>
       <li>
       <p>
       APPIUM_PYTHON_TEST_SPEC
       </p>
       </li>
       <li>
       <p>
       APPIUM_NODE_TEST_SPEC
       </p>
       </li>
       <li>
       <p>
       APPIUM_RUBY_TEST_SPEC
       </p>
       </li>
       <li>
       <p>
       APPIUM_WEB_JAVA_JUNIT_TEST_SPEC
       </p>
       </li>
       <li>
       <p>
       APPIUM_WEB_JAVA_TESTNG_TEST_SPEC
       </p>
       </li>
       <li>
       <p>
       APPIUM_WEB_PYTHON_TEST_SPEC
       </p>
       </li>
       <li>
       <p>
       APPIUM_WEB_NODE_TEST_SPEC
       </p>
       </li>
       <li>
       <p>
       APPIUM_WEB_RUBY_TEST_SPEC
       </p>
       </li>
       <li>
       <p>
       INSTRUMENTATION_TEST_SPEC
       </p>
       </li>
       <li>
       <p>
       XCTEST_UI_TEST_SPEC
       </p>
       </li>
       </ul>
       <p>
       If you call <code>CreateUpload</code> with <code>WEB_APP</code> specified, AWS Device Farm throws an
       <code>ArgumentException</code> error.
@return Returns a reference to this object so that method calls can be chained together.
@see UploadType
aws-java-sdk-devicefarm/src/main/java/com/amazonaws/services/devicefarm/model/CreateUploadRequest.java