Class SandboxCommand.Builder
- java.lang.Object
-
- com.oracle.bmc.generativeaisandbox.model.SandboxCommand.Builder
-
- Enclosing class:
- SandboxCommand
public static class SandboxCommand.Builder extends Object
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SandboxCommand.Builderargs(List<String> args)Command arguments.SandboxCommandbuild()SandboxCommand.Buildercommand(String command)The command executed in the sandbox runtime.SandboxCommand.Buildercopy(SandboxCommand model)SandboxCommand.Buildercwd(String cwd)Absolute directory path used as the working directory for command execution in the sandbox.SandboxCommand.BuilderenvironmentVariables(List<EnvironmentVariable> environmentVariables)Environment variables injected into the command execution.SandboxCommand.BuilderexitCode(Integer exitCode)Process exit code when available.SandboxCommand.Builderid(String id)Sandbox command identifier.SandboxCommand.Builderoutput(SandboxCommandOutput output)SandboxCommand.BuildersandboxId(String sandboxId)Sandbox identifier that this command runs against.SandboxCommand.BuildertimeCreated(Date timeCreated)The date and time the command was created, in RFC 3339 format.SandboxCommand.BuildertimeFinished(Date timeFinished)The date and time command execution finished, in RFC 3339 format.SandboxCommand.BuildertimeStarted(Date timeStarted)The date and time command execution started, in RFC 3339 format.SandboxCommand.BuildertimeUpdated(Date timeUpdated)The date and time the command was last updated, in RFC 3339 format.
-
-
-
Method Detail
-
id
public SandboxCommand.Builder id(String id)
Sandbox command identifier.- Parameters:
id- the value to set- Returns:
- this builder
-
sandboxId
public SandboxCommand.Builder sandboxId(String sandboxId)
Sandbox identifier that this command runs against.- Parameters:
sandboxId- the value to set- Returns:
- this builder
-
cwd
public SandboxCommand.Builder cwd(String cwd)
Absolute directory path used as the working directory for command execution in the sandbox.- Parameters:
cwd- the value to set- Returns:
- this builder
-
command
public SandboxCommand.Builder command(String command)
The command executed in the sandbox runtime.- Parameters:
command- the value to set- Returns:
- this builder
-
args
public SandboxCommand.Builder args(List<String> args)
Command arguments.- Parameters:
args- the value to set- Returns:
- this builder
-
environmentVariables
public SandboxCommand.Builder environmentVariables(List<EnvironmentVariable> environmentVariables)
Environment variables injected into the command execution.- Parameters:
environmentVariables- the value to set- Returns:
- this builder
-
exitCode
public SandboxCommand.Builder exitCode(Integer exitCode)
Process exit code when available.- Parameters:
exitCode- the value to set- Returns:
- this builder
-
output
public SandboxCommand.Builder output(SandboxCommandOutput output)
-
timeCreated
public SandboxCommand.Builder timeCreated(Date timeCreated)
The date and time the command was created, in RFC 3339 format.- Parameters:
timeCreated- the value to set- Returns:
- this builder
-
timeUpdated
public SandboxCommand.Builder timeUpdated(Date timeUpdated)
The date and time the command was last updated, in RFC 3339 format.- Parameters:
timeUpdated- the value to set- Returns:
- this builder
-
timeStarted
public SandboxCommand.Builder timeStarted(Date timeStarted)
The date and time command execution started, in RFC 3339 format.- Parameters:
timeStarted- the value to set- Returns:
- this builder
-
timeFinished
public SandboxCommand.Builder timeFinished(Date timeFinished)
The date and time command execution finished, in RFC 3339 format.- Parameters:
timeFinished- the value to set- Returns:
- this builder
-
build
public SandboxCommand build()
-
copy
public SandboxCommand.Builder copy(SandboxCommand model)
-
-