Class Upload
- All Implemented Interfaces:
Serializable
,Cloneable
An app or a set of one or more tests to upload or that have been uploaded.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()
boolean
getArn()
The upload's ARN.The upload's content type (for example, "application/octet-stream").When the upload was created.A message about the upload's result.The upload's metadata.getName()
The upload's file name.The upload's status.getType()
The upload's type.getUrl()
The pre-signed Amazon S3 URL that was used to store a file through a corresponding PUT request.int
hashCode()
void
The upload's ARN.void
setContentType
(String contentType) The upload's content type (for example, "application/octet-stream").void
setCreated
(Date created) When the upload was created.void
setMessage
(String message) A message about the upload's result.void
setMetadata
(String metadata) The upload's metadata.void
The upload's file name.void
setStatus
(UploadStatus status) The upload's status.void
The upload's status.void
setType
(UploadType type) The upload's type.void
The upload's type.void
The pre-signed Amazon S3 URL that was used to store a file through a corresponding PUT request.toString()
Returns a string representation of this object; useful for testing and debugging.The upload's ARN.withContentType
(String contentType) The upload's content type (for example, "application/octet-stream").withCreated
(Date created) When the upload was created.withMessage
(String message) A message about the upload's result.withMetadata
(String metadata) The upload's metadata.The upload's file name.withStatus
(UploadStatus status) The upload's status.withStatus
(String status) The upload's status.withType
(UploadType type) The upload's type.The upload's type.The pre-signed Amazon S3 URL that was used to store a file through a corresponding PUT request.
-
Constructor Details
-
Upload
public Upload()
-
-
Method Details
-
setArn
The upload's ARN.
- Parameters:
arn
- The upload's ARN.
-
getArn
The upload's ARN.
- Returns:
- The upload's ARN.
-
withArn
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
The upload's file name.
- Parameters:
name
- The upload's file name.
-
getName
The upload's file name.
- Returns:
- The upload's file name.
-
withName
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
When the upload was created.
- Parameters:
created
- When the upload was created.
-
getCreated
When the upload was created.
- Returns:
- When the upload was created.
-
withCreated
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
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:
-
-
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:
-
-
withType
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:
-
-
setType
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:
-
-
withType
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:
-
-
setStatus
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:
-
-
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:
-
-
withStatus
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:
-
-
setStatus
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:
-
-
withStatus
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:
-
-
setUrl
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
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
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
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
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
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
The upload's content type (for example, "application/octet-stream").
- Parameters:
contentType
- The upload's content type (for example, "application/octet-stream").
-
getContentType
The upload's content type (for example, "application/octet-stream").
- Returns:
- The upload's content type (for example, "application/octet-stream").
-
withContentType
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
A message about the upload's result.
- Parameters:
message
- A message about the upload's result.
-
getMessage
A message about the upload's result.
- Returns:
- A message about the upload's result.
-
withMessage
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
Returns a string representation of this object; useful for testing and debugging. -
equals
-
hashCode
public int hashCode() -
clone
-