public static interface CreateProjectRequest.Builder extends CodeBuildRequest.Builder, SdkPojo, CopyableBuilder<CreateProjectRequest.Builder,CreateProjectRequest>
| Modifier and Type | Method and Description |
|---|---|
default CreateProjectRequest.Builder |
artifacts(Consumer<ProjectArtifacts.Builder> artifacts)
Information about the build output artifacts for the build project.
|
CreateProjectRequest.Builder |
artifacts(ProjectArtifacts artifacts)
Information about the build output artifacts for the build project.
|
CreateProjectRequest.Builder |
badgeEnabled(Boolean badgeEnabled)
Set this to true to generate a publicly accessible URL for your project's build badge.
|
default CreateProjectRequest.Builder |
buildBatchConfig(Consumer<ProjectBuildBatchConfig.Builder> buildBatchConfig)
A ProjectBuildBatchConfig object that defines the batch build options for the project.
|
CreateProjectRequest.Builder |
buildBatchConfig(ProjectBuildBatchConfig buildBatchConfig)
A ProjectBuildBatchConfig object that defines the batch build options for the project.
|
default CreateProjectRequest.Builder |
cache(Consumer<ProjectCache.Builder> cache)
Stores recently used information so that it can be quickly accessed at a later time.
|
CreateProjectRequest.Builder |
cache(ProjectCache cache)
Stores recently used information so that it can be quickly accessed at a later time.
|
CreateProjectRequest.Builder |
concurrentBuildLimit(Integer concurrentBuildLimit)
The maximum number of concurrent builds that are allowed for this project.
|
CreateProjectRequest.Builder |
description(String description)
A description that makes the build project easy to identify.
|
CreateProjectRequest.Builder |
encryptionKey(String encryptionKey)
The AWS Key Management Service (AWS KMS) customer master key (CMK) to be used for encrypting the build output
artifacts.
|
default CreateProjectRequest.Builder |
environment(Consumer<ProjectEnvironment.Builder> environment)
Information about the build environment for the build project.
|
CreateProjectRequest.Builder |
environment(ProjectEnvironment environment)
Information about the build environment for the build project.
|
CreateProjectRequest.Builder |
fileSystemLocations(Collection<ProjectFileSystemLocation> fileSystemLocations)
An array of
ProjectFileSystemLocation objects for a CodeBuild build project. |
CreateProjectRequest.Builder |
fileSystemLocations(Consumer<ProjectFileSystemLocation.Builder>... fileSystemLocations)
An array of
ProjectFileSystemLocation objects for a CodeBuild build project. |
CreateProjectRequest.Builder |
fileSystemLocations(ProjectFileSystemLocation... fileSystemLocations)
An array of
ProjectFileSystemLocation objects for a CodeBuild build project. |
default CreateProjectRequest.Builder |
logsConfig(Consumer<LogsConfig.Builder> logsConfig)
Information about logs for the build project.
|
CreateProjectRequest.Builder |
logsConfig(LogsConfig logsConfig)
Information about logs for the build project.
|
CreateProjectRequest.Builder |
name(String name)
The name of the build project.
|
CreateProjectRequest.Builder |
overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) |
CreateProjectRequest.Builder |
overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) |
CreateProjectRequest.Builder |
queuedTimeoutInMinutes(Integer queuedTimeoutInMinutes)
The number of minutes a build is allowed to be queued before it times out.
|
CreateProjectRequest.Builder |
secondaryArtifacts(Collection<ProjectArtifacts> secondaryArtifacts)
An array of
ProjectArtifacts objects. |
CreateProjectRequest.Builder |
secondaryArtifacts(Consumer<ProjectArtifacts.Builder>... secondaryArtifacts)
An array of
ProjectArtifacts objects. |
CreateProjectRequest.Builder |
secondaryArtifacts(ProjectArtifacts... secondaryArtifacts)
An array of
ProjectArtifacts objects. |
CreateProjectRequest.Builder |
secondarySources(Collection<ProjectSource> secondarySources)
An array of
ProjectSource objects. |
CreateProjectRequest.Builder |
secondarySources(Consumer<ProjectSource.Builder>... secondarySources)
An array of
ProjectSource objects. |
CreateProjectRequest.Builder |
secondarySources(ProjectSource... secondarySources)
An array of
ProjectSource objects. |
CreateProjectRequest.Builder |
secondarySourceVersions(Collection<ProjectSourceVersion> secondarySourceVersions)
An array of
ProjectSourceVersion objects. |
CreateProjectRequest.Builder |
secondarySourceVersions(Consumer<ProjectSourceVersion.Builder>... secondarySourceVersions)
An array of
ProjectSourceVersion objects. |
CreateProjectRequest.Builder |
secondarySourceVersions(ProjectSourceVersion... secondarySourceVersions)
An array of
ProjectSourceVersion objects. |
CreateProjectRequest.Builder |
serviceRole(String serviceRole)
The ARN of the AWS Identity and Access Management (IAM) role that enables AWS CodeBuild to interact with
dependent AWS services on behalf of the AWS account.
|
default CreateProjectRequest.Builder |
source(Consumer<ProjectSource.Builder> source)
Information about the build input source code for the build project.
|
CreateProjectRequest.Builder |
source(ProjectSource source)
Information about the build input source code for the build project.
|
CreateProjectRequest.Builder |
sourceVersion(String sourceVersion)
A version of the build input to be built for this project.
|
CreateProjectRequest.Builder |
tags(Collection<Tag> tags)
A list of tag key and value pairs associated with this build project.
|
CreateProjectRequest.Builder |
tags(Consumer<Tag.Builder>... tags)
A list of tag key and value pairs associated with this build project.
|
CreateProjectRequest.Builder |
tags(Tag... tags)
A list of tag key and value pairs associated with this build project.
|
CreateProjectRequest.Builder |
timeoutInMinutes(Integer timeoutInMinutes)
How long, in minutes, from 5 to 480 (8 hours), for AWS CodeBuild to wait before it times out any build that
has not been marked as completed.
|
default CreateProjectRequest.Builder |
vpcConfig(Consumer<VpcConfig.Builder> vpcConfig)
VpcConfig enables AWS CodeBuild to access resources in an Amazon VPC.
|
CreateProjectRequest.Builder |
vpcConfig(VpcConfig vpcConfig)
VpcConfig enables AWS CodeBuild to access resources in an Amazon VPC.
|
buildoverrideConfigurationequalsBySdkFields, sdkFieldscopyapplyMutation, buildCreateProjectRequest.Builder name(String name)
The name of the build project.
name - The name of the build project.CreateProjectRequest.Builder description(String description)
A description that makes the build project easy to identify.
description - A description that makes the build project easy to identify.CreateProjectRequest.Builder source(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.default CreateProjectRequest.Builder source(Consumer<ProjectSource.Builder> source)
Information about the build input source code for the build project.
This is a convenience that creates an instance of theProjectSource.Builder avoiding the need to
create one manually via ProjectSource.builder().
When the Consumer completes, SdkBuilder.build() is called immediately and its
result is passed to source(ProjectSource).source - a consumer that will call methods on ProjectSource.Buildersource(ProjectSource)CreateProjectRequest.Builder secondarySources(Collection<ProjectSource> secondarySources)
An array of ProjectSource objects.
secondarySources - An array of ProjectSource objects.CreateProjectRequest.Builder secondarySources(ProjectSource... secondarySources)
An array of ProjectSource objects.
secondarySources - An array of ProjectSource objects.CreateProjectRequest.Builder secondarySources(Consumer<ProjectSource.Builder>... secondarySources)
An array of ProjectSource objects.
List.Builder avoiding the need
to create one manually via List#builder() .
When the Consumer completes, List.Builder#build() is called immediately and
its result is passed to #secondarySources(List) .secondarySources - a consumer that will call methods on List.Builder #secondarySources(List) CreateProjectRequest.Builder sourceVersion(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 AWS 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 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 AWS 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 AWS 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 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 AWS CodeBuild User Guide.
CreateProjectRequest.Builder secondarySourceVersions(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).CreateProjectRequest.Builder secondarySourceVersions(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).CreateProjectRequest.Builder secondarySourceVersions(Consumer<ProjectSourceVersion.Builder>... 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).
List.Builder avoiding the
need to create one manually via List#builder() .
When the Consumer completes, List.Builder#build() is called immediately
and its result is passed to #secondarySourceVersions(List) .secondarySourceVersions - a consumer that will call methods on List.Builder #secondarySourceVersions(List) CreateProjectRequest.Builder artifacts(ProjectArtifacts artifacts)
Information about the build output artifacts for the build project.
artifacts - Information about the build output artifacts for the build project.default CreateProjectRequest.Builder artifacts(Consumer<ProjectArtifacts.Builder> artifacts)
Information about the build output artifacts for the build project.
This is a convenience that creates an instance of theProjectArtifacts.Builder avoiding the need to
create one manually via ProjectArtifacts.builder().
When the Consumer completes, SdkBuilder.build() is called immediately and its
result is passed to artifacts(ProjectArtifacts).artifacts - a consumer that will call methods on ProjectArtifacts.Builderartifacts(ProjectArtifacts)CreateProjectRequest.Builder secondaryArtifacts(Collection<ProjectArtifacts> secondaryArtifacts)
An array of ProjectArtifacts objects.
secondaryArtifacts - An array of ProjectArtifacts objects.CreateProjectRequest.Builder secondaryArtifacts(ProjectArtifacts... secondaryArtifacts)
An array of ProjectArtifacts objects.
secondaryArtifacts - An array of ProjectArtifacts objects.CreateProjectRequest.Builder secondaryArtifacts(Consumer<ProjectArtifacts.Builder>... secondaryArtifacts)
An array of ProjectArtifacts objects.
List.Builder avoiding the
need to create one manually via List#builder() .
When the Consumer completes, List.Builder#build() is called immediately and
its result is passed to #secondaryArtifacts(List) .secondaryArtifacts - a consumer that will call methods on List.Builder #secondaryArtifacts(List) CreateProjectRequest.Builder cache(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.default CreateProjectRequest.Builder cache(Consumer<ProjectCache.Builder> cache)
Stores recently used information so that it can be quickly accessed at a later time.
This is a convenience that creates an instance of theProjectCache.Builder avoiding the need to
create one manually via ProjectCache.builder().
When the Consumer completes, SdkBuilder.build() is called immediately and its
result is passed to cache(ProjectCache).cache - a consumer that will call methods on ProjectCache.Buildercache(ProjectCache)CreateProjectRequest.Builder environment(ProjectEnvironment environment)
Information about the build environment for the build project.
environment - Information about the build environment for the build project.default CreateProjectRequest.Builder environment(Consumer<ProjectEnvironment.Builder> environment)
Information about the build environment for the build project.
This is a convenience that creates an instance of theProjectEnvironment.Builder avoiding the need to
create one manually via ProjectEnvironment.builder().
When the Consumer completes, SdkBuilder.build() is called immediately and its
result is passed to environment(ProjectEnvironment).environment - a consumer that will call methods on ProjectEnvironment.Builderenvironment(ProjectEnvironment)CreateProjectRequest.Builder serviceRole(String serviceRole)
The ARN of the AWS Identity and Access Management (IAM) role that enables AWS CodeBuild to interact with dependent AWS services on behalf of the AWS account.
serviceRole - The ARN of the AWS Identity and Access Management (IAM) role that enables AWS CodeBuild to interact
with dependent AWS services on behalf of the AWS account.CreateProjectRequest.Builder timeoutInMinutes(Integer timeoutInMinutes)
How long, in minutes, from 5 to 480 (8 hours), for AWS 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 480 (8 hours), for AWS CodeBuild to wait before it times out any build
that has not been marked as completed. The default is 60 minutes.CreateProjectRequest.Builder queuedTimeoutInMinutes(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.CreateProjectRequest.Builder encryptionKey(String encryptionKey)
The AWS Key Management Service (AWS KMS) 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 AWS Key Management Service (AWS KMS) 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>).
CreateProjectRequest.Builder tags(Collection<Tag> tags)
A list of tag key and value pairs associated with this build project.
These tags are available for use by AWS services that support AWS 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 AWS services that support AWS CodeBuild build project tags.
CreateProjectRequest.Builder tags(Tag... tags)
A list of tag key and value pairs associated with this build project.
These tags are available for use by AWS services that support AWS 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 AWS services that support AWS CodeBuild build project tags.
CreateProjectRequest.Builder tags(Consumer<Tag.Builder>... tags)
A list of tag key and value pairs associated with this build project.
These tags are available for use by AWS services that support AWS CodeBuild build project tags.
This is a convenience that creates an instance of theList.Builder avoiding the need to create
one manually via List#builder() .
When the Consumer completes, List.Builder#build() is called immediately and its result
is passed to #tags(List) .tags - a consumer that will call methods on List.Builder #tags(List) CreateProjectRequest.Builder vpcConfig(VpcConfig vpcConfig)
VpcConfig enables AWS CodeBuild to access resources in an Amazon VPC.
vpcConfig - VpcConfig enables AWS CodeBuild to access resources in an Amazon VPC.default CreateProjectRequest.Builder vpcConfig(Consumer<VpcConfig.Builder> vpcConfig)
VpcConfig enables AWS CodeBuild to access resources in an Amazon VPC.
This is a convenience that creates an instance of theVpcConfig.Builder avoiding the need to create
one manually via VpcConfig.builder().
When the Consumer completes, SdkBuilder.build() is called immediately and its result
is passed to vpcConfig(VpcConfig).vpcConfig - a consumer that will call methods on VpcConfig.BuildervpcConfig(VpcConfig)CreateProjectRequest.Builder badgeEnabled(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.CreateProjectRequest.Builder logsConfig(LogsConfig logsConfig)
Information about logs for the build project. These can be logs in Amazon CloudWatch Logs, logs uploaded to a specified S3 bucket, or both.
logsConfig - Information about logs for the build project. These can be logs in Amazon CloudWatch Logs, logs
uploaded to a specified S3 bucket, or both.default CreateProjectRequest.Builder logsConfig(Consumer<LogsConfig.Builder> logsConfig)
Information about logs for the build project. These can be logs in Amazon CloudWatch Logs, logs uploaded to a specified S3 bucket, or both.
This is a convenience that creates an instance of theLogsConfig.Builder avoiding the need to create
one manually via LogsConfig.builder().
When the Consumer completes, SdkBuilder.build() is called immediately and its result
is passed to logsConfig(LogsConfig).logsConfig - a consumer that will call methods on LogsConfig.BuilderlogsConfig(LogsConfig)CreateProjectRequest.Builder fileSystemLocations(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.CreateProjectRequest.Builder fileSystemLocations(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.CreateProjectRequest.Builder fileSystemLocations(Consumer<ProjectFileSystemLocation.Builder>... 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.
List.Builder
avoiding the need to create one manually via List#builder() .
When the Consumer completes, List.Builder#build() is called
immediately and its result is passed to #fileSystemLocations(List) .fileSystemLocations - a consumer that will call methods on List.Builder #fileSystemLocations(List) CreateProjectRequest.Builder buildBatchConfig(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.default CreateProjectRequest.Builder buildBatchConfig(Consumer<ProjectBuildBatchConfig.Builder> buildBatchConfig)
A ProjectBuildBatchConfig object that defines the batch build options for the project.
This is a convenience that creates an instance of theProjectBuildBatchConfig.Builder avoiding the
need to create one manually via ProjectBuildBatchConfig.builder().
When the Consumer completes, SdkBuilder.build() is called immediately
and its result is passed to buildBatchConfig(ProjectBuildBatchConfig).buildBatchConfig - a consumer that will call methods on ProjectBuildBatchConfig.BuilderbuildBatchConfig(ProjectBuildBatchConfig)CreateProjectRequest.Builder concurrentBuildLimit(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.
CreateProjectRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)
overrideConfiguration in interface AwsRequest.BuilderCreateProjectRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)
overrideConfiguration in interface AwsRequest.BuilderCopyright © 2021. All rights reserved.