Class CfnProject.ProjectBuildBatchConfigProperty.Builder
java.lang.Object
software.amazon.awscdk.services.codebuild.CfnProject.ProjectBuildBatchConfigProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnProject.ProjectBuildBatchConfigProperty>
- Enclosing interface:
CfnProject.ProjectBuildBatchConfigProperty
@Stability(Stable)
public static final class CfnProject.ProjectBuildBatchConfigProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnProject.ProjectBuildBatchConfigProperty>
A builder for
CfnProject.ProjectBuildBatchConfigProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbatchReportMode
(String batchReportMode) Sets the value ofCfnProject.ProjectBuildBatchConfigProperty.getBatchReportMode()
build()
Builds the configured instance.combineArtifacts
(Boolean combineArtifacts) Sets the value ofCfnProject.ProjectBuildBatchConfigProperty.getCombineArtifacts()
combineArtifacts
(IResolvable combineArtifacts) Sets the value ofCfnProject.ProjectBuildBatchConfigProperty.getCombineArtifacts()
restrictions
(IResolvable restrictions) Sets the value ofCfnProject.ProjectBuildBatchConfigProperty.getRestrictions()
restrictions
(CfnProject.BatchRestrictionsProperty restrictions) Sets the value ofCfnProject.ProjectBuildBatchConfigProperty.getRestrictions()
serviceRole
(String serviceRole) Sets the value ofCfnProject.ProjectBuildBatchConfigProperty.getServiceRole()
timeoutInMins
(Number timeoutInMins) Sets the value ofCfnProject.ProjectBuildBatchConfigProperty.getTimeoutInMins()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
batchReportMode
@Stability(Stable) public CfnProject.ProjectBuildBatchConfigProperty.Builder batchReportMode(String batchReportMode) Sets the value ofCfnProject.ProjectBuildBatchConfigProperty.getBatchReportMode()
- 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 CfnProject.ProjectBuildBatchConfigProperty.Builder combineArtifacts(Boolean combineArtifacts) Sets the value ofCfnProject.ProjectBuildBatchConfigProperty.getCombineArtifacts()
- 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 CfnProject.ProjectBuildBatchConfigProperty.Builder combineArtifacts(IResolvable combineArtifacts) Sets the value ofCfnProject.ProjectBuildBatchConfigProperty.getCombineArtifacts()
- 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 CfnProject.ProjectBuildBatchConfigProperty.Builder restrictions(IResolvable restrictions) Sets the value ofCfnProject.ProjectBuildBatchConfigProperty.getRestrictions()
- Parameters:
restrictions
- ABatchRestrictions
object that specifies the restrictions for the batch build.- Returns:
this
-
restrictions
@Stability(Stable) public CfnProject.ProjectBuildBatchConfigProperty.Builder restrictions(CfnProject.BatchRestrictionsProperty restrictions) Sets the value ofCfnProject.ProjectBuildBatchConfigProperty.getRestrictions()
- Parameters:
restrictions
- ABatchRestrictions
object that specifies the restrictions for the batch build.- Returns:
this
-
serviceRole
@Stability(Stable) public CfnProject.ProjectBuildBatchConfigProperty.Builder serviceRole(String serviceRole) Sets the value ofCfnProject.ProjectBuildBatchConfigProperty.getServiceRole()
- Parameters:
serviceRole
- Specifies the service role ARN for the batch build project.- Returns:
this
-
timeoutInMins
@Stability(Stable) public CfnProject.ProjectBuildBatchConfigProperty.Builder timeoutInMins(Number timeoutInMins) Sets the value ofCfnProject.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:
build
in interfacesoftware.amazon.jsii.Builder<CfnProject.ProjectBuildBatchConfigProperty>
- Returns:
- a new instance of
CfnProject.ProjectBuildBatchConfigProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-