/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include namespace Aws { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace CodeBuild { namespace Model { /** *

Information about a test report.

See Also:

AWS * API Reference

*/ class TestReportSummary { public: AWS_CODEBUILD_API TestReportSummary(); AWS_CODEBUILD_API TestReportSummary(Aws::Utils::Json::JsonView jsonValue); AWS_CODEBUILD_API TestReportSummary& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_CODEBUILD_API Aws::Utils::Json::JsonValue Jsonize() const; /** *

The number of test cases in this TestReportSummary. The total * includes truncated test cases.

*/ inline int GetTotal() const{ return m_total; } /** *

The number of test cases in this TestReportSummary. The total * includes truncated test cases.

*/ inline bool TotalHasBeenSet() const { return m_totalHasBeenSet; } /** *

The number of test cases in this TestReportSummary. The total * includes truncated test cases.

*/ inline void SetTotal(int value) { m_totalHasBeenSet = true; m_total = value; } /** *

The number of test cases in this TestReportSummary. The total * includes truncated test cases.

*/ inline TestReportSummary& WithTotal(int value) { SetTotal(value); return *this;} /** *

A map that contains the number of each type of status returned by the test * results in this TestReportSummary.

*/ inline const Aws::Map& GetStatusCounts() const{ return m_statusCounts; } /** *

A map that contains the number of each type of status returned by the test * results in this TestReportSummary.

*/ inline bool StatusCountsHasBeenSet() const { return m_statusCountsHasBeenSet; } /** *

A map that contains the number of each type of status returned by the test * results in this TestReportSummary.

*/ inline void SetStatusCounts(const Aws::Map& value) { m_statusCountsHasBeenSet = true; m_statusCounts = value; } /** *

A map that contains the number of each type of status returned by the test * results in this TestReportSummary.

*/ inline void SetStatusCounts(Aws::Map&& value) { m_statusCountsHasBeenSet = true; m_statusCounts = std::move(value); } /** *

A map that contains the number of each type of status returned by the test * results in this TestReportSummary.

*/ inline TestReportSummary& WithStatusCounts(const Aws::Map& value) { SetStatusCounts(value); return *this;} /** *

A map that contains the number of each type of status returned by the test * results in this TestReportSummary.

*/ inline TestReportSummary& WithStatusCounts(Aws::Map&& value) { SetStatusCounts(std::move(value)); return *this;} /** *

A map that contains the number of each type of status returned by the test * results in this TestReportSummary.

*/ inline TestReportSummary& AddStatusCounts(const Aws::String& key, int value) { m_statusCountsHasBeenSet = true; m_statusCounts.emplace(key, value); return *this; } /** *

A map that contains the number of each type of status returned by the test * results in this TestReportSummary.

*/ inline TestReportSummary& AddStatusCounts(Aws::String&& key, int value) { m_statusCountsHasBeenSet = true; m_statusCounts.emplace(std::move(key), value); return *this; } /** *

A map that contains the number of each type of status returned by the test * results in this TestReportSummary.

*/ inline TestReportSummary& AddStatusCounts(const char* key, int value) { m_statusCountsHasBeenSet = true; m_statusCounts.emplace(key, value); return *this; } /** *

The number of nanoseconds it took to run all of the test cases in this * report.

*/ inline long long GetDurationInNanoSeconds() const{ return m_durationInNanoSeconds; } /** *

The number of nanoseconds it took to run all of the test cases in this * report.

*/ inline bool DurationInNanoSecondsHasBeenSet() const { return m_durationInNanoSecondsHasBeenSet; } /** *

The number of nanoseconds it took to run all of the test cases in this * report.

*/ inline void SetDurationInNanoSeconds(long long value) { m_durationInNanoSecondsHasBeenSet = true; m_durationInNanoSeconds = value; } /** *

The number of nanoseconds it took to run all of the test cases in this * report.

*/ inline TestReportSummary& WithDurationInNanoSeconds(long long value) { SetDurationInNanoSeconds(value); return *this;} private: int m_total; bool m_totalHasBeenSet = false; Aws::Map m_statusCounts; bool m_statusCountsHasBeenSet = false; long long m_durationInNanoSeconds; bool m_durationInNanoSecondsHasBeenSet = false; }; } // namespace Model } // namespace CodeBuild } // namespace Aws