Interface Build.Builder
-
- All Superinterfaces:
Buildable,CopyableBuilder<Build.Builder,Build>,SdkBuilder<Build.Builder,Build>,SdkPojo
- Enclosing class:
- Build
public static interface Build.Builder extends SdkPojo, CopyableBuilder<Build.Builder,Build>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description Build.Builderarn(String arn)The Amazon Resource Name (ARN) of the build.default Build.Builderartifacts(Consumer<BuildArtifacts.Builder> artifacts)Information about the output artifacts for the build.Build.Builderartifacts(BuildArtifacts artifacts)Information about the output artifacts for the build.Build.BuilderbuildBatchArn(String buildBatchArn)The ARN of the batch build that this build is a member of, if applicable.Build.BuilderbuildComplete(Boolean buildComplete)Whether the build is complete.Build.BuilderbuildNumber(Long buildNumber)The number of the build.Build.BuilderbuildStatus(String buildStatus)The current status of the build.Build.BuilderbuildStatus(StatusType buildStatus)The current status of the build.default Build.Buildercache(Consumer<ProjectCache.Builder> cache)Information about the cache for the build.Build.Buildercache(ProjectCache cache)Information about the cache for the build.Build.BuildercurrentPhase(String currentPhase)The current build phase.default Build.BuilderdebugSession(Consumer<DebugSession.Builder> debugSession)Contains information about the debug session for this build.Build.BuilderdebugSession(DebugSession debugSession)Contains information about the debug session for this build.Build.BuilderencryptionKey(String encryptionKey)The Key Management Service customer master key (CMK) to be used for encrypting the build output artifacts.Build.BuilderendTime(Instant endTime)When the build process ended, expressed in Unix time format.default Build.Builderenvironment(Consumer<ProjectEnvironment.Builder> environment)Information about the build environment for this build.Build.Builderenvironment(ProjectEnvironment environment)Information about the build environment for this build.Build.BuilderexportedEnvironmentVariables(Collection<ExportedEnvironmentVariable> exportedEnvironmentVariables)A list of exported environment variables for this build.Build.BuilderexportedEnvironmentVariables(Consumer<ExportedEnvironmentVariable.Builder>... exportedEnvironmentVariables)A list of exported environment variables for this build.Build.BuilderexportedEnvironmentVariables(ExportedEnvironmentVariable... exportedEnvironmentVariables)A list of exported environment variables for this build.Build.BuilderfileSystemLocations(Collection<ProjectFileSystemLocation> fileSystemLocations)An array ofProjectFileSystemLocationobjects for a CodeBuild build project.Build.BuilderfileSystemLocations(Consumer<ProjectFileSystemLocation.Builder>... fileSystemLocations)An array ofProjectFileSystemLocationobjects for a CodeBuild build project.Build.BuilderfileSystemLocations(ProjectFileSystemLocation... fileSystemLocations)An array ofProjectFileSystemLocationobjects for a CodeBuild build project.Build.Builderid(String id)The unique ID for the build.Build.Builderinitiator(String initiator)The entity that started the build.default Build.Builderlogs(Consumer<LogsLocation.Builder> logs)Information about the build's logs in CloudWatch Logs.Build.Builderlogs(LogsLocation logs)Information about the build's logs in CloudWatch Logs.default Build.BuildernetworkInterface(Consumer<NetworkInterface.Builder> networkInterface)Describes a network interface.Build.BuildernetworkInterface(NetworkInterface networkInterface)Describes a network interface.Build.Builderphases(Collection<BuildPhase> phases)Information about all previous build phases that are complete and information about any current build phase that is not yet complete.Build.Builderphases(Consumer<BuildPhase.Builder>... phases)Information about all previous build phases that are complete and information about any current build phase that is not yet complete.Build.Builderphases(BuildPhase... phases)Information about all previous build phases that are complete and information about any current build phase that is not yet complete.Build.BuilderprojectName(String projectName)The name of the CodeBuild project.Build.BuilderqueuedTimeoutInMinutes(Integer queuedTimeoutInMinutes)The number of minutes a build is allowed to be queued before it times out.Build.BuilderreportArns(String... reportArns)An array of the ARNs associated with this build's reports.Build.BuilderreportArns(Collection<String> reportArns)An array of the ARNs associated with this build's reports.Build.BuilderresolvedSourceVersion(String resolvedSourceVersion)An identifier for the version of this build's source code.Build.BuildersecondaryArtifacts(Collection<BuildArtifacts> secondaryArtifacts)An array ofProjectArtifactsobjects.Build.BuildersecondaryArtifacts(Consumer<BuildArtifacts.Builder>... secondaryArtifacts)An array ofProjectArtifactsobjects.Build.BuildersecondaryArtifacts(BuildArtifacts... secondaryArtifacts)An array ofProjectArtifactsobjects.Build.BuildersecondarySources(Collection<ProjectSource> secondarySources)An array ofProjectSourceobjects.Build.BuildersecondarySources(Consumer<ProjectSource.Builder>... secondarySources)An array ofProjectSourceobjects.Build.BuildersecondarySources(ProjectSource... secondarySources)An array ofProjectSourceobjects.Build.BuildersecondarySourceVersions(Collection<ProjectSourceVersion> secondarySourceVersions)An array ofProjectSourceVersionobjects.Build.BuildersecondarySourceVersions(Consumer<ProjectSourceVersion.Builder>... secondarySourceVersions)An array ofProjectSourceVersionobjects.Build.BuildersecondarySourceVersions(ProjectSourceVersion... secondarySourceVersions)An array ofProjectSourceVersionobjects.Build.BuilderserviceRole(String serviceRole)The name of a service role used for this build.default Build.Buildersource(Consumer<ProjectSource.Builder> source)Information about the source code to be built.Build.Buildersource(ProjectSource source)Information about the source code to be built.Build.BuildersourceVersion(String sourceVersion)Any version identifier for the version of the source code to be built.Build.BuilderstartTime(Instant startTime)When the build process started, expressed in Unix time format.Build.BuildertimeoutInMinutes(Integer timeoutInMinutes)How long, in minutes, for CodeBuild to wait before timing out this build if it does not get marked as completed.default Build.BuildervpcConfig(Consumer<VpcConfig.Builder> vpcConfig)If your CodeBuild project accesses resources in an Amazon VPC, you provide this parameter that identifies the VPC ID and the list of security group IDs and subnet IDs.Build.BuildervpcConfig(VpcConfig vpcConfig)If your CodeBuild project accesses resources in an Amazon VPC, you provide this parameter that identifies the VPC ID and the list of security group IDs and subnet IDs.-
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
-
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
-
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
-
-
-
Method Detail
-
id
Build.Builder id(String id)
The unique ID for the build.
- Parameters:
id- The unique ID for the build.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
arn
Build.Builder arn(String arn)
The Amazon Resource Name (ARN) of the build.
- Parameters:
arn- The Amazon Resource Name (ARN) of the build.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
buildNumber
Build.Builder buildNumber(Long buildNumber)
The number of the build. For each project, the
buildNumberof its first build is1. ThebuildNumberof each subsequent build is incremented by1. If a build is deleted, thebuildNumberof other builds does not change.- Parameters:
buildNumber- The number of the build. For each project, thebuildNumberof its first build is1. ThebuildNumberof each subsequent build is incremented by1. If a build is deleted, thebuildNumberof other builds does not change.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
startTime
Build.Builder startTime(Instant startTime)
When the build process started, expressed in Unix time format.
- Parameters:
startTime- When the build process started, expressed in Unix time format.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
endTime
Build.Builder endTime(Instant endTime)
When the build process ended, expressed in Unix time format.
- Parameters:
endTime- When the build process ended, expressed in Unix time format.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
currentPhase
Build.Builder currentPhase(String currentPhase)
The current build phase.
- Parameters:
currentPhase- The current build phase.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
buildStatus
Build.Builder buildStatus(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.
- Parameters:
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.
-
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
StatusType,StatusType
-
-
buildStatus
Build.Builder buildStatus(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.
- Parameters:
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.
-
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
StatusType,StatusType
-
-
sourceVersion
Build.Builder sourceVersion(String sourceVersion)
Any version identifier for the version of the source code to be built. If
sourceVersionis specified at the project level, then thissourceVersion(at the build level) takes precedence.For more information, see Source Version Sample with CodeBuild in the CodeBuild User Guide.
- Parameters:
sourceVersion- Any version identifier for the version of the source code to be built. IfsourceVersionis specified at the project level, then thissourceVersion(at the build level) takes precedence.For more information, see Source Version Sample with CodeBuild in the CodeBuild User Guide.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
resolvedSourceVersion
Build.Builder resolvedSourceVersion(String resolvedSourceVersion)
An identifier for the version of this build's source code.
-
For CodeCommit, GitHub, GitHub Enterprise, and BitBucket, the commit ID.
-
For CodePipeline, the source revision provided by CodePipeline.
-
For Amazon S3, this does not apply.
- Parameters:
resolvedSourceVersion- An identifier for the version of this build's source code.-
For CodeCommit, GitHub, GitHub Enterprise, and BitBucket, the commit ID.
-
For CodePipeline, the source revision provided by CodePipeline.
-
For Amazon S3, this does not apply.
-
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
-
projectName
Build.Builder projectName(String projectName)
The name of the CodeBuild project.
- Parameters:
projectName- The name of the CodeBuild project.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
phases
Build.Builder phases(Collection<BuildPhase> phases)
Information about all previous build phases that are complete and information about any current build phase that is not yet complete.
- Parameters:
phases- Information about all previous build phases that are complete and information about any current build phase that is not yet complete.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
phases
Build.Builder phases(BuildPhase... phases)
Information about all previous build phases that are complete and information about any current build phase that is not yet complete.
- Parameters:
phases- Information about all previous build phases that are complete and information about any current build phase that is not yet complete.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
phases
Build.Builder phases(Consumer<BuildPhase.Builder>... phases)
Information about all previous build phases that are complete and information about any current build phase that is not yet complete.
This is a convenience method that creates an instance of theBuildPhase.Builderavoiding the need to create one manually viaBuildPhase.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed to#phases(List.) - Parameters:
phases- a consumer that will call methods onBuildPhase.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
#phases(java.util.Collection)
-
source
Build.Builder source(ProjectSource source)
Information about the source code to be built.
- Parameters:
source- Information about the source code to be built.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
source
default Build.Builder source(Consumer<ProjectSource.Builder> source)
Information about the source code to be built.
This is a convenience method that creates an instance of theProjectSource.Builderavoiding the need to create one manually viaProjectSource.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tosource(ProjectSource).- Parameters:
source- a consumer that will call methods onProjectSource.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
source(ProjectSource)
-
secondarySources
Build.Builder secondarySources(Collection<ProjectSource> secondarySources)
An array of
ProjectSourceobjects.- Parameters:
secondarySources- An array ofProjectSourceobjects.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
secondarySources
Build.Builder secondarySources(ProjectSource... secondarySources)
An array of
ProjectSourceobjects.- Parameters:
secondarySources- An array ofProjectSourceobjects.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
secondarySources
Build.Builder secondarySources(Consumer<ProjectSource.Builder>... secondarySources)
An array of
This is a convenience method that creates an instance of theProjectSourceobjects.ProjectSource.Builderavoiding the need to create one manually viaProjectSource.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed to#secondarySources(List.) - Parameters:
secondarySources- a consumer that will call methods onProjectSource.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
#secondarySources(java.util.Collection)
-
secondarySourceVersions
Build.Builder secondarySourceVersions(Collection<ProjectSourceVersion> secondarySourceVersions)
An array of
ProjectSourceVersionobjects. EachProjectSourceVersionmust 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 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.
- Parameters:
secondarySourceVersions- An array ofProjectSourceVersionobjects. EachProjectSourceVersionmust 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 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.
-
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
-
secondarySourceVersions
Build.Builder secondarySourceVersions(ProjectSourceVersion... secondarySourceVersions)
An array of
ProjectSourceVersionobjects. EachProjectSourceVersionmust 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 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.
- Parameters:
secondarySourceVersions- An array ofProjectSourceVersionobjects. EachProjectSourceVersionmust 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 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.
-
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
-
secondarySourceVersions
Build.Builder secondarySourceVersions(Consumer<ProjectSourceVersion.Builder>... secondarySourceVersions)
An array of
ProjectSourceVersionobjects. EachProjectSourceVersionmust 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 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.
ProjectSourceVersion.Builderavoiding the need to create one manually viaProjectSourceVersion.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed to#secondarySourceVersions(List.) - Parameters:
secondarySourceVersions- a consumer that will call methods onProjectSourceVersion.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
#secondarySourceVersions(java.util.Collection)
-
-
artifacts
Build.Builder artifacts(BuildArtifacts artifacts)
Information about the output artifacts for the build.
- Parameters:
artifacts- Information about the output artifacts for the build.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
artifacts
default Build.Builder artifacts(Consumer<BuildArtifacts.Builder> artifacts)
Information about the output artifacts for the build.
This is a convenience method that creates an instance of theBuildArtifacts.Builderavoiding the need to create one manually viaBuildArtifacts.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toartifacts(BuildArtifacts).- Parameters:
artifacts- a consumer that will call methods onBuildArtifacts.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
artifacts(BuildArtifacts)
-
secondaryArtifacts
Build.Builder secondaryArtifacts(Collection<BuildArtifacts> secondaryArtifacts)
An array of
ProjectArtifactsobjects.- Parameters:
secondaryArtifacts- An array ofProjectArtifactsobjects.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
secondaryArtifacts
Build.Builder secondaryArtifacts(BuildArtifacts... secondaryArtifacts)
An array of
ProjectArtifactsobjects.- Parameters:
secondaryArtifacts- An array ofProjectArtifactsobjects.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
secondaryArtifacts
Build.Builder secondaryArtifacts(Consumer<BuildArtifacts.Builder>... secondaryArtifacts)
An array of
This is a convenience method that creates an instance of theProjectArtifactsobjects.BuildArtifacts.Builderavoiding the need to create one manually viaBuildArtifacts.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed to#secondaryArtifacts(List.) - Parameters:
secondaryArtifacts- a consumer that will call methods onBuildArtifacts.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
#secondaryArtifacts(java.util.Collection)
-
cache
Build.Builder cache(ProjectCache cache)
Information about the cache for the build.
- Parameters:
cache- Information about the cache for the build.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
cache
default Build.Builder cache(Consumer<ProjectCache.Builder> cache)
Information about the cache for the build.
This is a convenience method that creates an instance of theProjectCache.Builderavoiding the need to create one manually viaProjectCache.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tocache(ProjectCache).- Parameters:
cache- a consumer that will call methods onProjectCache.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
cache(ProjectCache)
-
environment
Build.Builder environment(ProjectEnvironment environment)
Information about the build environment for this build.
- Parameters:
environment- Information about the build environment for this build.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
environment
default Build.Builder environment(Consumer<ProjectEnvironment.Builder> environment)
Information about the build environment for this build.
This is a convenience method that creates an instance of theProjectEnvironment.Builderavoiding the need to create one manually viaProjectEnvironment.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toenvironment(ProjectEnvironment).- Parameters:
environment- a consumer that will call methods onProjectEnvironment.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
environment(ProjectEnvironment)
-
serviceRole
Build.Builder serviceRole(String serviceRole)
The name of a service role used for this build.
- Parameters:
serviceRole- The name of a service role used for this build.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
logs
Build.Builder logs(LogsLocation logs)
Information about the build's logs in CloudWatch Logs.
- Parameters:
logs- Information about the build's logs in CloudWatch Logs.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
logs
default Build.Builder logs(Consumer<LogsLocation.Builder> logs)
Information about the build's logs in CloudWatch Logs.
This is a convenience method that creates an instance of theLogsLocation.Builderavoiding the need to create one manually viaLogsLocation.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tologs(LogsLocation).- Parameters:
logs- a consumer that will call methods onLogsLocation.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
logs(LogsLocation)
-
timeoutInMinutes
Build.Builder timeoutInMinutes(Integer timeoutInMinutes)
How long, in minutes, for CodeBuild to wait before timing out this build if it does not get marked as completed.
- Parameters:
timeoutInMinutes- How long, in minutes, for CodeBuild to wait before timing out this build if it does not get marked as completed.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
queuedTimeoutInMinutes
Build.Builder queuedTimeoutInMinutes(Integer queuedTimeoutInMinutes)
The number of minutes a build is allowed to be queued before it times out.
- Parameters:
queuedTimeoutInMinutes- The number of minutes a build is allowed to be queued before it times out.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
buildComplete
Build.Builder buildComplete(Boolean buildComplete)
Whether the build is complete. True if complete; otherwise, false.
- Parameters:
buildComplete- Whether the build is complete. True if complete; otherwise, false.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
initiator
Build.Builder initiator(String initiator)
The entity that started the build. Valid values include:
-
If CodePipeline started the build, the pipeline's name (for example,
codepipeline/my-demo-pipeline). -
If a user started the build, the user's name (for example,
MyUserName). -
If the Jenkins plugin for CodeBuild started the build, the string
CodeBuild-Jenkins-Plugin.
- Parameters:
initiator- The entity that started the build. Valid values include:-
If CodePipeline started the build, the pipeline's name (for example,
codepipeline/my-demo-pipeline). -
If a user started the build, the user's name (for example,
MyUserName). -
If the Jenkins plugin for CodeBuild started the build, the string
CodeBuild-Jenkins-Plugin.
-
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
-
vpcConfig
Build.Builder vpcConfig(VpcConfig vpcConfig)
If your CodeBuild project accesses resources in an Amazon VPC, you provide this parameter that identifies the VPC ID and the list of security group IDs and subnet IDs. The security groups and subnets must belong to the same VPC. You must provide at least one security group and one subnet ID.
- Parameters:
vpcConfig- If your CodeBuild project accesses resources in an Amazon VPC, you provide this parameter that identifies the VPC ID and the list of security group IDs and subnet IDs. The security groups and subnets must belong to the same VPC. You must provide at least one security group and one subnet ID.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
vpcConfig
default Build.Builder vpcConfig(Consumer<VpcConfig.Builder> vpcConfig)
If your CodeBuild project accesses resources in an Amazon VPC, you provide this parameter that identifies the VPC ID and the list of security group IDs and subnet IDs. The security groups and subnets must belong to the same VPC. You must provide at least one security group and one subnet ID.
This is a convenience method that creates an instance of theVpcConfig.Builderavoiding the need to create one manually viaVpcConfig.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tovpcConfig(VpcConfig).- Parameters:
vpcConfig- a consumer that will call methods onVpcConfig.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
vpcConfig(VpcConfig)
-
networkInterface
Build.Builder networkInterface(NetworkInterface networkInterface)
Describes a network interface.
- Parameters:
networkInterface- Describes a network interface.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
networkInterface
default Build.Builder networkInterface(Consumer<NetworkInterface.Builder> networkInterface)
Describes a network interface.
This is a convenience method that creates an instance of theNetworkInterface.Builderavoiding the need to create one manually viaNetworkInterface.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tonetworkInterface(NetworkInterface).- Parameters:
networkInterface- a consumer that will call methods onNetworkInterface.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
networkInterface(NetworkInterface)
-
encryptionKey
Build.Builder encryptionKey(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>).- Parameters:
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>).- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
exportedEnvironmentVariables
Build.Builder exportedEnvironmentVariables(Collection<ExportedEnvironmentVariable> exportedEnvironmentVariables)
A list of exported environment variables for this build.
Exported environment variables are used in conjunction with CodePipeline to export environment variables from the current build stage to subsequent stages in the pipeline. For more information, see Working with variables in the CodePipeline User Guide.
- Parameters:
exportedEnvironmentVariables- A list of exported environment variables for this build.Exported environment variables are used in conjunction with CodePipeline to export environment variables from the current build stage to subsequent stages in the pipeline. For more information, see Working with variables in the CodePipeline User Guide.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
exportedEnvironmentVariables
Build.Builder exportedEnvironmentVariables(ExportedEnvironmentVariable... exportedEnvironmentVariables)
A list of exported environment variables for this build.
Exported environment variables are used in conjunction with CodePipeline to export environment variables from the current build stage to subsequent stages in the pipeline. For more information, see Working with variables in the CodePipeline User Guide.
- Parameters:
exportedEnvironmentVariables- A list of exported environment variables for this build.Exported environment variables are used in conjunction with CodePipeline to export environment variables from the current build stage to subsequent stages in the pipeline. For more information, see Working with variables in the CodePipeline User Guide.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
exportedEnvironmentVariables
Build.Builder exportedEnvironmentVariables(Consumer<ExportedEnvironmentVariable.Builder>... exportedEnvironmentVariables)
A list of exported environment variables for this build.
Exported environment variables are used in conjunction with CodePipeline to export environment variables from the current build stage to subsequent stages in the pipeline. For more information, see Working with variables in the CodePipeline User Guide.
This is a convenience method that creates an instance of theExportedEnvironmentVariable.Builderavoiding the need to create one manually viaExportedEnvironmentVariable.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed to#exportedEnvironmentVariables(List.) - Parameters:
exportedEnvironmentVariables- a consumer that will call methods onExportedEnvironmentVariable.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
#exportedEnvironmentVariables(java.util.Collection)
-
reportArns
Build.Builder reportArns(Collection<String> reportArns)
An array of the ARNs associated with this build's reports.
- Parameters:
reportArns- An array of the ARNs associated with this build's reports.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
reportArns
Build.Builder reportArns(String... reportArns)
An array of the ARNs associated with this build's reports.
- Parameters:
reportArns- An array of the ARNs associated with this build's reports.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
fileSystemLocations
Build.Builder fileSystemLocations(Collection<ProjectFileSystemLocation> fileSystemLocations)
An array of
ProjectFileSystemLocationobjects for a CodeBuild build project. AProjectFileSystemLocationobject specifies theidentifier,location,mountOptions,mountPoint, andtypeof a file system created using Amazon Elastic File System.- Parameters:
fileSystemLocations- An array ofProjectFileSystemLocationobjects for a CodeBuild build project. AProjectFileSystemLocationobject specifies theidentifier,location,mountOptions,mountPoint, andtypeof a file system created using Amazon Elastic File System.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
fileSystemLocations
Build.Builder fileSystemLocations(ProjectFileSystemLocation... fileSystemLocations)
An array of
ProjectFileSystemLocationobjects for a CodeBuild build project. AProjectFileSystemLocationobject specifies theidentifier,location,mountOptions,mountPoint, andtypeof a file system created using Amazon Elastic File System.- Parameters:
fileSystemLocations- An array ofProjectFileSystemLocationobjects for a CodeBuild build project. AProjectFileSystemLocationobject specifies theidentifier,location,mountOptions,mountPoint, andtypeof a file system created using Amazon Elastic File System.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
fileSystemLocations
Build.Builder fileSystemLocations(Consumer<ProjectFileSystemLocation.Builder>... fileSystemLocations)
An array of
This is a convenience method that creates an instance of theProjectFileSystemLocationobjects for a CodeBuild build project. AProjectFileSystemLocationobject specifies theidentifier,location,mountOptions,mountPoint, andtypeof a file system created using Amazon Elastic File System.ProjectFileSystemLocation.Builderavoiding the need to create one manually viaProjectFileSystemLocation.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed to#fileSystemLocations(List.) - Parameters:
fileSystemLocations- a consumer that will call methods onProjectFileSystemLocation.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
#fileSystemLocations(java.util.Collection)
-
debugSession
Build.Builder debugSession(DebugSession debugSession)
Contains information about the debug session for this build.
- Parameters:
debugSession- Contains information about the debug session for this build.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
debugSession
default Build.Builder debugSession(Consumer<DebugSession.Builder> debugSession)
Contains information about the debug session for this build.
This is a convenience method that creates an instance of theDebugSession.Builderavoiding the need to create one manually viaDebugSession.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed todebugSession(DebugSession).- Parameters:
debugSession- a consumer that will call methods onDebugSession.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
debugSession(DebugSession)
-
buildBatchArn
Build.Builder buildBatchArn(String buildBatchArn)
The ARN of the batch build that this build is a member of, if applicable.
- Parameters:
buildBatchArn- The ARN of the batch build that this build is a member of, if applicable.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
-