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.BuildercurrentSession(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.Builderenvironment(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 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 ID of the sandbox.default Sandbox.BuilderlogConfig(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 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 sandbox.default Sandbox.Buildersource(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.BuildervpcConfig(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
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 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.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:
-
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
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.- Parameters:
secondarySourceVersions- An array ofProjectSourceVersionobjects.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
secondarySourceVersions
An array of
ProjectSourceVersionobjects.- Parameters:
secondarySourceVersions- An array ofProjectSourceVersionobjects.- 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 theProjectSourceVersionobjects.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:
-
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.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:
-
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
Sandbox.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:
-
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.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:
-
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.Builderavoiding the need to create one manually viaLogsConfig.builder().When the
Consumercompletes,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.Builderavoiding the need to create one manually viaSandboxSession.builder().When the
Consumercompletes,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:
-