Interface CaseTurn.Builder

All Superinterfaces:
Buildable, CopyableBuilder<CaseTurn.Builder,CaseTurn>, SdkBuilder<CaseTurn.Builder,CaseTurn>, SdkPojo
Enclosing class:
CaseTurn

@Mutable @NotThreadSafe public static interface CaseTurn.Builder extends SdkPojo, CopyableBuilder<CaseTurn.Builder,CaseTurn>
  • Method Details

    • traceId

      CaseTurn.Builder traceId(String traceId)

      The trace ID of the turn. Required on every turn of a COMPLETED case. A case that didn't complete may end in turns without a trace ID, such as turns that weren't run; every turn before them must have one.

      Parameters:
      traceId - The trace ID of the turn. Required on every turn of a COMPLETED case. A case that didn't complete may end in turns without a trace ID, such as turns that weren't run; every turn before them must have one.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • input

      CaseTurn.Builder input(String input)

      The input sent to the target for the turn. Truncated above 16 KB (UTF-8) in the case record, and then listed in truncated.

      Parameters:
      input - The input sent to the target for the turn. Truncated above 16 KB (UTF-8) in the case record, and then listed in truncated.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • output

      CaseTurn.Builder output(String output)

      The target's response to the turn. Truncated above 16 KB (UTF-8) in the case record.

      Parameters:
      output - The target's response to the turn. Truncated above 16 KB (UTF-8) in the case record.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • truncatedWithStrings

      CaseTurn.Builder truncatedWithStrings(Collection<String> truncated)

      The fields that were truncated. List the fields shortened before sending; the service adds the fields it truncates.

      Parameters:
      truncated - The fields that were truncated. List the fields shortened before sending; the service adds the fields it truncates.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • truncatedWithStrings

      CaseTurn.Builder truncatedWithStrings(String... truncated)

      The fields that were truncated. List the fields shortened before sending; the service adds the fields it truncates.

      Parameters:
      truncated - The fields that were truncated. List the fields shortened before sending; the service adds the fields it truncates.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • truncated

      The fields that were truncated. List the fields shortened before sending; the service adds the fields it truncates.

      Parameters:
      truncated - The fields that were truncated. List the fields shortened before sending; the service adds the fields it truncates.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • truncated

      CaseTurn.Builder truncated(TruncatedField... truncated)

      The fields that were truncated. List the fields shortened before sending; the service adds the fields it truncates.

      Parameters:
      truncated - The fields that were truncated. List the fields shortened before sending; the service adds the fields it truncates.
      Returns:
      Returns a reference to this object so that method calls can be chained together.