@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class Build extends Object implements Serializable, Cloneable
Information about a build.
Constructor and Description |
---|
Build() |
Modifier and Type | Method and Description |
---|---|
Build |
clone() |
boolean |
equals(Object obj) |
String |
getArn()
The build's Amazon Resource Name (ARN).
|
BuildArtifacts |
getArtifacts()
Information about the build's output artifacts.
|
Boolean |
getBuildComplete()
Whether the build has finished.
|
String |
getBuildStatus()
The build's current status.
|
String |
getCurrentPhase()
The build's current build phase.
|
Date |
getEndTime()
When the build process ended, expressed in Unix time format.
|
ProjectEnvironment |
getEnvironment()
Information about the build environment for this build.
|
String |
getId()
The build's unique ID.
|
String |
getInitiator()
The entity that started the build.
|
LogsLocation |
getLogs()
Information about the build's logs in Amazon CloudWatch Logs.
|
List<BuildPhase> |
getPhases()
Information about all previous build phases that have completed, and information about any current build phase
that has not yet completed.
|
String |
getProjectName()
The build project's name.
|
ProjectSource |
getSource()
Information about the source code to be built.
|
String |
getSourceVersion()
Any version identifier for the version of the source code to be built.
|
Date |
getStartTime()
When the build process started, expressed in Unix time format.
|
Integer |
getTimeoutInMinutes()
How long in minutes for AWS CodeBuild to wait to timeout this build if it does not get marked as completed.
|
int |
hashCode() |
Boolean |
isBuildComplete()
Whether the build has finished.
|
void |
setArn(String arn)
The build's Amazon Resource Name (ARN).
|
void |
setArtifacts(BuildArtifacts artifacts)
Information about the build's output artifacts.
|
void |
setBuildComplete(Boolean buildComplete)
Whether the build has finished.
|
void |
setBuildStatus(StatusType buildStatus)
The build's current status.
|
void |
setBuildStatus(String buildStatus)
The build's current status.
|
void |
setCurrentPhase(String currentPhase)
The build's current build phase.
|
void |
setEndTime(Date endTime)
When the build process ended, expressed in Unix time format.
|
void |
setEnvironment(ProjectEnvironment environment)
Information about the build environment for this build.
|
void |
setId(String id)
The build's unique ID.
|
void |
setInitiator(String initiator)
The entity that started the build.
|
void |
setLogs(LogsLocation logs)
Information about the build's logs in Amazon CloudWatch Logs.
|
void |
setPhases(Collection<BuildPhase> phases)
Information about all previous build phases that have completed, and information about any current build phase
that has not yet completed.
|
void |
setProjectName(String projectName)
The build project's name.
|
void |
setSource(ProjectSource source)
Information about the source code to be built.
|
void |
setSourceVersion(String sourceVersion)
Any version identifier for the version of the source code to be built.
|
void |
setStartTime(Date startTime)
When the build process started, expressed in Unix time format.
|
void |
setTimeoutInMinutes(Integer timeoutInMinutes)
How long in minutes for AWS CodeBuild to wait to timeout this build if it does not get marked as completed.
|
String |
toString()
Returns a string representation of this object; useful for testing and debugging.
|
Build |
withArn(String arn)
The build's Amazon Resource Name (ARN).
|
Build |
withArtifacts(BuildArtifacts artifacts)
Information about the build's output artifacts.
|
Build |
withBuildComplete(Boolean buildComplete)
Whether the build has finished.
|
Build |
withBuildStatus(StatusType buildStatus)
The build's current status.
|
Build |
withBuildStatus(String buildStatus)
The build's current status.
|
Build |
withCurrentPhase(String currentPhase)
The build's current build phase.
|
Build |
withEndTime(Date endTime)
When the build process ended, expressed in Unix time format.
|
Build |
withEnvironment(ProjectEnvironment environment)
Information about the build environment for this build.
|
Build |
withId(String id)
The build's unique ID.
|
Build |
withInitiator(String initiator)
The entity that started the build.
|
Build |
withLogs(LogsLocation logs)
Information about the build's logs in Amazon CloudWatch Logs.
|
Build |
withPhases(BuildPhase... phases)
Information about all previous build phases that have completed, and information about any current build phase
that has not yet completed.
|
Build |
withPhases(Collection<BuildPhase> phases)
Information about all previous build phases that have completed, and information about any current build phase
that has not yet completed.
|
Build |
withProjectName(String projectName)
The build project's name.
|
Build |
withSource(ProjectSource source)
Information about the source code to be built.
|
Build |
withSourceVersion(String sourceVersion)
Any version identifier for the version of the source code to be built.
|
Build |
withStartTime(Date startTime)
When the build process started, expressed in Unix time format.
|
Build |
withTimeoutInMinutes(Integer timeoutInMinutes)
How long in minutes for AWS CodeBuild to wait to timeout this build if it does not get marked as completed.
|
public void setId(String id)
The build's unique ID.
id
- The build's unique ID.public String getId()
The build's unique ID.
public Build withId(String id)
The build's unique ID.
id
- The build's unique ID.public void setArn(String arn)
The build's Amazon Resource Name (ARN).
arn
- The build's Amazon Resource Name (ARN).public String getArn()
The build's Amazon Resource Name (ARN).
public Build withArn(String arn)
The build's Amazon Resource Name (ARN).
arn
- The build's Amazon Resource Name (ARN).public void setStartTime(Date startTime)
When the build process started, expressed in Unix time format.
startTime
- When the build process started, expressed in Unix time format.public Date getStartTime()
When the build process started, expressed in Unix time format.
public Build withStartTime(Date startTime)
When the build process started, expressed in Unix time format.
startTime
- When the build process started, expressed in Unix time format.public void setEndTime(Date endTime)
When the build process ended, expressed in Unix time format.
endTime
- When the build process ended, expressed in Unix time format.public Date getEndTime()
When the build process ended, expressed in Unix time format.
public Build withEndTime(Date endTime)
When the build process ended, expressed in Unix time format.
endTime
- When the build process ended, expressed in Unix time format.public void setCurrentPhase(String currentPhase)
The build's current build phase.
currentPhase
- The build's current build phase.public String getCurrentPhase()
The build's current build phase.
public Build withCurrentPhase(String currentPhase)
The build's current build phase.
currentPhase
- The build's current build phase.public void setBuildStatus(String buildStatus)
The build's current status. 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 build's current status. 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
public String getBuildStatus()
The build's current status. 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.
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 Build withBuildStatus(String buildStatus)
The build's current status. 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 build's current status. 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
public void setBuildStatus(StatusType buildStatus)
The build's current status. 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 build's current status. 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
public Build withBuildStatus(StatusType buildStatus)
The build's current status. 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 build's current status. 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
public void setSourceVersion(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.public String getSourceVersion()
Any version identifier for the version of the source code to be built.
public Build withSourceVersion(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.public void setProjectName(String projectName)
The build project's name.
projectName
- The build project's name.public String getProjectName()
The build project's name.
public Build withProjectName(String projectName)
The build project's name.
projectName
- The build project's name.public List<BuildPhase> getPhases()
Information about all previous build phases that have completed, and information about any current build phase that has not yet completed.
public void setPhases(Collection<BuildPhase> phases)
Information about all previous build phases that have completed, and information about any current build phase that has not yet completed.
phases
- Information about all previous build phases that have completed, and information about any current build
phase that has not yet completed.public Build withPhases(BuildPhase... phases)
Information about all previous build phases that have completed, and information about any current build phase that has not yet completed.
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 have completed, and information about any current build
phase that has not yet completed.public Build withPhases(Collection<BuildPhase> phases)
Information about all previous build phases that have completed, and information about any current build phase that has not yet completed.
phases
- Information about all previous build phases that have completed, and information about any current build
phase that has not yet completed.public void setSource(ProjectSource source)
Information about the source code to be built.
source
- Information about the source code to be built.public ProjectSource getSource()
Information about the source code to be built.
public Build withSource(ProjectSource source)
Information about the source code to be built.
source
- Information about the source code to be built.public void setArtifacts(BuildArtifacts artifacts)
Information about the build's output artifacts.
artifacts
- Information about the build's output artifacts.public BuildArtifacts getArtifacts()
Information about the build's output artifacts.
public Build withArtifacts(BuildArtifacts artifacts)
Information about the build's output artifacts.
artifacts
- Information about the build's output artifacts.public void setEnvironment(ProjectEnvironment environment)
Information about the build environment for this build.
environment
- Information about the build environment for this build.public ProjectEnvironment getEnvironment()
Information about the build environment for this build.
public Build withEnvironment(ProjectEnvironment environment)
Information about the build environment for this build.
environment
- Information about the build environment for this build.public void setLogs(LogsLocation logs)
Information about the build's logs in Amazon CloudWatch Logs.
logs
- Information about the build's logs in Amazon CloudWatch Logs.public LogsLocation getLogs()
Information about the build's logs in Amazon CloudWatch Logs.
public Build withLogs(LogsLocation logs)
Information about the build's logs in Amazon CloudWatch Logs.
logs
- Information about the build's logs in Amazon CloudWatch Logs.public void setTimeoutInMinutes(Integer timeoutInMinutes)
How long in minutes for AWS CodeBuild to wait to timeout this build if it does not get marked as completed.
timeoutInMinutes
- How long in minutes for AWS CodeBuild to wait to timeout this build if it does not get marked as
completed.public Integer getTimeoutInMinutes()
How long in minutes for AWS CodeBuild to wait to timeout this build if it does not get marked as completed.
public Build withTimeoutInMinutes(Integer timeoutInMinutes)
How long in minutes for AWS CodeBuild to wait to timeout this build if it does not get marked as completed.
timeoutInMinutes
- How long in minutes for AWS CodeBuild to wait to timeout this build if it does not get marked as
completed.public void setBuildComplete(Boolean buildComplete)
Whether the build has finished. Valid values include true if completed; otherwise, false.
buildComplete
- Whether the build has finished. Valid values include true if completed; otherwise, false.public Boolean getBuildComplete()
Whether the build has finished. Valid values include true if completed; otherwise, false.
public Build withBuildComplete(Boolean buildComplete)
Whether the build has finished. Valid values include true if completed; otherwise, false.
buildComplete
- Whether the build has finished. Valid values include true if completed; otherwise, false.public Boolean isBuildComplete()
Whether the build has finished. Valid values include true if completed; otherwise, false.
public void setInitiator(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
.
public String getInitiator()
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 Build withInitiator(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
.
public String toString()
toString
in class Object
Object.toString()
Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.