Interface OutputContext.Builder

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

public static interface OutputContext.Builder extends SdkPojo, CopyableBuilder<OutputContext.Builder,OutputContext>
  • Method Details

    • name

      The name of the output context.

      Parameters:
      name - The name of the output context.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • timeToLiveInSeconds

      OutputContext.Builder timeToLiveInSeconds(Integer timeToLiveInSeconds)

      The amount of time, in seconds, that the output context should remain active. The time is figured from the first time the context is sent to the user.

      Parameters:
      timeToLiveInSeconds - The amount of time, in seconds, that the output context should remain active. The time is figured from the first time the context is sent to the user.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • turnsToLive

      OutputContext.Builder turnsToLive(Integer turnsToLive)

      The number of conversation turns that the output context should remain active. The number of turns is counted from the first time that the context is sent to the user.

      Parameters:
      turnsToLive - The number of conversation turns that the output context should remain active. The number of turns is counted from the first time that the context is sent to the user.
      Returns:
      Returns a reference to this object so that method calls can be chained together.