Class BuildEnvironment.Builder
java.lang.Object
software.amazon.awscdk.services.codebuild.BuildEnvironment.Builder
- All Implemented Interfaces:
- software.amazon.jsii.Builder<BuildEnvironment>
- Enclosing interface:
- BuildEnvironment
@Stability(Stable)
public static final class BuildEnvironment.Builder
extends Object
implements software.amazon.jsii.Builder<BuildEnvironment>
A builder for 
BuildEnvironment- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionbuild()Builds the configured instance.buildImage(IBuildImage buildImage) Sets the value ofBuildEnvironment.getBuildImage()certificate(BuildEnvironmentCertificate certificate) Sets the value ofBuildEnvironment.getCertificate()computeType(ComputeType computeType) Sets the value ofBuildEnvironment.getComputeType()dockerServer(DockerServerOptions dockerServer) Sets the value ofBuildEnvironment.getDockerServer()environmentVariables(Map<String, ? extends BuildEnvironmentVariable> environmentVariables) Sets the value ofBuildEnvironment.getEnvironmentVariables()Sets the value ofBuildEnvironment.getFleet()privileged(Boolean privileged) Sets the value ofBuildEnvironment.getPrivileged()
- 
Constructor Details- 
Builderpublic Builder()
 
- 
- 
Method Details- 
buildImageSets the value ofBuildEnvironment.getBuildImage()- Parameters:
- buildImage- The image used for the builds.
- Returns:
- this
 
- 
certificate@Stability(Stable) public BuildEnvironment.Builder certificate(BuildEnvironmentCertificate certificate) Sets the value ofBuildEnvironment.getCertificate()- Parameters:
- certificate- The location of the PEM-encoded certificate for the build project.
- Returns:
- this
 
- 
computeTypeSets the value ofBuildEnvironment.getComputeType()- Parameters:
- computeType- The type of compute to use for this build. See the- ComputeTypeenum for the possible values.
- Returns:
- this
 
- 
dockerServerSets the value ofBuildEnvironment.getDockerServer()- Parameters:
- dockerServer- The Docker server configuration CodeBuild use to build your Docker image.
- Returns:
- this
 
- 
environmentVariables@Stability(Stable) public BuildEnvironment.Builder environmentVariables(Map<String, ? extends BuildEnvironmentVariable> environmentVariables) Sets the value ofBuildEnvironment.getEnvironmentVariables()- Parameters:
- environmentVariables- The environment variables that your builds can use.
- Returns:
- this
 
- 
fleetSets the value ofBuildEnvironment.getFleet()- Parameters:
- fleet- Fleet resource for a reserved capacity CodeBuild project. Fleets allow for process builds or tests to run immediately and reduces build durations, by reserving compute resources for your projects.- You will be charged for the resources in the fleet, even if they are idle. 
- Returns:
- this
 
- 
privilegedSets the value ofBuildEnvironment.getPrivileged()- Parameters:
- privileged- Indicates how the project builds Docker images. Specify true to enable running the Docker daemon inside a Docker container. This value must be set to true only if this build project will be used to build Docker images, and the specified build environment image is not one provided by AWS CodeBuild with Docker support. Otherwise, all associated builds that attempt to interact with the Docker daemon will fail.
- Returns:
- this
 
- 
buildBuilds the configured instance.- Specified by:
- buildin interface- software.amazon.jsii.Builder<BuildEnvironment>
- Returns:
- a new instance of BuildEnvironment
- Throws:
- NullPointerException- if any required attribute was not provided
 
 
-