@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class CreateProjectRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
NOOP
Constructor and Description |
---|
CreateProjectRequest() |
Modifier and Type | Method and Description |
---|---|
CreateProjectRequest |
clone()
Creates a shallow clone of this object for all fields except the handler context.
|
boolean |
equals(Object obj) |
ProjectArtifacts |
getArtifacts()
Information about the build output artifacts for the build project.
|
Boolean |
getBadgeEnabled()
Set this to true to generate a publicly accessible URL for your project's build badge.
|
ProjectBuildBatchConfig |
getBuildBatchConfig()
A ProjectBuildBatchConfig object that defines the batch build options for the project.
|
ProjectCache |
getCache()
Stores recently used information so that it can be quickly accessed at a later time.
|
Integer |
getConcurrentBuildLimit()
The maximum number of concurrent builds that are allowed for this project.
|
String |
getDescription()
A description that makes the build project easy to identify.
|
String |
getEncryptionKey()
The Key Management Service customer master key (CMK) to be used for encrypting the build output artifacts.
|
ProjectEnvironment |
getEnvironment()
Information about the build environment for the build project.
|
List<ProjectFileSystemLocation> |
getFileSystemLocations()
An array of
ProjectFileSystemLocation objects for a CodeBuild build project. |
LogsConfig |
getLogsConfig()
Information about logs for the build project.
|
String |
getName()
The name of the build project.
|
Integer |
getQueuedTimeoutInMinutes()
The number of minutes a build is allowed to be queued before it times out.
|
List<ProjectArtifacts> |
getSecondaryArtifacts()
An array of
ProjectArtifacts objects. |
List<ProjectSource> |
getSecondarySources()
An array of
ProjectSource objects. |
List<ProjectSourceVersion> |
getSecondarySourceVersions()
An array of
ProjectSourceVersion objects. |
String |
getServiceRole()
The ARN of the IAM role that enables CodeBuild to interact with dependent Amazon Web Services services on behalf
of the Amazon Web Services account.
|
ProjectSource |
getSource()
Information about the build input source code for the build project.
|
String |
getSourceVersion()
A version of the build input to be built for this project.
|
List<Tag> |
getTags()
A list of tag key and value pairs associated with this build project.
|
Integer |
getTimeoutInMinutes()
How long, in minutes, from 5 to 2160 (36 hours), for CodeBuild to wait before it times out any build that has not
been marked as completed.
|
VpcConfig |
getVpcConfig()
VpcConfig enables CodeBuild to access resources in an Amazon VPC.
|
int |
hashCode() |
Boolean |
isBadgeEnabled()
Set this to true to generate a publicly accessible URL for your project's build badge.
|
void |
setArtifacts(ProjectArtifacts artifacts)
Information about the build output artifacts for the build project.
|
void |
setBadgeEnabled(Boolean badgeEnabled)
Set this to true to generate a publicly accessible URL for your project's build badge.
|
void |
setBuildBatchConfig(ProjectBuildBatchConfig buildBatchConfig)
A ProjectBuildBatchConfig object that defines the batch build options for the project.
|
void |
setCache(ProjectCache cache)
Stores recently used information so that it can be quickly accessed at a later time.
|
void |
setConcurrentBuildLimit(Integer concurrentBuildLimit)
The maximum number of concurrent builds that are allowed for this project.
|
void |
setDescription(String description)
A description that makes the build project easy to identify.
|
void |
setEncryptionKey(String encryptionKey)
The Key Management Service customer master key (CMK) to be used for encrypting the build output artifacts.
|
void |
setEnvironment(ProjectEnvironment environment)
Information about the build environment for the build project.
|
void |
setFileSystemLocations(Collection<ProjectFileSystemLocation> fileSystemLocations)
An array of
ProjectFileSystemLocation objects for a CodeBuild build project. |
void |
setLogsConfig(LogsConfig logsConfig)
Information about logs for the build project.
|
void |
setName(String name)
The name of the build project.
|
void |
setQueuedTimeoutInMinutes(Integer queuedTimeoutInMinutes)
The number of minutes a build is allowed to be queued before it times out.
|
void |
setSecondaryArtifacts(Collection<ProjectArtifacts> secondaryArtifacts)
An array of
ProjectArtifacts objects. |
void |
setSecondarySources(Collection<ProjectSource> secondarySources)
An array of
ProjectSource objects. |
void |
setSecondarySourceVersions(Collection<ProjectSourceVersion> secondarySourceVersions)
An array of
ProjectSourceVersion objects. |
void |
setServiceRole(String serviceRole)
The ARN of the IAM role that enables CodeBuild to interact with dependent Amazon Web Services services on behalf
of the Amazon Web Services account.
|
void |
setSource(ProjectSource source)
Information about the build input source code for the build project.
|
void |
setSourceVersion(String sourceVersion)
A version of the build input to be built for this project.
|
void |
setTags(Collection<Tag> tags)
A list of tag key and value pairs associated with this build project.
|
void |
setTimeoutInMinutes(Integer timeoutInMinutes)
How long, in minutes, from 5 to 2160 (36 hours), for CodeBuild to wait before it times out any build that has not
been marked as completed.
|
void |
setVpcConfig(VpcConfig vpcConfig)
VpcConfig enables CodeBuild to access resources in an Amazon VPC.
|
String |
toString()
Returns a string representation of this object.
|
CreateProjectRequest |
withArtifacts(ProjectArtifacts artifacts)
Information about the build output artifacts for the build project.
|
CreateProjectRequest |
withBadgeEnabled(Boolean badgeEnabled)
Set this to true to generate a publicly accessible URL for your project's build badge.
|
CreateProjectRequest |
withBuildBatchConfig(ProjectBuildBatchConfig buildBatchConfig)
A ProjectBuildBatchConfig object that defines the batch build options for the project.
|
CreateProjectRequest |
withCache(ProjectCache cache)
Stores recently used information so that it can be quickly accessed at a later time.
|
CreateProjectRequest |
withConcurrentBuildLimit(Integer concurrentBuildLimit)
The maximum number of concurrent builds that are allowed for this project.
|
CreateProjectRequest |
withDescription(String description)
A description that makes the build project easy to identify.
|
CreateProjectRequest |
withEncryptionKey(String encryptionKey)
The Key Management Service customer master key (CMK) to be used for encrypting the build output artifacts.
|
CreateProjectRequest |
withEnvironment(ProjectEnvironment environment)
Information about the build environment for the build project.
|
CreateProjectRequest |
withFileSystemLocations(Collection<ProjectFileSystemLocation> fileSystemLocations)
An array of
ProjectFileSystemLocation objects for a CodeBuild build project. |
CreateProjectRequest |
withFileSystemLocations(ProjectFileSystemLocation... fileSystemLocations)
An array of
ProjectFileSystemLocation objects for a CodeBuild build project. |
CreateProjectRequest |
withLogsConfig(LogsConfig logsConfig)
Information about logs for the build project.
|
CreateProjectRequest |
withName(String name)
The name of the build project.
|
CreateProjectRequest |
withQueuedTimeoutInMinutes(Integer queuedTimeoutInMinutes)
The number of minutes a build is allowed to be queued before it times out.
|
CreateProjectRequest |
withSecondaryArtifacts(Collection<ProjectArtifacts> secondaryArtifacts)
An array of
ProjectArtifacts objects. |
CreateProjectRequest |
withSecondaryArtifacts(ProjectArtifacts... secondaryArtifacts)
An array of
ProjectArtifacts objects. |
CreateProjectRequest |
withSecondarySources(Collection<ProjectSource> secondarySources)
An array of
ProjectSource objects. |
CreateProjectRequest |
withSecondarySources(ProjectSource... secondarySources)
An array of
ProjectSource objects. |
CreateProjectRequest |
withSecondarySourceVersions(Collection<ProjectSourceVersion> secondarySourceVersions)
An array of
ProjectSourceVersion objects. |
CreateProjectRequest |
withSecondarySourceVersions(ProjectSourceVersion... secondarySourceVersions)
An array of
ProjectSourceVersion objects. |
CreateProjectRequest |
withServiceRole(String serviceRole)
The ARN of the IAM role that enables CodeBuild to interact with dependent Amazon Web Services services on behalf
of the Amazon Web Services account.
|
CreateProjectRequest |
withSource(ProjectSource source)
Information about the build input source code for the build project.
|
CreateProjectRequest |
withSourceVersion(String sourceVersion)
A version of the build input to be built for this project.
|
CreateProjectRequest |
withTags(Collection<Tag> tags)
A list of tag key and value pairs associated with this build project.
|
CreateProjectRequest |
withTags(Tag... tags)
A list of tag key and value pairs associated with this build project.
|
CreateProjectRequest |
withTimeoutInMinutes(Integer timeoutInMinutes)
How long, in minutes, from 5 to 2160 (36 hours), for CodeBuild to wait before it times out any build that has not
been marked as completed.
|
CreateProjectRequest |
withVpcConfig(VpcConfig vpcConfig)
VpcConfig enables CodeBuild to access resources in an Amazon VPC.
|
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 setName(String name)
The name of the build project.
name
- The name of the build project.public String getName()
The name of the build project.
public CreateProjectRequest withName(String name)
The name of the build project.
name
- The name of the build project.public void setDescription(String description)
A description that makes the build project easy to identify.
description
- A description that makes the build project easy to identify.public String getDescription()
A description that makes the build project easy to identify.
public CreateProjectRequest withDescription(String description)
A description that makes the build project easy to identify.
description
- A description that makes the build project easy to identify.public void setSource(ProjectSource source)
Information about the build input source code for the build project.
source
- Information about the build input source code for the build project.public ProjectSource getSource()
Information about the build input source code for the build project.
public CreateProjectRequest withSource(ProjectSource source)
Information about the build input source code for the build project.
source
- Information about the build input source code for the build project.public List<ProjectSource> getSecondarySources()
An array of ProjectSource
objects.
ProjectSource
objects.public void setSecondarySources(Collection<ProjectSource> secondarySources)
An array of ProjectSource
objects.
secondarySources
- An array of ProjectSource
objects.public CreateProjectRequest withSecondarySources(ProjectSource... secondarySources)
An array of ProjectSource
objects.
NOTE: This method appends the values to the existing list (if any). Use
setSecondarySources(java.util.Collection)
or withSecondarySources(java.util.Collection)
if you
want to override the existing values.
secondarySources
- An array of ProjectSource
objects.public CreateProjectRequest withSecondarySources(Collection<ProjectSource> secondarySources)
An array of ProjectSource
objects.
secondarySources
- An array of ProjectSource
objects.public void setSourceVersion(String sourceVersion)
A version of the build input to be built for this project. If not specified, the latest version is used. If specified, it must be one of:
For CodeCommit: the commit ID, branch, or Git tag 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 GitLab: the commit ID, branch, or Git tag to use.
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 S3: the version ID of the object that represents the build input ZIP file to use.
If sourceVersion
is specified at the build level, then that version takes precedence over this
sourceVersion
(at the project level).
For more information, see Source Version Sample with CodeBuild in the CodeBuild User Guide.
sourceVersion
- A version of the build input to be built for this project. If not specified, the latest version is used.
If specified, it must be one of:
For CodeCommit: the commit ID, branch, or Git tag 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 GitLab: the commit ID, branch, or Git tag to use.
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 S3: the version ID of the object that represents the build input ZIP file to use.
If sourceVersion
is specified at the build level, then that version takes precedence over
this sourceVersion
(at the project level).
For more information, see Source Version Sample with CodeBuild in the CodeBuild User Guide.
public String getSourceVersion()
A version of the build input to be built for this project. If not specified, the latest version is used. If specified, it must be one of:
For CodeCommit: the commit ID, branch, or Git tag 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 GitLab: the commit ID, branch, or Git tag to use.
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 S3: the version ID of the object that represents the build input ZIP file to use.
If sourceVersion
is specified at the build level, then that version takes precedence over this
sourceVersion
(at the project level).
For more information, see Source Version Sample with CodeBuild in the CodeBuild User Guide.
For CodeCommit: the commit ID, branch, or Git tag 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 GitLab: the commit ID, branch, or Git tag to use.
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 S3: the version ID of the object that represents the build input ZIP file to use.
If sourceVersion
is specified at the build level, then that version takes precedence over
this sourceVersion
(at the project level).
For more information, see Source Version Sample with CodeBuild in the CodeBuild User Guide.
public CreateProjectRequest withSourceVersion(String sourceVersion)
A version of the build input to be built for this project. If not specified, the latest version is used. If specified, it must be one of:
For CodeCommit: the commit ID, branch, or Git tag 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 GitLab: the commit ID, branch, or Git tag to use.
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 S3: the version ID of the object that represents the build input ZIP file to use.
If sourceVersion
is specified at the build level, then that version takes precedence over this
sourceVersion
(at the project level).
For more information, see Source Version Sample with CodeBuild in the CodeBuild User Guide.
sourceVersion
- A version of the build input to be built for this project. If not specified, the latest version is used.
If specified, it must be one of:
For CodeCommit: the commit ID, branch, or Git tag 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 GitLab: the commit ID, branch, or Git tag to use.
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 S3: the version ID of the object that represents the build input ZIP file to use.
If sourceVersion
is specified at the build level, then that version takes precedence over
this sourceVersion
(at the project level).
For more information, see Source Version Sample with CodeBuild in the CodeBuild User Guide.
public List<ProjectSourceVersion> getSecondarySourceVersions()
An array of ProjectSourceVersion
objects. If secondarySourceVersions
is specified at
the build level, then they take precedence over these secondarySourceVersions
(at the project
level).
ProjectSourceVersion
objects. If secondarySourceVersions
is
specified at the build level, then they take precedence over these secondarySourceVersions
(at the project level).public void setSecondarySourceVersions(Collection<ProjectSourceVersion> secondarySourceVersions)
An array of ProjectSourceVersion
objects. If secondarySourceVersions
is specified at
the build level, then they take precedence over these secondarySourceVersions
(at the project
level).
secondarySourceVersions
- An array of ProjectSourceVersion
objects. If secondarySourceVersions
is
specified at the build level, then they take precedence over these secondarySourceVersions
(at the project level).public CreateProjectRequest withSecondarySourceVersions(ProjectSourceVersion... secondarySourceVersions)
An array of ProjectSourceVersion
objects. If secondarySourceVersions
is specified at
the build level, then they take precedence over these secondarySourceVersions
(at the project
level).
NOTE: This method appends the values to the existing list (if any). Use
setSecondarySourceVersions(java.util.Collection)
or
withSecondarySourceVersions(java.util.Collection)
if you want to override the existing values.
secondarySourceVersions
- An array of ProjectSourceVersion
objects. If secondarySourceVersions
is
specified at the build level, then they take precedence over these secondarySourceVersions
(at the project level).public CreateProjectRequest withSecondarySourceVersions(Collection<ProjectSourceVersion> secondarySourceVersions)
An array of ProjectSourceVersion
objects. If secondarySourceVersions
is specified at
the build level, then they take precedence over these secondarySourceVersions
(at the project
level).
secondarySourceVersions
- An array of ProjectSourceVersion
objects. If secondarySourceVersions
is
specified at the build level, then they take precedence over these secondarySourceVersions
(at the project level).public void setArtifacts(ProjectArtifacts artifacts)
Information about the build output artifacts for the build project.
artifacts
- Information about the build output artifacts for the build project.public ProjectArtifacts getArtifacts()
Information about the build output artifacts for the build project.
public CreateProjectRequest withArtifacts(ProjectArtifacts artifacts)
Information about the build output artifacts for the build project.
artifacts
- Information about the build output artifacts for the build project.public List<ProjectArtifacts> getSecondaryArtifacts()
An array of ProjectArtifacts
objects.
ProjectArtifacts
objects.public void setSecondaryArtifacts(Collection<ProjectArtifacts> secondaryArtifacts)
An array of ProjectArtifacts
objects.
secondaryArtifacts
- An array of ProjectArtifacts
objects.public CreateProjectRequest withSecondaryArtifacts(ProjectArtifacts... secondaryArtifacts)
An array of ProjectArtifacts
objects.
NOTE: This method appends the values to the existing list (if any). Use
setSecondaryArtifacts(java.util.Collection)
or withSecondaryArtifacts(java.util.Collection)
if
you want to override the existing values.
secondaryArtifacts
- An array of ProjectArtifacts
objects.public CreateProjectRequest withSecondaryArtifacts(Collection<ProjectArtifacts> secondaryArtifacts)
An array of ProjectArtifacts
objects.
secondaryArtifacts
- An array of ProjectArtifacts
objects.public void setCache(ProjectCache cache)
Stores recently used information so that it can be quickly accessed at a later time.
cache
- Stores recently used information so that it can be quickly accessed at a later time.public ProjectCache getCache()
Stores recently used information so that it can be quickly accessed at a later time.
public CreateProjectRequest withCache(ProjectCache cache)
Stores recently used information so that it can be quickly accessed at a later time.
cache
- Stores recently used information so that it can be quickly accessed at a later time.public void setEnvironment(ProjectEnvironment environment)
Information about the build environment for the build project.
environment
- Information about the build environment for the build project.public ProjectEnvironment getEnvironment()
Information about the build environment for the build project.
public CreateProjectRequest withEnvironment(ProjectEnvironment environment)
Information about the build environment for the build project.
environment
- Information about the build environment for the build project.public void setServiceRole(String serviceRole)
The ARN of the IAM role that enables CodeBuild to interact with dependent Amazon Web Services services on behalf of the Amazon Web Services account.
serviceRole
- The ARN of the IAM role that enables CodeBuild to interact with dependent Amazon Web Services services on
behalf of the Amazon Web Services account.public String getServiceRole()
The ARN of the IAM role that enables CodeBuild to interact with dependent Amazon Web Services services on behalf of the Amazon Web Services account.
public CreateProjectRequest withServiceRole(String serviceRole)
The ARN of the IAM role that enables CodeBuild to interact with dependent Amazon Web Services services on behalf of the Amazon Web Services account.
serviceRole
- The ARN of the IAM role that enables CodeBuild to interact with dependent Amazon Web Services services on
behalf of the Amazon Web Services account.public void setTimeoutInMinutes(Integer timeoutInMinutes)
How long, in minutes, from 5 to 2160 (36 hours), for CodeBuild to wait before it times out any build that has not been marked as completed. The default is 60 minutes.
timeoutInMinutes
- How long, in minutes, from 5 to 2160 (36 hours), for CodeBuild to wait before it times out any build that
has not been marked as completed. The default is 60 minutes.public Integer getTimeoutInMinutes()
How long, in minutes, from 5 to 2160 (36 hours), for CodeBuild to wait before it times out any build that has not been marked as completed. The default is 60 minutes.
public CreateProjectRequest withTimeoutInMinutes(Integer timeoutInMinutes)
How long, in minutes, from 5 to 2160 (36 hours), for CodeBuild to wait before it times out any build that has not been marked as completed. The default is 60 minutes.
timeoutInMinutes
- How long, in minutes, from 5 to 2160 (36 hours), for CodeBuild to wait before it times out any build that
has not been marked as completed. The default is 60 minutes.public void setQueuedTimeoutInMinutes(Integer queuedTimeoutInMinutes)
The number of minutes a build is allowed to be queued before it times out.
queuedTimeoutInMinutes
- The number of minutes a build is allowed to be queued before it times out.public Integer getQueuedTimeoutInMinutes()
The number of minutes a build is allowed to be queued before it times out.
public CreateProjectRequest withQueuedTimeoutInMinutes(Integer queuedTimeoutInMinutes)
The number of minutes a build is allowed to be queued before it times out.
queuedTimeoutInMinutes
- The number of minutes a build is allowed to be queued before it times out.public void setEncryptionKey(String encryptionKey)
The Key Management Service customer master key (CMK) to be used for encrypting the build output artifacts.
You can use a cross-account KMS key to encrypt the build output artifacts if your service role has permission to that key.
You can specify either the Amazon Resource Name (ARN) of the CMK or, if available, the CMK's alias (using the
format alias/<alias-name>
).
encryptionKey
- The Key Management Service customer master key (CMK) to be used for encrypting the build output
artifacts. You can use a cross-account KMS key to encrypt the build output artifacts if your service role has permission to that key.
You can specify either the Amazon Resource Name (ARN) of the CMK or, if available, the CMK's alias (using
the format alias/<alias-name>
).
public String getEncryptionKey()
The Key Management Service customer master key (CMK) to be used for encrypting the build output artifacts.
You can use a cross-account KMS key to encrypt the build output artifacts if your service role has permission to that key.
You can specify either the Amazon Resource Name (ARN) of the CMK or, if available, the CMK's alias (using the
format alias/<alias-name>
).
You can use a cross-account KMS key to encrypt the build output artifacts if your service role has permission to that key.
You can specify either the Amazon Resource Name (ARN) of the CMK or, if available, the CMK's alias (using
the format alias/<alias-name>
).
public CreateProjectRequest withEncryptionKey(String encryptionKey)
The Key Management Service customer master key (CMK) to be used for encrypting the build output artifacts.
You can use a cross-account KMS key to encrypt the build output artifacts if your service role has permission to that key.
You can specify either the Amazon Resource Name (ARN) of the CMK or, if available, the CMK's alias (using the
format alias/<alias-name>
).
encryptionKey
- The Key Management Service customer master key (CMK) to be used for encrypting the build output
artifacts. You can use a cross-account KMS key to encrypt the build output artifacts if your service role has permission to that key.
You can specify either the Amazon Resource Name (ARN) of the CMK or, if available, the CMK's alias (using
the format alias/<alias-name>
).
public List<Tag> getTags()
A list of tag key and value pairs associated with this build project.
These tags are available for use by Amazon Web Services services that support CodeBuild build project tags.
These tags are available for use by Amazon Web Services services that support CodeBuild build project tags.
public void setTags(Collection<Tag> tags)
A list of tag key and value pairs associated with this build project.
These tags are available for use by Amazon Web Services services that support CodeBuild build project tags.
tags
- A list of tag key and value pairs associated with this build project.
These tags are available for use by Amazon Web Services services that support CodeBuild build project tags.
public CreateProjectRequest withTags(Tag... tags)
A list of tag key and value pairs associated with this build project.
These tags are available for use by Amazon Web Services services that support CodeBuild build project tags.
NOTE: This method appends the values to the existing list (if any). Use
setTags(java.util.Collection)
or withTags(java.util.Collection)
if you want to override the
existing values.
tags
- A list of tag key and value pairs associated with this build project.
These tags are available for use by Amazon Web Services services that support CodeBuild build project tags.
public CreateProjectRequest withTags(Collection<Tag> tags)
A list of tag key and value pairs associated with this build project.
These tags are available for use by Amazon Web Services services that support CodeBuild build project tags.
tags
- A list of tag key and value pairs associated with this build project.
These tags are available for use by Amazon Web Services services that support CodeBuild build project tags.
public void setVpcConfig(VpcConfig vpcConfig)
VpcConfig enables CodeBuild to access resources in an Amazon VPC.
If you're using compute fleets during project creation, do not provide vpcConfig.
vpcConfig
- VpcConfig enables CodeBuild to access resources in an Amazon VPC. If you're using compute fleets during project creation, do not provide vpcConfig.
public VpcConfig getVpcConfig()
VpcConfig enables CodeBuild to access resources in an Amazon VPC.
If you're using compute fleets during project creation, do not provide vpcConfig.
If you're using compute fleets during project creation, do not provide vpcConfig.
public CreateProjectRequest withVpcConfig(VpcConfig vpcConfig)
VpcConfig enables CodeBuild to access resources in an Amazon VPC.
If you're using compute fleets during project creation, do not provide vpcConfig.
vpcConfig
- VpcConfig enables CodeBuild to access resources in an Amazon VPC. If you're using compute fleets during project creation, do not provide vpcConfig.
public void setBadgeEnabled(Boolean badgeEnabled)
Set this to true to generate a publicly accessible URL for your project's build badge.
badgeEnabled
- Set this to true to generate a publicly accessible URL for your project's build badge.public Boolean getBadgeEnabled()
Set this to true to generate a publicly accessible URL for your project's build badge.
public CreateProjectRequest withBadgeEnabled(Boolean badgeEnabled)
Set this to true to generate a publicly accessible URL for your project's build badge.
badgeEnabled
- Set this to true to generate a publicly accessible URL for your project's build badge.public Boolean isBadgeEnabled()
Set this to true to generate a publicly accessible URL for your project's build badge.
public void setLogsConfig(LogsConfig logsConfig)
Information about logs for the build project. These can be logs in CloudWatch Logs, logs uploaded to a specified S3 bucket, or both.
logsConfig
- Information about logs for the build project. These can be logs in CloudWatch Logs, logs uploaded to a
specified S3 bucket, or both.public LogsConfig getLogsConfig()
Information about logs for the build project. These can be logs in CloudWatch Logs, logs uploaded to a specified S3 bucket, or both.
public CreateProjectRequest withLogsConfig(LogsConfig logsConfig)
Information about logs for the build project. These can be logs in CloudWatch Logs, logs uploaded to a specified S3 bucket, or both.
logsConfig
- Information about logs for the build project. These can be logs in CloudWatch Logs, logs uploaded to a
specified S3 bucket, or both.public List<ProjectFileSystemLocation> getFileSystemLocations()
An array of ProjectFileSystemLocation
objects for a CodeBuild build project. A
ProjectFileSystemLocation
object specifies the identifier
, location
,
mountOptions
, mountPoint
, and type
of a file system created using Amazon
Elastic File System.
ProjectFileSystemLocation
objects for a CodeBuild build project. A
ProjectFileSystemLocation
object specifies the identifier
,
location
, mountOptions
, mountPoint
, and type
of a
file system created using Amazon Elastic File System.public void setFileSystemLocations(Collection<ProjectFileSystemLocation> fileSystemLocations)
An array of ProjectFileSystemLocation
objects for a CodeBuild build project. A
ProjectFileSystemLocation
object specifies the identifier
, location
,
mountOptions
, mountPoint
, and type
of a file system created using Amazon
Elastic File System.
fileSystemLocations
- An array of ProjectFileSystemLocation
objects for a CodeBuild build project. A
ProjectFileSystemLocation
object specifies the identifier
, location
, mountOptions
, mountPoint
, and type
of a file system created using
Amazon Elastic File System.public CreateProjectRequest withFileSystemLocations(ProjectFileSystemLocation... fileSystemLocations)
An array of ProjectFileSystemLocation
objects for a CodeBuild build project. A
ProjectFileSystemLocation
object specifies the identifier
, location
,
mountOptions
, mountPoint
, and type
of a file system created using Amazon
Elastic File System.
NOTE: This method appends the values to the existing list (if any). Use
setFileSystemLocations(java.util.Collection)
or withFileSystemLocations(java.util.Collection)
if you want to override the existing values.
fileSystemLocations
- An array of ProjectFileSystemLocation
objects for a CodeBuild build project. A
ProjectFileSystemLocation
object specifies the identifier
, location
, mountOptions
, mountPoint
, and type
of a file system created using
Amazon Elastic File System.public CreateProjectRequest withFileSystemLocations(Collection<ProjectFileSystemLocation> fileSystemLocations)
An array of ProjectFileSystemLocation
objects for a CodeBuild build project. A
ProjectFileSystemLocation
object specifies the identifier
, location
,
mountOptions
, mountPoint
, and type
of a file system created using Amazon
Elastic File System.
fileSystemLocations
- An array of ProjectFileSystemLocation
objects for a CodeBuild build project. A
ProjectFileSystemLocation
object specifies the identifier
, location
, mountOptions
, mountPoint
, and type
of a file system created using
Amazon Elastic File System.public void setBuildBatchConfig(ProjectBuildBatchConfig buildBatchConfig)
A ProjectBuildBatchConfig object that defines the batch build options for the project.
buildBatchConfig
- A ProjectBuildBatchConfig object that defines the batch build options for the project.public ProjectBuildBatchConfig getBuildBatchConfig()
A ProjectBuildBatchConfig object that defines the batch build options for the project.
public CreateProjectRequest withBuildBatchConfig(ProjectBuildBatchConfig buildBatchConfig)
A ProjectBuildBatchConfig object that defines the batch build options for the project.
buildBatchConfig
- A ProjectBuildBatchConfig object that defines the batch build options for the project.public void setConcurrentBuildLimit(Integer concurrentBuildLimit)
The maximum number of concurrent builds that are allowed for this project.
New builds are only started if the current number of builds is less than or equal to this limit. If the current build count meets this limit, new builds are throttled and are not run.
concurrentBuildLimit
- The maximum number of concurrent builds that are allowed for this project.
New builds are only started if the current number of builds is less than or equal to this limit. If the current build count meets this limit, new builds are throttled and are not run.
public Integer getConcurrentBuildLimit()
The maximum number of concurrent builds that are allowed for this project.
New builds are only started if the current number of builds is less than or equal to this limit. If the current build count meets this limit, new builds are throttled and are not run.
New builds are only started if the current number of builds is less than or equal to this limit. If the current build count meets this limit, new builds are throttled and are not run.
public CreateProjectRequest withConcurrentBuildLimit(Integer concurrentBuildLimit)
The maximum number of concurrent builds that are allowed for this project.
New builds are only started if the current number of builds is less than or equal to this limit. If the current build count meets this limit, new builds are throttled and are not run.
concurrentBuildLimit
- The maximum number of concurrent builds that are allowed for this project.
New builds are only started if the current number of builds is less than or equal to this limit. If the current build count meets this limit, new builds are throttled and are not run.
public String toString()
toString
in class Object
Object.toString()
public CreateProjectRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()