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 for IntentOverrideBuilder
impl PartialEq for IntentOverrideBuilder
impl StructuralPartialEq for IntentOverrideBuilder
Auto Trait Implementations§
impl Freeze for IntentOverrideBuilder
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)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