Interface ListBotsResponse.Builder

    • Method Detail

      • bots

        ListBotsResponse.Builder bots​(Collection<Bot> bots)

        List of bots and bot details.

        Parameters:
        bots - List of bots and bot details.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • bots

        ListBotsResponse.Builder bots​(Bot... bots)

        List of bots and bot details.

        Parameters:
        bots - List of bots and bot details.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • bots

        ListBotsResponse.Builder bots​(Consumer<Bot.Builder>... bots)

        List of bots and bot details.

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

        When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to #bots(List).

        Parameters:
        bots - a consumer that will call methods on Bot.Builder
        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        #bots(java.util.Collection)
      • nextToken

        ListBotsResponse.Builder nextToken​(String nextToken)

        The token to use to retrieve the next page of results.

        Parameters:
        nextToken - The token to use to retrieve the next page of results.
        Returns:
        Returns a reference to this object so that method calls can be chained together.