/** * 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 { /** *

Contains code coverage report information.

Line coverage measures how * many statements your tests cover. A statement is a single instruction, not * including comments, conditionals, etc.

Branch coverage determines if your * tests cover every possible branch of a control structure, such as an * if or case statement.

See Also:

AWS * API Reference

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

The identifier of the code coverage report.

*/ inline const Aws::String& GetId() const{ return m_id; } /** *

The identifier of the code coverage report.

*/ inline bool IdHasBeenSet() const { return m_idHasBeenSet; } /** *

The identifier of the code coverage report.

*/ inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; } /** *

The identifier of the code coverage report.

*/ inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); } /** *

The identifier of the code coverage report.

*/ inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); } /** *

The identifier of the code coverage report.

*/ inline CodeCoverage& WithId(const Aws::String& value) { SetId(value); return *this;} /** *

The identifier of the code coverage report.

*/ inline CodeCoverage& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;} /** *

The identifier of the code coverage report.

*/ inline CodeCoverage& WithId(const char* value) { SetId(value); return *this;} /** *

The ARN of the report.

*/ inline const Aws::String& GetReportARN() const{ return m_reportARN; } /** *

The ARN of the report.

*/ inline bool ReportARNHasBeenSet() const { return m_reportARNHasBeenSet; } /** *

The ARN of the report.

*/ inline void SetReportARN(const Aws::String& value) { m_reportARNHasBeenSet = true; m_reportARN = value; } /** *

The ARN of the report.

*/ inline void SetReportARN(Aws::String&& value) { m_reportARNHasBeenSet = true; m_reportARN = std::move(value); } /** *

The ARN of the report.

*/ inline void SetReportARN(const char* value) { m_reportARNHasBeenSet = true; m_reportARN.assign(value); } /** *

The ARN of the report.

*/ inline CodeCoverage& WithReportARN(const Aws::String& value) { SetReportARN(value); return *this;} /** *

The ARN of the report.

*/ inline CodeCoverage& WithReportARN(Aws::String&& value) { SetReportARN(std::move(value)); return *this;} /** *

The ARN of the report.

*/ inline CodeCoverage& WithReportARN(const char* value) { SetReportARN(value); return *this;} /** *

The path of the test report file.

*/ inline const Aws::String& GetFilePath() const{ return m_filePath; } /** *

The path of the test report file.

*/ inline bool FilePathHasBeenSet() const { return m_filePathHasBeenSet; } /** *

The path of the test report file.

*/ inline void SetFilePath(const Aws::String& value) { m_filePathHasBeenSet = true; m_filePath = value; } /** *

The path of the test report file.

*/ inline void SetFilePath(Aws::String&& value) { m_filePathHasBeenSet = true; m_filePath = std::move(value); } /** *

The path of the test report file.

*/ inline void SetFilePath(const char* value) { m_filePathHasBeenSet = true; m_filePath.assign(value); } /** *

The path of the test report file.

*/ inline CodeCoverage& WithFilePath(const Aws::String& value) { SetFilePath(value); return *this;} /** *

The path of the test report file.

*/ inline CodeCoverage& WithFilePath(Aws::String&& value) { SetFilePath(std::move(value)); return *this;} /** *

The path of the test report file.

*/ inline CodeCoverage& WithFilePath(const char* value) { SetFilePath(value); return *this;} /** *

The percentage of lines that are covered by your tests.

*/ inline double GetLineCoveragePercentage() const{ return m_lineCoveragePercentage; } /** *

The percentage of lines that are covered by your tests.

*/ inline bool LineCoveragePercentageHasBeenSet() const { return m_lineCoveragePercentageHasBeenSet; } /** *

The percentage of lines that are covered by your tests.

*/ inline void SetLineCoveragePercentage(double value) { m_lineCoveragePercentageHasBeenSet = true; m_lineCoveragePercentage = value; } /** *

The percentage of lines that are covered by your tests.

*/ inline CodeCoverage& WithLineCoveragePercentage(double value) { SetLineCoveragePercentage(value); return *this;} /** *

The number of lines that are covered by your tests.

*/ inline int GetLinesCovered() const{ return m_linesCovered; } /** *

The number of lines that are covered by your tests.

*/ inline bool LinesCoveredHasBeenSet() const { return m_linesCoveredHasBeenSet; } /** *

The number of lines that are covered by your tests.

*/ inline void SetLinesCovered(int value) { m_linesCoveredHasBeenSet = true; m_linesCovered = value; } /** *

The number of lines that are covered by your tests.

*/ inline CodeCoverage& WithLinesCovered(int value) { SetLinesCovered(value); return *this;} /** *

The number of lines that are not covered by your tests.

*/ inline int GetLinesMissed() const{ return m_linesMissed; } /** *

The number of lines that are not covered by your tests.

*/ inline bool LinesMissedHasBeenSet() const { return m_linesMissedHasBeenSet; } /** *

The number of lines that are not covered by your tests.

*/ inline void SetLinesMissed(int value) { m_linesMissedHasBeenSet = true; m_linesMissed = value; } /** *

The number of lines that are not covered by your tests.

*/ inline CodeCoverage& WithLinesMissed(int value) { SetLinesMissed(value); return *this;} /** *

The percentage of branches that are covered by your tests.

*/ inline double GetBranchCoveragePercentage() const{ return m_branchCoveragePercentage; } /** *

The percentage of branches that are covered by your tests.

*/ inline bool BranchCoveragePercentageHasBeenSet() const { return m_branchCoveragePercentageHasBeenSet; } /** *

The percentage of branches that are covered by your tests.

*/ inline void SetBranchCoveragePercentage(double value) { m_branchCoveragePercentageHasBeenSet = true; m_branchCoveragePercentage = value; } /** *

The percentage of branches that are covered by your tests.

*/ inline CodeCoverage& WithBranchCoveragePercentage(double value) { SetBranchCoveragePercentage(value); return *this;} /** *

The number of conditional branches that are covered by your tests.

*/ inline int GetBranchesCovered() const{ return m_branchesCovered; } /** *

The number of conditional branches that are covered by your tests.

*/ inline bool BranchesCoveredHasBeenSet() const { return m_branchesCoveredHasBeenSet; } /** *

The number of conditional branches that are covered by your tests.

*/ inline void SetBranchesCovered(int value) { m_branchesCoveredHasBeenSet = true; m_branchesCovered = value; } /** *

The number of conditional branches that are covered by your tests.

*/ inline CodeCoverage& WithBranchesCovered(int value) { SetBranchesCovered(value); return *this;} /** *

The number of conditional branches that are not covered by your tests.

*/ inline int GetBranchesMissed() const{ return m_branchesMissed; } /** *

The number of conditional branches that are not covered by your tests.

*/ inline bool BranchesMissedHasBeenSet() const { return m_branchesMissedHasBeenSet; } /** *

The number of conditional branches that are not covered by your tests.

*/ inline void SetBranchesMissed(int value) { m_branchesMissedHasBeenSet = true; m_branchesMissed = value; } /** *

The number of conditional branches that are not covered by your tests.

*/ inline CodeCoverage& WithBranchesMissed(int value) { SetBranchesMissed(value); return *this;} /** *

The date and time that the tests were run.

*/ inline const Aws::Utils::DateTime& GetExpired() const{ return m_expired; } /** *

The date and time that the tests were run.

*/ inline bool ExpiredHasBeenSet() const { return m_expiredHasBeenSet; } /** *

The date and time that the tests were run.

*/ inline void SetExpired(const Aws::Utils::DateTime& value) { m_expiredHasBeenSet = true; m_expired = value; } /** *

The date and time that the tests were run.

*/ inline void SetExpired(Aws::Utils::DateTime&& value) { m_expiredHasBeenSet = true; m_expired = std::move(value); } /** *

The date and time that the tests were run.

*/ inline CodeCoverage& WithExpired(const Aws::Utils::DateTime& value) { SetExpired(value); return *this;} /** *

The date and time that the tests were run.

*/ inline CodeCoverage& WithExpired(Aws::Utils::DateTime&& value) { SetExpired(std::move(value)); return *this;} private: Aws::String m_id; bool m_idHasBeenSet = false; Aws::String m_reportARN; bool m_reportARNHasBeenSet = false; Aws::String m_filePath; bool m_filePathHasBeenSet = false; double m_lineCoveragePercentage; bool m_lineCoveragePercentageHasBeenSet = false; int m_linesCovered; bool m_linesCoveredHasBeenSet = false; int m_linesMissed; bool m_linesMissedHasBeenSet = false; double m_branchCoveragePercentage; bool m_branchCoveragePercentageHasBeenSet = false; int m_branchesCovered; bool m_branchesCoveredHasBeenSet = false; int m_branchesMissed; bool m_branchesMissedHasBeenSet = false; Aws::Utils::DateTime m_expired; bool m_expiredHasBeenSet = false; }; } // namespace Model } // namespace CodeBuild } // namespace Aws