Struct aws_sdk_lexruntimev2::types::builders::RuntimeHintsBuilder
source · #[non_exhaustive]pub struct RuntimeHintsBuilder { /* private fields */ }
Expand description
A builder for RuntimeHints
.
Implementations§
source§impl RuntimeHintsBuilder
impl RuntimeHintsBuilder
sourcepub fn slot_hints(
self,
k: impl Into<String>,
v: HashMap<String, RuntimeHintDetails>
) -> Self
pub fn slot_hints( self, k: impl Into<String>, v: HashMap<String, RuntimeHintDetails> ) -> Self
Adds a key-value pair to slot_hints
.
To override the contents of this collection use set_slot_hints
.
A list of the slots in the intent that should have runtime hints added, and the phrases that should be added for each slot.
The first level of the slotHints
map is the name of the intent. The second level is the name of the slot within the intent. For more information, see Using hints to improve accuracy.
The intent name and slot name must exist.
sourcepub fn set_slot_hints(
self,
input: Option<HashMap<String, HashMap<String, RuntimeHintDetails>>>
) -> Self
pub fn set_slot_hints( self, input: Option<HashMap<String, HashMap<String, RuntimeHintDetails>>> ) -> Self
A list of the slots in the intent that should have runtime hints added, and the phrases that should be added for each slot.
The first level of the slotHints
map is the name of the intent. The second level is the name of the slot within the intent. For more information, see Using hints to improve accuracy.
The intent name and slot name must exist.
sourcepub fn get_slot_hints(
&self
) -> &Option<HashMap<String, HashMap<String, RuntimeHintDetails>>>
pub fn get_slot_hints( &self ) -> &Option<HashMap<String, HashMap<String, RuntimeHintDetails>>>
A list of the slots in the intent that should have runtime hints added, and the phrases that should be added for each slot.
The first level of the slotHints
map is the name of the intent. The second level is the name of the slot within the intent. For more information, see Using hints to improve accuracy.
The intent name and slot name must exist.
sourcepub fn build(self) -> RuntimeHints
pub fn build(self) -> RuntimeHints
Consumes the builder and constructs a RuntimeHints
.
Trait Implementations§
source§impl Clone for RuntimeHintsBuilder
impl Clone for RuntimeHintsBuilder
source§fn clone(&self) -> RuntimeHintsBuilder
fn clone(&self) -> RuntimeHintsBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for RuntimeHintsBuilder
impl Debug for RuntimeHintsBuilder
source§impl Default for RuntimeHintsBuilder
impl Default for RuntimeHintsBuilder
source§fn default() -> RuntimeHintsBuilder
fn default() -> RuntimeHintsBuilder
source§impl PartialEq<RuntimeHintsBuilder> for RuntimeHintsBuilder
impl PartialEq<RuntimeHintsBuilder> for RuntimeHintsBuilder
source§fn eq(&self, other: &RuntimeHintsBuilder) -> bool
fn eq(&self, other: &RuntimeHintsBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.