Interface CardStatus.Builder

  • Method Details

    • currentState

      CardStatus.Builder currentState(String currentState)

      The current state of the card.

      Parameters:
      currentState - The current state of the card.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • currentState

      CardStatus.Builder currentState(ExecutionStatus currentState)

      The current state of the card.

      Parameters:
      currentState - The current state of the card.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • currentValue

      CardStatus.Builder currentValue(String currentValue)

      The current value or result associated with the card.

      Parameters:
      currentValue - The current value or result associated with the card.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • submissions

      CardStatus.Builder submissions(Collection<Submission> submissions)

      A list of previous submissions, if the card is a form card.

      Parameters:
      submissions - A list of previous submissions, if the card is a form card.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • submissions

      CardStatus.Builder submissions(Submission... submissions)

      A list of previous submissions, if the card is a form card.

      Parameters:
      submissions - A list of previous submissions, if the card is a form card.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • submissions

      CardStatus.Builder submissions(Consumer<Submission.Builder>... submissions)

      A list of previous submissions, if the card is a form card.

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

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to submissions(List<Submission>).

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