public static final class BuildEnvironment.Builder extends Object
BuildEnvironment| Constructor and Description |
|---|
Builder() |
| Modifier and Type | Method and Description |
|---|---|
BuildEnvironment |
build()
Builds the configured instance.
|
BuildEnvironment.Builder |
withBuildImage(IBuildImage value)
Sets the value of BuildImage
|
BuildEnvironment.Builder |
withComputeType(ComputeType value)
Sets the value of ComputeType
|
BuildEnvironment.Builder |
withEnvironmentVariables(Map<String,BuildEnvironmentVariable> value)
Sets the value of EnvironmentVariables
|
BuildEnvironment.Builder |
withPrivileged(Boolean value)
Sets the value of Privileged
|
public BuildEnvironment.Builder withBuildImage(@Nullable IBuildImage value)
value - The image used for the builds.thispublic BuildEnvironment.Builder withComputeType(@Nullable ComputeType value)
value - The type of compute to use for this build.
See the ComputeType enum for the possible values.thispublic BuildEnvironment.Builder withEnvironmentVariables(@Nullable Map<String,BuildEnvironmentVariable> value)
value - The environment variables that your builds can use.thispublic BuildEnvironment.Builder withPrivileged(@Nullable Boolean value)
value - 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.thispublic BuildEnvironment build()
BuildEnvironmentNullPointerException - if any required attribute was not providedCopyright © 2018. All rights reserved.