@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class Build extends Object implements Serializable, Cloneable, StructuredPojo
Information about a build.
Constructor and Description |
---|
Build() |
Modifier and Type | Method and Description |
---|---|
Build |
clone() |
boolean |
equals(Object obj) |
String |
getArn()
The Amazon Resource Name (ARN) of the build.
|
BuildArtifacts |
getArtifacts()
Information about the output artifacts for the build.
|
Boolean |
getBuildComplete()
Whether the build has finished.
|
String |
getBuildStatus()
The current status of the build.
|
String |
getCurrentPhase()
The 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 unique ID for the build.
|
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 are completed and information about any current build phase that
is not yet complete.
|
String |
getProjectName()
The name of the build project.
|
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 before timing out this build if it does not get marked as
completed.
|
int |
hashCode() |
Boolean |
isBuildComplete()
Whether the build has finished.
|
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setArn(String arn)
The Amazon Resource Name (ARN) of the build.
|
void |
setArtifacts(BuildArtifacts artifacts)
Information about the output artifacts for the build.
|
void |
setBuildComplete(Boolean buildComplete)
Whether the build has finished.
|
void |
setBuildStatus(StatusType buildStatus)
The current status of the build.
|
void |
setBuildStatus(String buildStatus)
The current status of the build.
|
void |
setCurrentPhase(String currentPhase)
The 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 unique ID for the build.
|
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 are completed and information about any current build phase that
is not yet complete.
|
void |
setProjectName(String projectName)
The name of the build project.
|
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 before timing out 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 Amazon Resource Name (ARN) of the build.
|
Build |
withArtifacts(BuildArtifacts artifacts)
Information about the output artifacts for the build.
|
Build |
withBuildComplete(Boolean buildComplete)
Whether the build has finished.
|
Build |
withBuildStatus(StatusType buildStatus)
The current status of the build.
|
Build |
withBuildStatus(String buildStatus)
The current status of the build.
|
Build |
withCurrentPhase(String currentPhase)
The 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 unique ID for the build.
|
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 are completed and information about any current build phase that
is not yet complete.
|
Build |
withPhases(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 |
withProjectName(String projectName)
The name of the build project.
|
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 before timing out this build if it does not get marked as
completed.
|
public void setId(String id)
The unique ID for the build.
id
- The unique ID for the build.public String getId()
The unique ID for the build.
public Build withId(String id)
The unique ID for the build.
id
- The unique ID for the build.public void setArn(String arn)
The Amazon Resource Name (ARN) of the build.
arn
- The Amazon Resource Name (ARN) of the build.public String getArn()
The Amazon Resource Name (ARN) of the build.
public Build withArn(String arn)
The Amazon Resource Name (ARN) of the build.
arn
- The Amazon Resource Name (ARN) of the build.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 current build phase.
currentPhase
- The current build phase.public String getCurrentPhase()
The current build phase.
public Build withCurrentPhase(String currentPhase)
The current build phase.
currentPhase
- The current build phase.public void setBuildStatus(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
public String getBuildStatus()
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.
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 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
public void setBuildStatus(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
public Build withBuildStatus(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
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 name of the build project.
projectName
- The name of the build project.public String getProjectName()
The name of the build project.
public Build withProjectName(String projectName)
The name of the build project.
projectName
- The name of the build project.public List<BuildPhase> getPhases()
Information about all previous build phases that are completed and information about any current build phase that is not yet complete.
public void setPhases(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.public Build withPhases(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.public Build withPhases(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.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 output artifacts for the build.
artifacts
- Information about the output artifacts for the build.public BuildArtifacts getArtifacts()
Information about the output artifacts for the build.
public Build withArtifacts(BuildArtifacts artifacts)
Information about the output artifacts for the build.
artifacts
- Information about the output artifacts for the build.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 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.public Integer getTimeoutInMinutes()
How long, in minutes, for AWS CodeBuild to wait before timing out this build if it does not get marked as completed.
public Build withTimeoutInMinutes(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.public void setBuildComplete(Boolean buildComplete)
Whether the build has finished. True if completed; otherwise, false.
buildComplete
- Whether the build has finished. True if completed; otherwise, false.public Boolean getBuildComplete()
Whether the build has finished. True if completed; otherwise, false.
public Build withBuildComplete(Boolean buildComplete)
Whether the build has finished. True if completed; otherwise, false.
buildComplete
- Whether the build has finished. True if completed; otherwise, false.public Boolean isBuildComplete()
Whether the build has finished. 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()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.