Class ReportGroupProps.Builder
java.lang.Object
software.amazon.awscdk.services.codebuild.ReportGroupProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<ReportGroupProps>
- Enclosing interface:
ReportGroupProps
@Stability(Stable)
public static final class ReportGroupProps.Builder
extends Object
implements software.amazon.jsii.Builder<ReportGroupProps>
A builder for
ReportGroupProps
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.deleteReports
(Boolean deleteReports) Sets the value ofReportGroupProps.getDeleteReports()
exportBucket
(IBucket exportBucket) Sets the value ofReportGroupProps.getExportBucket()
removalPolicy
(RemovalPolicy removalPolicy) Sets the value ofReportGroupProps.getRemovalPolicy()
reportGroupName
(String reportGroupName) Sets the value ofReportGroupProps.getReportGroupName()
type
(ReportGroupType type) Sets the value ofReportGroupProps.getType()
Sets the value ofReportGroupProps.getZipExport()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
deleteReports
Sets the value ofReportGroupProps.getDeleteReports()
- Parameters:
deleteReports
- If true, deleting the report group force deletes the contents of the report group. If false, the report group must be empty before attempting to delete it.- Returns:
this
-
exportBucket
Sets the value ofReportGroupProps.getExportBucket()
- Parameters:
exportBucket
- An optional S3 bucket to export the reports to.- Returns:
this
-
removalPolicy
Sets the value ofReportGroupProps.getRemovalPolicy()
- Parameters:
removalPolicy
- What to do when this resource is deleted from a stack. As CodeBuild does not allow deleting a ResourceGroup that has reports inside of it, this is set to retain the resource by default.- Returns:
this
-
reportGroupName
Sets the value ofReportGroupProps.getReportGroupName()
- Parameters:
reportGroupName
- The physical name of the report group.- Returns:
this
-
type
Sets the value ofReportGroupProps.getType()
- Parameters:
type
- The type of report group. This can be one of the following values:.- TEST - The report group contains test reports.
- CODE_COVERAGE - The report group contains code coverage reports.
- Returns:
this
-
zipExport
Sets the value ofReportGroupProps.getZipExport()
- Parameters:
zipExport
- Whether to output the report files into the export bucket as-is, or create a ZIP from them before doing the export. Ignored ifexportBucket
has not been provided.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<ReportGroupProps>
- Returns:
- a new instance of
ReportGroupProps
- Throws:
NullPointerException
- if any required attribute was not provided
-