Struct aws_sdk_lexmodelsv2::types::builders::IntentOverrideBuilder
source · #[non_exhaustive]pub struct IntentOverrideBuilder { /* private fields */ }Expand description
A builder for IntentOverride.
Implementations§
source§impl IntentOverrideBuilder
impl IntentOverrideBuilder
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 get_name(&self) -> &Option<String>
pub fn get_name(&self) -> &Option<String>
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 get_slots(&self) -> &Option<HashMap<String, SlotValueOverride>>
pub fn get_slots(&self) -> &Option<HashMap<String, SlotValueOverride>>
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.
Trait Implementations§
source§impl Clone for IntentOverrideBuilder
impl Clone for IntentOverrideBuilder
source§fn clone(&self) -> IntentOverrideBuilder
fn clone(&self) -> IntentOverrideBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for IntentOverrideBuilder
impl Debug for IntentOverrideBuilder
source§impl Default for IntentOverrideBuilder
impl Default for IntentOverrideBuilder
source§fn default() -> IntentOverrideBuilder
fn default() -> IntentOverrideBuilder
source§impl PartialEq<IntentOverrideBuilder> for IntentOverrideBuilder
impl PartialEq<IntentOverrideBuilder> for IntentOverrideBuilder
source§fn eq(&self, other: &IntentOverrideBuilder) -> bool
fn eq(&self, other: &IntentOverrideBuilder) -> bool
self and other values to be equal, and is used
by ==.