public static interface StartBuildRequest.Builder extends CodeBuildRequest.Builder, CopyableBuilder<StartBuildRequest.Builder,StartBuildRequest>
Modifier and Type | Method and Description |
---|---|
default StartBuildRequest.Builder |
artifactsOverride(Consumer<ProjectArtifacts.Builder> artifactsOverride)
Build output artifact settings that override, for this build only, the latest ones already defined in the
build project.
|
StartBuildRequest.Builder |
artifactsOverride(ProjectArtifacts artifactsOverride)
Build output artifact settings that override, for this build only, the latest ones already defined in the
build project.
|
StartBuildRequest.Builder |
buildspecOverride(String buildspecOverride)
A build spec declaration that overrides, for this build only, the latest one already defined in the build
project.
|
StartBuildRequest.Builder |
environmentVariablesOverride(Collection<EnvironmentVariable> environmentVariablesOverride)
A set of environment variables that overrides, for this build only, the latest ones already defined in the
build project.
|
StartBuildRequest.Builder |
environmentVariablesOverride(EnvironmentVariable... environmentVariablesOverride)
A set of environment variables that overrides, for this build only, the latest ones already defined in the
build project.
|
StartBuildRequest.Builder |
projectName(String projectName)
The name of the build project to start running a build.
|
StartBuildRequest.Builder |
requestOverrideConfig(AwsRequestOverrideConfig awsRequestOverrideConfig)
Add an optional request override configuration.
|
StartBuildRequest.Builder |
sourceVersion(String sourceVersion)
A version of the build input to be built, for this build only.
|
StartBuildRequest.Builder |
timeoutInMinutesOverride(Integer timeoutInMinutesOverride)
The number of build timeout minutes, from 5 to 480 (8 hours), that overrides, for this build only, the latest
setting already defined in the build project.
|
build
requestOverrideConfig, requestOverrideConfig
copy
apply, build
StartBuildRequest.Builder projectName(String projectName)
The name of the build project to start running a build.
projectName
- The name of the build project to start running a build.StartBuildRequest.Builder sourceVersion(String sourceVersion)
A version of the build input to be built, for this build only. If not specified, the latest version will be used. If specified, must be one of:
For AWS CodeCommit: the commit ID to use.
For GitHub: the commit ID, pull request ID, branch name, or tag name that corresponds to the version of the
source code you want to build. If a pull request ID is specified, it must use the format
pr/pull-request-ID
(for example pr/25
). If a branch name is specified, the branch's
HEAD commit ID will be used. If not specified, the default branch's HEAD commit ID will be used.
For Bitbucket: the commit ID, branch name, or tag name that corresponds to the version of the source code you want to build. If a branch name is specified, the branch's HEAD commit ID will be used. If not specified, the default branch's HEAD commit ID will be used.
For Amazon Simple Storage Service (Amazon S3): the version ID of the object representing the build input ZIP file to use.
sourceVersion
- A version of the build input to be built, for this build only. If not specified, the latest version
will be used. If specified, must be one of:
For AWS CodeCommit: the commit ID to use.
For GitHub: the commit ID, pull request ID, branch name, or tag name that corresponds to the version
of the source code you want to build. If a pull request ID is specified, it must use the format
pr/pull-request-ID
(for example pr/25
). If a branch name is specified, the
branch's HEAD commit ID will be used. If not specified, the default branch's HEAD commit ID will be
used.
For Bitbucket: the commit ID, branch name, or tag name that corresponds to the version of the source code you want to build. If a branch name is specified, the branch's HEAD commit ID will be used. If not specified, the default branch's HEAD commit ID will be used.
For Amazon Simple Storage Service (Amazon S3): the version ID of the object representing the build input ZIP file to use.
StartBuildRequest.Builder artifactsOverride(ProjectArtifacts artifactsOverride)
Build output artifact settings that override, for this build only, the latest ones already defined in the build project.
artifactsOverride
- Build output artifact settings that override, for this build only, the latest ones already defined in
the build project.default StartBuildRequest.Builder artifactsOverride(Consumer<ProjectArtifacts.Builder> artifactsOverride)
Build output artifact settings that override, for this build only, the latest ones already defined in the build project.
This is a convenience that creates an instance of theProjectArtifacts.Builder
avoiding the need to
create one manually via ProjectArtifacts.builder()
.
When the Consumer
completes, SdkBuilder.build()
is called immediately and its
result is passed to artifactsOverride(ProjectArtifacts)
.artifactsOverride
- a consumer that will call methods on ProjectArtifacts.Builder
artifactsOverride(ProjectArtifacts)
StartBuildRequest.Builder environmentVariablesOverride(Collection<EnvironmentVariable> environmentVariablesOverride)
A set of environment variables that overrides, for this build only, the latest ones already defined in the build project.
environmentVariablesOverride
- A set of environment variables that overrides, for this build only, the latest ones already defined in
the build project.StartBuildRequest.Builder environmentVariablesOverride(EnvironmentVariable... environmentVariablesOverride)
A set of environment variables that overrides, for this build only, the latest ones already defined in the build project.
environmentVariablesOverride
- A set of environment variables that overrides, for this build only, the latest ones already defined in
the build project.StartBuildRequest.Builder buildspecOverride(String buildspecOverride)
A build spec declaration that overrides, for this build only, the latest one already defined in the build project.
buildspecOverride
- A build spec declaration that overrides, for this build only, the latest one already defined in the
build project.StartBuildRequest.Builder timeoutInMinutesOverride(Integer timeoutInMinutesOverride)
The number of build timeout minutes, from 5 to 480 (8 hours), that overrides, for this build only, the latest setting already defined in the build project.
timeoutInMinutesOverride
- The number of build timeout minutes, from 5 to 480 (8 hours), that overrides, for this build only, the
latest setting already defined in the build project.StartBuildRequest.Builder requestOverrideConfig(AwsRequestOverrideConfig awsRequestOverrideConfig)
AwsRequest.Builder
requestOverrideConfig
in interface AwsRequest.Builder
awsRequestOverrideConfig
- The override configuration.Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.