public static interface Project.Builder extends CopyableBuilder<Project.Builder,Project>
Modifier and Type | Method and Description |
---|---|
Project.Builder |
arn(String arn)
The Amazon Resource Name (ARN) of the build project.
|
default Project.Builder |
artifacts(Consumer<ProjectArtifacts.Builder> artifacts)
Information about the build output artifacts for the build project.
|
Project.Builder |
artifacts(ProjectArtifacts artifacts)
Information about the build output artifacts for the build project.
|
Project.Builder |
created(Instant created)
When the build project was created, expressed in Unix time format.
|
Project.Builder |
description(String description)
A description that makes the build project easy to identify.
|
Project.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 Project.Builder |
environment(Consumer<ProjectEnvironment.Builder> environment)
Information about the build environment for this build project.
|
Project.Builder |
environment(ProjectEnvironment environment)
Information about the build environment for this build project.
|
Project.Builder |
lastModified(Instant lastModified)
When the build project's settings were last modified, expressed in Unix time format.
|
Project.Builder |
name(String name)
The name of the build project.
|
Project.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 Project.Builder |
source(Consumer<ProjectSource.Builder> source)
Information about the build input source code for this build project.
|
Project.Builder |
source(ProjectSource source)
Information about the build input source code for this build project.
|
Project.Builder |
tags(Collection<Tag> tags)
The tags for this build project.
|
Project.Builder |
tags(Consumer<Tag.Builder>... tags)
The tags for this build project.
|
Project.Builder |
tags(Tag... tags)
The tags for this build project.
|
Project.Builder |
timeoutInMinutes(Integer timeoutInMinutes)
How long, in minutes, from 5 to 480 (8 hours), for AWS CodeBuild to wait before timing out any related build
that did not get marked as completed.
|
default Project.Builder |
webhook(Consumer<Webhook.Builder> webhook)
Information about a webhook in GitHub that connects repository events to a build project in AWS CodeBuild.
|
Project.Builder |
webhook(Webhook webhook)
Information about a webhook in GitHub that connects repository events to a build project in AWS CodeBuild.
|
copy
applyMutation, build
Project.Builder name(String name)
The name of the build project.
name
- The name of the build project.Project.Builder arn(String arn)
The Amazon Resource Name (ARN) of the build project.
arn
- The Amazon Resource Name (ARN) of the build project.Project.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.Project.Builder source(ProjectSource source)
Information about the build input source code for this build project.
source
- Information about the build input source code for this build project.default Project.Builder source(Consumer<ProjectSource.Builder> source)
Information about the build input source code for this 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.Builder
source(ProjectSource)
Project.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 Project.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.Builder
artifacts(ProjectArtifacts)
Project.Builder environment(ProjectEnvironment environment)
Information about the build environment for this build project.
environment
- Information about the build environment for this build project.default Project.Builder environment(Consumer<ProjectEnvironment.Builder> environment)
Information about the build environment for this 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.Builder
environment(ProjectEnvironment)
Project.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.Project.Builder timeoutInMinutes(Integer timeoutInMinutes)
How long, in minutes, from 5 to 480 (8 hours), for AWS CodeBuild to wait before timing out any related build that did not get 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 timing out any related
build that did not get marked as completed. The default is 60 minutes.Project.Builder encryptionKey(String encryptionKey)
The AWS Key Management Service (AWS KMS) customer master key (CMK) to be used for encrypting the build output artifacts.
This is expressed either as the CMK's Amazon Resource Name (ARN) or, if specified, 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.
This is expressed either as the CMK's Amazon Resource Name (ARN) or, if specified, the CMK's alias
(using the format alias/alias-name
).
Project.Builder tags(Collection<Tag> tags)
The tags for this build project.
These tags are available for use by AWS services that support AWS CodeBuild build project tags.
tags
- The tags for this build project.
These tags are available for use by AWS services that support AWS CodeBuild build project tags.
Project.Builder tags(Tag... tags)
The tags for this build project.
These tags are available for use by AWS services that support AWS CodeBuild build project tags.
tags
- The tags for this build project.
These tags are available for use by AWS services that support AWS CodeBuild build project tags.
Project.Builder tags(Consumer<Tag.Builder>... tags)
The tags for 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)
Project.Builder created(Instant created)
When the build project was created, expressed in Unix time format.
created
- When the build project was created, expressed in Unix time format.Project.Builder lastModified(Instant lastModified)
When the build project's settings were last modified, expressed in Unix time format.
lastModified
- When the build project's settings were last modified, expressed in Unix time format.Project.Builder webhook(Webhook webhook)
Information about a webhook in GitHub that connects repository events to a build project in AWS CodeBuild.
webhook
- Information about a webhook in GitHub that connects repository events to a build project in AWS
CodeBuild.default Project.Builder webhook(Consumer<Webhook.Builder> webhook)
Information about a webhook in GitHub that connects repository events to a build project in AWS CodeBuild.
This is a convenience that creates an instance of theWebhook.Builder
avoiding the need to create one
manually via Webhook.builder()
.
When the Consumer
completes, SdkBuilder.build()
is called immediately and its result is
passed to webhook(Webhook)
.webhook
- a consumer that will call methods on Webhook.Builder
webhook(Webhook)
Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.