CopyableBuilder<Build.Builder,Build>
, SdkBuilder<Build.Builder,Build>
public static interface Build.Builder extends CopyableBuilder<Build.Builder,Build>
Modifier and Type | Method | 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.
|
Build.Builder |
buildComplete(Boolean buildComplete) |
Whether the build has finished.
|
Build.Builder |
buildStatus(String buildStatus) |
The current status of the build.
|
Build.Builder |
buildStatus(StatusType buildStatus) |
The current status of the build.
|
Build.Builder |
currentPhase(String currentPhase) |
The current build phase.
|
Build.Builder |
endTime(Date endTime) |
When the build process ended, expressed in Unix time format.
|
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.
|
Build.Builder |
logs(LogsLocation logs) |
Information about the build's logs in Amazon CloudWatch Logs.
|
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(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 |
projectName(String projectName) |
The name of the build project.
|
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(Date 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
apply, 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(Date 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(Date 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
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
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.
NOTE: This method appends the values to the existing list (if any). Use
#setPhases(java.util.Collection)
or #withPhases(java.util.Collection)
if you want to override
the existing values.
phases
- Information about all previous build phases that are completed and information about any current build
phase that is not yet complete.Build.Builder source(ProjectSource source)
Information about the source code to be built.
source
- Information about the source code to be built.Build.Builder artifacts(BuildArtifacts artifacts)
Information about the output artifacts for the build.
artifacts
- Information about the output artifacts for the build.Build.Builder environment(ProjectEnvironment environment)
Information about the build environment for this build.
environment
- Information about the build environment for this build.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.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.