Struct aws_sdk_lexruntimev2::model::image_response_card::Builder
source · pub struct Builder { /* private fields */ }Expand description
A builder for ImageResponseCard.
Implementations§
source§impl Builder
impl Builder
sourcepub fn title(self, input: impl Into<String>) -> Self
pub fn title(self, input: impl Into<String>) -> Self
The title to display on the response card. The format of the title is determined by the platform displaying the response card.
sourcepub fn set_title(self, input: Option<String>) -> Self
pub fn set_title(self, input: Option<String>) -> Self
The title to display on the response card. The format of the title is determined by the platform displaying the response card.
sourcepub fn subtitle(self, input: impl Into<String>) -> Self
pub fn subtitle(self, input: impl Into<String>) -> Self
The subtitle to display on the response card. The format of the subtitle is determined by the platform displaying the response card.
sourcepub fn set_subtitle(self, input: Option<String>) -> Self
pub fn set_subtitle(self, input: Option<String>) -> Self
The subtitle to display on the response card. The format of the subtitle is determined by the platform displaying the response card.
sourcepub fn image_url(self, input: impl Into<String>) -> Self
pub fn image_url(self, input: impl Into<String>) -> Self
The URL of an image to display on the response card. The image URL must be publicly available so that the platform displaying the response card has access to the image.
sourcepub fn set_image_url(self, input: Option<String>) -> Self
pub fn set_image_url(self, input: Option<String>) -> Self
The URL of an image to display on the response card. The image URL must be publicly available so that the platform displaying the response card has access to the image.
Appends an item to buttons.
To override the contents of this collection use set_buttons.
A list of buttons that should be displayed on the response card. The arrangement of the buttons is determined by the platform that displays the button.
A list of buttons that should be displayed on the response card. The arrangement of the buttons is determined by the platform that displays the button.
sourcepub fn build(self) -> ImageResponseCard
pub fn build(self) -> ImageResponseCard
Consumes the builder and constructs a ImageResponseCard.