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 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 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 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
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
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
Returns the “default value” for a type. Read more
source§impl PartialEq<PredictedIntentBuilder> for PredictedIntentBuilder
impl PartialEq<PredictedIntentBuilder> for PredictedIntentBuilder
source§fn eq(&self, other: &PredictedIntentBuilder) -> bool
fn eq(&self, other: &PredictedIntentBuilder) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for PredictedIntentBuilder
Auto Trait Implementations§
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
Mutably borrows from an owned value. Read more