Struct aws_sdk_lexruntimev2::model::message::Builder
source · pub struct Builder { /* private fields */ }Expand description
A builder for Message.
Implementations§
source§impl Builder
impl Builder
sourcepub fn set_content(self, input: Option<String>) -> Self
pub fn set_content(self, input: Option<String>) -> Self
The text of the message.
sourcepub fn content_type(self, input: MessageContentType) -> Self
pub fn content_type(self, input: MessageContentType) -> Self
Indicates the type of response.
sourcepub fn set_content_type(self, input: Option<MessageContentType>) -> Self
pub fn set_content_type(self, input: Option<MessageContentType>) -> Self
Indicates the type of response.
sourcepub fn image_response_card(self, input: ImageResponseCard) -> Self
pub fn image_response_card(self, input: ImageResponseCard) -> Self
A card that is shown to the user by a messaging platform. You define the contents of the card, the card is displayed by the platform.
When you use a response card, the response from the user is constrained to the text associated with a button on the card.
sourcepub fn set_image_response_card(self, input: Option<ImageResponseCard>) -> Self
pub fn set_image_response_card(self, input: Option<ImageResponseCard>) -> Self
A card that is shown to the user by a messaging platform. You define the contents of the card, the card is displayed by the platform.
When you use a response card, the response from the user is constrained to the text associated with a button on the card.