Struct aws_sdk_lexmodelsv2::model::multiple_values_setting::Builder
source · pub struct Builder { /* private fields */ }Expand description
A builder for MultipleValuesSetting.
Implementations§
source§impl Builder
impl Builder
sourcepub fn allow_multiple_values(self, input: bool) -> Self
pub fn allow_multiple_values(self, input: bool) -> Self
Indicates whether a slot can return multiple values. When true, the slot may return more than one value in a response. When false, the slot returns only a single value.
Multi-value slots are only available in the en-US locale. If you set this value to true in any other locale, Amazon Lex throws a ValidationException.
If the allowMutlipleValues is not set, the default value is false.
sourcepub fn set_allow_multiple_values(self, input: Option<bool>) -> Self
pub fn set_allow_multiple_values(self, input: Option<bool>) -> Self
Indicates whether a slot can return multiple values. When true, the slot may return more than one value in a response. When false, the slot returns only a single value.
Multi-value slots are only available in the en-US locale. If you set this value to true in any other locale, Amazon Lex throws a ValidationException.
If the allowMutlipleValues is not set, the default value is false.
sourcepub fn build(self) -> MultipleValuesSetting
pub fn build(self) -> MultipleValuesSetting
Consumes the builder and constructs a MultipleValuesSetting.