Struct aws_sdk_lexruntimev2::types::builders::IntentBuilder
source · #[non_exhaustive]pub struct IntentBuilder { /* private fields */ }Expand description
A builder for Intent.
Implementations§
source§impl IntentBuilder
impl IntentBuilder
sourcepub fn name(self, input: impl Into<String>) -> Self
pub fn name(self, input: impl Into<String>) -> Self
The name of the intent.
This field is required.sourcepub fn slots(self, k: impl Into<String>, v: Slot) -> Self
pub fn slots(self, k: impl Into<String>, v: Slot) -> Self
Adds a key-value pair to slots.
To override the contents of this collection use set_slots.
A map of all of the slots for the intent. The name of the slot maps to the value of the slot. If a slot has not been filled, the value is null.
sourcepub fn set_slots(self, input: Option<HashMap<String, Slot>>) -> Self
pub fn set_slots(self, input: Option<HashMap<String, Slot>>) -> Self
A map of all of the slots for the intent. The name of the slot maps to the value of the slot. If a slot has not been filled, the value is null.
sourcepub fn get_slots(&self) -> &Option<HashMap<String, Slot>>
pub fn get_slots(&self) -> &Option<HashMap<String, Slot>>
A map of all of the slots for the intent. The name of the slot maps to the value of the slot. If a slot has not been filled, the value is null.
sourcepub fn state(self, input: IntentState) -> Self
pub fn state(self, input: IntentState) -> Self
Indicates the fulfillment state for the intent. The meanings of each value are as follows:
-
Failed– The bot failed to fulfill the intent. -
Fulfilled– The bot has completed fulfillment of the intent. -
FulfillmentInProgress– The bot is in the middle of fulfilling the intent. -
InProgress– The bot is in the middle of eliciting the slot values that are necessary to fulfill the intent. -
ReadyForFulfillment– The bot has elicited all the slot values for the intent and is ready to fulfill the intent. -
Waiting– The bot is waiting for a response from the user (limited to streaming conversations).
sourcepub fn set_state(self, input: Option<IntentState>) -> Self
pub fn set_state(self, input: Option<IntentState>) -> Self
Indicates the fulfillment state for the intent. The meanings of each value are as follows:
-
Failed– The bot failed to fulfill the intent. -
Fulfilled– The bot has completed fulfillment of the intent. -
FulfillmentInProgress– The bot is in the middle of fulfilling the intent. -
InProgress– The bot is in the middle of eliciting the slot values that are necessary to fulfill the intent. -
ReadyForFulfillment– The bot has elicited all the slot values for the intent and is ready to fulfill the intent. -
Waiting– The bot is waiting for a response from the user (limited to streaming conversations).
sourcepub fn get_state(&self) -> &Option<IntentState>
pub fn get_state(&self) -> &Option<IntentState>
Indicates the fulfillment state for the intent. The meanings of each value are as follows:
-
Failed– The bot failed to fulfill the intent. -
Fulfilled– The bot has completed fulfillment of the intent. -
FulfillmentInProgress– The bot is in the middle of fulfilling the intent. -
InProgress– The bot is in the middle of eliciting the slot values that are necessary to fulfill the intent. -
ReadyForFulfillment– The bot has elicited all the slot values for the intent and is ready to fulfill the intent. -
Waiting– The bot is waiting for a response from the user (limited to streaming conversations).
sourcepub fn confirmation_state(self, input: ConfirmationState) -> Self
pub fn confirmation_state(self, input: ConfirmationState) -> Self
Indicates whether the intent has been Confirmed, Denied, or None if the confirmation stage has not yet been reached.
sourcepub fn set_confirmation_state(self, input: Option<ConfirmationState>) -> Self
pub fn set_confirmation_state(self, input: Option<ConfirmationState>) -> Self
Indicates whether the intent has been Confirmed, Denied, or None if the confirmation stage has not yet been reached.
sourcepub fn get_confirmation_state(&self) -> &Option<ConfirmationState>
pub fn get_confirmation_state(&self) -> &Option<ConfirmationState>
Indicates whether the intent has been Confirmed, Denied, or None if the confirmation stage has not yet been reached.
Trait Implementations§
source§impl Clone for IntentBuilder
impl Clone for IntentBuilder
source§fn clone(&self) -> IntentBuilder
fn clone(&self) -> IntentBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for IntentBuilder
impl Debug for IntentBuilder
source§impl Default for IntentBuilder
impl Default for IntentBuilder
source§fn default() -> IntentBuilder
fn default() -> IntentBuilder
source§impl PartialEq for IntentBuilder
impl PartialEq for IntentBuilder
source§fn eq(&self, other: &IntentBuilder) -> bool
fn eq(&self, other: &IntentBuilder) -> bool
self and other values to be equal, and is used
by ==.impl StructuralPartialEq for IntentBuilder
Auto Trait Implementations§
impl Freeze for IntentBuilder
impl RefUnwindSafe for IntentBuilder
impl Send for IntentBuilder
impl Sync for IntentBuilder
impl Unpin for IntentBuilder
impl UnwindSafe for IntentBuilder
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