Struct aws_sdk_lexruntime::model::button::Builder
source · pub struct Builder { /* private fields */ }
Expand description
A builder for Button
.
Implementations§
source§impl Builder
impl Builder
sourcepub fn text(self, input: impl Into<String>) -> Self
pub fn text(self, input: impl Into<String>) -> Self
Text that is visible to the user on the button.
sourcepub fn set_text(self, input: Option<String>) -> Self
pub fn set_text(self, input: Option<String>) -> Self
Text that is visible to the user on the button.
sourcepub fn value(self, input: impl Into<String>) -> Self
pub fn value(self, input: impl Into<String>) -> Self
The value sent to Amazon Lex when a user chooses the button. For example, consider button text "NYC." When the user chooses the button, the value sent can be "New York City."