Class Upload
- java.lang.Object
-
- com.amazonaws.services.devicefarm.model.Upload
-
- All Implemented Interfaces:
Serializable,Cloneable
public class Upload extends Object implements Serializable, Cloneable
An app or a set of one or more tests to upload or that have been uploaded.
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description Upload()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Uploadclone()booleanequals(Object obj)StringgetArn()The upload's ARN.StringgetContentType()The upload's content type (for example, "application/octet-stream").DategetCreated()When the upload was created.StringgetMessage()A message about the upload's result.StringgetMetadata()The upload's metadata.StringgetName()The upload's file name.StringgetStatus()The upload's status.StringgetType()The upload's type.StringgetUrl()The pre-signed Amazon S3 URL that was used to store a file through a corresponding PUT request.inthashCode()voidsetArn(String arn)The upload's ARN.voidsetContentType(String contentType)The upload's content type (for example, "application/octet-stream").voidsetCreated(Date created)When the upload was created.voidsetMessage(String message)A message about the upload's result.voidsetMetadata(String metadata)The upload's metadata.voidsetName(String name)The upload's file name.voidsetStatus(UploadStatus status)The upload's status.voidsetStatus(String status)The upload's status.voidsetType(UploadType type)The upload's type.voidsetType(String type)The upload's type.voidsetUrl(String url)The pre-signed Amazon S3 URL that was used to store a file through a corresponding PUT request.StringtoString()Returns a string representation of this object; useful for testing and debugging.UploadwithArn(String arn)The upload's ARN.UploadwithContentType(String contentType)The upload's content type (for example, "application/octet-stream").UploadwithCreated(Date created)When the upload was created.UploadwithMessage(String message)A message about the upload's result.UploadwithMetadata(String metadata)The upload's metadata.UploadwithName(String name)The upload's file name.UploadwithStatus(UploadStatus status)The upload's status.UploadwithStatus(String status)The upload's status.UploadwithType(UploadType type)The upload's type.UploadwithType(String type)The upload's type.UploadwithUrl(String url)The pre-signed Amazon S3 URL that was used to store a file through a corresponding PUT request.
-
-
-
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:
toStringin classObject- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
-