public static interface Build.Builder extends CopyableBuilder<Build.Builder,Build>
Modifier and Type | Method and Description |
---|---|
Build.Builder |
arn(String arn)
The Amazon Resource Name (ARN) of the build.
|
Build.Builder |
artifacts(BuildArtifacts artifacts)
Information about the output artifacts for the build.
|
default Build.Builder |
artifacts(Consumer<BuildArtifacts.Builder> artifacts)
Information about the output artifacts for the build.
|
Build.Builder |
buildComplete(Boolean buildComplete)
Whether the build has finished.
|
Build.Builder |
buildStatus(StatusType buildStatus)
The current status of the build.
|
Build.Builder |
buildStatus(String buildStatus)
The current status of the build.
|
Build.Builder |
currentPhase(String currentPhase)
The current build phase.
|
Build.Builder |
endTime(Instant endTime)
When the build process ended, expressed in Unix time format.
|
default Build.Builder |
environment(Consumer<ProjectEnvironment.Builder> environment)
Information about the build environment for this build.
|
Build.Builder |
environment(ProjectEnvironment environment)
Information about the build environment for this build.
|
Build.Builder |
id(String id)
The unique ID for the build.
|
Build.Builder |
initiator(String initiator)
The entity that started the build.
|
default Build.Builder |
logs(Consumer<LogsLocation.Builder> logs)
Information about the build's logs in Amazon CloudWatch Logs.
|
Build.Builder |
logs(LogsLocation logs)
Information about the build's logs in Amazon CloudWatch Logs.
|
Build.Builder |
phases(BuildPhase... phases)
Information about all previous build phases that are completed and information about any current build phase
that is not yet complete.
|
Build.Builder |
phases(Collection<BuildPhase> phases)
Information about all previous build phases that are completed and information about any current build phase
that is not yet complete.
|
Build.Builder |
phases(Consumer<BuildPhase.Builder>... phases)
Information about all previous build phases that are completed and information about any current build phase
that is not yet complete.
|
Build.Builder |
projectName(String projectName)
The name of the build project.
|
default Build.Builder |
source(Consumer<ProjectSource.Builder> source)
Information about the source code to be built.
|
Build.Builder |
source(ProjectSource source)
Information about the source code to be built.
|
Build.Builder |
sourceVersion(String sourceVersion)
Any version identifier for the version of the source code to be built.
|
Build.Builder |
startTime(Instant startTime)
When the build process started, expressed in Unix time format.
|
Build.Builder |
timeoutInMinutes(Integer timeoutInMinutes)
How long, in minutes, for AWS CodeBuild to wait before timing out this build if it does not get marked as
completed.
|
copy
applyMutation, build
Build.Builder id(String id)
The unique ID for the build.
id
- The unique ID for the build.Build.Builder arn(String arn)
The Amazon Resource Name (ARN) of the build.
arn
- The Amazon Resource Name (ARN) of the build.Build.Builder startTime(Instant startTime)
When the build process started, expressed in Unix time format.
startTime
- When the build process started, expressed in Unix time format.Build.Builder endTime(Instant endTime)
When the build process ended, expressed in Unix time format.
endTime
- When the build process ended, expressed in Unix time format.Build.Builder currentPhase(String currentPhase)
The current build phase.
currentPhase
- The current build phase.Build.Builder buildStatus(String buildStatus)
The current status of the build. Valid values include:
FAILED
: The build failed.
FAULT
: The build faulted.
IN_PROGRESS
: The build is still in progress.
STOPPED
: The build stopped.
SUCCEEDED
: The build succeeded.
TIMED_OUT
: The build timed out.
buildStatus
- The current status of the build. Valid values include:
FAILED
: The build failed.
FAULT
: The build faulted.
IN_PROGRESS
: The build is still in progress.
STOPPED
: The build stopped.
SUCCEEDED
: The build succeeded.
TIMED_OUT
: The build timed out.
StatusType
,
StatusType
Build.Builder buildStatus(StatusType buildStatus)
The current status of the build. Valid values include:
FAILED
: The build failed.
FAULT
: The build faulted.
IN_PROGRESS
: The build is still in progress.
STOPPED
: The build stopped.
SUCCEEDED
: The build succeeded.
TIMED_OUT
: The build timed out.
buildStatus
- The current status of the build. Valid values include:
FAILED
: The build failed.
FAULT
: The build faulted.
IN_PROGRESS
: The build is still in progress.
STOPPED
: The build stopped.
SUCCEEDED
: The build succeeded.
TIMED_OUT
: The build timed out.
StatusType
,
StatusType
Build.Builder sourceVersion(String sourceVersion)
Any version identifier for the version of the source code to be built.
sourceVersion
- Any version identifier for the version of the source code to be built.Build.Builder projectName(String projectName)
The name of the build project.
projectName
- The name of the build project.Build.Builder phases(Collection<BuildPhase> phases)
Information about all previous build phases that are completed and information about any current build phase that is not yet complete.
phases
- Information about all previous build phases that are completed and information about any current build
phase that is not yet complete.Build.Builder phases(BuildPhase... phases)
Information about all previous build phases that are completed and information about any current build phase that is not yet complete.
phases
- Information about all previous build phases that are completed and information about any current build
phase that is not yet complete.Build.Builder phases(Consumer<BuildPhase.Builder>... phases)
Information about all previous build phases that are completed and information about any current build phase that is not yet complete.
This is a convenience that creates an instance of theList.Builder
avoiding the need to
create one manually via List#builder()
.
When the Consumer
completes, List.Builder#build()
is called immediately and its
result is passed to #phases(List)
.phases
- a consumer that will call methods on List.Builder
#phases(List)
Build.Builder source(ProjectSource source)
Information about the source code to be built.
source
- Information about the source code to be built.default Build.Builder source(Consumer<ProjectSource.Builder> source)
Information about the source code to be built.
This is a convenience that creates an instance of theProjectSource.Builder
avoiding the need to
create one manually via ProjectSource.builder()
.
When the Consumer
completes, SdkBuilder.build()
is called immediately and its
result is passed to source(ProjectSource)
.source
- a consumer that will call methods on ProjectSource.Builder
source(ProjectSource)
Build.Builder artifacts(BuildArtifacts artifacts)
Information about the output artifacts for the build.
artifacts
- Information about the output artifacts for the build.default Build.Builder artifacts(Consumer<BuildArtifacts.Builder> artifacts)
Information about the output artifacts for the build.
This is a convenience that creates an instance of theBuildArtifacts.Builder
avoiding the need to
create one manually via BuildArtifacts.builder()
.
When the Consumer
completes, SdkBuilder.build()
is called immediately and its
result is passed to artifacts(BuildArtifacts)
.artifacts
- a consumer that will call methods on BuildArtifacts.Builder
artifacts(BuildArtifacts)
Build.Builder environment(ProjectEnvironment environment)
Information about the build environment for this build.
environment
- Information about the build environment for this build.default Build.Builder environment(Consumer<ProjectEnvironment.Builder> environment)
Information about the build environment for this build.
This is a convenience that creates an instance of theProjectEnvironment.Builder
avoiding the need to
create one manually via ProjectEnvironment.builder()
.
When the Consumer
completes, SdkBuilder.build()
is called immediately and its
result is passed to environment(ProjectEnvironment)
.environment
- a consumer that will call methods on ProjectEnvironment.Builder
environment(ProjectEnvironment)
Build.Builder logs(LogsLocation logs)
Information about the build's logs in Amazon CloudWatch Logs.
logs
- Information about the build's logs in Amazon CloudWatch Logs.default Build.Builder logs(Consumer<LogsLocation.Builder> logs)
Information about the build's logs in Amazon CloudWatch Logs.
This is a convenience that creates an instance of theLogsLocation.Builder
avoiding the need to
create one manually via LogsLocation.builder()
.
When the Consumer
completes, SdkBuilder.build()
is called immediately and its
result is passed to logs(LogsLocation)
.logs
- a consumer that will call methods on LogsLocation.Builder
logs(LogsLocation)
Build.Builder timeoutInMinutes(Integer timeoutInMinutes)
How long, in minutes, for AWS CodeBuild to wait before timing out this build if it does not get marked as completed.
timeoutInMinutes
- How long, in minutes, for AWS CodeBuild to wait before timing out this build if it does not get marked
as completed.Build.Builder buildComplete(Boolean buildComplete)
Whether the build has finished. True if completed; otherwise, false.
buildComplete
- Whether the build has finished. True if completed; otherwise, false.Build.Builder initiator(String initiator)
The entity that started the build. Valid values include:
If AWS CodePipeline started the build, the pipeline's name (for example,
codepipeline/my-demo-pipeline
).
If an AWS Identity and Access Management (IAM) user started the build, the user's name (for example
MyUserName
).
If the Jenkins plugin for AWS CodeBuild started the build, the string CodeBuild-Jenkins-Plugin
.
initiator
- The entity that started the build. Valid values include:
If AWS CodePipeline started the build, the pipeline's name (for example,
codepipeline/my-demo-pipeline
).
If an AWS Identity and Access Management (IAM) user started the build, the user's name (for example
MyUserName
).
If the Jenkins plugin for AWS CodeBuild started the build, the string
CodeBuild-Jenkins-Plugin
.
Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.