This repository has been archived on 2025-09-14. You can view files and clone it, but cannot push or open issues or pull requests.
Files
pxz-hos-client-cpp-module/support/aws-sdk-cpp-master/aws-cpp-sdk-codebuild/include/aws/codebuild/model/CodeCoverage.h

360 lines
11 KiB
C++

/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/codebuild/CodeBuild_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/core/utils/DateTime.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace CodeBuild
{
namespace Model
{
/**
* <p>Contains code coverage report information.</p> <p>Line coverage measures how
* many statements your tests cover. A statement is a single instruction, not
* including comments, conditionals, etc.</p> <p>Branch coverage determines if your
* tests cover every possible branch of a control structure, such as an
* <code>if</code> or <code>case</code> statement.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/codebuild-2016-10-06/CodeCoverage">AWS
* API Reference</a></p>
*/
class AWS_CODEBUILD_API CodeCoverage
{
public:
CodeCoverage();
CodeCoverage(Aws::Utils::Json::JsonView jsonValue);
CodeCoverage& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p>The identifier of the code coverage report.</p>
*/
inline const Aws::String& GetId() const{ return m_id; }
/**
* <p>The identifier of the code coverage report.</p>
*/
inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
/**
* <p>The identifier of the code coverage report.</p>
*/
inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; }
/**
* <p>The identifier of the code coverage report.</p>
*/
inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); }
/**
* <p>The identifier of the code coverage report.</p>
*/
inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); }
/**
* <p>The identifier of the code coverage report.</p>
*/
inline CodeCoverage& WithId(const Aws::String& value) { SetId(value); return *this;}
/**
* <p>The identifier of the code coverage report.</p>
*/
inline CodeCoverage& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;}
/**
* <p>The identifier of the code coverage report.</p>
*/
inline CodeCoverage& WithId(const char* value) { SetId(value); return *this;}
/**
* <p>The ARN of the report.</p>
*/
inline const Aws::String& GetReportARN() const{ return m_reportARN; }
/**
* <p>The ARN of the report.</p>
*/
inline bool ReportARNHasBeenSet() const { return m_reportARNHasBeenSet; }
/**
* <p>The ARN of the report.</p>
*/
inline void SetReportARN(const Aws::String& value) { m_reportARNHasBeenSet = true; m_reportARN = value; }
/**
* <p>The ARN of the report.</p>
*/
inline void SetReportARN(Aws::String&& value) { m_reportARNHasBeenSet = true; m_reportARN = std::move(value); }
/**
* <p>The ARN of the report.</p>
*/
inline void SetReportARN(const char* value) { m_reportARNHasBeenSet = true; m_reportARN.assign(value); }
/**
* <p>The ARN of the report.</p>
*/
inline CodeCoverage& WithReportARN(const Aws::String& value) { SetReportARN(value); return *this;}
/**
* <p>The ARN of the report.</p>
*/
inline CodeCoverage& WithReportARN(Aws::String&& value) { SetReportARN(std::move(value)); return *this;}
/**
* <p>The ARN of the report.</p>
*/
inline CodeCoverage& WithReportARN(const char* value) { SetReportARN(value); return *this;}
/**
* <p>The path of the test report file.</p>
*/
inline const Aws::String& GetFilePath() const{ return m_filePath; }
/**
* <p>The path of the test report file.</p>
*/
inline bool FilePathHasBeenSet() const { return m_filePathHasBeenSet; }
/**
* <p>The path of the test report file.</p>
*/
inline void SetFilePath(const Aws::String& value) { m_filePathHasBeenSet = true; m_filePath = value; }
/**
* <p>The path of the test report file.</p>
*/
inline void SetFilePath(Aws::String&& value) { m_filePathHasBeenSet = true; m_filePath = std::move(value); }
/**
* <p>The path of the test report file.</p>
*/
inline void SetFilePath(const char* value) { m_filePathHasBeenSet = true; m_filePath.assign(value); }
/**
* <p>The path of the test report file.</p>
*/
inline CodeCoverage& WithFilePath(const Aws::String& value) { SetFilePath(value); return *this;}
/**
* <p>The path of the test report file.</p>
*/
inline CodeCoverage& WithFilePath(Aws::String&& value) { SetFilePath(std::move(value)); return *this;}
/**
* <p>The path of the test report file.</p>
*/
inline CodeCoverage& WithFilePath(const char* value) { SetFilePath(value); return *this;}
/**
* <p>The percentage of lines that are covered by your tests.</p>
*/
inline double GetLineCoveragePercentage() const{ return m_lineCoveragePercentage; }
/**
* <p>The percentage of lines that are covered by your tests.</p>
*/
inline bool LineCoveragePercentageHasBeenSet() const { return m_lineCoveragePercentageHasBeenSet; }
/**
* <p>The percentage of lines that are covered by your tests.</p>
*/
inline void SetLineCoveragePercentage(double value) { m_lineCoveragePercentageHasBeenSet = true; m_lineCoveragePercentage = value; }
/**
* <p>The percentage of lines that are covered by your tests.</p>
*/
inline CodeCoverage& WithLineCoveragePercentage(double value) { SetLineCoveragePercentage(value); return *this;}
/**
* <p>The number of lines that are covered by your tests.</p>
*/
inline int GetLinesCovered() const{ return m_linesCovered; }
/**
* <p>The number of lines that are covered by your tests.</p>
*/
inline bool LinesCoveredHasBeenSet() const { return m_linesCoveredHasBeenSet; }
/**
* <p>The number of lines that are covered by your tests.</p>
*/
inline void SetLinesCovered(int value) { m_linesCoveredHasBeenSet = true; m_linesCovered = value; }
/**
* <p>The number of lines that are covered by your tests.</p>
*/
inline CodeCoverage& WithLinesCovered(int value) { SetLinesCovered(value); return *this;}
/**
* <p>The number of lines that are not covered by your tests.</p>
*/
inline int GetLinesMissed() const{ return m_linesMissed; }
/**
* <p>The number of lines that are not covered by your tests.</p>
*/
inline bool LinesMissedHasBeenSet() const { return m_linesMissedHasBeenSet; }
/**
* <p>The number of lines that are not covered by your tests.</p>
*/
inline void SetLinesMissed(int value) { m_linesMissedHasBeenSet = true; m_linesMissed = value; }
/**
* <p>The number of lines that are not covered by your tests.</p>
*/
inline CodeCoverage& WithLinesMissed(int value) { SetLinesMissed(value); return *this;}
/**
* <p>The percentage of branches that are covered by your tests.</p>
*/
inline double GetBranchCoveragePercentage() const{ return m_branchCoveragePercentage; }
/**
* <p>The percentage of branches that are covered by your tests.</p>
*/
inline bool BranchCoveragePercentageHasBeenSet() const { return m_branchCoveragePercentageHasBeenSet; }
/**
* <p>The percentage of branches that are covered by your tests.</p>
*/
inline void SetBranchCoveragePercentage(double value) { m_branchCoveragePercentageHasBeenSet = true; m_branchCoveragePercentage = value; }
/**
* <p>The percentage of branches that are covered by your tests.</p>
*/
inline CodeCoverage& WithBranchCoveragePercentage(double value) { SetBranchCoveragePercentage(value); return *this;}
/**
* <p>The number of conditional branches that are covered by your tests.</p>
*/
inline int GetBranchesCovered() const{ return m_branchesCovered; }
/**
* <p>The number of conditional branches that are covered by your tests.</p>
*/
inline bool BranchesCoveredHasBeenSet() const { return m_branchesCoveredHasBeenSet; }
/**
* <p>The number of conditional branches that are covered by your tests.</p>
*/
inline void SetBranchesCovered(int value) { m_branchesCoveredHasBeenSet = true; m_branchesCovered = value; }
/**
* <p>The number of conditional branches that are covered by your tests.</p>
*/
inline CodeCoverage& WithBranchesCovered(int value) { SetBranchesCovered(value); return *this;}
/**
* <p>The number of conditional branches that are not covered by your tests.</p>
*/
inline int GetBranchesMissed() const{ return m_branchesMissed; }
/**
* <p>The number of conditional branches that are not covered by your tests.</p>
*/
inline bool BranchesMissedHasBeenSet() const { return m_branchesMissedHasBeenSet; }
/**
* <p>The number of conditional branches that are not covered by your tests.</p>
*/
inline void SetBranchesMissed(int value) { m_branchesMissedHasBeenSet = true; m_branchesMissed = value; }
/**
* <p>The number of conditional branches that are not covered by your tests.</p>
*/
inline CodeCoverage& WithBranchesMissed(int value) { SetBranchesMissed(value); return *this;}
/**
* <p>The date and time that the tests were run.</p>
*/
inline const Aws::Utils::DateTime& GetExpired() const{ return m_expired; }
/**
* <p>The date and time that the tests were run.</p>
*/
inline bool ExpiredHasBeenSet() const { return m_expiredHasBeenSet; }
/**
* <p>The date and time that the tests were run.</p>
*/
inline void SetExpired(const Aws::Utils::DateTime& value) { m_expiredHasBeenSet = true; m_expired = value; }
/**
* <p>The date and time that the tests were run.</p>
*/
inline void SetExpired(Aws::Utils::DateTime&& value) { m_expiredHasBeenSet = true; m_expired = std::move(value); }
/**
* <p>The date and time that the tests were run.</p>
*/
inline CodeCoverage& WithExpired(const Aws::Utils::DateTime& value) { SetExpired(value); return *this;}
/**
* <p>The date and time that the tests were run.</p>
*/
inline CodeCoverage& WithExpired(Aws::Utils::DateTime&& value) { SetExpired(std::move(value)); return *this;}
private:
Aws::String m_id;
bool m_idHasBeenSet;
Aws::String m_reportARN;
bool m_reportARNHasBeenSet;
Aws::String m_filePath;
bool m_filePathHasBeenSet;
double m_lineCoveragePercentage;
bool m_lineCoveragePercentageHasBeenSet;
int m_linesCovered;
bool m_linesCoveredHasBeenSet;
int m_linesMissed;
bool m_linesMissedHasBeenSet;
double m_branchCoveragePercentage;
bool m_branchCoveragePercentageHasBeenSet;
int m_branchesCovered;
bool m_branchesCoveredHasBeenSet;
int m_branchesMissed;
bool m_branchesMissedHasBeenSet;
Aws::Utils::DateTime m_expired;
bool m_expiredHasBeenSet;
};
} // namespace Model
} // namespace CodeBuild
} // namespace Aws