/*
* 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 UpdateUpload operation.
/// Updates an uploaded test spec.
///
public partial class UpdateUploadRequest : AmazonDeviceFarmRequest
{
private string _arn;
private string _contentType;
private bool? _editContent;
private string _name;
///
/// Gets and sets the property Arn.
///
/// The Amazon Resource Name (ARN) of the uploaded test spec.
///
///
[AWSProperty(Required=true, 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 ContentType.
///
/// The upload's content type (for example, application/x-yaml
).
///
///
[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 EditContent.
///
/// Set to true if the YAML file has changed and must be updated. Otherwise, set to false.
///
///
public bool EditContent
{
get { return this._editContent.GetValueOrDefault(); }
set { this._editContent = value; }
}
// Check to see if EditContent property is set
internal bool IsSetEditContent()
{
return this._editContent.HasValue;
}
///
/// Gets and sets the property Name.
///
/// The upload's test spec file name. The name must not contain any forward slashes (/).
/// The test spec file name must end with the .yaml
or .yml
/// file extension.
///
///
[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;
}
}
}