Struct aws_sdk_lexmodelsv2::model::intent_override::Builder
source · [−]pub struct Builder { /* private fields */ }Expand description
A builder for IntentOverride.
Implementations
sourceimpl 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.
Trait Implementations
impl StructuralPartialEq for Builder
Auto Trait Implementations
impl RefUnwindSafe for Builder
impl Send for Builder
impl Sync for Builder
impl Unpin for Builder
impl UnwindSafe for Builder
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more