Class CfnReportGroupProps.Builder
java.lang.Object
software.amazon.awscdk.services.codebuild.CfnReportGroupProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnReportGroupProps>
- Enclosing interface:
CfnReportGroupProps
@Stability(Stable)
public static final class CfnReportGroupProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnReportGroupProps>
A builder for
CfnReportGroupProps
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.deleteReports
(Boolean deleteReports) Sets the value ofCfnReportGroupProps.getDeleteReports()
deleteReports
(IResolvable deleteReports) Sets the value ofCfnReportGroupProps.getDeleteReports()
exportConfig
(IResolvable exportConfig) Sets the value ofCfnReportGroupProps.getExportConfig()
exportConfig
(CfnReportGroup.ReportExportConfigProperty exportConfig) Sets the value ofCfnReportGroupProps.getExportConfig()
Sets the value ofCfnReportGroupProps.getName()
Sets the value ofCfnReportGroupProps.getTags()
Sets the value ofCfnReportGroupProps.getType()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
exportConfig
Sets the value ofCfnReportGroupProps.getExportConfig()
- Parameters:
exportConfig
- Information about the destination where the raw data of thisReportGroup
is exported. This parameter is required.- Returns:
this
-
exportConfig
@Stability(Stable) public CfnReportGroupProps.Builder exportConfig(CfnReportGroup.ReportExportConfigProperty exportConfig) Sets the value ofCfnReportGroupProps.getExportConfig()
- Parameters:
exportConfig
- Information about the destination where the raw data of thisReportGroup
is exported. This parameter is required.- Returns:
this
-
type
Sets the value ofCfnReportGroupProps.getType()
- Parameters:
type
- The type of theReportGroup
. This can be one of the following values:. This parameter is required.- CODE_COVERAGE - The report group contains code coverage reports.
- TEST - The report group contains test reports.
- Returns:
this
-
deleteReports
Sets the value ofCfnReportGroupProps.getDeleteReports()
- Parameters:
deleteReports
- When deleting a report group, specifies if reports within the report group should be deleted.- true - Deletes any reports that belong to the report group before deleting the report group.
- false - You must delete any reports in the report group. This is the default value. If you delete a report group that contains one or more reports, an exception is thrown.
- Returns:
this
-
deleteReports
Sets the value ofCfnReportGroupProps.getDeleteReports()
- Parameters:
deleteReports
- When deleting a report group, specifies if reports within the report group should be deleted.- true - Deletes any reports that belong to the report group before deleting the report group.
- false - You must delete any reports in the report group. This is the default value. If you delete a report group that contains one or more reports, an exception is thrown.
- Returns:
this
-
name
Sets the value ofCfnReportGroupProps.getName()
- Parameters:
name
- The name of theReportGroup
.- Returns:
this
-
tags
Sets the value ofCfnReportGroupProps.getTags()
- Parameters:
tags
- A list of tag key and value pairs associated with this report group. These tags are available for use by AWS services that support AWS CodeBuild report group tags.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnReportGroupProps>
- Returns:
- a new instance of
CfnReportGroupProps
- Throws:
NullPointerException
- if any required attribute was not provided
-