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 Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default MessageGroup.Buildermessage(Consumer<Message.Builder> message)The primary message that Amazon Lex should send to the user.MessageGroup.Buildermessage(Message message)The primary message that Amazon Lex should send to the user.MessageGroup.Buildervariations(Collection<Message> variations)Message variations to send to the user.MessageGroup.Buildervariations(Consumer<Message.Builder>... variations)Message variations to send to the user.MessageGroup.Buildervariations(Message... variations)Message variations to send to the user.-
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
-
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
-
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
-
-
-
Method Detail
-
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 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:
message(Message)
-
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 theMessage.Builderavoiding the need to create one manually viaMessage.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed to#variations(List.) - 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:
#variations(java.util.Collection)
-
-