com.amazonaws.services.devicefarm.model.Upload Maven / Gradle / Ivy
Show all versions of aws-java-sdk-devicefarm Show documentation
/*
* Copyright 2019-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
* the License. A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
* CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
* and limitations under the License.
*/
package com.amazonaws.services.devicefarm.model;
import java.io.Serializable;
import javax.annotation.Generated;
import com.amazonaws.protocol.StructuredPojo;
import com.amazonaws.protocol.ProtocolMarshaller;
/**
*
* An app or a set of one or more tests to upload or that have been uploaded.
*
*
* @see AWS API
* Documentation
*/
@Generated("com.amazonaws:aws-java-sdk-code-generator")
public class Upload implements Serializable, Cloneable, StructuredPojo {
/**
*
* The upload's ARN.
*
*/
private String arn;
/**
*
* The upload's file name.
*
*/
private String name;
/**
*
* When the upload was created.
*
*/
private java.util.Date created;
/**
*
* The upload's type.
*
*
* Must be one of the following values:
*
*
* -
*
* ANDROID_APP
*
*
* -
*
* IOS_APP
*
*
* -
*
* WEB_APP
*
*
* -
*
* EXTERNAL_DATA
*
*
* -
*
* APPIUM_JAVA_JUNIT_TEST_PACKAGE
*
*
* -
*
* APPIUM_JAVA_TESTNG_TEST_PACKAGE
*
*
* -
*
* APPIUM_PYTHON_TEST_PACKAGE
*
*
* -
*
* APPIUM_NODE_TEST_PACKAGE
*
*
* -
*
* APPIUM_RUBY_TEST_PACKAGE
*
*
* -
*
* APPIUM_WEB_JAVA_JUNIT_TEST_PACKAGE
*
*
* -
*
* APPIUM_WEB_JAVA_TESTNG_TEST_PACKAGE
*
*
* -
*
* APPIUM_WEB_PYTHON_TEST_PACKAGE
*
*
* -
*
* APPIUM_WEB_NODE_TEST_PACKAGE
*
*
* -
*
* APPIUM_WEB_RUBY_TEST_PACKAGE
*
*
* -
*
* CALABASH_TEST_PACKAGE
*
*
* -
*
* INSTRUMENTATION_TEST_PACKAGE
*
*
* -
*
* UIAUTOMATION_TEST_PACKAGE
*
*
* -
*
* UIAUTOMATOR_TEST_PACKAGE
*
*
* -
*
* XCTEST_TEST_PACKAGE
*
*
* -
*
* XCTEST_UI_TEST_PACKAGE
*
*
* -
*
* APPIUM_JAVA_JUNIT_TEST_SPEC
*
*
* -
*
* APPIUM_JAVA_TESTNG_TEST_SPEC
*
*
* -
*
* APPIUM_PYTHON_TEST_SPEC
*
*
* -
*
* APPIUM_NODE_TEST_SPEC
*
*
* -
*
* APPIUM_RUBY_TEST_SPEC
*
*
* -
*
* APPIUM_WEB_JAVA_JUNIT_TEST_SPEC
*
*
* -
*
* APPIUM_WEB_JAVA_TESTNG_TEST_SPEC
*
*
* -
*
* APPIUM_WEB_PYTHON_TEST_SPEC
*
*
* -
*
* APPIUM_WEB_NODE_TEST_SPEC
*
*
* -
*
* APPIUM_WEB_RUBY_TEST_SPEC
*
*
* -
*
* INSTRUMENTATION_TEST_SPEC
*
*
* -
*
* XCTEST_UI_TEST_SPEC
*
*
*
*/
private String type;
/**
*
* The upload's status.
*
*
* Must be one of the following values:
*
*
* -
*
* FAILED
*
*
* -
*
* INITIALIZED
*
*
* -
*
* PROCESSING
*
*
* -
*
* SUCCEEDED
*
*
*
*/
private String status;
/**
*
* The presigned Amazon S3 URL that was used to store a file using a PUT request.
*
*/
private String url;
/**
*
* 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.
*
*/
private String metadata;
/**
*
* The upload's content type (for example, application/octet-stream
).
*
*/
private String contentType;
/**
*
* A message about the upload's result.
*
*/
private String message;
/**
*
* The upload's category. Allowed values include:
*
*
* -
*
* CURATED: An upload managed by AWS Device Farm.
*
*
* -
*
* PRIVATE: An upload managed by the AWS Device Farm customer.
*
*
*
*/
private String category;
/**
*
* The upload's ARN.
*
*
* @param arn
* The upload's ARN.
*/
public void setArn(String arn) {
this.arn = arn;
}
/**
*
* The upload's ARN.
*
*
* @return The upload's ARN.
*/
public String getArn() {
return this.arn;
}
/**
*
* The upload's ARN.
*
*
* @param arn
* The upload's ARN.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public Upload withArn(String arn) {
setArn(arn);
return this;
}
/**
*
* The upload's file name.
*
*
* @param name
* The upload's file name.
*/
public void setName(String name) {
this.name = name;
}
/**
*
* The upload's file name.
*
*
* @return The upload's file name.
*/
public String getName() {
return this.name;
}
/**
*
* The upload's file name.
*
*
* @param name
* The upload's file name.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public Upload withName(String name) {
setName(name);
return this;
}
/**
*
* When the upload was created.
*
*
* @param created
* When the upload was created.
*/
public void setCreated(java.util.Date created) {
this.created = created;
}
/**
*
* When the upload was created.
*
*
* @return When the upload was created.
*/
public java.util.Date getCreated() {
return this.created;
}
/**
*
* When the upload was created.
*
*
* @param created
* When the upload was created.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public Upload withCreated(java.util.Date created) {
setCreated(created);
return this;
}
/**
*
* The upload's type.
*
*
* Must be one of the following values:
*
*
* -
*
* ANDROID_APP
*
*
* -
*
* IOS_APP
*
*
* -
*
* WEB_APP
*
*
* -
*
* EXTERNAL_DATA
*
*
* -
*
* APPIUM_JAVA_JUNIT_TEST_PACKAGE
*
*
* -
*
* APPIUM_JAVA_TESTNG_TEST_PACKAGE
*
*
* -
*
* APPIUM_PYTHON_TEST_PACKAGE
*
*
* -
*
* APPIUM_NODE_TEST_PACKAGE
*
*
* -
*
* APPIUM_RUBY_TEST_PACKAGE
*
*
* -
*
* APPIUM_WEB_JAVA_JUNIT_TEST_PACKAGE
*
*
* -
*
* APPIUM_WEB_JAVA_TESTNG_TEST_PACKAGE
*
*
* -
*
* APPIUM_WEB_PYTHON_TEST_PACKAGE
*
*
* -
*
* APPIUM_WEB_NODE_TEST_PACKAGE
*
*
* -
*
* APPIUM_WEB_RUBY_TEST_PACKAGE
*
*
* -
*
* CALABASH_TEST_PACKAGE
*
*
* -
*
* INSTRUMENTATION_TEST_PACKAGE
*
*
* -
*
* UIAUTOMATION_TEST_PACKAGE
*
*
* -
*
* UIAUTOMATOR_TEST_PACKAGE
*
*
* -
*
* XCTEST_TEST_PACKAGE
*
*
* -
*
* XCTEST_UI_TEST_PACKAGE
*
*
* -
*
* APPIUM_JAVA_JUNIT_TEST_SPEC
*
*
* -
*
* APPIUM_JAVA_TESTNG_TEST_SPEC
*
*
* -
*
* APPIUM_PYTHON_TEST_SPEC
*
*
* -
*
* APPIUM_NODE_TEST_SPEC
*
*
* -
*
* APPIUM_RUBY_TEST_SPEC
*
*
* -
*
* APPIUM_WEB_JAVA_JUNIT_TEST_SPEC
*
*
* -
*
* APPIUM_WEB_JAVA_TESTNG_TEST_SPEC
*
*
* -
*
* APPIUM_WEB_PYTHON_TEST_SPEC
*
*
* -
*
* APPIUM_WEB_NODE_TEST_SPEC
*
*
* -
*
* APPIUM_WEB_RUBY_TEST_SPEC
*
*
* -
*
* INSTRUMENTATION_TEST_SPEC
*
*
* -
*
* XCTEST_UI_TEST_SPEC
*
*
*
*
* @param type
* The upload's type.
*
* Must be one of the following values:
*
*
* -
*
* ANDROID_APP
*
*
* -
*
* IOS_APP
*
*
* -
*
* WEB_APP
*
*
* -
*
* EXTERNAL_DATA
*
*
* -
*
* APPIUM_JAVA_JUNIT_TEST_PACKAGE
*
*
* -
*
* APPIUM_JAVA_TESTNG_TEST_PACKAGE
*
*
* -
*
* APPIUM_PYTHON_TEST_PACKAGE
*
*
* -
*
* APPIUM_NODE_TEST_PACKAGE
*
*
* -
*
* APPIUM_RUBY_TEST_PACKAGE
*
*
* -
*
* APPIUM_WEB_JAVA_JUNIT_TEST_PACKAGE
*
*
* -
*
* APPIUM_WEB_JAVA_TESTNG_TEST_PACKAGE
*
*
* -
*
* APPIUM_WEB_PYTHON_TEST_PACKAGE
*
*
* -
*
* APPIUM_WEB_NODE_TEST_PACKAGE
*
*
* -
*
* APPIUM_WEB_RUBY_TEST_PACKAGE
*
*
* -
*
* CALABASH_TEST_PACKAGE
*
*
* -
*
* INSTRUMENTATION_TEST_PACKAGE
*
*
* -
*
* UIAUTOMATION_TEST_PACKAGE
*
*
* -
*
* UIAUTOMATOR_TEST_PACKAGE
*
*
* -
*
* XCTEST_TEST_PACKAGE
*
*
* -
*
* XCTEST_UI_TEST_PACKAGE
*
*
* -
*
* APPIUM_JAVA_JUNIT_TEST_SPEC
*
*
* -
*
* APPIUM_JAVA_TESTNG_TEST_SPEC
*
*
* -
*
* APPIUM_PYTHON_TEST_SPEC
*
*
* -
*
* APPIUM_NODE_TEST_SPEC
*
*
* -
*
* APPIUM_RUBY_TEST_SPEC
*
*
* -
*
* APPIUM_WEB_JAVA_JUNIT_TEST_SPEC
*
*
* -
*
* APPIUM_WEB_JAVA_TESTNG_TEST_SPEC
*
*
* -
*
* APPIUM_WEB_PYTHON_TEST_SPEC
*
*
* -
*
* APPIUM_WEB_NODE_TEST_SPEC
*
*
* -
*
* APPIUM_WEB_RUBY_TEST_SPEC
*
*
* -
*
* INSTRUMENTATION_TEST_SPEC
*
*
* -
*
* XCTEST_UI_TEST_SPEC
*
*
* @see UploadType
*/
public void setType(String type) {
this.type = type;
}
/**
*
* The upload's type.
*
*
* Must be one of the following values:
*
*
* -
*
* ANDROID_APP
*
*
* -
*
* IOS_APP
*
*
* -
*
* WEB_APP
*
*
* -
*
* EXTERNAL_DATA
*
*
* -
*
* APPIUM_JAVA_JUNIT_TEST_PACKAGE
*
*
* -
*
* APPIUM_JAVA_TESTNG_TEST_PACKAGE
*
*
* -
*
* APPIUM_PYTHON_TEST_PACKAGE
*
*
* -
*
* APPIUM_NODE_TEST_PACKAGE
*
*
* -
*
* APPIUM_RUBY_TEST_PACKAGE
*
*
* -
*
* APPIUM_WEB_JAVA_JUNIT_TEST_PACKAGE
*
*
* -
*
* APPIUM_WEB_JAVA_TESTNG_TEST_PACKAGE
*
*
* -
*
* APPIUM_WEB_PYTHON_TEST_PACKAGE
*
*
* -
*
* APPIUM_WEB_NODE_TEST_PACKAGE
*
*
* -
*
* APPIUM_WEB_RUBY_TEST_PACKAGE
*
*
* -
*
* CALABASH_TEST_PACKAGE
*
*
* -
*
* INSTRUMENTATION_TEST_PACKAGE
*
*
* -
*
* UIAUTOMATION_TEST_PACKAGE
*
*
* -
*
* UIAUTOMATOR_TEST_PACKAGE
*
*
* -
*
* XCTEST_TEST_PACKAGE
*
*
* -
*
* XCTEST_UI_TEST_PACKAGE
*
*
* -
*
* APPIUM_JAVA_JUNIT_TEST_SPEC
*
*
* -
*
* APPIUM_JAVA_TESTNG_TEST_SPEC
*
*
* -
*
* APPIUM_PYTHON_TEST_SPEC
*
*
* -
*
* APPIUM_NODE_TEST_SPEC
*
*
* -
*
* APPIUM_RUBY_TEST_SPEC
*
*
* -
*
* APPIUM_WEB_JAVA_JUNIT_TEST_SPEC
*
*
* -
*
* APPIUM_WEB_JAVA_TESTNG_TEST_SPEC
*
*
* -
*
* APPIUM_WEB_PYTHON_TEST_SPEC
*
*
* -
*
* APPIUM_WEB_NODE_TEST_SPEC
*
*
* -
*
* APPIUM_WEB_RUBY_TEST_SPEC
*
*
* -
*
* INSTRUMENTATION_TEST_SPEC
*
*
* -
*
* XCTEST_UI_TEST_SPEC
*
*
*
*
* @return The upload's type.
*
* Must be one of the following values:
*
*
* -
*
* ANDROID_APP
*
*
* -
*
* IOS_APP
*
*
* -
*
* WEB_APP
*
*
* -
*
* EXTERNAL_DATA
*
*
* -
*
* APPIUM_JAVA_JUNIT_TEST_PACKAGE
*
*
* -
*
* APPIUM_JAVA_TESTNG_TEST_PACKAGE
*
*
* -
*
* APPIUM_PYTHON_TEST_PACKAGE
*
*
* -
*
* APPIUM_NODE_TEST_PACKAGE
*
*
* -
*
* APPIUM_RUBY_TEST_PACKAGE
*
*
* -
*
* APPIUM_WEB_JAVA_JUNIT_TEST_PACKAGE
*
*
* -
*
* APPIUM_WEB_JAVA_TESTNG_TEST_PACKAGE
*
*
* -
*
* APPIUM_WEB_PYTHON_TEST_PACKAGE
*
*
* -
*
* APPIUM_WEB_NODE_TEST_PACKAGE
*
*
* -
*
* APPIUM_WEB_RUBY_TEST_PACKAGE
*
*
* -
*
* CALABASH_TEST_PACKAGE
*
*
* -
*
* INSTRUMENTATION_TEST_PACKAGE
*
*
* -
*
* UIAUTOMATION_TEST_PACKAGE
*
*
* -
*
* UIAUTOMATOR_TEST_PACKAGE
*
*
* -
*
* XCTEST_TEST_PACKAGE
*
*
* -
*
* XCTEST_UI_TEST_PACKAGE
*
*
* -
*
* APPIUM_JAVA_JUNIT_TEST_SPEC
*
*
* -
*
* APPIUM_JAVA_TESTNG_TEST_SPEC
*
*
* -
*
* APPIUM_PYTHON_TEST_SPEC
*
*
* -
*
* APPIUM_NODE_TEST_SPEC
*
*
* -
*
* APPIUM_RUBY_TEST_SPEC
*
*
* -
*
* APPIUM_WEB_JAVA_JUNIT_TEST_SPEC
*
*
* -
*
* APPIUM_WEB_JAVA_TESTNG_TEST_SPEC
*
*
* -
*
* APPIUM_WEB_PYTHON_TEST_SPEC
*
*
* -
*
* APPIUM_WEB_NODE_TEST_SPEC
*
*
* -
*
* APPIUM_WEB_RUBY_TEST_SPEC
*
*
* -
*
* INSTRUMENTATION_TEST_SPEC
*
*
* -
*
* XCTEST_UI_TEST_SPEC
*
*
* @see UploadType
*/
public String getType() {
return this.type;
}
/**
*
* The upload's type.
*
*
* Must be one of the following values:
*
*
* -
*
* ANDROID_APP
*
*
* -
*
* IOS_APP
*
*
* -
*
* WEB_APP
*
*
* -
*
* EXTERNAL_DATA
*
*
* -
*
* APPIUM_JAVA_JUNIT_TEST_PACKAGE
*
*
* -
*
* APPIUM_JAVA_TESTNG_TEST_PACKAGE
*
*
* -
*
* APPIUM_PYTHON_TEST_PACKAGE
*
*
* -
*
* APPIUM_NODE_TEST_PACKAGE
*
*
* -
*
* APPIUM_RUBY_TEST_PACKAGE
*
*
* -
*
* APPIUM_WEB_JAVA_JUNIT_TEST_PACKAGE
*
*
* -
*
* APPIUM_WEB_JAVA_TESTNG_TEST_PACKAGE
*
*
* -
*
* APPIUM_WEB_PYTHON_TEST_PACKAGE
*
*
* -
*
* APPIUM_WEB_NODE_TEST_PACKAGE
*
*
* -
*
* APPIUM_WEB_RUBY_TEST_PACKAGE
*
*
* -
*
* CALABASH_TEST_PACKAGE
*
*
* -
*
* INSTRUMENTATION_TEST_PACKAGE
*
*
* -
*
* UIAUTOMATION_TEST_PACKAGE
*
*
* -
*
* UIAUTOMATOR_TEST_PACKAGE
*
*
* -
*
* XCTEST_TEST_PACKAGE
*
*
* -
*
* XCTEST_UI_TEST_PACKAGE
*
*
* -
*
* APPIUM_JAVA_JUNIT_TEST_SPEC
*
*
* -
*
* APPIUM_JAVA_TESTNG_TEST_SPEC
*
*
* -
*
* APPIUM_PYTHON_TEST_SPEC
*
*
* -
*
* APPIUM_NODE_TEST_SPEC
*
*
* -
*
* APPIUM_RUBY_TEST_SPEC
*
*
* -
*
* APPIUM_WEB_JAVA_JUNIT_TEST_SPEC
*
*
* -
*
* APPIUM_WEB_JAVA_TESTNG_TEST_SPEC
*
*
* -
*
* APPIUM_WEB_PYTHON_TEST_SPEC
*
*
* -
*
* APPIUM_WEB_NODE_TEST_SPEC
*
*
* -
*
* APPIUM_WEB_RUBY_TEST_SPEC
*
*
* -
*
* INSTRUMENTATION_TEST_SPEC
*
*
* -
*
* XCTEST_UI_TEST_SPEC
*
*
*
*
* @param type
* The upload's type.
*
* Must be one of the following values:
*
*
* -
*
* ANDROID_APP
*
*
* -
*
* IOS_APP
*
*
* -
*
* WEB_APP
*
*
* -
*
* EXTERNAL_DATA
*
*
* -
*
* APPIUM_JAVA_JUNIT_TEST_PACKAGE
*
*
* -
*
* APPIUM_JAVA_TESTNG_TEST_PACKAGE
*
*
* -
*
* APPIUM_PYTHON_TEST_PACKAGE
*
*
* -
*
* APPIUM_NODE_TEST_PACKAGE
*
*
* -
*
* APPIUM_RUBY_TEST_PACKAGE
*
*
* -
*
* APPIUM_WEB_JAVA_JUNIT_TEST_PACKAGE
*
*
* -
*
* APPIUM_WEB_JAVA_TESTNG_TEST_PACKAGE
*
*
* -
*
* APPIUM_WEB_PYTHON_TEST_PACKAGE
*
*
* -
*
* APPIUM_WEB_NODE_TEST_PACKAGE
*
*
* -
*
* APPIUM_WEB_RUBY_TEST_PACKAGE
*
*
* -
*
* CALABASH_TEST_PACKAGE
*
*
* -
*
* INSTRUMENTATION_TEST_PACKAGE
*
*
* -
*
* UIAUTOMATION_TEST_PACKAGE
*
*
* -
*
* UIAUTOMATOR_TEST_PACKAGE
*
*
* -
*
* XCTEST_TEST_PACKAGE
*
*
* -
*
* XCTEST_UI_TEST_PACKAGE
*
*
* -
*
* APPIUM_JAVA_JUNIT_TEST_SPEC
*
*
* -
*
* APPIUM_JAVA_TESTNG_TEST_SPEC
*
*
* -
*
* APPIUM_PYTHON_TEST_SPEC
*
*
* -
*
* APPIUM_NODE_TEST_SPEC
*
*
* -
*
* APPIUM_RUBY_TEST_SPEC
*
*
* -
*
* APPIUM_WEB_JAVA_JUNIT_TEST_SPEC
*
*
* -
*
* APPIUM_WEB_JAVA_TESTNG_TEST_SPEC
*
*
* -
*
* APPIUM_WEB_PYTHON_TEST_SPEC
*
*
* -
*
* APPIUM_WEB_NODE_TEST_SPEC
*
*
* -
*
* APPIUM_WEB_RUBY_TEST_SPEC
*
*
* -
*
* INSTRUMENTATION_TEST_SPEC
*
*
* -
*
* XCTEST_UI_TEST_SPEC
*
*
* @return Returns a reference to this object so that method calls can be chained together.
* @see UploadType
*/
public Upload withType(String type) {
setType(type);
return this;
}
/**
*
* The upload's type.
*
*
* Must be one of the following values:
*
*
* -
*
* ANDROID_APP
*
*
* -
*
* IOS_APP
*
*
* -
*
* WEB_APP
*
*
* -
*
* EXTERNAL_DATA
*
*
* -
*
* APPIUM_JAVA_JUNIT_TEST_PACKAGE
*
*
* -
*
* APPIUM_JAVA_TESTNG_TEST_PACKAGE
*
*
* -
*
* APPIUM_PYTHON_TEST_PACKAGE
*
*
* -
*
* APPIUM_NODE_TEST_PACKAGE
*
*
* -
*
* APPIUM_RUBY_TEST_PACKAGE
*
*
* -
*
* APPIUM_WEB_JAVA_JUNIT_TEST_PACKAGE
*
*
* -
*
* APPIUM_WEB_JAVA_TESTNG_TEST_PACKAGE
*
*
* -
*
* APPIUM_WEB_PYTHON_TEST_PACKAGE
*
*
* -
*
* APPIUM_WEB_NODE_TEST_PACKAGE
*
*
* -
*
* APPIUM_WEB_RUBY_TEST_PACKAGE
*
*
* -
*
* CALABASH_TEST_PACKAGE
*
*
* -
*
* INSTRUMENTATION_TEST_PACKAGE
*
*
* -
*
* UIAUTOMATION_TEST_PACKAGE
*
*
* -
*
* UIAUTOMATOR_TEST_PACKAGE
*
*
* -
*
* XCTEST_TEST_PACKAGE
*
*
* -
*
* XCTEST_UI_TEST_PACKAGE
*
*
* -
*
* APPIUM_JAVA_JUNIT_TEST_SPEC
*
*
* -
*
* APPIUM_JAVA_TESTNG_TEST_SPEC
*
*
* -
*
* APPIUM_PYTHON_TEST_SPEC
*
*
* -
*
* APPIUM_NODE_TEST_SPEC
*
*
* -
*
* APPIUM_RUBY_TEST_SPEC
*
*
* -
*
* APPIUM_WEB_JAVA_JUNIT_TEST_SPEC
*
*
* -
*
* APPIUM_WEB_JAVA_TESTNG_TEST_SPEC
*
*
* -
*
* APPIUM_WEB_PYTHON_TEST_SPEC
*
*
* -
*
* APPIUM_WEB_NODE_TEST_SPEC
*
*
* -
*
* APPIUM_WEB_RUBY_TEST_SPEC
*
*
* -
*
* INSTRUMENTATION_TEST_SPEC
*
*
* -
*
* XCTEST_UI_TEST_SPEC
*
*
*
*
* @param type
* The upload's type.
*
* Must be one of the following values:
*
*
* -
*
* ANDROID_APP
*
*
* -
*
* IOS_APP
*
*
* -
*
* WEB_APP
*
*
* -
*
* EXTERNAL_DATA
*
*
* -
*
* APPIUM_JAVA_JUNIT_TEST_PACKAGE
*
*
* -
*
* APPIUM_JAVA_TESTNG_TEST_PACKAGE
*
*
* -
*
* APPIUM_PYTHON_TEST_PACKAGE
*
*
* -
*
* APPIUM_NODE_TEST_PACKAGE
*
*
* -
*
* APPIUM_RUBY_TEST_PACKAGE
*
*
* -
*
* APPIUM_WEB_JAVA_JUNIT_TEST_PACKAGE
*
*
* -
*
* APPIUM_WEB_JAVA_TESTNG_TEST_PACKAGE
*
*
* -
*
* APPIUM_WEB_PYTHON_TEST_PACKAGE
*
*
* -
*
* APPIUM_WEB_NODE_TEST_PACKAGE
*
*
* -
*
* APPIUM_WEB_RUBY_TEST_PACKAGE
*
*
* -
*
* CALABASH_TEST_PACKAGE
*
*
* -
*
* INSTRUMENTATION_TEST_PACKAGE
*
*
* -
*
* UIAUTOMATION_TEST_PACKAGE
*
*
* -
*
* UIAUTOMATOR_TEST_PACKAGE
*
*
* -
*
* XCTEST_TEST_PACKAGE
*
*
* -
*
* XCTEST_UI_TEST_PACKAGE
*
*
* -
*
* APPIUM_JAVA_JUNIT_TEST_SPEC
*
*
* -
*
* APPIUM_JAVA_TESTNG_TEST_SPEC
*
*
* -
*
* APPIUM_PYTHON_TEST_SPEC
*
*
* -
*
* APPIUM_NODE_TEST_SPEC
*
*
* -
*
* APPIUM_RUBY_TEST_SPEC
*
*
* -
*
* APPIUM_WEB_JAVA_JUNIT_TEST_SPEC
*
*
* -
*
* APPIUM_WEB_JAVA_TESTNG_TEST_SPEC
*
*
* -
*
* APPIUM_WEB_PYTHON_TEST_SPEC
*
*
* -
*
* APPIUM_WEB_NODE_TEST_SPEC
*
*
* -
*
* APPIUM_WEB_RUBY_TEST_SPEC
*
*
* -
*
* INSTRUMENTATION_TEST_SPEC
*
*
* -
*
* XCTEST_UI_TEST_SPEC
*
*
* @see UploadType
*/
public void setType(UploadType type) {
withType(type);
}
/**
*
* The upload's type.
*
*
* Must be one of the following values:
*
*
* -
*
* ANDROID_APP
*
*
* -
*
* IOS_APP
*
*
* -
*
* WEB_APP
*
*
* -
*
* EXTERNAL_DATA
*
*
* -
*
* APPIUM_JAVA_JUNIT_TEST_PACKAGE
*
*
* -
*
* APPIUM_JAVA_TESTNG_TEST_PACKAGE
*
*
* -
*
* APPIUM_PYTHON_TEST_PACKAGE
*
*
* -
*
* APPIUM_NODE_TEST_PACKAGE
*
*
* -
*
* APPIUM_RUBY_TEST_PACKAGE
*
*
* -
*
* APPIUM_WEB_JAVA_JUNIT_TEST_PACKAGE
*
*
* -
*
* APPIUM_WEB_JAVA_TESTNG_TEST_PACKAGE
*
*
* -
*
* APPIUM_WEB_PYTHON_TEST_PACKAGE
*
*
* -
*
* APPIUM_WEB_NODE_TEST_PACKAGE
*
*
* -
*
* APPIUM_WEB_RUBY_TEST_PACKAGE
*
*
* -
*
* CALABASH_TEST_PACKAGE
*
*
* -
*
* INSTRUMENTATION_TEST_PACKAGE
*
*
* -
*
* UIAUTOMATION_TEST_PACKAGE
*
*
* -
*
* UIAUTOMATOR_TEST_PACKAGE
*
*
* -
*
* XCTEST_TEST_PACKAGE
*
*
* -
*
* XCTEST_UI_TEST_PACKAGE
*
*
* -
*
* APPIUM_JAVA_JUNIT_TEST_SPEC
*
*
* -
*
* APPIUM_JAVA_TESTNG_TEST_SPEC
*
*
* -
*
* APPIUM_PYTHON_TEST_SPEC
*
*
* -
*
* APPIUM_NODE_TEST_SPEC
*
*
* -
*
* APPIUM_RUBY_TEST_SPEC
*
*
* -
*
* APPIUM_WEB_JAVA_JUNIT_TEST_SPEC
*
*
* -
*
* APPIUM_WEB_JAVA_TESTNG_TEST_SPEC
*
*
* -
*
* APPIUM_WEB_PYTHON_TEST_SPEC
*
*
* -
*
* APPIUM_WEB_NODE_TEST_SPEC
*
*
* -
*
* APPIUM_WEB_RUBY_TEST_SPEC
*
*
* -
*
* INSTRUMENTATION_TEST_SPEC
*
*
* -
*
* XCTEST_UI_TEST_SPEC
*
*
*
*
* @param type
* The upload's type.
*
* Must be one of the following values:
*
*
* -
*
* ANDROID_APP
*
*
* -
*
* IOS_APP
*
*
* -
*
* WEB_APP
*
*
* -
*
* EXTERNAL_DATA
*
*
* -
*
* APPIUM_JAVA_JUNIT_TEST_PACKAGE
*
*
* -
*
* APPIUM_JAVA_TESTNG_TEST_PACKAGE
*
*
* -
*
* APPIUM_PYTHON_TEST_PACKAGE
*
*
* -
*
* APPIUM_NODE_TEST_PACKAGE
*
*
* -
*
* APPIUM_RUBY_TEST_PACKAGE
*
*
* -
*
* APPIUM_WEB_JAVA_JUNIT_TEST_PACKAGE
*
*
* -
*
* APPIUM_WEB_JAVA_TESTNG_TEST_PACKAGE
*
*
* -
*
* APPIUM_WEB_PYTHON_TEST_PACKAGE
*
*
* -
*
* APPIUM_WEB_NODE_TEST_PACKAGE
*
*
* -
*
* APPIUM_WEB_RUBY_TEST_PACKAGE
*
*
* -
*
* CALABASH_TEST_PACKAGE
*
*
* -
*
* INSTRUMENTATION_TEST_PACKAGE
*
*
* -
*
* UIAUTOMATION_TEST_PACKAGE
*
*
* -
*
* UIAUTOMATOR_TEST_PACKAGE
*
*
* -
*
* XCTEST_TEST_PACKAGE
*
*
* -
*
* XCTEST_UI_TEST_PACKAGE
*
*
* -
*
* APPIUM_JAVA_JUNIT_TEST_SPEC
*
*
* -
*
* APPIUM_JAVA_TESTNG_TEST_SPEC
*
*
* -
*
* APPIUM_PYTHON_TEST_SPEC
*
*
* -
*
* APPIUM_NODE_TEST_SPEC
*
*
* -
*
* APPIUM_RUBY_TEST_SPEC
*
*
* -
*
* APPIUM_WEB_JAVA_JUNIT_TEST_SPEC
*
*
* -
*
* APPIUM_WEB_JAVA_TESTNG_TEST_SPEC
*
*
* -
*
* APPIUM_WEB_PYTHON_TEST_SPEC
*
*
* -
*
* APPIUM_WEB_NODE_TEST_SPEC
*
*
* -
*
* APPIUM_WEB_RUBY_TEST_SPEC
*
*
* -
*
* INSTRUMENTATION_TEST_SPEC
*
*
* -
*
* XCTEST_UI_TEST_SPEC
*
*
* @return Returns a reference to this object so that method calls can be chained together.
* @see UploadType
*/
public Upload withType(UploadType type) {
this.type = type.toString();
return this;
}
/**
*
* The upload's status.
*
*
* Must be one of the following values:
*
*
* -
*
* FAILED
*
*
* -
*
* INITIALIZED
*
*
* -
*
* PROCESSING
*
*
* -
*
* SUCCEEDED
*
*
*
*
* @param status
* The upload's status.
*
* Must be one of the following values:
*
*
* -
*
* FAILED
*
*
* -
*
* INITIALIZED
*
*
* -
*
* PROCESSING
*
*
* -
*
* SUCCEEDED
*
*
* @see UploadStatus
*/
public void setStatus(String status) {
this.status = status;
}
/**
*
* The upload's status.
*
*
* Must be one of the following values:
*
*
* -
*
* FAILED
*
*
* -
*
* INITIALIZED
*
*
* -
*
* PROCESSING
*
*
* -
*
* SUCCEEDED
*
*
*
*
* @return The upload's status.
*
* Must be one of the following values:
*
*
* -
*
* FAILED
*
*
* -
*
* INITIALIZED
*
*
* -
*
* PROCESSING
*
*
* -
*
* SUCCEEDED
*
*
* @see UploadStatus
*/
public String getStatus() {
return this.status;
}
/**
*
* The upload's status.
*
*
* Must be one of the following values:
*
*
* -
*
* FAILED
*
*
* -
*
* INITIALIZED
*
*
* -
*
* PROCESSING
*
*
* -
*
* SUCCEEDED
*
*
*
*
* @param status
* The upload's status.
*
* Must be one of the following values:
*
*
* -
*
* FAILED
*
*
* -
*
* INITIALIZED
*
*
* -
*
* PROCESSING
*
*
* -
*
* SUCCEEDED
*
*
* @return Returns a reference to this object so that method calls can be chained together.
* @see UploadStatus
*/
public Upload withStatus(String status) {
setStatus(status);
return this;
}
/**
*
* The upload's status.
*
*
* Must be one of the following values:
*
*
* -
*
* FAILED
*
*
* -
*
* INITIALIZED
*
*
* -
*
* PROCESSING
*
*
* -
*
* SUCCEEDED
*
*
*
*
* @param status
* The upload's status.
*
* Must be one of the following values:
*
*
* -
*
* FAILED
*
*
* -
*
* INITIALIZED
*
*
* -
*
* PROCESSING
*
*
* -
*
* SUCCEEDED
*
*
* @see UploadStatus
*/
public void setStatus(UploadStatus status) {
withStatus(status);
}
/**
*
* The upload's status.
*
*
* Must be one of the following values:
*
*
* -
*
* FAILED
*
*
* -
*
* INITIALIZED
*
*
* -
*
* PROCESSING
*
*
* -
*
* SUCCEEDED
*
*
*
*
* @param status
* The upload's status.
*
* Must be one of the following values:
*
*
* -
*
* FAILED
*
*
* -
*
* INITIALIZED
*
*
* -
*
* PROCESSING
*
*
* -
*
* SUCCEEDED
*
*
* @return Returns a reference to this object so that method calls can be chained together.
* @see UploadStatus
*/
public Upload withStatus(UploadStatus status) {
this.status = status.toString();
return this;
}
/**
*
* The presigned Amazon S3 URL that was used to store a file using a PUT request.
*
*
* @param url
* The presigned Amazon S3 URL that was used to store a file using a PUT request.
*/
public void setUrl(String url) {
this.url = url;
}
/**
*
* The presigned Amazon S3 URL that was used to store a file using a PUT request.
*
*
* @return The presigned Amazon S3 URL that was used to store a file using a PUT request.
*/
public String getUrl() {
return this.url;
}
/**
*
* The presigned Amazon S3 URL that was used to store a file using a PUT request.
*
*
* @param url
* The presigned Amazon S3 URL that was used to store a file using a PUT request.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public Upload withUrl(String url) {
setUrl(url);
return this;
}
/**
*
* 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.
*
*
* @param 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.
*/
public void setMetadata(String metadata) {
this.metadata = 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.
*
*
* @return 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.
*/
public String getMetadata() {
return this.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.
*
*
* @param 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.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public Upload withMetadata(String metadata) {
setMetadata(metadata);
return this;
}
/**
*
* The upload's content type (for example, application/octet-stream
).
*
*
* @param contentType
* The upload's content type (for example, application/octet-stream
).
*/
public void setContentType(String contentType) {
this.contentType = contentType;
}
/**
*
* The upload's content type (for example, application/octet-stream
).
*
*
* @return The upload's content type (for example, application/octet-stream
).
*/
public String getContentType() {
return this.contentType;
}
/**
*
* The upload's content type (for example, application/octet-stream
).
*
*
* @param contentType
* The upload's content type (for example, application/octet-stream
).
* @return Returns a reference to this object so that method calls can be chained together.
*/
public Upload withContentType(String contentType) {
setContentType(contentType);
return this;
}
/**
*
* A message about the upload's result.
*
*
* @param message
* A message about the upload's result.
*/
public void setMessage(String message) {
this.message = message;
}
/**
*
* A message about the upload's result.
*
*
* @return A message about the upload's result.
*/
public String getMessage() {
return this.message;
}
/**
*
* A message about the upload's result.
*
*
* @param message
* A message about the upload's result.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public Upload withMessage(String message) {
setMessage(message);
return this;
}
/**
*
* The upload's category. Allowed values include:
*
*
* -
*
* CURATED: An upload managed by AWS Device Farm.
*
*
* -
*
* PRIVATE: An upload managed by the AWS Device Farm customer.
*
*
*
*
* @param category
* The upload's category. Allowed values include:
*
* -
*
* CURATED: An upload managed by AWS Device Farm.
*
*
* -
*
* PRIVATE: An upload managed by the AWS Device Farm customer.
*
*
* @see UploadCategory
*/
public void setCategory(String category) {
this.category = category;
}
/**
*
* The upload's category. Allowed values include:
*
*
* -
*
* CURATED: An upload managed by AWS Device Farm.
*
*
* -
*
* PRIVATE: An upload managed by the AWS Device Farm customer.
*
*
*
*
* @return The upload's category. Allowed values include:
*
* -
*
* CURATED: An upload managed by AWS Device Farm.
*
*
* -
*
* PRIVATE: An upload managed by the AWS Device Farm customer.
*
*
* @see UploadCategory
*/
public String getCategory() {
return this.category;
}
/**
*
* The upload's category. Allowed values include:
*
*
* -
*
* CURATED: An upload managed by AWS Device Farm.
*
*
* -
*
* PRIVATE: An upload managed by the AWS Device Farm customer.
*
*
*
*
* @param category
* The upload's category. Allowed values include:
*
* -
*
* CURATED: An upload managed by AWS Device Farm.
*
*
* -
*
* PRIVATE: An upload managed by the AWS Device Farm customer.
*
*
* @return Returns a reference to this object so that method calls can be chained together.
* @see UploadCategory
*/
public Upload withCategory(String category) {
setCategory(category);
return this;
}
/**
*
* The upload's category. Allowed values include:
*
*
* -
*
* CURATED: An upload managed by AWS Device Farm.
*
*
* -
*
* PRIVATE: An upload managed by the AWS Device Farm customer.
*
*
*
*
* @param category
* The upload's category. Allowed values include:
*
* -
*
* CURATED: An upload managed by AWS Device Farm.
*
*
* -
*
* PRIVATE: An upload managed by the AWS Device Farm customer.
*
*
* @see UploadCategory
*/
public void setCategory(UploadCategory category) {
withCategory(category);
}
/**
*
* The upload's category. Allowed values include:
*
*
* -
*
* CURATED: An upload managed by AWS Device Farm.
*
*
* -
*
* PRIVATE: An upload managed by the AWS Device Farm customer.
*
*
*
*
* @param category
* The upload's category. Allowed values include:
*
* -
*
* CURATED: An upload managed by AWS Device Farm.
*
*
* -
*
* PRIVATE: An upload managed by the AWS Device Farm customer.
*
*
* @return Returns a reference to this object so that method calls can be chained together.
* @see UploadCategory
*/
public Upload withCategory(UploadCategory category) {
this.category = category.toString();
return this;
}
/**
* Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be
* redacted from this string using a placeholder value.
*
* @return A string representation of this object.
*
* @see java.lang.Object#toString()
*/
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("{");
if (getArn() != null)
sb.append("Arn: ").append(getArn()).append(",");
if (getName() != null)
sb.append("Name: ").append(getName()).append(",");
if (getCreated() != null)
sb.append("Created: ").append(getCreated()).append(",");
if (getType() != null)
sb.append("Type: ").append(getType()).append(",");
if (getStatus() != null)
sb.append("Status: ").append(getStatus()).append(",");
if (getUrl() != null)
sb.append("Url: ").append("***Sensitive Data Redacted***").append(",");
if (getMetadata() != null)
sb.append("Metadata: ").append(getMetadata()).append(",");
if (getContentType() != null)
sb.append("ContentType: ").append(getContentType()).append(",");
if (getMessage() != null)
sb.append("Message: ").append(getMessage()).append(",");
if (getCategory() != null)
sb.append("Category: ").append(getCategory());
sb.append("}");
return sb.toString();
}
@Override
public boolean equals(Object obj) {
if (this == obj)
return true;
if (obj == null)
return false;
if (obj instanceof Upload == false)
return false;
Upload other = (Upload) obj;
if (other.getArn() == null ^ this.getArn() == null)
return false;
if (other.getArn() != null && other.getArn().equals(this.getArn()) == false)
return false;
if (other.getName() == null ^ this.getName() == null)
return false;
if (other.getName() != null && other.getName().equals(this.getName()) == false)
return false;
if (other.getCreated() == null ^ this.getCreated() == null)
return false;
if (other.getCreated() != null && other.getCreated().equals(this.getCreated()) == false)
return false;
if (other.getType() == null ^ this.getType() == null)
return false;
if (other.getType() != null && other.getType().equals(this.getType()) == false)
return false;
if (other.getStatus() == null ^ this.getStatus() == null)
return false;
if (other.getStatus() != null && other.getStatus().equals(this.getStatus()) == false)
return false;
if (other.getUrl() == null ^ this.getUrl() == null)
return false;
if (other.getUrl() != null && other.getUrl().equals(this.getUrl()) == false)
return false;
if (other.getMetadata() == null ^ this.getMetadata() == null)
return false;
if (other.getMetadata() != null && other.getMetadata().equals(this.getMetadata()) == false)
return false;
if (other.getContentType() == null ^ this.getContentType() == null)
return false;
if (other.getContentType() != null && other.getContentType().equals(this.getContentType()) == false)
return false;
if (other.getMessage() == null ^ this.getMessage() == null)
return false;
if (other.getMessage() != null && other.getMessage().equals(this.getMessage()) == false)
return false;
if (other.getCategory() == null ^ this.getCategory() == null)
return false;
if (other.getCategory() != null && other.getCategory().equals(this.getCategory()) == false)
return false;
return true;
}
@Override
public int hashCode() {
final int prime = 31;
int hashCode = 1;
hashCode = prime * hashCode + ((getArn() == null) ? 0 : getArn().hashCode());
hashCode = prime * hashCode + ((getName() == null) ? 0 : getName().hashCode());
hashCode = prime * hashCode + ((getCreated() == null) ? 0 : getCreated().hashCode());
hashCode = prime * hashCode + ((getType() == null) ? 0 : getType().hashCode());
hashCode = prime * hashCode + ((getStatus() == null) ? 0 : getStatus().hashCode());
hashCode = prime * hashCode + ((getUrl() == null) ? 0 : getUrl().hashCode());
hashCode = prime * hashCode + ((getMetadata() == null) ? 0 : getMetadata().hashCode());
hashCode = prime * hashCode + ((getContentType() == null) ? 0 : getContentType().hashCode());
hashCode = prime * hashCode + ((getMessage() == null) ? 0 : getMessage().hashCode());
hashCode = prime * hashCode + ((getCategory() == null) ? 0 : getCategory().hashCode());
return hashCode;
}
@Override
public Upload clone() {
try {
return (Upload) super.clone();
} catch (CloneNotSupportedException e) {
throw new IllegalStateException("Got a CloneNotSupportedException from Object.clone() " + "even though we're Cloneable!", e);
}
}
@com.amazonaws.annotation.SdkInternalApi
@Override
public void marshall(ProtocolMarshaller protocolMarshaller) {
com.amazonaws.services.devicefarm.model.transform.UploadMarshaller.getInstance().marshall(this, protocolMarshaller);
}
}