Interface MessageGroup.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<MessageGroup.Builder,,MessageGroup> SdkBuilder<MessageGroup.Builder,,MessageGroup> SdkPojo
- Enclosing class:
MessageGroup
-
Method Summary
Modifier and TypeMethodDescriptiondefault MessageGroup.Buildermessage(Consumer<Message.Builder> message) The primary message that Amazon Lex should send to the user.The primary message that Amazon Lex should send to the user.variations(Collection<Message> variations) Message variations to send to the user.variations(Consumer<Message.Builder>... variations) Message variations to send to the user.variations(Message... variations) Message variations to send to the user.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
Method Details
-
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
The primary message that Amazon Lex should send to the user.
This is a convenience method that creates an instance of theMessage.Builderavoiding the need to create one manually viaMessage.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tomessage(Message).- Parameters:
message- a consumer that will call methods onMessage.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
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
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
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 theMessage.Builderavoiding the need to create one manually viaMessage.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tovariations(List<Message>).- Parameters:
variations- a consumer that will call methods onMessage.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-