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:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class com.amazonaws.AmazonWebServiceRequest
NOOP
-
-
Constructor Summary
Constructors Constructor Description CreateUploadRequest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CreateUploadRequest
clone()
Creates a shallow clone of this request.boolean
equals(Object obj)
String
getContentType()
The upload's content type (for example, "application/octet-stream").String
getName()
The upload's file name.String
getProjectArn()
The ARN of the project for the upload.String
getType()
The upload's upload type.int
hashCode()
void
setContentType(String contentType)
The upload's content type (for example, "application/octet-stream").void
setName(String name)
The upload's file name.void
setProjectArn(String projectArn)
The ARN of the project for the upload.void
setType(UploadType type)
The upload's upload type.void
setType(String type)
The upload's upload type.String
toString()
Returns a string representation of this object; useful for testing and debugging.CreateUploadRequest
withContentType(String contentType)
The upload's content type (for example, "application/octet-stream").CreateUploadRequest
withName(String name)
The upload's file name.CreateUploadRequest
withProjectArn(String projectArn)
The ARN of the project for the upload.CreateUploadRequest
withType(UploadType type)
The upload's upload type.CreateUploadRequest
withType(String type)
The upload's upload type.-
Methods inherited from class com.amazonaws.AmazonWebServiceRequest
copyBaseTo, getCloneRoot, getCloneSource, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestCredentialsProvider, getRequestMetricCollector, getSdkClientExecutionTimeout, getSdkRequestTimeout, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestCredentialsProvider, setRequestMetricCollector, setSdkClientExecutionTimeout, setSdkRequestTimeout, withGeneralProgressListener, withRequestMetricCollector, withSdkClientExecutionTimeout, withSdkRequestTimeout
-
-
-
-
Method Detail
-
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
withWEB_APP
specified, AWS Device Farm throws anArgumentException
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
withWEB_APP
specified, AWS Device Farm throws anArgumentException
error.-
- See Also:
UploadType
-
-
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
withWEB_APP
specified, AWS Device Farm throws anArgumentException
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
withWEB_APP
specified, AWS Device Farm throws anArgumentException
error. -
- See Also:
UploadType
-
-
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
withWEB_APP
specified, AWS Device Farm throws anArgumentException
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
withWEB_APP
specified, AWS Device Farm throws anArgumentException
error.-
- 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 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
withWEB_APP
specified, AWS Device Farm throws anArgumentException
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
withWEB_APP
specified, AWS Device Farm throws anArgumentException
error.-
- See Also:
UploadType
-
-
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
withWEB_APP
specified, AWS Device Farm throws anArgumentException
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
withWEB_APP
specified, AWS Device Farm throws anArgumentException
error.-
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
UploadType
-
-
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 classObject
- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
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 classAmazonWebServiceRequest
- See Also:
Object.clone()
-
-