/* * 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 condition that is evaluated. /// public partial class Test { private string _arn; private Counters _counters; private DateTime? _created; private DeviceMinutes _deviceMinutes; private string _message; private string _name; private ExecutionResult _result; private DateTime? _started; private ExecutionStatus _status; private DateTime? _stopped; private TestType _type; /// /// Gets and sets the property Arn. /// /// The test'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 Counters. /// /// The test's result counters. /// /// public Counters Counters { get { return this._counters; } set { this._counters = value; } } // Check to see if Counters property is set internal bool IsSetCounters() { return this._counters != null; } /// /// Gets and sets the property Created. /// /// When the test 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 DeviceMinutes. /// /// Represents the total (metered or unmetered) minutes used by the test. /// /// public DeviceMinutes DeviceMinutes { get { return this._deviceMinutes; } set { this._deviceMinutes = value; } } // Check to see if DeviceMinutes property is set internal bool IsSetDeviceMinutes() { return this._deviceMinutes != null; } /// /// Gets and sets the property Message. /// /// A message about the test'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 Name. /// /// The test's 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 Result. /// /// The test's result. /// /// /// /// Allowed values include: /// /// /// public ExecutionResult Result { get { return this._result; } set { this._result = value; } } // Check to see if Result property is set internal bool IsSetResult() { return this._result != null; } /// /// Gets and sets the property Started. /// /// The test's start time. /// /// public DateTime Started { get { return this._started.GetValueOrDefault(); } set { this._started = value; } } // Check to see if Started property is set internal bool IsSetStarted() { return this._started.HasValue; } /// /// Gets and sets the property Status. /// /// The test's status. /// /// /// /// Allowed values include: /// /// /// public ExecutionStatus 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 Stopped. /// /// The test's stop time. /// /// public DateTime Stopped { get { return this._stopped.GetValueOrDefault(); } set { this._stopped = value; } } // Check to see if Stopped property is set internal bool IsSetStopped() { return this._stopped.HasValue; } /// /// Gets and sets the property Type. /// /// The test's type. /// /// /// /// Must be one of the following values: /// /// /// public TestType Type { get { return this._type; } set { this._type = value; } } // Check to see if Type property is set internal bool IsSetType() { return this._type != null; } } }