Class Upload

    • Constructor Detail

      • Upload

        public Upload()
    • Method Detail

      • setArn

        public void setArn​(String arn)

        The upload's ARN.

        Parameters:
        arn - The upload's ARN.
      • getArn

        public String getArn()

        The upload's ARN.

        Returns:
        The upload's ARN.
      • withArn

        public Upload withArn​(String arn)

        The upload's ARN.

        Parameters:
        arn - The upload's ARN.
        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 Upload 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.
      • setCreated

        public void setCreated​(Date created)

        When the upload was created.

        Parameters:
        created - When the upload was created.
      • getCreated

        public Date getCreated()

        When the upload was created.

        Returns:
        When the upload was created.
      • withCreated

        public Upload withCreated​(Date created)

        When the upload was created.

        Parameters:
        created - When the upload was created.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • setType

        public void setType​(String type)

        The upload's 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.

        Parameters:
        type - The upload's 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.

        See Also:
        UploadType
      • getType

        public String getType()

        The upload's 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.

        Returns:
        The upload's 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.

        See Also:
        UploadType
      • withType

        public Upload withType​(String type)

        The upload's 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.

        Parameters:
        type - The upload's 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.

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

        public void setType​(UploadType type)

        The upload's 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.

        Parameters:
        type - The upload's 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.

        See Also:
        UploadType
      • withType

        public Upload withType​(UploadType type)

        The upload's 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.

        Parameters:
        type - The upload's 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.

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

        public void setStatus​(String status)

        The upload's status.

        Must be one of the following values:

        • FAILED: A failed status.

        • INITIALIZED: An initialized status.

        • PROCESSING: A processing status.

        • SUCCEEDED: A succeeded status.

        Parameters:
        status - The upload's status.

        Must be one of the following values:

        • FAILED: A failed status.

        • INITIALIZED: An initialized status.

        • PROCESSING: A processing status.

        • SUCCEEDED: A succeeded status.

        See Also:
        UploadStatus
      • getStatus

        public String getStatus()

        The upload's status.

        Must be one of the following values:

        • FAILED: A failed status.

        • INITIALIZED: An initialized status.

        • PROCESSING: A processing status.

        • SUCCEEDED: A succeeded status.

        Returns:
        The upload's status.

        Must be one of the following values:

        • FAILED: A failed status.

        • INITIALIZED: An initialized status.

        • PROCESSING: A processing status.

        • SUCCEEDED: A succeeded status.

        See Also:
        UploadStatus
      • withStatus

        public Upload withStatus​(String status)

        The upload's status.

        Must be one of the following values:

        • FAILED: A failed status.

        • INITIALIZED: An initialized status.

        • PROCESSING: A processing status.

        • SUCCEEDED: A succeeded status.

        Parameters:
        status - The upload's status.

        Must be one of the following values:

        • FAILED: A failed status.

        • INITIALIZED: An initialized status.

        • PROCESSING: A processing status.

        • SUCCEEDED: A succeeded status.

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

        public void setStatus​(UploadStatus status)

        The upload's status.

        Must be one of the following values:

        • FAILED: A failed status.

        • INITIALIZED: An initialized status.

        • PROCESSING: A processing status.

        • SUCCEEDED: A succeeded status.

        Parameters:
        status - The upload's status.

        Must be one of the following values:

        • FAILED: A failed status.

        • INITIALIZED: An initialized status.

        • PROCESSING: A processing status.

        • SUCCEEDED: A succeeded status.

        See Also:
        UploadStatus
      • withStatus

        public Upload withStatus​(UploadStatus status)

        The upload's status.

        Must be one of the following values:

        • FAILED: A failed status.

        • INITIALIZED: An initialized status.

        • PROCESSING: A processing status.

        • SUCCEEDED: A succeeded status.

        Parameters:
        status - The upload's status.

        Must be one of the following values:

        • FAILED: A failed status.

        • INITIALIZED: An initialized status.

        • PROCESSING: A processing status.

        • SUCCEEDED: A succeeded status.

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

        public void setUrl​(String url)

        The pre-signed Amazon S3 URL that was used to store a file through a corresponding PUT request.

        Parameters:
        url - The pre-signed Amazon S3 URL that was used to store a file through a corresponding PUT request.
      • getUrl

        public String getUrl()

        The pre-signed Amazon S3 URL that was used to store a file through a corresponding PUT request.

        Returns:
        The pre-signed Amazon S3 URL that was used to store a file through a corresponding PUT request.
      • withUrl

        public Upload withUrl​(String url)

        The pre-signed Amazon S3 URL that was used to store a file through a corresponding PUT request.

        Parameters:
        url - The pre-signed Amazon S3 URL that was used to store a file through a corresponding PUT request.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • setMetadata

        public void setMetadata​(String metadata)

        The upload's metadata. For example, for Android, this contains information that is parsed from the manifest and is displayed in the AWS Device Farm console after the associated app is uploaded.

        Parameters:
        metadata - The upload's metadata. For example, for Android, this contains information that is parsed from the manifest and is displayed in the AWS Device Farm console after the associated app is uploaded.
      • getMetadata

        public String getMetadata()

        The upload's metadata. For example, for Android, this contains information that is parsed from the manifest and is displayed in the AWS Device Farm console after the associated app is uploaded.

        Returns:
        The upload's metadata. For example, for Android, this contains information that is parsed from the manifest and is displayed in the AWS Device Farm console after the associated app is uploaded.
      • withMetadata

        public Upload withMetadata​(String metadata)

        The upload's metadata. For example, for Android, this contains information that is parsed from the manifest and is displayed in the AWS Device Farm console after the associated app is uploaded.

        Parameters:
        metadata - The upload's metadata. For example, for Android, this contains information that is parsed from the manifest and is displayed in the AWS Device Farm console after the associated app is uploaded.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • 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 Upload 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.
      • setMessage

        public void setMessage​(String message)

        A message about the upload's result.

        Parameters:
        message - A message about the upload's result.
      • getMessage

        public String getMessage()

        A message about the upload's result.

        Returns:
        A message about the upload's result.
      • withMessage

        public Upload withMessage​(String message)

        A message about the upload's result.

        Parameters:
        message - A message about the upload's result.
        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:
        Object.toString()
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object