#[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 ==.impl StructuralPartialEq for MultipleValuesSettingBuilder
Auto Trait Implementations§
impl Freeze for MultipleValuesSettingBuilder
impl RefUnwindSafe for MultipleValuesSettingBuilder
impl Send for MultipleValuesSettingBuilder
impl Sync for MultipleValuesSettingBuilder
impl Unpin for MultipleValuesSettingBuilder
impl UnwindSafe for MultipleValuesSettingBuilder
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit)source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more