Interface MessageGroup.Builder

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

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

    • message

      MessageGroup.Builder message(Message message)

      The primary message that Amazon Lex should send to the user.

      Parameters:
      message - The primary message that Amazon Lex should send to the user.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • message

      default MessageGroup.Builder message(Consumer<Message.Builder> message)

      The primary message that Amazon Lex should send to the user.

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

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to message(Message).

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

      MessageGroup.Builder variations(Collection<Message> variations)

      Message variations to send to the user. When variations are defined, Amazon Lex chooses the primary message or one of the variations to send to the user.

      Parameters:
      variations - Message variations to send to the user. When variations are defined, Amazon Lex chooses the primary message or one of the variations to send to the user.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • variations

      MessageGroup.Builder variations(Message... variations)

      Message variations to send to the user. When variations are defined, Amazon Lex chooses the primary message or one of the variations to send to the user.

      Parameters:
      variations - Message variations to send to the user. When variations are defined, Amazon Lex chooses the primary message or one of the variations to send to the user.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • variations

      MessageGroup.Builder variations(Consumer<Message.Builder>... variations)

      Message variations to send to the user. When variations are defined, Amazon Lex chooses the primary message or one of the variations to send to the user.

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

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

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