/*
* 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
{
///
/// An app or a set of one or more tests to upload or that have been uploaded.
///
public partial class Upload
{
private string _arn;
private UploadCategory _category;
private string _contentType;
private DateTime? _created;
private string _message;
private string _metadata;
private string _name;
private UploadStatus _status;
private UploadType _type;
private string _url;
///
/// Gets and sets the property Arn.
///
/// The upload's ARN.
///
///
[AWSProperty(Min=32, Max=1011)]
public string Arn
{
get { return this._arn; }
set { this._arn = value; }
}
// Check to see if Arn property is set
internal bool IsSetArn()
{
return this._arn != null;
}
///
/// Gets and sets the property 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.
///
///
///
public UploadCategory Category
{
get { return this._category; }
set { this._category = value; }
}
// Check to see if Category property is set
internal bool IsSetCategory()
{
return this._category != null;
}
///
/// 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 Created.
///
/// When the upload was created.
///
///
public DateTime Created
{
get { return this._created.GetValueOrDefault(); }
set { this._created = value; }
}
// Check to see if Created property is set
internal bool IsSetCreated()
{
return this._created.HasValue;
}
///
/// Gets and sets the property Message.
///
/// A message about the upload's result.
///
///
[AWSProperty(Min=0, Max=16384)]
public string Message
{
get { return this._message; }
set { this._message = value; }
}
// Check to see if Message property is set
internal bool IsSetMessage()
{
return this._message != null;
}
///
/// Gets and sets the property 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.
///
///
[AWSProperty(Min=0, Max=8192)]
public string Metadata
{
get { return this._metadata; }
set { this._metadata = value; }
}
// Check to see if Metadata property is set
internal bool IsSetMetadata()
{
return this._metadata != null;
}
///
/// Gets and sets the property Name.
///
/// The upload's file name.
///
///
[AWSProperty(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 Status.
///
/// The upload's status.
///
///
///
/// Must be one of the following values:
///
/// -
///
/// FAILED
///
///
-
///
/// INITIALIZED
///
///
-
///
/// PROCESSING
///
///
-
///
/// SUCCEEDED
///
///
///
public UploadStatus Status
{
get { return this._status; }
set { this._status = value; }
}
// Check to see if Status property is set
internal bool IsSetStatus()
{
return this._status != null;
}
///
/// Gets and sets the property 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
///
///
///
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;
}
///
/// Gets and sets the property Url.
///
/// The presigned Amazon S3 URL that was used to store a file using a PUT request.
///
///
[AWSProperty(Sensitive=true, Min=0, Max=2048)]
public string Url
{
get { return this._url; }
set { this._url = value; }
}
// Check to see if Url property is set
internal bool IsSetUrl()
{
return this._url != null;
}
}
}