Interface GenerateBotElementResponse.Builder

All Superinterfaces:
AwsResponse.Builder, Buildable, CopyableBuilder<GenerateBotElementResponse.Builder,GenerateBotElementResponse>, LexModelsV2Response.Builder, SdkBuilder<GenerateBotElementResponse.Builder,GenerateBotElementResponse>, SdkPojo, SdkResponse.Builder
Enclosing class:
GenerateBotElementResponse

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

    • botId

      The unique bot Id for the bot which received the response.

      Parameters:
      botId - The unique bot Id for the bot which received the response.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • botVersion

      The unique bot version for the bot which received the response.

      Parameters:
      botVersion - The unique bot version for the bot which received the response.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • localeId

      The unique locale Id for the bot which received the response.

      Parameters:
      localeId - The unique locale Id for the bot which received the response.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • intentId

      The unique intent Id for the bot which received the response.

      Parameters:
      intentId - The unique intent Id for the bot which received the response.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • sampleUtterances

      GenerateBotElementResponse.Builder sampleUtterances(Collection<SampleUtterance> sampleUtterances)

      The sample utterances for the bot which received the response.

      Parameters:
      sampleUtterances - The sample utterances for the bot which received the response.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • sampleUtterances

      GenerateBotElementResponse.Builder sampleUtterances(SampleUtterance... sampleUtterances)

      The sample utterances for the bot which received the response.

      Parameters:
      sampleUtterances - The sample utterances for the bot which received the response.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • sampleUtterances

      The sample utterances for the bot which received the response.

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

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

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