Struct aws_sdk_lexruntimev2::types::builders::SlotBuilder
source · #[non_exhaustive]pub struct SlotBuilder { /* private fields */ }Expand description
A builder for Slot.
Implementations§
source§impl SlotBuilder
impl SlotBuilder
sourcepub fn shape(self, input: Shape) -> Self
pub fn shape(self, input: Shape) -> Self
When the shape value is List, it indicates that the values field contains a list of slot values. When the value is Scalar, it indicates that the value field contains a single value.
sourcepub fn set_shape(self, input: Option<Shape>) -> Self
pub fn set_shape(self, input: Option<Shape>) -> Self
When the shape value is List, it indicates that the values field contains a list of slot values. When the value is Scalar, it indicates that the value field contains a single value.
sourcepub fn get_shape(&self) -> &Option<Shape>
pub fn get_shape(&self) -> &Option<Shape>
When the shape value is List, it indicates that the values field contains a list of slot values. When the value is Scalar, it indicates that the value field contains a single value.
sourcepub fn values(self, input: Slot) -> Self
pub fn values(self, input: Slot) -> Self
Appends an item to values.
To override the contents of this collection use set_values.
A list of one or more values that the user provided for the slot. For example, if a for a slot that elicits pizza toppings, the values might be "pepperoni" and "pineapple."
sourcepub fn set_values(self, input: Option<Vec<Slot>>) -> Self
pub fn set_values(self, input: Option<Vec<Slot>>) -> Self
A list of one or more values that the user provided for the slot. For example, if a for a slot that elicits pizza toppings, the values might be "pepperoni" and "pineapple."
sourcepub fn get_values(&self) -> &Option<Vec<Slot>>
pub fn get_values(&self) -> &Option<Vec<Slot>>
A list of one or more values that the user provided for the slot. For example, if a for a slot that elicits pizza toppings, the values might be "pepperoni" and "pineapple."
sourcepub fn sub_slots(self, k: impl Into<String>, v: Slot) -> Self
pub fn sub_slots(self, k: impl Into<String>, v: Slot) -> Self
Adds a key-value pair to sub_slots.
To override the contents of this collection use set_sub_slots.
The constituent sub slots of a composite slot.
sourcepub fn set_sub_slots(self, input: Option<HashMap<String, Slot>>) -> Self
pub fn set_sub_slots(self, input: Option<HashMap<String, Slot>>) -> Self
The constituent sub slots of a composite slot.
Trait Implementations§
source§impl Clone for SlotBuilder
impl Clone for SlotBuilder
source§fn clone(&self) -> SlotBuilder
fn clone(&self) -> SlotBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for SlotBuilder
impl Debug for SlotBuilder
source§impl Default for SlotBuilder
impl Default for SlotBuilder
source§fn default() -> SlotBuilder
fn default() -> SlotBuilder
source§impl PartialEq for SlotBuilder
impl PartialEq for SlotBuilder
source§fn eq(&self, other: &SlotBuilder) -> bool
fn eq(&self, other: &SlotBuilder) -> bool
self and other values to be equal, and is used
by ==.