Struct aws_sdk_lexruntimev2::model::value::Builder
source · pub struct Builder { /* private fields */ }Expand description
A builder for Value.
Implementations§
source§impl Builder
impl Builder
sourcepub fn original_value(self, input: impl Into<String>) -> Self
pub fn original_value(self, input: impl Into<String>) -> Self
The text of the utterance from the user that was entered for the slot.
sourcepub fn set_original_value(self, input: Option<String>) -> Self
pub fn set_original_value(self, input: Option<String>) -> Self
The text of the utterance from the user that was entered for the slot.
sourcepub fn interpreted_value(self, input: impl Into<String>) -> Self
pub fn interpreted_value(self, input: impl Into<String>) -> Self
The value that Amazon Lex V2 determines for the slot. The actual value depends on the setting of the value selection strategy for the bot. You can choose to use the value entered by the user, or you can have Amazon Lex V2 choose the first value in the resolvedValues list.
sourcepub fn set_interpreted_value(self, input: Option<String>) -> Self
pub fn set_interpreted_value(self, input: Option<String>) -> Self
The value that Amazon Lex V2 determines for the slot. The actual value depends on the setting of the value selection strategy for the bot. You can choose to use the value entered by the user, or you can have Amazon Lex V2 choose the first value in the resolvedValues list.
sourcepub fn resolved_values(self, input: impl Into<String>) -> Self
pub fn resolved_values(self, input: impl Into<String>) -> Self
Appends an item to resolved_values.
To override the contents of this collection use set_resolved_values.
A list of additional values that have been recognized for the slot.
sourcepub fn set_resolved_values(self, input: Option<Vec<String>>) -> Self
pub fn set_resolved_values(self, input: Option<Vec<String>>) -> Self
A list of additional values that have been recognized for the slot.