Struct aws_sdk_lexruntime::types::builders::PredictedIntentBuilder
source · #[non_exhaustive]pub struct PredictedIntentBuilder { /* private fields */ }
Expand description
A builder for PredictedIntent
.
Implementations§
source§impl PredictedIntentBuilder
impl PredictedIntentBuilder
sourcepub fn intent_name(self, input: impl Into<String>) -> Self
pub fn intent_name(self, input: impl Into<String>) -> Self
The name of the intent that Amazon Lex suggests satisfies the user's intent.
sourcepub fn set_intent_name(self, input: Option<String>) -> Self
pub fn set_intent_name(self, input: Option<String>) -> Self
The name of the intent that Amazon Lex suggests satisfies the user's intent.
sourcepub fn get_intent_name(&self) -> &Option<String>
pub fn get_intent_name(&self) -> &Option<String>
The name of the intent that Amazon Lex suggests satisfies the user's intent.
sourcepub fn nlu_intent_confidence(self, input: IntentConfidence) -> Self
pub fn nlu_intent_confidence(self, input: IntentConfidence) -> Self
Indicates how confident Amazon Lex is that an intent satisfies the user's intent.
sourcepub fn set_nlu_intent_confidence(self, input: Option<IntentConfidence>) -> Self
pub fn set_nlu_intent_confidence(self, input: Option<IntentConfidence>) -> Self
Indicates how confident Amazon Lex is that an intent satisfies the user's intent.
sourcepub fn get_nlu_intent_confidence(&self) -> &Option<IntentConfidence>
pub fn get_nlu_intent_confidence(&self) -> &Option<IntentConfidence>
Indicates how confident Amazon Lex is that an intent satisfies the user's intent.
sourcepub fn slots(self, k: impl Into<String>, v: impl Into<String>) -> Self
pub fn slots(self, k: impl Into<String>, v: impl Into<String>) -> Self
Adds a key-value pair to slots
.
To override the contents of this collection use set_slots
.
The slot and slot values associated with the predicted intent.
sourcepub fn set_slots(self, input: Option<HashMap<String, String>>) -> Self
pub fn set_slots(self, input: Option<HashMap<String, String>>) -> Self
The slot and slot values associated with the predicted intent.
sourcepub fn get_slots(&self) -> &Option<HashMap<String, String>>
pub fn get_slots(&self) -> &Option<HashMap<String, String>>
The slot and slot values associated with the predicted intent.
sourcepub fn build(self) -> PredictedIntent
pub fn build(self) -> PredictedIntent
Consumes the builder and constructs a PredictedIntent
.
Trait Implementations§
source§impl Clone for PredictedIntentBuilder
impl Clone for PredictedIntentBuilder
source§fn clone(&self) -> PredictedIntentBuilder
fn clone(&self) -> PredictedIntentBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for PredictedIntentBuilder
impl Debug for PredictedIntentBuilder
source§impl Default for PredictedIntentBuilder
impl Default for PredictedIntentBuilder
source§fn default() -> PredictedIntentBuilder
fn default() -> PredictedIntentBuilder
source§impl PartialEq for PredictedIntentBuilder
impl PartialEq for PredictedIntentBuilder
impl StructuralPartialEq for PredictedIntentBuilder
Auto Trait Implementations§
impl Freeze for PredictedIntentBuilder
impl RefUnwindSafe for PredictedIntentBuilder
impl Send for PredictedIntentBuilder
impl Sync for PredictedIntentBuilder
impl Unpin for PredictedIntentBuilder
impl UnwindSafe for PredictedIntentBuilder
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)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