Interface Sandbox.Builder
- All Superinterfaces:
- Buildable,- CopyableBuilder<Sandbox.Builder,,- Sandbox> - SdkBuilder<Sandbox.Builder,,- Sandbox> - SdkPojo
- Enclosing class:
- Sandbox
- 
Method SummaryModifier 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.CopyableBuildercopyMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilderapplyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojoequalsBySdkFields, sdkFieldNameToField, sdkFields
- 
Method Details- 
idThe 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.
 
- 
arnThe 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.
 
- 
projectNameThe CodeBuild project name. - Parameters:
- projectName- The CodeBuild project name.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
 
- 
requestTimeWhen 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.
 
- 
startTimeWhen 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.
 
- 
endTimeWhen 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.
 
- 
statusThe 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.
 
- 
sourceSets 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.
 
- 
sourceSets 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 on- ProjectSource.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
 
- 
sourceVersionAny 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.
 
- 
secondarySourcesAn array of ProjectSourceobjects.- Parameters:
- secondarySources- An array of- ProjectSourceobjects.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
 
- 
secondarySourcesAn array of ProjectSourceobjects.- Parameters:
- secondarySources- An array of- ProjectSourceobjects.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
 
- 
secondarySourcesAn 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 on- ProjectSource.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
 
- 
secondarySourceVersionsAn array of ProjectSourceVersionobjects.- Parameters:
- secondarySourceVersions- An array of- ProjectSourceVersionobjects.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
 
- 
secondarySourceVersionsAn array of ProjectSourceVersionobjects.- Parameters:
- secondarySourceVersions- An array of- ProjectSourceVersionobjects.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
 
- 
secondarySourceVersionsSandbox.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 on- ProjectSourceVersion.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
 
- 
environmentSets 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.
 
- 
environmentSets 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 on- ProjectEnvironment.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
 
- 
fileSystemLocationsAn 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 of- ProjectFileSystemLocationobjects for a CodeBuild build project. A- ProjectFileSystemLocationobject specifies the- identifier,- location,- mountOptions,- mountPoint, and- typeof a file system created using Amazon Elastic File System.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
 
- 
fileSystemLocationsAn 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 of- ProjectFileSystemLocationobjects for a CodeBuild build project. A- ProjectFileSystemLocationobject specifies the- identifier,- location,- mountOptions,- mountPoint, and- typeof a file system created using Amazon Elastic File System.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
 
- 
fileSystemLocationsSandbox.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 on- ProjectFileSystemLocation.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
 
- 
timeoutInMinutesHow 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.
 
- 
queuedTimeoutInMinutesThe 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.
 
- 
vpcConfigSets 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.
 
- 
vpcConfigSets 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 on- VpcConfig.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
 
- 
logConfigSets 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.
 
- 
logConfigSets 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 on- LogsConfig.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
 
- 
encryptionKeyThe 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.
 
- 
serviceRoleThe 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.
 
- 
currentSessionThe 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.
 
- 
currentSessionThe 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 on- SandboxSession.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
 
 
-