Struct aws_sdk_lexruntimev2::types::builders::ValueBuilder
source · #[non_exhaustive]pub struct ValueBuilder { /* private fields */ }
Expand description
A builder for Value
.
Implementations§
source§impl ValueBuilder
impl ValueBuilder
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 get_original_value(&self) -> &Option<String>
pub fn get_original_value(&self) -> &Option<String>
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 get_interpreted_value(&self) -> &Option<String>
pub fn get_interpreted_value(&self) -> &Option<String>
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.
sourcepub fn get_resolved_values(&self) -> &Option<Vec<String>>
pub fn get_resolved_values(&self) -> &Option<Vec<String>>
A list of additional values that have been recognized for the slot.
Trait Implementations§
source§impl Clone for ValueBuilder
impl Clone for ValueBuilder
source§fn clone(&self) -> ValueBuilder
fn clone(&self) -> ValueBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for ValueBuilder
impl Debug for ValueBuilder
source§impl Default for ValueBuilder
impl Default for ValueBuilder
source§fn default() -> ValueBuilder
fn default() -> ValueBuilder
source§impl PartialEq for ValueBuilder
impl PartialEq for ValueBuilder
source§fn eq(&self, other: &ValueBuilder) -> bool
fn eq(&self, other: &ValueBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.