Struct aws_sdk_lexruntimev2::model::intent::Builder
source · pub struct Builder { /* private fields */ }Expand description
A builder for Intent.
Implementations§
source§impl Builder
impl Builder
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 state(self, input: IntentState) -> Self
pub fn state(self, input: IntentState) -> Self
Contains fulfillment information for the intent.
sourcepub fn set_state(self, input: Option<IntentState>) -> Self
pub fn set_state(self, input: Option<IntentState>) -> Self
Contains fulfillment information for the intent.
sourcepub fn confirmation_state(self, input: ConfirmationState) -> Self
pub fn confirmation_state(self, input: ConfirmationState) -> Self
Contains information about whether fulfillment of the intent has been confirmed.
sourcepub fn set_confirmation_state(self, input: Option<ConfirmationState>) -> Self
pub fn set_confirmation_state(self, input: Option<ConfirmationState>) -> Self
Contains information about whether fulfillment of the intent has been confirmed.