Struct aws_sdk_lexmodelsv2::model::intent_override::Builder
source · pub struct Builder { /* private fields */ }Expand description
A builder for IntentOverride.
Implementations§
source§impl Builder
impl Builder
sourcepub fn name(self, input: impl Into<String>) -> Self
pub fn name(self, input: impl Into<String>) -> Self
The name of the intent. Only required when you're switching intents.
sourcepub fn set_name(self, input: Option<String>) -> Self
pub fn set_name(self, input: Option<String>) -> Self
The name of the intent. Only required when you're switching intents.
sourcepub fn slots(self, k: impl Into<String>, v: SlotValueOverride) -> Self
pub fn slots(self, k: impl Into<String>, v: SlotValueOverride) -> Self
Adds a key-value pair to slots.
To override the contents of this collection use set_slots.
A map of all of the slot value overrides for the intent. The name of the slot maps to the value of the slot. Slots that are not included in the map aren't overridden.,
sourcepub fn set_slots(self, input: Option<HashMap<String, SlotValueOverride>>) -> Self
pub fn set_slots(self, input: Option<HashMap<String, SlotValueOverride>>) -> Self
A map of all of the slot value overrides for the intent. The name of the slot maps to the value of the slot. Slots that are not included in the map aren't overridden.,
sourcepub fn build(self) -> IntentOverride
pub fn build(self) -> IntentOverride
Consumes the builder and constructs a IntentOverride.