Struct aws_sdk_lexmodelsv2::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
The text that appears on the button. Use this to tell the user what value is returned when they choose this button.
sourcepub fn set_text(self, input: Option<String>) -> Self
pub fn set_text(self, input: Option<String>) -> Self
The text that appears on the button. Use this to tell the user what value is returned when they choose this button.
sourcepub fn value(self, input: impl Into<String>) -> Self
pub fn value(self, input: impl Into<String>) -> Self
The value returned to Amazon Lex when the user chooses this button. This must be one of the slot values configured for the slot.