/*
* Copyright 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.
*/
/*
* Do not modify this file. This file is generated from the devicefarm-2015-06-23.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Xml.Serialization;
using System.Text;
using System.IO;
using System.Net;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
namespace Amazon.DeviceFarm.Model
{
///
/// Container for the parameters to the CreateUpload operation.
/// Uploads an app or test scripts.
///
public partial class CreateUploadRequest : AmazonDeviceFarmRequest
{
private string _contentType;
private string _name;
private string _projectArn;
private UploadType _type;
///
/// Gets and sets the property ContentType.
///
/// The upload's content type (for example, application/octet-stream
).
///
///
[AWSProperty(Min=0, Max=64)]
public string ContentType
{
get { return this._contentType; }
set { this._contentType = value; }
}
// Check to see if ContentType property is set
internal bool IsSetContentType()
{
return this._contentType != null;
}
///
/// Gets and sets the property Name.
///
/// The upload's file name. The name should not contain any forward slashes (/
).
/// If you are uploading an iOS app, the file name must end with the .ipa
/// extension. If you are uploading an Android app, the file name must end with the .apk
/// extension. For all others, the file name must end with the .zip
file
/// extension.
///
///
[AWSProperty(Required=true, Min=0, Max=256)]
public string Name
{
get { return this._name; }
set { this._name = value; }
}
// Check to see if Name property is set
internal bool IsSetName()
{
return this._name != null;
}
///
/// Gets and sets the property ProjectArn.
///
/// The ARN of the project for the upload.
///
///
[AWSProperty(Required=true, Min=32, Max=1011)]
public string ProjectArn
{
get { return this._projectArn; }
set { this._projectArn = value; }
}
// Check to see if ProjectArn property is set
internal bool IsSetProjectArn()
{
return this._projectArn != null;
}
///
/// Gets and sets the property Type.
///
/// The upload's upload 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
///
///
///
/// If you call CreateUpload
with WEB_APP
specified, AWS Device
/// Farm throws an ArgumentException
error.
///
///
[AWSProperty(Required=true)]
public UploadType Type
{
get { return this._type; }
set { this._type = value; }
}
// Check to see if Type property is set
internal bool IsSetType()
{
return this._type != null;
}
}
}