Class SandboxCommand.Builder

    • Constructor Detail

      • Builder

        public Builder()
    • Method Detail

      • 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
      • 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
      • 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