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 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.
Trait Implementations§
source§impl Clone for IntentOverrideBuilder
impl Clone for IntentOverrideBuilder
source§fn clone(&self) -> IntentOverrideBuilder
fn clone(&self) -> IntentOverrideBuilder
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
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
Returns the “default value” for a type. Read more
source§impl PartialEq<IntentOverrideBuilder> for IntentOverrideBuilder
impl PartialEq<IntentOverrideBuilder> for IntentOverrideBuilder
source§fn eq(&self, other: &IntentOverrideBuilder) -> bool
fn eq(&self, other: &IntentOverrideBuilder) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl StructuralPartialEq for IntentOverrideBuilder
Auto Trait Implementations§
impl RefUnwindSafe for IntentOverrideBuilder
impl Send for IntentOverrideBuilder
impl Sync for IntentOverrideBuilder
impl Unpin for IntentOverrideBuilder
impl UnwindSafe for IntentOverrideBuilder
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
Mutably borrows from an owned value. Read more