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

Information about the results from running a series of test cases during the * run of a build project. The test cases are specified in the buildspec for the * build project using one or more paths to the test case files. You can specify * any type of tests you want, such as unit tests, integration tests, and * functional tests.

See Also:

AWS * API Reference

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

The ARN of the report run.

*/ inline const Aws::String& GetArn() const{ return m_arn; } /** *

The ARN of the report run.

*/ inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; } /** *

The ARN of the report run.

*/ inline void SetArn(const Aws::String& value) { m_arnHasBeenSet = true; m_arn = value; } /** *

The ARN of the report run.

*/ inline void SetArn(Aws::String&& value) { m_arnHasBeenSet = true; m_arn = std::move(value); } /** *

The ARN of the report run.

*/ inline void SetArn(const char* value) { m_arnHasBeenSet = true; m_arn.assign(value); } /** *

The ARN of the report run.

*/ inline Report& WithArn(const Aws::String& value) { SetArn(value); return *this;} /** *

The ARN of the report run.

*/ inline Report& WithArn(Aws::String&& value) { SetArn(std::move(value)); return *this;} /** *

The ARN of the report run.

*/ inline Report& WithArn(const char* value) { SetArn(value); return *this;} /** *

The type of the report that was run.

CODE_COVERAGE
*

A code coverage report.

TEST

A test report.

*
*/ inline const ReportType& GetType() const{ return m_type; } /** *

The type of the report that was run.

CODE_COVERAGE
*

A code coverage report.

TEST

A test report.

*
*/ inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; } /** *

The type of the report that was run.

CODE_COVERAGE
*

A code coverage report.

TEST

A test report.

*
*/ inline void SetType(const ReportType& value) { m_typeHasBeenSet = true; m_type = value; } /** *

The type of the report that was run.

CODE_COVERAGE
*

A code coverage report.

TEST

A test report.

*
*/ inline void SetType(ReportType&& value) { m_typeHasBeenSet = true; m_type = std::move(value); } /** *

The type of the report that was run.

CODE_COVERAGE
*

A code coverage report.

TEST

A test report.

*
*/ inline Report& WithType(const ReportType& value) { SetType(value); return *this;} /** *

The type of the report that was run.

CODE_COVERAGE
*

A code coverage report.

TEST

A test report.

*
*/ inline Report& WithType(ReportType&& value) { SetType(std::move(value)); return *this;} /** *

The name of the report that was run.

*/ inline const Aws::String& GetName() const{ return m_name; } /** *

The name of the report that was run.

*/ inline bool NameHasBeenSet() const { return m_nameHasBeenSet; } /** *

The name of the report that was run.

*/ inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; } /** *

The name of the report that was run.

*/ inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); } /** *

The name of the report that was run.

*/ inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); } /** *

The name of the report that was run.

*/ inline Report& WithName(const Aws::String& value) { SetName(value); return *this;} /** *

The name of the report that was run.

*/ inline Report& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;} /** *

The name of the report that was run.

*/ inline Report& WithName(const char* value) { SetName(value); return *this;} /** *

The ARN of the report group associated with this report.

*/ inline const Aws::String& GetReportGroupArn() const{ return m_reportGroupArn; } /** *

The ARN of the report group associated with this report.

*/ inline bool ReportGroupArnHasBeenSet() const { return m_reportGroupArnHasBeenSet; } /** *

The ARN of the report group associated with this report.

*/ inline void SetReportGroupArn(const Aws::String& value) { m_reportGroupArnHasBeenSet = true; m_reportGroupArn = value; } /** *

The ARN of the report group associated with this report.

*/ inline void SetReportGroupArn(Aws::String&& value) { m_reportGroupArnHasBeenSet = true; m_reportGroupArn = std::move(value); } /** *

The ARN of the report group associated with this report.

*/ inline void SetReportGroupArn(const char* value) { m_reportGroupArnHasBeenSet = true; m_reportGroupArn.assign(value); } /** *

The ARN of the report group associated with this report.

*/ inline Report& WithReportGroupArn(const Aws::String& value) { SetReportGroupArn(value); return *this;} /** *

The ARN of the report group associated with this report.

*/ inline Report& WithReportGroupArn(Aws::String&& value) { SetReportGroupArn(std::move(value)); return *this;} /** *

The ARN of the report group associated with this report.

*/ inline Report& WithReportGroupArn(const char* value) { SetReportGroupArn(value); return *this;} /** *

The ARN of the build run that generated this report.

*/ inline const Aws::String& GetExecutionId() const{ return m_executionId; } /** *

The ARN of the build run that generated this report.

*/ inline bool ExecutionIdHasBeenSet() const { return m_executionIdHasBeenSet; } /** *

The ARN of the build run that generated this report.

*/ inline void SetExecutionId(const Aws::String& value) { m_executionIdHasBeenSet = true; m_executionId = value; } /** *

The ARN of the build run that generated this report.

*/ inline void SetExecutionId(Aws::String&& value) { m_executionIdHasBeenSet = true; m_executionId = std::move(value); } /** *

The ARN of the build run that generated this report.

*/ inline void SetExecutionId(const char* value) { m_executionIdHasBeenSet = true; m_executionId.assign(value); } /** *

The ARN of the build run that generated this report.

*/ inline Report& WithExecutionId(const Aws::String& value) { SetExecutionId(value); return *this;} /** *

The ARN of the build run that generated this report.

*/ inline Report& WithExecutionId(Aws::String&& value) { SetExecutionId(std::move(value)); return *this;} /** *

The ARN of the build run that generated this report.

*/ inline Report& WithExecutionId(const char* value) { SetExecutionId(value); return *this;} /** *

The status of this report.

*/ inline const ReportStatusType& GetStatus() const{ return m_status; } /** *

The status of this report.

*/ inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; } /** *

The status of this report.

*/ inline void SetStatus(const ReportStatusType& value) { m_statusHasBeenSet = true; m_status = value; } /** *

The status of this report.

*/ inline void SetStatus(ReportStatusType&& value) { m_statusHasBeenSet = true; m_status = std::move(value); } /** *

The status of this report.

*/ inline Report& WithStatus(const ReportStatusType& value) { SetStatus(value); return *this;} /** *

The status of this report.

*/ inline Report& WithStatus(ReportStatusType&& value) { SetStatus(std::move(value)); return *this;} /** *

The date and time this report run occurred.

*/ inline const Aws::Utils::DateTime& GetCreated() const{ return m_created; } /** *

The date and time this report run occurred.

*/ inline bool CreatedHasBeenSet() const { return m_createdHasBeenSet; } /** *

The date and time this report run occurred.

*/ inline void SetCreated(const Aws::Utils::DateTime& value) { m_createdHasBeenSet = true; m_created = value; } /** *

The date and time this report run occurred.

*/ inline void SetCreated(Aws::Utils::DateTime&& value) { m_createdHasBeenSet = true; m_created = std::move(value); } /** *

The date and time this report run occurred.

*/ inline Report& WithCreated(const Aws::Utils::DateTime& value) { SetCreated(value); return *this;} /** *

The date and time this report run occurred.

*/ inline Report& WithCreated(Aws::Utils::DateTime&& value) { SetCreated(std::move(value)); return *this;} /** *

The date and time a report expires. A report expires 30 days after it is * created. An expired report is not available to view in CodeBuild.

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

The date and time a report expires. A report expires 30 days after it is * created. An expired report is not available to view in CodeBuild.

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

The date and time a report expires. A report expires 30 days after it is * created. An expired report is not available to view in CodeBuild.

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

The date and time a report expires. A report expires 30 days after it is * created. An expired report is not available to view in CodeBuild.

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

The date and time a report expires. A report expires 30 days after it is * created. An expired report is not available to view in CodeBuild.

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

The date and time a report expires. A report expires 30 days after it is * created. An expired report is not available to view in CodeBuild.

*/ inline Report& WithExpired(Aws::Utils::DateTime&& value) { SetExpired(std::move(value)); return *this;} /** *

Information about where the raw data used to generate this report was * exported.

*/ inline const ReportExportConfig& GetExportConfig() const{ return m_exportConfig; } /** *

Information about where the raw data used to generate this report was * exported.

*/ inline bool ExportConfigHasBeenSet() const { return m_exportConfigHasBeenSet; } /** *

Information about where the raw data used to generate this report was * exported.

*/ inline void SetExportConfig(const ReportExportConfig& value) { m_exportConfigHasBeenSet = true; m_exportConfig = value; } /** *

Information about where the raw data used to generate this report was * exported.

*/ inline void SetExportConfig(ReportExportConfig&& value) { m_exportConfigHasBeenSet = true; m_exportConfig = std::move(value); } /** *

Information about where the raw data used to generate this report was * exported.

*/ inline Report& WithExportConfig(const ReportExportConfig& value) { SetExportConfig(value); return *this;} /** *

Information about where the raw data used to generate this report was * exported.

*/ inline Report& WithExportConfig(ReportExportConfig&& value) { SetExportConfig(std::move(value)); return *this;} /** *

A boolean that specifies if this report run is truncated. The list of test * cases is truncated after the maximum number of test cases is reached.

*/ inline bool GetTruncated() const{ return m_truncated; } /** *

A boolean that specifies if this report run is truncated. The list of test * cases is truncated after the maximum number of test cases is reached.

*/ inline bool TruncatedHasBeenSet() const { return m_truncatedHasBeenSet; } /** *

A boolean that specifies if this report run is truncated. The list of test * cases is truncated after the maximum number of test cases is reached.

*/ inline void SetTruncated(bool value) { m_truncatedHasBeenSet = true; m_truncated = value; } /** *

A boolean that specifies if this report run is truncated. The list of test * cases is truncated after the maximum number of test cases is reached.

*/ inline Report& WithTruncated(bool value) { SetTruncated(value); return *this;} /** *

A TestReportSummary object that contains information about this * test report.

*/ inline const TestReportSummary& GetTestSummary() const{ return m_testSummary; } /** *

A TestReportSummary object that contains information about this * test report.

*/ inline bool TestSummaryHasBeenSet() const { return m_testSummaryHasBeenSet; } /** *

A TestReportSummary object that contains information about this * test report.

*/ inline void SetTestSummary(const TestReportSummary& value) { m_testSummaryHasBeenSet = true; m_testSummary = value; } /** *

A TestReportSummary object that contains information about this * test report.

*/ inline void SetTestSummary(TestReportSummary&& value) { m_testSummaryHasBeenSet = true; m_testSummary = std::move(value); } /** *

A TestReportSummary object that contains information about this * test report.

*/ inline Report& WithTestSummary(const TestReportSummary& value) { SetTestSummary(value); return *this;} /** *

A TestReportSummary object that contains information about this * test report.

*/ inline Report& WithTestSummary(TestReportSummary&& value) { SetTestSummary(std::move(value)); return *this;} /** *

A CodeCoverageReportSummary object that contains a code coverage * summary for this report.

*/ inline const CodeCoverageReportSummary& GetCodeCoverageSummary() const{ return m_codeCoverageSummary; } /** *

A CodeCoverageReportSummary object that contains a code coverage * summary for this report.

*/ inline bool CodeCoverageSummaryHasBeenSet() const { return m_codeCoverageSummaryHasBeenSet; } /** *

A CodeCoverageReportSummary object that contains a code coverage * summary for this report.

*/ inline void SetCodeCoverageSummary(const CodeCoverageReportSummary& value) { m_codeCoverageSummaryHasBeenSet = true; m_codeCoverageSummary = value; } /** *

A CodeCoverageReportSummary object that contains a code coverage * summary for this report.

*/ inline void SetCodeCoverageSummary(CodeCoverageReportSummary&& value) { m_codeCoverageSummaryHasBeenSet = true; m_codeCoverageSummary = std::move(value); } /** *

A CodeCoverageReportSummary object that contains a code coverage * summary for this report.

*/ inline Report& WithCodeCoverageSummary(const CodeCoverageReportSummary& value) { SetCodeCoverageSummary(value); return *this;} /** *

A CodeCoverageReportSummary object that contains a code coverage * summary for this report.

*/ inline Report& WithCodeCoverageSummary(CodeCoverageReportSummary&& value) { SetCodeCoverageSummary(std::move(value)); return *this;} private: Aws::String m_arn; bool m_arnHasBeenSet = false; ReportType m_type; bool m_typeHasBeenSet = false; Aws::String m_name; bool m_nameHasBeenSet = false; Aws::String m_reportGroupArn; bool m_reportGroupArnHasBeenSet = false; Aws::String m_executionId; bool m_executionIdHasBeenSet = false; ReportStatusType m_status; bool m_statusHasBeenSet = false; Aws::Utils::DateTime m_created; bool m_createdHasBeenSet = false; Aws::Utils::DateTime m_expired; bool m_expiredHasBeenSet = false; ReportExportConfig m_exportConfig; bool m_exportConfigHasBeenSet = false; bool m_truncated; bool m_truncatedHasBeenSet = false; TestReportSummary m_testSummary; bool m_testSummaryHasBeenSet = false; CodeCoverageReportSummary m_codeCoverageSummary; bool m_codeCoverageSummaryHasBeenSet = false; }; } // namespace Model } // namespace CodeBuild } // namespace Aws