@Generated(value="software.amazon.awssdk:codegen") public final class Build extends Object implements SdkPojo, Serializable, ToCopyableBuilder<Build.Builder,Build>
Information about a build.
Modifier and Type | Class and Description |
---|---|
static interface |
Build.Builder |
Modifier and Type | Method and Description |
---|---|
String |
arn()
The Amazon Resource Name (ARN) of the build.
|
BuildArtifacts |
artifacts()
Information about the output artifacts for the build.
|
Boolean |
buildComplete()
Whether the build is complete.
|
static Build.Builder |
builder() |
StatusType |
buildStatus()
The current status of the build.
|
String |
buildStatusAsString()
The current status of the build.
|
ProjectCache |
cache()
Information about the cache for the build.
|
String |
currentPhase()
The current build phase.
|
String |
encryptionKey()
The AWS Key Management Service (AWS KMS) customer master key (CMK) to be used for encrypting the build output
artifacts.
|
Instant |
endTime()
When the build process ended, expressed in Unix time format.
|
ProjectEnvironment |
environment()
Information about the build environment for this build.
|
boolean |
equals(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
String |
id()
The unique ID for the build.
|
String |
initiator()
The entity that started the build.
|
LogsLocation |
logs()
Information about the build's logs in Amazon CloudWatch Logs.
|
NetworkInterface |
networkInterface()
Describes a network interface.
|
List<BuildPhase> |
phases()
Information about all previous build phases that are complete and information about any current build phase that
is not yet complete.
|
String |
projectName()
The name of the AWS CodeBuild project.
|
Integer |
queuedTimeoutInMinutes()
The number of minutes a build is allowed to be queued before it times out.
|
String |
resolvedSourceVersion()
An identifier for the version of this build's source code.
|
List<SdkField<?>> |
sdkFields() |
List<BuildArtifacts> |
secondaryArtifacts()
An array of
ProjectArtifacts objects. |
List<ProjectSource> |
secondarySources()
An array of
ProjectSource objects. |
List<ProjectSourceVersion> |
secondarySourceVersions()
An array of
ProjectSourceVersion objects. |
static Class<? extends Build.Builder> |
serializableBuilderClass() |
String |
serviceRole()
The name of a service role used for this build.
|
ProjectSource |
source()
Information about the source code to be built.
|
String |
sourceVersion()
Any version identifier for the version of the source code to be built.
|
Instant |
startTime()
When the build process started, expressed in Unix time format.
|
Integer |
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 |
toBuilder()
Take this object and create a builder that contains all of the current property values of this object.
|
String |
toString() |
VpcConfig |
vpcConfig()
If your AWS CodeBuild project accesses resources in an Amazon VPC, you provide this parameter that identifies the
VPC ID and the list of security group IDs and subnet IDs.
|
copy
public String id()
The unique ID for the build.
public String arn()
The Amazon Resource Name (ARN) of the build.
public Instant startTime()
When the build process started, expressed in Unix time format.
public Instant endTime()
When the build process ended, expressed in Unix time format.
public String currentPhase()
The current build phase.
public 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.
If the service returns an enum value that is not available in the current SDK version, buildStatus
will
return StatusType.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available from
buildStatusAsString()
.
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
public String buildStatusAsString()
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.
If the service returns an enum value that is not available in the current SDK version, buildStatus
will
return StatusType.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available from
buildStatusAsString()
.
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
public String sourceVersion()
Any version identifier for the version of the source code to be built.
public String resolvedSourceVersion()
An identifier for the version of this build's source code.
For AWS CodeCommit, GitHub, GitHub Enterprise, and BitBucket, the commit ID.
For AWS CodePipeline, the source revision provided by AWS CodePipeline.
For Amazon Simple Storage Service (Amazon S3), this does not apply.
For AWS CodeCommit, GitHub, GitHub Enterprise, and BitBucket, the commit ID.
For AWS CodePipeline, the source revision provided by AWS CodePipeline.
For Amazon Simple Storage Service (Amazon S3), this does not apply.
public String projectName()
The name of the AWS CodeBuild project.
public List<BuildPhase> phases()
Information about all previous build phases that are complete and information about any current build phase that is not yet complete.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
public ProjectSource source()
Information about the source code to be built.
public List<ProjectSource> secondarySources()
An array of ProjectSource
objects.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
ProjectSource
objects.public List<ProjectSourceVersion> secondarySourceVersions()
An array of ProjectSourceVersion
objects. Each ProjectSourceVersion
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 is used. If not specified, the default branch's HEAD commit ID is 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 is used. If not specified, the default branch's HEAD commit ID is used.
For Amazon Simple Storage Service (Amazon S3): the version ID of the object that represents the build input ZIP file to use.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
ProjectSourceVersion
objects. Each ProjectSourceVersion
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 is used. If not specified, the default branch's HEAD commit ID is 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 is used. If not specified, the default branch's HEAD commit ID is used.
For Amazon Simple Storage Service (Amazon S3): the version ID of the object that represents the build input ZIP file to use.
public BuildArtifacts artifacts()
Information about the output artifacts for the build.
public List<BuildArtifacts> secondaryArtifacts()
An array of ProjectArtifacts
objects.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
ProjectArtifacts
objects.public ProjectCache cache()
Information about the cache for the build.
public ProjectEnvironment environment()
Information about the build environment for this build.
public String serviceRole()
The name of a service role used for this build.
public LogsLocation logs()
Information about the build's logs in Amazon CloudWatch Logs.
public Integer timeoutInMinutes()
How long, in minutes, for AWS CodeBuild to wait before timing out this build if it does not get marked as completed.
public Integer queuedTimeoutInMinutes()
The number of minutes a build is allowed to be queued before it times out.
public Boolean buildComplete()
Whether the build is complete. True if complete; otherwise, false.
public 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
.
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
.
public VpcConfig vpcConfig()
If your AWS CodeBuild project accesses resources in an Amazon VPC, you provide this parameter that identifies the VPC ID and the list of security group IDs and subnet IDs. The security groups and subnets must belong to the same VPC. You must provide at least one security group and one subnet ID.
public NetworkInterface networkInterface()
Describes a network interface.
public String encryptionKey()
The AWS Key Management Service (AWS KMS) customer master key (CMK) to be used for encrypting the build output artifacts.
This is expressed either as the Amazon Resource Name (ARN) of the CMK or, if specified, the CMK's alias (using
the format alias/alias-name
).
This is expressed either as the Amazon Resource Name (ARN) of the CMK or, if specified, the CMK's alias
(using the format alias/alias-name
).
public Build.Builder toBuilder()
ToCopyableBuilder
toBuilder
in interface ToCopyableBuilder<Build.Builder,Build>
public static Build.Builder builder()
public static Class<? extends Build.Builder> serializableBuilderClass()
Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.