Class CfnProjectPropsMixin.ProjectBuildBatchConfigProperty.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.codebuild.CfnProjectPropsMixin.ProjectBuildBatchConfigProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnProjectPropsMixin.ProjectBuildBatchConfigProperty>
- Enclosing interface:
CfnProjectPropsMixin.ProjectBuildBatchConfigProperty
@Stability(Stable)
public static final class CfnProjectPropsMixin.ProjectBuildBatchConfigProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnProjectPropsMixin.ProjectBuildBatchConfigProperty>
A builder for
CfnProjectPropsMixin.ProjectBuildBatchConfigProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbatchReportMode(String batchReportMode) build()Builds the configured instance.combineArtifacts(Boolean combineArtifacts) combineArtifacts(IResolvable combineArtifacts) restrictions(CfnProjectPropsMixin.BatchRestrictionsProperty restrictions) Sets the value ofCfnProjectPropsMixin.ProjectBuildBatchConfigProperty.getRestrictions()restrictions(IResolvable restrictions) Sets the value ofCfnProjectPropsMixin.ProjectBuildBatchConfigProperty.getRestrictions()serviceRole(String serviceRole) Sets the value ofCfnProjectPropsMixin.ProjectBuildBatchConfigProperty.getServiceRole()timeoutInMins(Number timeoutInMins) Sets the value ofCfnProjectPropsMixin.ProjectBuildBatchConfigProperty.getTimeoutInMins()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
batchReportMode
@Stability(Stable) public CfnProjectPropsMixin.ProjectBuildBatchConfigProperty.Builder batchReportMode(String batchReportMode) - Parameters:
batchReportMode- Specifies how build status reports are sent to the source provider for the batch build. This property is only used when the source provider for your project is Bitbucket, GitHub, or GitHub Enterprise, and your project is configured to report build statuses to the source provider.- REPORT_AGGREGATED_BATCH - (Default) Aggregate all of the build statuses into a single status report.
- REPORT_INDIVIDUAL_BUILDS - Send a separate status report for each individual build.
- Returns:
this
-
combineArtifacts
@Stability(Stable) public CfnProjectPropsMixin.ProjectBuildBatchConfigProperty.Builder combineArtifacts(Boolean combineArtifacts) - Parameters:
combineArtifacts- Specifies if the build artifacts for the batch build should be combined into a single artifact location.- Returns:
this
-
combineArtifacts
@Stability(Stable) public CfnProjectPropsMixin.ProjectBuildBatchConfigProperty.Builder combineArtifacts(IResolvable combineArtifacts) - Parameters:
combineArtifacts- Specifies if the build artifacts for the batch build should be combined into a single artifact location.- Returns:
this
-
restrictions
@Stability(Stable) public CfnProjectPropsMixin.ProjectBuildBatchConfigProperty.Builder restrictions(IResolvable restrictions) Sets the value ofCfnProjectPropsMixin.ProjectBuildBatchConfigProperty.getRestrictions()- Parameters:
restrictions- ABatchRestrictionsobject that specifies the restrictions for the batch build.- Returns:
this
-
restrictions
@Stability(Stable) public CfnProjectPropsMixin.ProjectBuildBatchConfigProperty.Builder restrictions(CfnProjectPropsMixin.BatchRestrictionsProperty restrictions) Sets the value ofCfnProjectPropsMixin.ProjectBuildBatchConfigProperty.getRestrictions()- Parameters:
restrictions- ABatchRestrictionsobject that specifies the restrictions for the batch build.- Returns:
this
-
serviceRole
@Stability(Stable) public CfnProjectPropsMixin.ProjectBuildBatchConfigProperty.Builder serviceRole(String serviceRole) Sets the value ofCfnProjectPropsMixin.ProjectBuildBatchConfigProperty.getServiceRole()- Parameters:
serviceRole- Specifies the service role ARN for the batch build project.- Returns:
this
-
timeoutInMins
@Stability(Stable) public CfnProjectPropsMixin.ProjectBuildBatchConfigProperty.Builder timeoutInMins(Number timeoutInMins) Sets the value ofCfnProjectPropsMixin.ProjectBuildBatchConfigProperty.getTimeoutInMins()- Parameters:
timeoutInMins- Specifies the maximum amount of time, in minutes, that the batch build must be completed in.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnProjectPropsMixin.ProjectBuildBatchConfigProperty>- Returns:
- a new instance of
CfnProjectPropsMixin.ProjectBuildBatchConfigProperty - Throws:
NullPointerException- if any required attribute was not provided
-