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
source§fn eq(&self, other: &PredictedIntentBuilder) -> bool
fn eq(&self, other: &PredictedIntentBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.