Interface CommandExecution.Builder

  • Method Details

    • id

      The ID of the command execution.

      Parameters:
      id - The ID of the command execution.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • sandboxId

      CommandExecution.Builder sandboxId(String sandboxId)

      A sandboxId.

      Parameters:
      sandboxId - A sandboxId.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • submitTime

      CommandExecution.Builder submitTime(Instant submitTime)

      When the command execution process was initially submitted, expressed in Unix time format.

      Parameters:
      submitTime - When the command execution process was initially submitted, expressed in Unix time format.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • startTime

      CommandExecution.Builder startTime(Instant startTime)

      When the command execution process started, expressed in Unix time format.

      Parameters:
      startTime - When the command execution 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 command execution process ended, expressed in Unix time format.

      Parameters:
      endTime - When the command execution 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 command execution.

      Parameters:
      status - The status of the command execution.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • command

      CommandExecution.Builder command(String command)

      The command that needs to be executed.

      Parameters:
      command - The command that needs to be executed.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • type

      The command type.

      Parameters:
      type - The command type.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • type

      The command type.

      Parameters:
      type - The command type.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • exitCode

      CommandExecution.Builder exitCode(String exitCode)

      The exit code to return upon completion.

      Parameters:
      exitCode - The exit code to return upon completion.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • standardOutputContent

      CommandExecution.Builder standardOutputContent(String standardOutputContent)

      The text written by the command to stdout.

      Parameters:
      standardOutputContent - The text written by the command to stdout.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • standardErrContent

      CommandExecution.Builder standardErrContent(String standardErrContent)

      The text written by the command to stderr.

      Parameters:
      standardErrContent - The text written by the command to stderr.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • logs

      Sets the value of the Logs property for this object.
      Parameters:
      logs - The new value for the Logs property for this object.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • logs

      Sets the value of the Logs property for this object. This is a convenience method that creates an instance of the LogsLocation.Builder avoiding the need to create one manually via LogsLocation.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to logs(LogsLocation).

      Parameters:
      logs - a consumer that will call methods on LogsLocation.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • sandboxArn

      CommandExecution.Builder sandboxArn(String sandboxArn)

      A sandboxArn.

      Parameters:
      sandboxArn - A sandboxArn.
      Returns:
      Returns a reference to this object so that method calls can be chained together.