Class CreateUploadRequest

java.lang.Object
com.amazonaws.AmazonWebServiceRequest
com.amazonaws.services.devicefarm.model.CreateUploadRequest
All Implemented Interfaces:
ReadLimitInfo, Serializable, Cloneable

public class CreateUploadRequest extends AmazonWebServiceRequest implements Serializable, Cloneable

Represents a request to the create upload operation.

See Also:
  • Constructor Details

    • CreateUploadRequest

      public CreateUploadRequest()
  • Method Details

    • setProjectArn

      public void setProjectArn(String projectArn)

      The ARN of the project for the upload.

      Parameters:
      projectArn - The ARN of the project for the upload.
    • getProjectArn

      public String getProjectArn()

      The ARN of the project for the upload.

      Returns:
      The ARN of the project for the upload.
    • withProjectArn

      public CreateUploadRequest withProjectArn(String projectArn)

      The ARN of the project for the upload.

      Parameters:
      projectArn - The ARN of the project for the upload.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • setName

      public void setName(String name)

      The upload's file name.

      Parameters:
      name - The upload's file name.
    • getName

      public String getName()

      The upload's file name.

      Returns:
      The upload's file name.
    • withName

      public CreateUploadRequest withName(String name)

      The upload's file name.

      Parameters:
      name - The upload's file name.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • setType

      public void setType(String type)

      The upload's upload type.

      Must be one of the following values:

      • ANDROID_APP: An Android upload.

      • IOS_APP: An iOS upload.

      • WEB_APP: A web appliction upload.

      • EXTERNAL_DATA: An external data upload.

      • APPIUM_JAVA_JUNIT_TEST_PACKAGE: An Appium Java JUnit test package upload.

      • APPIUM_JAVA_TESTNG_TEST_PACKAGE: An Appium Java TestNG test package upload.

      • APPIUM_PYTHON_TEST_PACKAGE: An Appium Python test package upload.

      • APPIUM_WEB_JAVA_JUNIT_TEST_PACKAGE: An Appium Java JUnit test package upload.

      • APPIUM_WEB_JAVA_TESTNG_TEST_PACKAGE: An Appium Java TestNG test package upload.

      • APPIUM_WEB_PYTHON_TEST_PACKAGE: An Appium Python test package upload.

      • CALABASH_TEST_PACKAGE: A Calabash test package upload.

      • INSTRUMENTATION_TEST_PACKAGE: An instrumentation upload.

      • UIAUTOMATION_TEST_PACKAGE: A uiautomation test package upload.

      • UIAUTOMATOR_TEST_PACKAGE: A uiautomator test package upload.

      • XCTEST_TEST_PACKAGE: An XCode test package upload.

      • XCTEST_UI_TEST_PACKAGE: An XCode UI test package upload.

      Note If you call CreateUpload with WEB_APP specified, AWS Device Farm throws an ArgumentException error.

      Parameters:
      type - The upload's upload type.

      Must be one of the following values:

      • ANDROID_APP: An Android upload.

      • IOS_APP: An iOS upload.

      • WEB_APP: A web appliction upload.

      • EXTERNAL_DATA: An external data upload.

      • APPIUM_JAVA_JUNIT_TEST_PACKAGE: An Appium Java JUnit test package upload.

      • APPIUM_JAVA_TESTNG_TEST_PACKAGE: An Appium Java TestNG test package upload.

      • APPIUM_PYTHON_TEST_PACKAGE: An Appium Python test package upload.

      • APPIUM_WEB_JAVA_JUNIT_TEST_PACKAGE: An Appium Java JUnit test package upload.

      • APPIUM_WEB_JAVA_TESTNG_TEST_PACKAGE: An Appium Java TestNG test package upload.

      • APPIUM_WEB_PYTHON_TEST_PACKAGE: An Appium Python test package upload.

      • CALABASH_TEST_PACKAGE: A Calabash test package upload.

      • INSTRUMENTATION_TEST_PACKAGE: An instrumentation upload.

      • UIAUTOMATION_TEST_PACKAGE: A uiautomation test package upload.

      • UIAUTOMATOR_TEST_PACKAGE: A uiautomator test package upload.

      • XCTEST_TEST_PACKAGE: An XCode test package upload.

      • XCTEST_UI_TEST_PACKAGE: An XCode UI test package upload.

      Note If you call CreateUpload with WEB_APP specified, AWS Device Farm throws an ArgumentException error.

      See Also:
    • getType

      public String getType()

      The upload's upload type.

      Must be one of the following values:

      • ANDROID_APP: An Android upload.

      • IOS_APP: An iOS upload.

      • WEB_APP: A web appliction upload.

      • EXTERNAL_DATA: An external data upload.

      • APPIUM_JAVA_JUNIT_TEST_PACKAGE: An Appium Java JUnit test package upload.

      • APPIUM_JAVA_TESTNG_TEST_PACKAGE: An Appium Java TestNG test package upload.

      • APPIUM_PYTHON_TEST_PACKAGE: An Appium Python test package upload.

      • APPIUM_WEB_JAVA_JUNIT_TEST_PACKAGE: An Appium Java JUnit test package upload.

      • APPIUM_WEB_JAVA_TESTNG_TEST_PACKAGE: An Appium Java TestNG test package upload.

      • APPIUM_WEB_PYTHON_TEST_PACKAGE: An Appium Python test package upload.

      • CALABASH_TEST_PACKAGE: A Calabash test package upload.

      • INSTRUMENTATION_TEST_PACKAGE: An instrumentation upload.

      • UIAUTOMATION_TEST_PACKAGE: A uiautomation test package upload.

      • UIAUTOMATOR_TEST_PACKAGE: A uiautomator test package upload.

      • XCTEST_TEST_PACKAGE: An XCode test package upload.

      • XCTEST_UI_TEST_PACKAGE: An XCode UI test package upload.

      Note If you call CreateUpload with WEB_APP specified, AWS Device Farm throws an ArgumentException error.

      Returns:
      The upload's upload type.

      Must be one of the following values:

      • ANDROID_APP: An Android upload.

      • IOS_APP: An iOS upload.

      • WEB_APP: A web appliction upload.

      • EXTERNAL_DATA: An external data upload.

      • APPIUM_JAVA_JUNIT_TEST_PACKAGE: An Appium Java JUnit test package upload.

      • APPIUM_JAVA_TESTNG_TEST_PACKAGE: An Appium Java TestNG test package upload.

      • APPIUM_PYTHON_TEST_PACKAGE: An Appium Python test package upload.

      • APPIUM_WEB_JAVA_JUNIT_TEST_PACKAGE: An Appium Java JUnit test package upload.

      • APPIUM_WEB_JAVA_TESTNG_TEST_PACKAGE: An Appium Java TestNG test package upload.

      • APPIUM_WEB_PYTHON_TEST_PACKAGE: An Appium Python test package upload.

      • CALABASH_TEST_PACKAGE: A Calabash test package upload.

      • INSTRUMENTATION_TEST_PACKAGE: An instrumentation upload.

      • UIAUTOMATION_TEST_PACKAGE: A uiautomation test package upload.

      • UIAUTOMATOR_TEST_PACKAGE: A uiautomator test package upload.

      • XCTEST_TEST_PACKAGE: An XCode test package upload.

      • XCTEST_UI_TEST_PACKAGE: An XCode UI test package upload.

      Note If you call CreateUpload with WEB_APP specified, AWS Device Farm throws an ArgumentException error.

      See Also:
    • withType

      public CreateUploadRequest withType(String type)

      The upload's upload type.

      Must be one of the following values:

      • ANDROID_APP: An Android upload.

      • IOS_APP: An iOS upload.

      • WEB_APP: A web appliction upload.

      • EXTERNAL_DATA: An external data upload.

      • APPIUM_JAVA_JUNIT_TEST_PACKAGE: An Appium Java JUnit test package upload.

      • APPIUM_JAVA_TESTNG_TEST_PACKAGE: An Appium Java TestNG test package upload.

      • APPIUM_PYTHON_TEST_PACKAGE: An Appium Python test package upload.

      • APPIUM_WEB_JAVA_JUNIT_TEST_PACKAGE: An Appium Java JUnit test package upload.

      • APPIUM_WEB_JAVA_TESTNG_TEST_PACKAGE: An Appium Java TestNG test package upload.

      • APPIUM_WEB_PYTHON_TEST_PACKAGE: An Appium Python test package upload.

      • CALABASH_TEST_PACKAGE: A Calabash test package upload.

      • INSTRUMENTATION_TEST_PACKAGE: An instrumentation upload.

      • UIAUTOMATION_TEST_PACKAGE: A uiautomation test package upload.

      • UIAUTOMATOR_TEST_PACKAGE: A uiautomator test package upload.

      • XCTEST_TEST_PACKAGE: An XCode test package upload.

      • XCTEST_UI_TEST_PACKAGE: An XCode UI test package upload.

      Note If you call CreateUpload with WEB_APP specified, AWS Device Farm throws an ArgumentException error.

      Parameters:
      type - The upload's upload type.

      Must be one of the following values:

      • ANDROID_APP: An Android upload.

      • IOS_APP: An iOS upload.

      • WEB_APP: A web appliction upload.

      • EXTERNAL_DATA: An external data upload.

      • APPIUM_JAVA_JUNIT_TEST_PACKAGE: An Appium Java JUnit test package upload.

      • APPIUM_JAVA_TESTNG_TEST_PACKAGE: An Appium Java TestNG test package upload.

      • APPIUM_PYTHON_TEST_PACKAGE: An Appium Python test package upload.

      • APPIUM_WEB_JAVA_JUNIT_TEST_PACKAGE: An Appium Java JUnit test package upload.

      • APPIUM_WEB_JAVA_TESTNG_TEST_PACKAGE: An Appium Java TestNG test package upload.

      • APPIUM_WEB_PYTHON_TEST_PACKAGE: An Appium Python test package upload.

      • CALABASH_TEST_PACKAGE: A Calabash test package upload.

      • INSTRUMENTATION_TEST_PACKAGE: An instrumentation upload.

      • UIAUTOMATION_TEST_PACKAGE: A uiautomation test package upload.

      • UIAUTOMATOR_TEST_PACKAGE: A uiautomator test package upload.

      • XCTEST_TEST_PACKAGE: An XCode test package upload.

      • XCTEST_UI_TEST_PACKAGE: An XCode UI test package upload.

      Note If you call CreateUpload with WEB_APP specified, AWS Device Farm throws an ArgumentException error.

      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • setType

      public void setType(UploadType type)

      The upload's upload type.

      Must be one of the following values:

      • ANDROID_APP: An Android upload.

      • IOS_APP: An iOS upload.

      • WEB_APP: A web appliction upload.

      • EXTERNAL_DATA: An external data upload.

      • APPIUM_JAVA_JUNIT_TEST_PACKAGE: An Appium Java JUnit test package upload.

      • APPIUM_JAVA_TESTNG_TEST_PACKAGE: An Appium Java TestNG test package upload.

      • APPIUM_PYTHON_TEST_PACKAGE: An Appium Python test package upload.

      • APPIUM_WEB_JAVA_JUNIT_TEST_PACKAGE: An Appium Java JUnit test package upload.

      • APPIUM_WEB_JAVA_TESTNG_TEST_PACKAGE: An Appium Java TestNG test package upload.

      • APPIUM_WEB_PYTHON_TEST_PACKAGE: An Appium Python test package upload.

      • CALABASH_TEST_PACKAGE: A Calabash test package upload.

      • INSTRUMENTATION_TEST_PACKAGE: An instrumentation upload.

      • UIAUTOMATION_TEST_PACKAGE: A uiautomation test package upload.

      • UIAUTOMATOR_TEST_PACKAGE: A uiautomator test package upload.

      • XCTEST_TEST_PACKAGE: An XCode test package upload.

      • XCTEST_UI_TEST_PACKAGE: An XCode UI test package upload.

      Note If you call CreateUpload with WEB_APP specified, AWS Device Farm throws an ArgumentException error.

      Parameters:
      type - The upload's upload type.

      Must be one of the following values:

      • ANDROID_APP: An Android upload.

      • IOS_APP: An iOS upload.

      • WEB_APP: A web appliction upload.

      • EXTERNAL_DATA: An external data upload.

      • APPIUM_JAVA_JUNIT_TEST_PACKAGE: An Appium Java JUnit test package upload.

      • APPIUM_JAVA_TESTNG_TEST_PACKAGE: An Appium Java TestNG test package upload.

      • APPIUM_PYTHON_TEST_PACKAGE: An Appium Python test package upload.

      • APPIUM_WEB_JAVA_JUNIT_TEST_PACKAGE: An Appium Java JUnit test package upload.

      • APPIUM_WEB_JAVA_TESTNG_TEST_PACKAGE: An Appium Java TestNG test package upload.

      • APPIUM_WEB_PYTHON_TEST_PACKAGE: An Appium Python test package upload.

      • CALABASH_TEST_PACKAGE: A Calabash test package upload.

      • INSTRUMENTATION_TEST_PACKAGE: An instrumentation upload.

      • UIAUTOMATION_TEST_PACKAGE: A uiautomation test package upload.

      • UIAUTOMATOR_TEST_PACKAGE: A uiautomator test package upload.

      • XCTEST_TEST_PACKAGE: An XCode test package upload.

      • XCTEST_UI_TEST_PACKAGE: An XCode UI test package upload.

      Note If you call CreateUpload with WEB_APP specified, AWS Device Farm throws an ArgumentException error.

      See Also:
    • withType

      public CreateUploadRequest withType(UploadType type)

      The upload's upload type.

      Must be one of the following values:

      • ANDROID_APP: An Android upload.

      • IOS_APP: An iOS upload.

      • WEB_APP: A web appliction upload.

      • EXTERNAL_DATA: An external data upload.

      • APPIUM_JAVA_JUNIT_TEST_PACKAGE: An Appium Java JUnit test package upload.

      • APPIUM_JAVA_TESTNG_TEST_PACKAGE: An Appium Java TestNG test package upload.

      • APPIUM_PYTHON_TEST_PACKAGE: An Appium Python test package upload.

      • APPIUM_WEB_JAVA_JUNIT_TEST_PACKAGE: An Appium Java JUnit test package upload.

      • APPIUM_WEB_JAVA_TESTNG_TEST_PACKAGE: An Appium Java TestNG test package upload.

      • APPIUM_WEB_PYTHON_TEST_PACKAGE: An Appium Python test package upload.

      • CALABASH_TEST_PACKAGE: A Calabash test package upload.

      • INSTRUMENTATION_TEST_PACKAGE: An instrumentation upload.

      • UIAUTOMATION_TEST_PACKAGE: A uiautomation test package upload.

      • UIAUTOMATOR_TEST_PACKAGE: A uiautomator test package upload.

      • XCTEST_TEST_PACKAGE: An XCode test package upload.

      • XCTEST_UI_TEST_PACKAGE: An XCode UI test package upload.

      Note If you call CreateUpload with WEB_APP specified, AWS Device Farm throws an ArgumentException error.

      Parameters:
      type - The upload's upload type.

      Must be one of the following values:

      • ANDROID_APP: An Android upload.

      • IOS_APP: An iOS upload.

      • WEB_APP: A web appliction upload.

      • EXTERNAL_DATA: An external data upload.

      • APPIUM_JAVA_JUNIT_TEST_PACKAGE: An Appium Java JUnit test package upload.

      • APPIUM_JAVA_TESTNG_TEST_PACKAGE: An Appium Java TestNG test package upload.

      • APPIUM_PYTHON_TEST_PACKAGE: An Appium Python test package upload.

      • APPIUM_WEB_JAVA_JUNIT_TEST_PACKAGE: An Appium Java JUnit test package upload.

      • APPIUM_WEB_JAVA_TESTNG_TEST_PACKAGE: An Appium Java TestNG test package upload.

      • APPIUM_WEB_PYTHON_TEST_PACKAGE: An Appium Python test package upload.

      • CALABASH_TEST_PACKAGE: A Calabash test package upload.

      • INSTRUMENTATION_TEST_PACKAGE: An instrumentation upload.

      • UIAUTOMATION_TEST_PACKAGE: A uiautomation test package upload.

      • UIAUTOMATOR_TEST_PACKAGE: A uiautomator test package upload.

      • XCTEST_TEST_PACKAGE: An XCode test package upload.

      • XCTEST_UI_TEST_PACKAGE: An XCode UI test package upload.

      Note If you call CreateUpload with WEB_APP specified, AWS Device Farm throws an ArgumentException error.

      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • setContentType

      public void setContentType(String contentType)

      The upload's content type (for example, "application/octet-stream").

      Parameters:
      contentType - The upload's content type (for example, "application/octet-stream").
    • getContentType

      public String getContentType()

      The upload's content type (for example, "application/octet-stream").

      Returns:
      The upload's content type (for example, "application/octet-stream").
    • withContentType

      public CreateUploadRequest withContentType(String contentType)

      The upload's content type (for example, "application/octet-stream").

      Parameters:
      contentType - The upload's content type (for example, "application/octet-stream").
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • toString

      public String toString()
      Returns a string representation of this object; useful for testing and debugging.
      Overrides:
      toString in class Object
      Returns:
      A string representation of this object.
      See Also:
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • clone

      public CreateUploadRequest clone()
      Description copied from class: AmazonWebServiceRequest
      Creates a shallow clone of this request. Explicitly does not clone the deep structure of the request object.
      Overrides:
      clone in class AmazonWebServiceRequest
      See Also: