/*
* 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
{
///
/// Represents a device type that an app is tested against.
///
public partial class Device
{
private string _arn;
private DeviceAvailability _availability;
private string _carrier;
private CPU _cpu;
private string _fleetName;
private string _fleetType;
private DeviceFormFactor _formFactor;
private long? _heapSize;
private string _image;
private List _instances = new List();
private string _manufacturer;
private long? _memory;
private string _model;
private string _modelId;
private string _name;
private string _os;
private DevicePlatform _platform;
private string _radio;
private bool? _remoteAccessEnabled;
private bool? _remoteDebugEnabled;
private Resolution _resolution;
///
/// Gets and sets the property Arn.
///
/// The device'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 Availability.
///
/// Indicates how likely a device is available for a test run. Currently available in
/// the ListDevices and GetDevice API methods.
///
///
public DeviceAvailability Availability
{
get { return this._availability; }
set { this._availability = value; }
}
// Check to see if Availability property is set
internal bool IsSetAvailability()
{
return this._availability != null;
}
///
/// Gets and sets the property Carrier.
///
/// The device's carrier.
///
///
public string Carrier
{
get { return this._carrier; }
set { this._carrier = value; }
}
// Check to see if Carrier property is set
internal bool IsSetCarrier()
{
return this._carrier != null;
}
///
/// Gets and sets the property Cpu.
///
/// Information about the device's CPU.
///
///
public CPU Cpu
{
get { return this._cpu; }
set { this._cpu = value; }
}
// Check to see if Cpu property is set
internal bool IsSetCpu()
{
return this._cpu != null;
}
///
/// Gets and sets the property FleetName.
///
/// The name of the fleet to which this device belongs.
///
///
public string FleetName
{
get { return this._fleetName; }
set { this._fleetName = value; }
}
// Check to see if FleetName property is set
internal bool IsSetFleetName()
{
return this._fleetName != null;
}
///
/// Gets and sets the property FleetType.
///
/// The type of fleet to which this device belongs. Possible values are PRIVATE and PUBLIC.
///
///
public string FleetType
{
get { return this._fleetType; }
set { this._fleetType = value; }
}
// Check to see if FleetType property is set
internal bool IsSetFleetType()
{
return this._fleetType != null;
}
///
/// Gets and sets the property FormFactor.
///
/// The device's form factor.
///
///
///
/// Allowed values include:
///
/// -
///
/// PHONE
///
///
-
///
/// TABLET
///
///
///
public DeviceFormFactor FormFactor
{
get { return this._formFactor; }
set { this._formFactor = value; }
}
// Check to see if FormFactor property is set
internal bool IsSetFormFactor()
{
return this._formFactor != null;
}
///
/// Gets and sets the property HeapSize.
///
/// The device's heap size, expressed in bytes.
///
///
public long HeapSize
{
get { return this._heapSize.GetValueOrDefault(); }
set { this._heapSize = value; }
}
// Check to see if HeapSize property is set
internal bool IsSetHeapSize()
{
return this._heapSize.HasValue;
}
///
/// Gets and sets the property Image.
///
/// The device's image name.
///
///
public string Image
{
get { return this._image; }
set { this._image = value; }
}
// Check to see if Image property is set
internal bool IsSetImage()
{
return this._image != null;
}
///
/// Gets and sets the property Instances.
///
/// The instances that belong to this device.
///
///
public List Instances
{
get { return this._instances; }
set { this._instances = value; }
}
// Check to see if Instances property is set
internal bool IsSetInstances()
{
return this._instances != null && this._instances.Count > 0;
}
///
/// Gets and sets the property Manufacturer.
///
/// The device's manufacturer name.
///
///
public string Manufacturer
{
get { return this._manufacturer; }
set { this._manufacturer = value; }
}
// Check to see if Manufacturer property is set
internal bool IsSetManufacturer()
{
return this._manufacturer != null;
}
///
/// Gets and sets the property Memory.
///
/// The device's total memory size, expressed in bytes.
///
///
public long Memory
{
get { return this._memory.GetValueOrDefault(); }
set { this._memory = value; }
}
// Check to see if Memory property is set
internal bool IsSetMemory()
{
return this._memory.HasValue;
}
///
/// Gets and sets the property Model.
///
/// The device's model name.
///
///
public string Model
{
get { return this._model; }
set { this._model = value; }
}
// Check to see if Model property is set
internal bool IsSetModel()
{
return this._model != null;
}
///
/// Gets and sets the property ModelId.
///
/// The device's model ID.
///
///
public string ModelId
{
get { return this._modelId; }
set { this._modelId = value; }
}
// Check to see if ModelId property is set
internal bool IsSetModelId()
{
return this._modelId != null;
}
///
/// Gets and sets the property Name.
///
/// The device's display 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 Os.
///
/// The device's operating system type.
///
///
public string Os
{
get { return this._os; }
set { this._os = value; }
}
// Check to see if Os property is set
internal bool IsSetOs()
{
return this._os != null;
}
///
/// Gets and sets the property Platform.
///
/// The device's platform.
///
///
///
/// Allowed values include:
///
/// -
///
/// ANDROID
///
///
-
///
/// IOS
///
///
///
public DevicePlatform Platform
{
get { return this._platform; }
set { this._platform = value; }
}
// Check to see if Platform property is set
internal bool IsSetPlatform()
{
return this._platform != null;
}
///
/// Gets and sets the property Radio.
///
/// The device's radio.
///
///
public string Radio
{
get { return this._radio; }
set { this._radio = value; }
}
// Check to see if Radio property is set
internal bool IsSetRadio()
{
return this._radio != null;
}
///
/// Gets and sets the property RemoteAccessEnabled.
///
/// Specifies whether remote access has been enabled for the specified device.
///
///
public bool RemoteAccessEnabled
{
get { return this._remoteAccessEnabled.GetValueOrDefault(); }
set { this._remoteAccessEnabled = value; }
}
// Check to see if RemoteAccessEnabled property is set
internal bool IsSetRemoteAccessEnabled()
{
return this._remoteAccessEnabled.HasValue;
}
///
/// Gets and sets the property RemoteDebugEnabled.
///
/// This flag is set to true
if remote debugging is enabled for the device.
///
///
///
/// Remote debugging is no
/// longer supported.
///
///
public bool RemoteDebugEnabled
{
get { return this._remoteDebugEnabled.GetValueOrDefault(); }
set { this._remoteDebugEnabled = value; }
}
// Check to see if RemoteDebugEnabled property is set
internal bool IsSetRemoteDebugEnabled()
{
return this._remoteDebugEnabled.HasValue;
}
///
/// Gets and sets the property Resolution.
///
/// The resolution of the device.
///
///
public Resolution Resolution
{
get { return this._resolution; }
set { this._resolution = value; }
}
// Check to see if Resolution property is set
internal bool IsSetResolution()
{
return this._resolution != null;
}
}
}