Class CfnProject.BatchRestrictionsProperty.Builder
java.lang.Object
software.amazon.awscdk.services.codebuild.CfnProject.BatchRestrictionsProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnProject.BatchRestrictionsProperty>
- Enclosing interface:
- CfnProject.BatchRestrictionsProperty
@Stability(Stable)
public static final class CfnProject.BatchRestrictionsProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnProject.BatchRestrictionsProperty>
A builder for
CfnProject.BatchRestrictionsProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.computeTypesAllowed(List<String> computeTypesAllowed) Sets the value ofCfnProject.BatchRestrictionsProperty.getComputeTypesAllowed()maximumBuildsAllowed(Number maximumBuildsAllowed) Sets the value ofCfnProject.BatchRestrictionsProperty.getMaximumBuildsAllowed()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
computeTypesAllowed
@Stability(Stable) public CfnProject.BatchRestrictionsProperty.Builder computeTypesAllowed(List<String> computeTypesAllowed) Sets the value ofCfnProject.BatchRestrictionsProperty.getComputeTypesAllowed()- Parameters:
computeTypesAllowed- An array of strings that specify the compute types that are allowed for the batch build. See Build environment compute types in the AWS CodeBuild User Guide for these values.- Returns:
this
-
maximumBuildsAllowed
@Stability(Stable) public CfnProject.BatchRestrictionsProperty.Builder maximumBuildsAllowed(Number maximumBuildsAllowed) Sets the value ofCfnProject.BatchRestrictionsProperty.getMaximumBuildsAllowed()- Parameters:
maximumBuildsAllowed- Specifies the maximum number of builds allowed.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnProject.BatchRestrictionsProperty>- Returns:
- a new instance of
CfnProject.BatchRestrictionsProperty - Throws:
NullPointerException- if any required attribute was not provided
-