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 part of the user's response to the slot elicitation that Amazon Lex V2 determines is relevant to the slot value.
sourcepub fn set_original_value(self, input: Option<String>) -> Self
pub fn set_original_value(self, input: Option<String>) -> Self
The part of the user's response to the slot elicitation that Amazon Lex V2 determines is relevant to the slot value.
sourcepub fn get_original_value(&self) -> &Option<String>
pub fn get_original_value(&self) -> &Option<String>
The part of the user's response to the slot elicitation that Amazon Lex V2 determines is relevant to the slot value.
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, given the user input. 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, given the user input. 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, given the user input. 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 values that Amazon Lex V2 determines are possible resolutions for the user input. The first value matches the interpretedValue.
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 values that Amazon Lex V2 determines are possible resolutions for the user input. The first value matches the interpretedValue.
sourcepub fn get_resolved_values(&self) -> &Option<Vec<String>>
pub fn get_resolved_values(&self) -> &Option<Vec<String>>
A list of values that Amazon Lex V2 determines are possible resolutions for the user input. The first value matches the interpretedValue.
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 ==.impl StructuralPartialEq for ValueBuilder
Auto Trait Implementations§
impl Freeze for ValueBuilder
impl RefUnwindSafe for ValueBuilder
impl Send for ValueBuilder
impl Sync for ValueBuilder
impl Unpin for ValueBuilder
impl UnwindSafe for ValueBuilder
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more