@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class StartBuildRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
NOOP
Constructor and Description |
---|
StartBuildRequest() |
Modifier and Type | Method and Description |
---|---|
StartBuildRequest |
clone()
Creates a shallow clone of this object for all fields except the handler context.
|
boolean |
equals(Object obj) |
ProjectArtifacts |
getArtifactsOverride()
Build output artifact settings that override, for this build only, the latest ones already defined in the build
project.
|
String |
getBuildspecOverride()
A build spec declaration that overrides, for this build only, the latest one already defined in the build
project.
|
List<EnvironmentVariable> |
getEnvironmentVariablesOverride()
A set of environment variables that overrides, for this build only, the latest ones already defined in the build
project.
|
String |
getProjectName()
The name of the build project to start running a build.
|
String |
getSourceVersion()
A version of the build input to be built, for this build only.
|
Integer |
getTimeoutInMinutesOverride()
The number of build timeout minutes, from 5 to 480 (8 hours), that overrides, for this build only, the latest
setting already defined in the build project.
|
int |
hashCode() |
void |
setArtifactsOverride(ProjectArtifacts artifactsOverride)
Build output artifact settings that override, for this build only, the latest ones already defined in the build
project.
|
void |
setBuildspecOverride(String buildspecOverride)
A build spec declaration that overrides, for this build only, the latest one already defined in the build
project.
|
void |
setEnvironmentVariablesOverride(Collection<EnvironmentVariable> environmentVariablesOverride)
A set of environment variables that overrides, for this build only, the latest ones already defined in the build
project.
|
void |
setProjectName(String projectName)
The name of the build project to start running a build.
|
void |
setSourceVersion(String sourceVersion)
A version of the build input to be built, for this build only.
|
void |
setTimeoutInMinutesOverride(Integer timeoutInMinutesOverride)
The number of build timeout minutes, from 5 to 480 (8 hours), that overrides, for this build only, the latest
setting already defined in the build project.
|
String |
toString()
Returns a string representation of this object; useful for testing and debugging.
|
StartBuildRequest |
withArtifactsOverride(ProjectArtifacts artifactsOverride)
Build output artifact settings that override, for this build only, the latest ones already defined in the build
project.
|
StartBuildRequest |
withBuildspecOverride(String buildspecOverride)
A build spec declaration that overrides, for this build only, the latest one already defined in the build
project.
|
StartBuildRequest |
withEnvironmentVariablesOverride(Collection<EnvironmentVariable> environmentVariablesOverride)
A set of environment variables that overrides, for this build only, the latest ones already defined in the build
project.
|
StartBuildRequest |
withEnvironmentVariablesOverride(EnvironmentVariable... environmentVariablesOverride)
A set of environment variables that overrides, for this build only, the latest ones already defined in the build
project.
|
StartBuildRequest |
withProjectName(String projectName)
The name of the build project to start running a build.
|
StartBuildRequest |
withSourceVersion(String sourceVersion)
A version of the build input to be built, for this build only.
|
StartBuildRequest |
withTimeoutInMinutesOverride(Integer timeoutInMinutesOverride)
The number of build timeout minutes, from 5 to 480 (8 hours), that overrides, for this build only, the latest
setting already defined in the build project.
|
addHandlerContext, getCloneRoot, getCloneSource, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getHandlerContext, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestCredentialsProvider, getRequestMetricCollector, getSdkClientExecutionTimeout, getSdkRequestTimeout, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestCredentialsProvider, setRequestMetricCollector, setSdkClientExecutionTimeout, setSdkRequestTimeout, withGeneralProgressListener, withRequestCredentialsProvider, withRequestMetricCollector, withSdkClientExecutionTimeout, withSdkRequestTimeout
public void setProjectName(String projectName)
The name of the build project to start running a build.
projectName
- The name of the build project to start running a build.public String getProjectName()
The name of the build project to start running a build.
public StartBuildRequest withProjectName(String projectName)
The name of the build project to start running a build.
projectName
- The name of the build project to start running a build.public void setSourceVersion(String sourceVersion)
A version of the build input to be built, for this build only. If not specified, the latest version will be used. If specified, 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 will be used. If not specified, the default branch's HEAD commit ID will be 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 will be used. If not specified, the default branch's HEAD commit ID will be used.
For Amazon Simple Storage Service (Amazon S3): the version ID of the object representing the build input ZIP file to use.
sourceVersion
- A version of the build input to be built, for this build only. If not specified, the latest version will
be used. If specified, 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 will be used. If not specified, the default branch's HEAD commit ID will be 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 will be used. If not specified, the default branch's HEAD commit ID will be used.
For Amazon Simple Storage Service (Amazon S3): the version ID of the object representing the build input ZIP file to use.
public String getSourceVersion()
A version of the build input to be built, for this build only. If not specified, the latest version will be used. If specified, 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 will be used. If not specified, the default branch's HEAD commit ID will be 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 will be used. If not specified, the default branch's HEAD commit ID will be used.
For Amazon Simple Storage Service (Amazon S3): the version ID of the object representing the build input ZIP file to use.
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 will be used. If not specified, the default branch's HEAD commit ID will be 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 will be used. If not specified, the default branch's HEAD commit ID will be used.
For Amazon Simple Storage Service (Amazon S3): the version ID of the object representing the build input ZIP file to use.
public StartBuildRequest withSourceVersion(String sourceVersion)
A version of the build input to be built, for this build only. If not specified, the latest version will be used. If specified, 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 will be used. If not specified, the default branch's HEAD commit ID will be 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 will be used. If not specified, the default branch's HEAD commit ID will be used.
For Amazon Simple Storage Service (Amazon S3): the version ID of the object representing the build input ZIP file to use.
sourceVersion
- A version of the build input to be built, for this build only. If not specified, the latest version will
be used. If specified, 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 will be used. If not specified, the default branch's HEAD commit ID will be 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 will be used. If not specified, the default branch's HEAD commit ID will be used.
For Amazon Simple Storage Service (Amazon S3): the version ID of the object representing the build input ZIP file to use.
public void setArtifactsOverride(ProjectArtifacts artifactsOverride)
Build output artifact settings that override, for this build only, the latest ones already defined in the build project.
artifactsOverride
- Build output artifact settings that override, for this build only, the latest ones already defined in the
build project.public ProjectArtifacts getArtifactsOverride()
Build output artifact settings that override, for this build only, the latest ones already defined in the build project.
public StartBuildRequest withArtifactsOverride(ProjectArtifacts artifactsOverride)
Build output artifact settings that override, for this build only, the latest ones already defined in the build project.
artifactsOverride
- Build output artifact settings that override, for this build only, the latest ones already defined in the
build project.public List<EnvironmentVariable> getEnvironmentVariablesOverride()
A set of environment variables that overrides, for this build only, the latest ones already defined in the build project.
public void setEnvironmentVariablesOverride(Collection<EnvironmentVariable> environmentVariablesOverride)
A set of environment variables that overrides, for this build only, the latest ones already defined in the build project.
environmentVariablesOverride
- A set of environment variables that overrides, for this build only, the latest ones already defined in the
build project.public StartBuildRequest withEnvironmentVariablesOverride(EnvironmentVariable... environmentVariablesOverride)
A set of environment variables that overrides, for this build only, the latest ones already defined in the build project.
NOTE: This method appends the values to the existing list (if any). Use
setEnvironmentVariablesOverride(java.util.Collection)
or
withEnvironmentVariablesOverride(java.util.Collection)
if you want to override the existing values.
environmentVariablesOverride
- A set of environment variables that overrides, for this build only, the latest ones already defined in the
build project.public StartBuildRequest withEnvironmentVariablesOverride(Collection<EnvironmentVariable> environmentVariablesOverride)
A set of environment variables that overrides, for this build only, the latest ones already defined in the build project.
environmentVariablesOverride
- A set of environment variables that overrides, for this build only, the latest ones already defined in the
build project.public void setBuildspecOverride(String buildspecOverride)
A build spec declaration that overrides, for this build only, the latest one already defined in the build project.
buildspecOverride
- A build spec declaration that overrides, for this build only, the latest one already defined in the build
project.public String getBuildspecOverride()
A build spec declaration that overrides, for this build only, the latest one already defined in the build project.
public StartBuildRequest withBuildspecOverride(String buildspecOverride)
A build spec declaration that overrides, for this build only, the latest one already defined in the build project.
buildspecOverride
- A build spec declaration that overrides, for this build only, the latest one already defined in the build
project.public void setTimeoutInMinutesOverride(Integer timeoutInMinutesOverride)
The number of build timeout minutes, from 5 to 480 (8 hours), that overrides, for this build only, the latest setting already defined in the build project.
timeoutInMinutesOverride
- The number of build timeout minutes, from 5 to 480 (8 hours), that overrides, for this build only, the
latest setting already defined in the build project.public Integer getTimeoutInMinutesOverride()
The number of build timeout minutes, from 5 to 480 (8 hours), that overrides, for this build only, the latest setting already defined in the build project.
public StartBuildRequest withTimeoutInMinutesOverride(Integer timeoutInMinutesOverride)
The number of build timeout minutes, from 5 to 480 (8 hours), that overrides, for this build only, the latest setting already defined in the build project.
timeoutInMinutesOverride
- The number of build timeout minutes, from 5 to 480 (8 hours), that overrides, for this build only, the
latest setting already defined in the build project.public String toString()
toString
in class Object
Object.toString()
public StartBuildRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()
Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.