Interface Statement.Builder

  • Method Details

    • id

      The ID of the statement.

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

      The execution code of the statement.

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

      Statement.Builder state(String state)

      The state while request is actioned.

      Parameters:
      state - The state while request is actioned.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • state

      The state while request is actioned.

      Parameters:
      state - The state while request is actioned.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • output

      The output in JSON.

      Parameters:
      output - The output in JSON.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • output

      The output in JSON.

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

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

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

      Statement.Builder progress(Double progress)

      The code execution progress.

      Parameters:
      progress - The code execution progress.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • startedOn

      Statement.Builder startedOn(Long startedOn)

      The unix time and date that the job definition was started.

      Parameters:
      startedOn - The unix time and date that the job definition was started.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • completedOn

      Statement.Builder completedOn(Long completedOn)

      The unix time and date that the job definition was completed.

      Parameters:
      completedOn - The unix time and date that the job definition was completed.
      Returns:
      Returns a reference to this object so that method calls can be chained together.