/* * 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 codebuild-2016-10-06.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.CodeBuild.Model { /// /// Information about a test report. /// public partial class TestReportSummary { private long? _durationInNanoSeconds; private Dictionary _statusCounts = new Dictionary(); private int? _total; /// /// Gets and sets the property DurationInNanoSeconds. /// /// The number of nanoseconds it took to run all of the test cases in this report. /// /// [AWSProperty(Required=true)] public long DurationInNanoSeconds { get { return this._durationInNanoSeconds.GetValueOrDefault(); } set { this._durationInNanoSeconds = value; } } // Check to see if DurationInNanoSeconds property is set internal bool IsSetDurationInNanoSeconds() { return this._durationInNanoSeconds.HasValue; } /// /// Gets and sets the property StatusCounts. /// /// A map that contains the number of each type of status returned by the test results /// in this TestReportSummary. /// /// [AWSProperty(Required=true)] public Dictionary StatusCounts { get { return this._statusCounts; } set { this._statusCounts = value; } } // Check to see if StatusCounts property is set internal bool IsSetStatusCounts() { return this._statusCounts != null && this._statusCounts.Count > 0; } /// /// Gets and sets the property Total. /// /// The number of test cases in this TestReportSummary. The total includes /// truncated test cases. /// /// [AWSProperty(Required=true)] public int Total { get { return this._total.GetValueOrDefault(); } set { this._total = value; } } // Check to see if Total property is set internal bool IsSetTotal() { return this._total.HasValue; } } }