/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include namespace Aws { namespace CodeBuild { namespace Model { /** */ class GetReportGroupTrendRequest : public CodeBuildRequest { public: AWS_CODEBUILD_API GetReportGroupTrendRequest(); // Service request name is the Operation name which will send this request out, // each operation should has unique request name, so that we can get operation's name from this request. // Note: this is not true for response, multiple operations may have the same response name, // so we can not get operation's name from response. inline virtual const char* GetServiceRequestName() const override { return "GetReportGroupTrend"; } AWS_CODEBUILD_API Aws::String SerializePayload() const override; AWS_CODEBUILD_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; /** *

The ARN of the report group that contains the reports to analyze.

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

The ARN of the report group that contains the reports to analyze.

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

The ARN of the report group that contains the reports to analyze.

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

The ARN of the report group that contains the reports to analyze.

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

The ARN of the report group that contains the reports to analyze.

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

The ARN of the report group that contains the reports to analyze.

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

The ARN of the report group that contains the reports to analyze.

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

The ARN of the report group that contains the reports to analyze.

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

The number of reports to analyze. This operation always retrieves the most * recent reports.

If this parameter is omitted, the most recent 100 reports * are analyzed.

*/ inline int GetNumOfReports() const{ return m_numOfReports; } /** *

The number of reports to analyze. This operation always retrieves the most * recent reports.

If this parameter is omitted, the most recent 100 reports * are analyzed.

*/ inline bool NumOfReportsHasBeenSet() const { return m_numOfReportsHasBeenSet; } /** *

The number of reports to analyze. This operation always retrieves the most * recent reports.

If this parameter is omitted, the most recent 100 reports * are analyzed.

*/ inline void SetNumOfReports(int value) { m_numOfReportsHasBeenSet = true; m_numOfReports = value; } /** *

The number of reports to analyze. This operation always retrieves the most * recent reports.

If this parameter is omitted, the most recent 100 reports * are analyzed.

*/ inline GetReportGroupTrendRequest& WithNumOfReports(int value) { SetNumOfReports(value); return *this;} /** *

The test report value to accumulate. This must be one of the following * values:

Test reports:
DURATION
*

Accumulate the test run times for the specified reports.

*
PASS_RATE

Accumulate the percentage of tests that passed for * the specified test reports.

TOTAL

Accumulate the * total number of tests for the specified test reports.

*
Code coverage reports:
BRANCH_COVERAGE
*

Accumulate the branch coverage percentages for the specified test * reports.

BRANCHES_COVERED

Accumulate the branches * covered values for the specified test reports.

*
BRANCHES_MISSED

Accumulate the branches missed values for the * specified test reports.

LINE_COVERAGE

Accumulate the * line coverage percentages for the specified test reports.

*
LINES_COVERED

Accumulate the lines covered values for the * specified test reports.

LINES_MISSED

Accumulate the * lines not covered values for the specified test reports.

*
*/ inline const ReportGroupTrendFieldType& GetTrendField() const{ return m_trendField; } /** *

The test report value to accumulate. This must be one of the following * values:

Test reports:
DURATION
*

Accumulate the test run times for the specified reports.

*
PASS_RATE

Accumulate the percentage of tests that passed for * the specified test reports.

TOTAL

Accumulate the * total number of tests for the specified test reports.

*
Code coverage reports:
BRANCH_COVERAGE
*

Accumulate the branch coverage percentages for the specified test * reports.

BRANCHES_COVERED

Accumulate the branches * covered values for the specified test reports.

*
BRANCHES_MISSED

Accumulate the branches missed values for the * specified test reports.

LINE_COVERAGE

Accumulate the * line coverage percentages for the specified test reports.

*
LINES_COVERED

Accumulate the lines covered values for the * specified test reports.

LINES_MISSED

Accumulate the * lines not covered values for the specified test reports.

*
*/ inline bool TrendFieldHasBeenSet() const { return m_trendFieldHasBeenSet; } /** *

The test report value to accumulate. This must be one of the following * values:

Test reports:
DURATION
*

Accumulate the test run times for the specified reports.

*
PASS_RATE

Accumulate the percentage of tests that passed for * the specified test reports.

TOTAL

Accumulate the * total number of tests for the specified test reports.

*
Code coverage reports:
BRANCH_COVERAGE
*

Accumulate the branch coverage percentages for the specified test * reports.

BRANCHES_COVERED

Accumulate the branches * covered values for the specified test reports.

*
BRANCHES_MISSED

Accumulate the branches missed values for the * specified test reports.

LINE_COVERAGE

Accumulate the * line coverage percentages for the specified test reports.

*
LINES_COVERED

Accumulate the lines covered values for the * specified test reports.

LINES_MISSED

Accumulate the * lines not covered values for the specified test reports.

*
*/ inline void SetTrendField(const ReportGroupTrendFieldType& value) { m_trendFieldHasBeenSet = true; m_trendField = value; } /** *

The test report value to accumulate. This must be one of the following * values:

Test reports:
DURATION
*

Accumulate the test run times for the specified reports.

*
PASS_RATE

Accumulate the percentage of tests that passed for * the specified test reports.

TOTAL

Accumulate the * total number of tests for the specified test reports.

*
Code coverage reports:
BRANCH_COVERAGE
*

Accumulate the branch coverage percentages for the specified test * reports.

BRANCHES_COVERED

Accumulate the branches * covered values for the specified test reports.

*
BRANCHES_MISSED

Accumulate the branches missed values for the * specified test reports.

LINE_COVERAGE

Accumulate the * line coverage percentages for the specified test reports.

*
LINES_COVERED

Accumulate the lines covered values for the * specified test reports.

LINES_MISSED

Accumulate the * lines not covered values for the specified test reports.

*
*/ inline void SetTrendField(ReportGroupTrendFieldType&& value) { m_trendFieldHasBeenSet = true; m_trendField = std::move(value); } /** *

The test report value to accumulate. This must be one of the following * values:

Test reports:
DURATION
*

Accumulate the test run times for the specified reports.

*
PASS_RATE

Accumulate the percentage of tests that passed for * the specified test reports.

TOTAL

Accumulate the * total number of tests for the specified test reports.

*
Code coverage reports:
BRANCH_COVERAGE
*

Accumulate the branch coverage percentages for the specified test * reports.

BRANCHES_COVERED

Accumulate the branches * covered values for the specified test reports.

*
BRANCHES_MISSED

Accumulate the branches missed values for the * specified test reports.

LINE_COVERAGE

Accumulate the * line coverage percentages for the specified test reports.

*
LINES_COVERED

Accumulate the lines covered values for the * specified test reports.

LINES_MISSED

Accumulate the * lines not covered values for the specified test reports.

*
*/ inline GetReportGroupTrendRequest& WithTrendField(const ReportGroupTrendFieldType& value) { SetTrendField(value); return *this;} /** *

The test report value to accumulate. This must be one of the following * values:

Test reports:
DURATION
*

Accumulate the test run times for the specified reports.

*
PASS_RATE

Accumulate the percentage of tests that passed for * the specified test reports.

TOTAL

Accumulate the * total number of tests for the specified test reports.

*
Code coverage reports:
BRANCH_COVERAGE
*

Accumulate the branch coverage percentages for the specified test * reports.

BRANCHES_COVERED

Accumulate the branches * covered values for the specified test reports.

*
BRANCHES_MISSED

Accumulate the branches missed values for the * specified test reports.

LINE_COVERAGE

Accumulate the * line coverage percentages for the specified test reports.

*
LINES_COVERED

Accumulate the lines covered values for the * specified test reports.

LINES_MISSED

Accumulate the * lines not covered values for the specified test reports.

*
*/ inline GetReportGroupTrendRequest& WithTrendField(ReportGroupTrendFieldType&& value) { SetTrendField(std::move(value)); return *this;} private: Aws::String m_reportGroupArn; bool m_reportGroupArnHasBeenSet = false; int m_numOfReports; bool m_numOfReportsHasBeenSet = false; ReportGroupTrendFieldType m_trendField; bool m_trendFieldHasBeenSet = false; }; } // namespace Model } // namespace CodeBuild } // namespace Aws