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.exportBucket
(IBucket exportBucket) Sets the value ofReportGroupProps.getExportBucket()
removalPolicy
(RemovalPolicy removalPolicy) Sets the value ofReportGroupProps.getRemovalPolicy()
reportGroupName
(String reportGroupName) Sets the value ofReportGroupProps.getReportGroupName()
Sets the value ofReportGroupProps.getZipExport()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
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
-
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
-