Interface Sandbox.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<Sandbox.Builder,
,Sandbox> SdkBuilder<Sandbox.Builder,
,Sandbox> SdkPojo
- Enclosing class:
Sandbox
-
Method Summary
Modifier and TypeMethodDescriptionThe ARN of the sandbox.default Sandbox.Builder
currentSession
(Consumer<SandboxSession.Builder> currentSession) The current session for the sandbox.currentSession
(SandboxSession currentSession) The current session for the sandbox.encryptionKey
(String encryptionKey) The Key Management Service customer master key (CMK) to be used for encrypting the sandbox output artifacts.When the sandbox process ended, expressed in Unix time format.default Sandbox.Builder
environment
(Consumer<ProjectEnvironment.Builder> environment) Sets the value of the Environment property for this object.environment
(ProjectEnvironment environment) Sets the value of the Environment property for this object.fileSystemLocations
(Collection<ProjectFileSystemLocation> fileSystemLocations) An array ofProjectFileSystemLocation
objects for a CodeBuild build project.fileSystemLocations
(Consumer<ProjectFileSystemLocation.Builder>... fileSystemLocations) An array ofProjectFileSystemLocation
objects for a CodeBuild build project.fileSystemLocations
(ProjectFileSystemLocation... fileSystemLocations) An array ofProjectFileSystemLocation
objects for a CodeBuild build project.The ID of the sandbox.default Sandbox.Builder
logConfig
(Consumer<LogsConfig.Builder> logConfig) Sets the value of the LogConfig property for this object.logConfig
(LogsConfig logConfig) Sets the value of the LogConfig property for this object.projectName
(String projectName) The CodeBuild project name.queuedTimeoutInMinutes
(Integer queuedTimeoutInMinutes) The number of minutes a sandbox is allowed to be queued before it times out.requestTime
(Instant requestTime) When the sandbox process was initially requested, expressed in Unix time format.secondarySources
(Collection<ProjectSource> secondarySources) An array ofProjectSource
objects.secondarySources
(Consumer<ProjectSource.Builder>... secondarySources) An array ofProjectSource
objects.secondarySources
(ProjectSource... secondarySources) An array ofProjectSource
objects.secondarySourceVersions
(Collection<ProjectSourceVersion> secondarySourceVersions) An array ofProjectSourceVersion
objects.secondarySourceVersions
(Consumer<ProjectSourceVersion.Builder>... secondarySourceVersions) An array ofProjectSourceVersion
objects.secondarySourceVersions
(ProjectSourceVersion... secondarySourceVersions) An array ofProjectSourceVersion
objects.serviceRole
(String serviceRole) The name of a service role used for this sandbox.default Sandbox.Builder
source
(Consumer<ProjectSource.Builder> source) Sets the value of the Source property for this object.source
(ProjectSource source) Sets the value of the Source property for this object.sourceVersion
(String sourceVersion) Any version identifier for the version of the sandbox to be built.When the sandbox process started, expressed in Unix time format.The status of the sandbox.timeoutInMinutes
(Integer timeoutInMinutes) How long, in minutes, from 5 to 2160 (36 hours), for CodeBuild to wait before timing out this sandbox if it does not get marked as completed.default Sandbox.Builder
vpcConfig
(Consumer<VpcConfig.Builder> vpcConfig) Sets the value of the VpcConfig property for this object.Sets the value of the VpcConfig property for this object.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, sdkFieldNameToField, sdkFields
-
Method Details
-
id
The ID of the sandbox.
- Parameters:
id
- The ID of the sandbox.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
arn
The ARN of the sandbox.
- Parameters:
arn
- The ARN of the sandbox.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
projectName
The CodeBuild project name.
- Parameters:
projectName
- The CodeBuild project name.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
requestTime
When the sandbox process was initially requested, expressed in Unix time format.
- Parameters:
requestTime
- When the sandbox process was initially requested, expressed in Unix time format.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
startTime
When the sandbox process started, expressed in Unix time format.
- Parameters:
startTime
- When the sandbox 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 sandbox process ended, expressed in Unix time format.
- Parameters:
endTime
- When the sandbox process ended, expressed in Unix time format.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
status
The status of the sandbox.
- Parameters:
status
- The status of the sandbox.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
source
Sets the value of the Source property for this object.- Parameters:
source
- The new value for the Source property for this object.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
source
Sets the value of the Source property for this object. This is a convenience method that creates an instance of theProjectSource.Builder
avoiding the need to create one manually viaProjectSource.builder()
.When the
Consumer
completes,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:
-
sourceVersion
Any version identifier for the version of the sandbox to be built.
- Parameters:
sourceVersion
- Any version identifier for the version of the sandbox to be built.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
secondarySources
An array of
ProjectSource
objects.- Parameters:
secondarySources
- An array ofProjectSource
objects.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
secondarySources
An array of
ProjectSource
objects.- Parameters:
secondarySources
- An array ofProjectSource
objects.- 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 theProjectSource
objects.ProjectSource.Builder
avoiding the need to create one manually viaProjectSource.builder()
.When the
Consumer
completes,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
ProjectSourceVersion
objects.- Parameters:
secondarySourceVersions
- An array ofProjectSourceVersion
objects.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
secondarySourceVersions
An array of
ProjectSourceVersion
objects.- Parameters:
secondarySourceVersions
- An array ofProjectSourceVersion
objects.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
secondarySourceVersions
Sandbox.Builder secondarySourceVersions(Consumer<ProjectSourceVersion.Builder>... secondarySourceVersions) An array of
This is a convenience method that creates an instance of theProjectSourceVersion
objects.ProjectSourceVersion.Builder
avoiding the need to create one manually viaProjectSourceVersion.builder()
.When the
Consumer
completes,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:
-
environment
Sets the value of the Environment property for this object.- Parameters:
environment
- The new value for the Environment property for this object.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
environment
Sets the value of the Environment property for this object. This is a convenience method that creates an instance of theProjectEnvironment.Builder
avoiding the need to create one manually viaProjectEnvironment.builder()
.When the
Consumer
completes,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:
-
fileSystemLocations
An array of
ProjectFileSystemLocation
objects for a CodeBuild build project. AProjectFileSystemLocation
object specifies theidentifier
,location
,mountOptions
,mountPoint
, andtype
of a file system created using Amazon Elastic File System.- Parameters:
fileSystemLocations
- An array ofProjectFileSystemLocation
objects for a CodeBuild build project. AProjectFileSystemLocation
object specifies theidentifier
,location
,mountOptions
,mountPoint
, andtype
of 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
ProjectFileSystemLocation
objects for a CodeBuild build project. AProjectFileSystemLocation
object specifies theidentifier
,location
,mountOptions
,mountPoint
, andtype
of a file system created using Amazon Elastic File System.- Parameters:
fileSystemLocations
- An array ofProjectFileSystemLocation
objects for a CodeBuild build project. AProjectFileSystemLocation
object specifies theidentifier
,location
,mountOptions
,mountPoint
, andtype
of 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
Sandbox.Builder fileSystemLocations(Consumer<ProjectFileSystemLocation.Builder>... fileSystemLocations) An array of
This is a convenience method that creates an instance of theProjectFileSystemLocation
objects for a CodeBuild build project. AProjectFileSystemLocation
object specifies theidentifier
,location
,mountOptions
,mountPoint
, andtype
of a file system created using Amazon Elastic File System.ProjectFileSystemLocation.Builder
avoiding the need to create one manually viaProjectFileSystemLocation.builder()
.When the
Consumer
completes,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:
-
timeoutInMinutes
How long, in minutes, from 5 to 2160 (36 hours), for CodeBuild to wait before timing out this sandbox 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 sandbox 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 sandbox is allowed to be queued before it times out.
- Parameters:
queuedTimeoutInMinutes
- The number of minutes a sandbox is allowed to be queued before it times out.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
vpcConfig
Sets the value of the VpcConfig property for this object.- Parameters:
vpcConfig
- The new value for the VpcConfig property for this object.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
vpcConfig
Sets the value of the VpcConfig property for this object. This is a convenience method that creates an instance of theVpcConfig.Builder
avoiding the need to create one manually viaVpcConfig.builder()
.When the
Consumer
completes,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:
-
logConfig
Sets the value of the LogConfig property for this object.- Parameters:
logConfig
- The new value for the LogConfig property for this object.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
logConfig
Sets the value of the LogConfig property for this object. This is a convenience method that creates an instance of theLogsConfig.Builder
avoiding the need to create one manually viaLogsConfig.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tologConfig(LogsConfig)
.- Parameters:
logConfig
- a consumer that will call methods onLogsConfig.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 sandbox output artifacts.
- Parameters:
encryptionKey
- The Key Management Service customer master key (CMK) to be used for encrypting the sandbox output artifacts.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
serviceRole
The name of a service role used for this sandbox.
- Parameters:
serviceRole
- The name of a service role used for this sandbox.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
currentSession
The current session for the sandbox.
- Parameters:
currentSession
- The current session for the sandbox.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
currentSession
The current session for the sandbox.
This is a convenience method that creates an instance of theSandboxSession.Builder
avoiding the need to create one manually viaSandboxSession.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tocurrentSession(SandboxSession)
.- Parameters:
currentSession
- a consumer that will call methods onSandboxSession.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-