/* * 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 iotdeviceadvisor-2020-09-18.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.IoTDeviceAdvisor.Model { /// /// Provides the test case run. /// public partial class TestCaseRun { private DateTime? _endTime; private string _failure; private string _logUrl; private DateTime? _startTime; private Status _status; private string _testCaseDefinitionId; private string _testCaseDefinitionName; private string _testCaseRunId; private List _testScenarios = new List(); private string _warnings; /// /// Gets and sets the property EndTime. /// /// Provides test case run end time. /// /// public DateTime EndTime { get { return this._endTime.GetValueOrDefault(); } set { this._endTime = value; } } // Check to see if EndTime property is set internal bool IsSetEndTime() { return this._endTime.HasValue; } /// /// Gets and sets the property Failure. /// /// Provides test case run failure result. /// /// public string Failure { get { return this._failure; } set { this._failure = value; } } // Check to see if Failure property is set internal bool IsSetFailure() { return this._failure != null; } /// /// Gets and sets the property LogUrl. /// /// Provides test case run log URL. /// /// public string LogUrl { get { return this._logUrl; } set { this._logUrl = value; } } // Check to see if LogUrl property is set internal bool IsSetLogUrl() { return this._logUrl != null; } /// /// Gets and sets the property StartTime. /// /// Provides test case run start time. /// /// public DateTime StartTime { get { return this._startTime.GetValueOrDefault(); } set { this._startTime = value; } } // Check to see if StartTime property is set internal bool IsSetStartTime() { return this._startTime.HasValue; } /// /// Gets and sets the property Status. /// /// Provides the test case run status. Status is one of the following: /// ///
  • /// /// PASS: Test passed. /// ///
  • /// /// FAIL: Test failed. /// ///
  • /// /// PENDING: Test has not started running but is scheduled. /// ///
  • /// /// RUNNING: Test is running. /// ///
  • /// /// STOPPING: Test is performing cleanup steps. You will see this status /// only if you stop a suite run. /// ///
  • /// /// STOPPED Test is stopped. You will see this status only if you stop a /// suite run. /// ///
  • /// /// PASS_WITH_WARNINGS: Test passed with warnings. /// ///
  • /// /// ERORR: Test faced an error when running due to an internal issue. /// ///
///
public Status 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 TestCaseDefinitionId. /// /// Provides the test case run definition ID. /// /// [AWSProperty(Min=12, Max=36)] public string TestCaseDefinitionId { get { return this._testCaseDefinitionId; } set { this._testCaseDefinitionId = value; } } // Check to see if TestCaseDefinitionId property is set internal bool IsSetTestCaseDefinitionId() { return this._testCaseDefinitionId != null; } /// /// Gets and sets the property TestCaseDefinitionName. /// /// Provides the test case run definition name. /// /// public string TestCaseDefinitionName { get { return this._testCaseDefinitionName; } set { this._testCaseDefinitionName = value; } } // Check to see if TestCaseDefinitionName property is set internal bool IsSetTestCaseDefinitionName() { return this._testCaseDefinitionName != null; } /// /// Gets and sets the property TestCaseRunId. /// /// Provides the test case run ID. /// /// [AWSProperty(Min=12, Max=36)] public string TestCaseRunId { get { return this._testCaseRunId; } set { this._testCaseRunId = value; } } // Check to see if TestCaseRunId property is set internal bool IsSetTestCaseRunId() { return this._testCaseRunId != null; } /// /// Gets and sets the property TestScenarios. /// /// Provides the test scenarios for the test case run. /// /// public List TestScenarios { get { return this._testScenarios; } set { this._testScenarios = value; } } // Check to see if TestScenarios property is set internal bool IsSetTestScenarios() { return this._testScenarios != null && this._testScenarios.Count > 0; } /// /// Gets and sets the property Warnings. /// /// Provides test case run warnings. /// /// public string Warnings { get { return this._warnings; } set { this._warnings = value; } } // Check to see if Warnings property is set internal bool IsSetWarnings() { return this._warnings != null; } } }