Struct aws_sdk_lexmodelsv2::model::slot_value_override::Builder
source · pub struct Builder { /* private fields */ }Expand description
A builder for SlotValueOverride.
Implementations§
source§impl Builder
impl Builder
sourcepub fn shape(self, input: SlotShape) -> Self
pub fn shape(self, input: SlotShape) -> 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<SlotShape>) -> Self
pub fn set_shape(self, input: Option<SlotShape>) -> 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 values(self, input: SlotValueOverride) -> Self
pub fn values(self, input: SlotValueOverride) -> 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, for a slot that elicits pizza toppings, the values might be "pepperoni" and "pineapple."
sourcepub fn set_values(self, input: Option<Vec<SlotValueOverride>>) -> Self
pub fn set_values(self, input: Option<Vec<SlotValueOverride>>) -> Self
A list of one or more values that the user provided for the slot. For example, for a slot that elicits pizza toppings, the values might be "pepperoni" and "pineapple."
sourcepub fn build(self) -> SlotValueOverride
pub fn build(self) -> SlotValueOverride
Consumes the builder and constructs a SlotValueOverride.