@Stability(value=Experimental) public static final class BuildEnvironment.Builder extends Object implements software.amazon.jsii.Builder<BuildEnvironment>
BuildEnvironment| Constructor and Description |
|---|
Builder() |
| Modifier and Type | Method and Description |
|---|---|
BuildEnvironment |
build()
Builds the configured instance.
|
BuildEnvironment.Builder |
buildImage(IBuildImage buildImage)
Sets the value of
BuildEnvironment.getBuildImage() |
BuildEnvironment.Builder |
computeType(ComputeType computeType)
Sets the value of
BuildEnvironment.getComputeType() |
BuildEnvironment.Builder |
environmentVariables(Map<String,? extends BuildEnvironmentVariable> environmentVariables)
Sets the value of
BuildEnvironment.getEnvironmentVariables() |
BuildEnvironment.Builder |
privileged(Boolean privileged)
Sets the value of
BuildEnvironment.getPrivileged() |
@Stability(value=Experimental) public BuildEnvironment.Builder buildImage(IBuildImage buildImage)
BuildEnvironment.getBuildImage()buildImage - The image used for the builds.this@Stability(value=Experimental) public BuildEnvironment.Builder computeType(ComputeType computeType)
BuildEnvironment.getComputeType()computeType - The type of compute to use for this build.
See the {@link ComputeType} enum for the possible values.this@Stability(value=Experimental) public BuildEnvironment.Builder environmentVariables(Map<String,? extends BuildEnvironmentVariable> environmentVariables)
BuildEnvironment.getEnvironmentVariables()environmentVariables - The environment variables that your builds can use.this@Stability(value=Experimental) public BuildEnvironment.Builder privileged(Boolean privileged)
BuildEnvironment.getPrivileged()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.this@Stability(value=Experimental) public BuildEnvironment build()
build in interface software.amazon.jsii.Builder<BuildEnvironment>BuildEnvironmentNullPointerException - if any required attribute was not providedCopyright © 2021. All rights reserved.