#[non_exhaustive]pub struct MultipleValuesSettingBuilder { /* private fields */ }Expand description
A builder for MultipleValuesSetting.
Implementations§
source§impl MultipleValuesSettingBuilder
impl MultipleValuesSettingBuilder
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 get_allow_multiple_values(&self) -> &Option<bool>
pub fn get_allow_multiple_values(&self) -> &Option<bool>
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.
Trait Implementations§
source§impl Clone for MultipleValuesSettingBuilder
impl Clone for MultipleValuesSettingBuilder
source§fn clone(&self) -> MultipleValuesSettingBuilder
fn clone(&self) -> MultipleValuesSettingBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for MultipleValuesSettingBuilder
impl Debug for MultipleValuesSettingBuilder
source§impl Default for MultipleValuesSettingBuilder
impl Default for MultipleValuesSettingBuilder
source§fn default() -> MultipleValuesSettingBuilder
fn default() -> MultipleValuesSettingBuilder
source§impl PartialEq for MultipleValuesSettingBuilder
impl PartialEq for MultipleValuesSettingBuilder
source§fn eq(&self, other: &MultipleValuesSettingBuilder) -> bool
fn eq(&self, other: &MultipleValuesSettingBuilder) -> bool
self and other values to be equal, and is used
by ==.