Interface Message.Builder
-
- All Superinterfaces:
Buildable,CopyableBuilder<Message.Builder,Message>,SdkBuilder<Message.Builder,Message>,SdkPojo
- Enclosing class:
- Message
public static interface Message.Builder extends SdkPojo, CopyableBuilder<Message.Builder,Message>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description Message.Buildercontent(String content)The text of the message.Message.BuildercontentType(String contentType)Indicates the type of response.Message.BuildercontentType(MessageContentType contentType)Indicates the type of response.default Message.BuilderimageResponseCard(Consumer<ImageResponseCard.Builder> imageResponseCard)Sets the value of the ImageResponseCard property for this object.Message.BuilderimageResponseCard(ImageResponseCard imageResponseCard)Sets the value of the ImageResponseCard property for this object.-
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, sdkFieldNameToField, sdkFields
-
-
-
-
Method Detail
-
content
Message.Builder content(String content)
The text of the message.
- Parameters:
content- The text of the message.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
contentType
Message.Builder contentType(String contentType)
Indicates the type of response.
- Parameters:
contentType- Indicates the type of response.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
MessageContentType,MessageContentType
-
contentType
Message.Builder contentType(MessageContentType contentType)
Indicates the type of response.
- Parameters:
contentType- Indicates the type of response.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
MessageContentType,MessageContentType
-
imageResponseCard
Message.Builder imageResponseCard(ImageResponseCard imageResponseCard)
Sets the value of the ImageResponseCard property for this object.- Parameters:
imageResponseCard- The new value for the ImageResponseCard property for this object.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
imageResponseCard
default Message.Builder imageResponseCard(Consumer<ImageResponseCard.Builder> imageResponseCard)
Sets the value of the ImageResponseCard property for this object. This is a convenience method that creates an instance of theImageResponseCard.Builderavoiding the need to create one manually viaImageResponseCard.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toimageResponseCard(ImageResponseCard).- Parameters:
imageResponseCard- a consumer that will call methods onImageResponseCard.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
imageResponseCard(ImageResponseCard)
-
-