Interface Build.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<Build.Builder,,Build> SdkBuilder<Build.Builder,,Build> SdkPojo
- Enclosing class:
Build
-
Method Summary
Modifier and TypeMethodDescriptionThe Amazon Resource Name (ARN) of the build.default Build.Builderartifacts(Consumer<BuildArtifacts.Builder> artifacts) Information about the output artifacts for the build.artifacts(BuildArtifacts artifacts) Information about the output artifacts for the build.default Build.BuilderautoRetryConfig(Consumer<AutoRetryConfig.Builder> autoRetryConfig) Information about the auto-retry configuration for the build.autoRetryConfig(AutoRetryConfig autoRetryConfig) Information about the auto-retry configuration for the build.buildBatchArn(String buildBatchArn) The ARN of the batch build that this build is a member of, if applicable.buildComplete(Boolean buildComplete) Whether the build is complete.buildNumber(Long buildNumber) The number of the build.buildStatus(String buildStatus) The current status of the build.buildStatus(StatusType buildStatus) The current status of the build.default Build.Buildercache(Consumer<ProjectCache.Builder> cache) Information about the cache for the build.cache(ProjectCache cache) Information about the cache for the build.currentPhase(String currentPhase) The current build phase.default Build.BuilderdebugSession(Consumer<DebugSession.Builder> debugSession) Contains information about the debug session for this build.debugSession(DebugSession debugSession) Contains information about the debug session for this build.encryptionKey(String encryptionKey) The Key Management Service customer master key (CMK) to be used for encrypting the build output artifacts.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.environment(ProjectEnvironment environment) Information about the build environment for this build.exportedEnvironmentVariables(Collection<ExportedEnvironmentVariable> exportedEnvironmentVariables) A list of exported environment variables for this build.exportedEnvironmentVariables(Consumer<ExportedEnvironmentVariable.Builder>... exportedEnvironmentVariables) A list of exported environment variables for this build.exportedEnvironmentVariables(ExportedEnvironmentVariable... exportedEnvironmentVariables) A list of exported environment variables for this build.fileSystemLocations(Collection<ProjectFileSystemLocation> fileSystemLocations) An array ofProjectFileSystemLocationobjects for a CodeBuild build project.fileSystemLocations(Consumer<ProjectFileSystemLocation.Builder>... fileSystemLocations) An array ofProjectFileSystemLocationobjects for a CodeBuild build project.fileSystemLocations(ProjectFileSystemLocation... fileSystemLocations) An array ofProjectFileSystemLocationobjects for a CodeBuild build project.The unique ID for the build.The entity that started the build.default Build.Builderlogs(Consumer<LogsLocation.Builder> logs) Information about the build's logs in CloudWatch Logs.logs(LogsLocation logs) Information about the build's logs in CloudWatch Logs.default Build.BuildernetworkInterface(Consumer<NetworkInterface.Builder> networkInterface) Describes a network interface.networkInterface(NetworkInterface networkInterface) Describes a network interface.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.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.phases(BuildPhase... phases) Information about all previous build phases that are complete and information about any current build phase that is not yet complete.projectName(String projectName) The name of the CodeBuild project.queuedTimeoutInMinutes(Integer queuedTimeoutInMinutes) The number of minutes a build is allowed to be queued before it times out.reportArns(String... reportArns) An array of the ARNs associated with this build's reports.reportArns(Collection<String> reportArns) An array of the ARNs associated with this build's reports.resolvedSourceVersion(String resolvedSourceVersion) An identifier for the version of this build's source code.secondaryArtifacts(Collection<BuildArtifacts> secondaryArtifacts) An array ofProjectArtifactsobjects.secondaryArtifacts(Consumer<BuildArtifacts.Builder>... secondaryArtifacts) An array ofProjectArtifactsobjects.secondaryArtifacts(BuildArtifacts... secondaryArtifacts) An array ofProjectArtifactsobjects.secondarySources(Collection<ProjectSource> secondarySources) An array ofProjectSourceobjects.secondarySources(Consumer<ProjectSource.Builder>... secondarySources) An array ofProjectSourceobjects.secondarySources(ProjectSource... secondarySources) An array ofProjectSourceobjects.secondarySourceVersions(Collection<ProjectSourceVersion> secondarySourceVersions) An array ofProjectSourceVersionobjects.secondarySourceVersions(Consumer<ProjectSourceVersion.Builder>... secondarySourceVersions) An array ofProjectSourceVersionobjects.secondarySourceVersions(ProjectSourceVersion... secondarySourceVersions) An array ofProjectSourceVersionobjects.serviceRole(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.source(ProjectSource source) Information about the source code to be built.sourceVersion(String sourceVersion) Any version identifier for the version of the source code to be built.When the build process started, expressed in Unix time format.timeoutInMinutes(Integer timeoutInMinutes) How long, in minutes, from 5 to 2160 (36 hours), 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.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
copyMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
Method Details
-
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
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
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
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
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
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
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:
-
-
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:
-
-
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
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
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
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
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
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 tophases(List<BuildPhase>).- 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:
-
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
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:
-
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
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
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 tosecondarySources(List<ProjectSource>).- 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:
-
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
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 tosecondarySourceVersions(List<ProjectSourceVersion>).- 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:
-
-
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
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:
-
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
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
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 tosecondaryArtifacts(List<BuildArtifacts>).- 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:
-
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
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:
-
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
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:
-
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
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
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:
-
timeoutInMinutes
How long, in minutes, from 5 to 2160 (36 hours), for CodeBuild to wait before timing out this build if it does not get marked as completed.
- Parameters:
timeoutInMinutes- How long, in minutes, from 5 to 2160 (36 hours), 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
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
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
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
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
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:
-
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
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:
-
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 toexportedEnvironmentVariables(List<ExportedEnvironmentVariable>).- 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:
-
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
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
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
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 tofileSystemLocations(List<ProjectFileSystemLocation>).- 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:
-
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
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:
-
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.
-
autoRetryConfig
Information about the auto-retry configuration for the build.
- Parameters:
autoRetryConfig- Information about the auto-retry configuration for the build.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
autoRetryConfig
Information about the auto-retry configuration for the build.
This is a convenience method that creates an instance of theAutoRetryConfig.Builderavoiding the need to create one manually viaAutoRetryConfig.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toautoRetryConfig(AutoRetryConfig).- Parameters:
autoRetryConfig- a consumer that will call methods onAutoRetryConfig.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-