Interface Sandbox.Builder

All Superinterfaces:
Buildable, CopyableBuilder<Sandbox.Builder,Sandbox>, SdkBuilder<Sandbox.Builder,Sandbox>, SdkPojo
Enclosing class:
Sandbox

@Mutable @NotThreadSafe public static interface Sandbox.Builder extends SdkPojo, CopyableBuilder<Sandbox.Builder,Sandbox>
  • 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

      Sandbox.Builder projectName(String 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

      Sandbox.Builder requestTime(Instant 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

      Sandbox.Builder startTime(Instant 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

      Sandbox.Builder endTime(Instant 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

      Sandbox.Builder status(String 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 the ProjectSource.Builder avoiding the need to create one manually via ProjectSource.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to source(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:
    • sourceVersion

      Sandbox.Builder sourceVersion(String 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

      Sandbox.Builder secondarySources(Collection<ProjectSource> secondarySources)

      An array of ProjectSource objects.

      Parameters:
      secondarySources - An array of ProjectSource objects.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • secondarySources

      Sandbox.Builder secondarySources(ProjectSource... secondarySources)

      An array of ProjectSource objects.

      Parameters:
      secondarySources - An array of ProjectSource objects.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • secondarySources

      Sandbox.Builder secondarySources(Consumer<ProjectSource.Builder>... secondarySources)

      An array of ProjectSource objects.

      This is a convenience method that creates an instance of the ProjectSource.Builder avoiding the need to create one manually via ProjectSource.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to secondarySources(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:
    • secondarySourceVersions

      Sandbox.Builder secondarySourceVersions(Collection<ProjectSourceVersion> secondarySourceVersions)

      An array of ProjectSourceVersion objects.

      Parameters:
      secondarySourceVersions - An array of ProjectSourceVersion objects.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • secondarySourceVersions

      Sandbox.Builder secondarySourceVersions(ProjectSourceVersion... secondarySourceVersions)

      An array of ProjectSourceVersion objects.

      Parameters:
      secondarySourceVersions - An array of ProjectSourceVersion 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 ProjectSourceVersion objects.

      This is a convenience method that creates an instance of the ProjectSourceVersion.Builder avoiding the need to create one manually via ProjectSourceVersion.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to secondarySourceVersions(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:
    • environment

      Sandbox.Builder environment(ProjectEnvironment 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

      default Sandbox.Builder environment(Consumer<ProjectEnvironment.Builder> environment)
      Sets the value of the Environment property for this object. This is a convenience method that creates an instance of the ProjectEnvironment.Builder avoiding the need to create one manually via ProjectEnvironment.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to environment(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:
    • fileSystemLocations

      Sandbox.Builder fileSystemLocations(Collection<ProjectFileSystemLocation> fileSystemLocations)

      An array of ProjectFileSystemLocation objects for a CodeBuild build project. A ProjectFileSystemLocation object specifies the identifier, location, mountOptions, mountPoint, and type of a file system created using Amazon Elastic File System.

      Parameters:
      fileSystemLocations - An array of ProjectFileSystemLocation objects for a CodeBuild build project. A ProjectFileSystemLocation object specifies the identifier, location, mountOptions, mountPoint, and type 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(ProjectFileSystemLocation... fileSystemLocations)

      An array of ProjectFileSystemLocation objects for a CodeBuild build project. A ProjectFileSystemLocation object specifies the identifier, location, mountOptions, mountPoint, and type of a file system created using Amazon Elastic File System.

      Parameters:
      fileSystemLocations - An array of ProjectFileSystemLocation objects for a CodeBuild build project. A ProjectFileSystemLocation object specifies the identifier, location, mountOptions, mountPoint, and type 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 ProjectFileSystemLocation objects for a CodeBuild build project. A ProjectFileSystemLocation object specifies the identifier, location, mountOptions, mountPoint, and type of a file system created using Amazon Elastic File System.

      This is a convenience method that creates an instance of the ProjectFileSystemLocation.Builder avoiding the need to create one manually via ProjectFileSystemLocation.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to fileSystemLocations(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:
    • timeoutInMinutes

      Sandbox.Builder 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.

      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

      Sandbox.Builder queuedTimeoutInMinutes(Integer 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

      Sandbox.Builder vpcConfig(VpcConfig 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

      default Sandbox.Builder vpcConfig(Consumer<VpcConfig.Builder> vpcConfig)
      Sets the value of the VpcConfig property for this object. This is a convenience method that creates an instance of the VpcConfig.Builder avoiding the need to create one manually via VpcConfig.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to vpcConfig(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:
    • logConfig

      Sandbox.Builder logConfig(LogsConfig 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

      default Sandbox.Builder logConfig(Consumer<LogsConfig.Builder> logConfig)
      Sets the value of the LogConfig property for this object. This is a convenience method that creates an instance of the LogsConfig.Builder avoiding the need to create one manually via LogsConfig.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to logConfig(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:
    • encryptionKey

      Sandbox.Builder encryptionKey(String 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

      Sandbox.Builder serviceRole(String 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

      Sandbox.Builder currentSession(SandboxSession 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

      default Sandbox.Builder currentSession(Consumer<SandboxSession.Builder> currentSession)

      The current session for the sandbox.

      This is a convenience method that creates an instance of the SandboxSession.Builder avoiding the need to create one manually via SandboxSession.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to currentSession(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: