Struct aws_sdk_lexruntime::types::builders::ActiveContextBuilder
source · #[non_exhaustive]pub struct ActiveContextBuilder { /* private fields */ }
Expand description
A builder for ActiveContext
.
Implementations§
source§impl ActiveContextBuilder
impl ActiveContextBuilder
sourcepub fn name(self, input: impl Into<String>) -> Self
pub fn name(self, input: impl Into<String>) -> Self
The name of the context.
This field is required.sourcepub fn time_to_live(self, input: ActiveContextTimeToLive) -> Self
pub fn time_to_live(self, input: ActiveContextTimeToLive) -> Self
The length of time or number of turns that a context remains active.
This field is required.sourcepub fn set_time_to_live(self, input: Option<ActiveContextTimeToLive>) -> Self
pub fn set_time_to_live(self, input: Option<ActiveContextTimeToLive>) -> Self
The length of time or number of turns that a context remains active.
sourcepub fn get_time_to_live(&self) -> &Option<ActiveContextTimeToLive>
pub fn get_time_to_live(&self) -> &Option<ActiveContextTimeToLive>
The length of time or number of turns that a context remains active.
sourcepub fn parameters(self, k: impl Into<String>, v: impl Into<String>) -> Self
pub fn parameters(self, k: impl Into<String>, v: impl Into<String>) -> Self
Adds a key-value pair to parameters
.
To override the contents of this collection use set_parameters
.
State variables for the current context. You can use these values as default values for slots in subsequent events.
sourcepub fn set_parameters(self, input: Option<HashMap<String, String>>) -> Self
pub fn set_parameters(self, input: Option<HashMap<String, String>>) -> Self
State variables for the current context. You can use these values as default values for slots in subsequent events.
sourcepub fn get_parameters(&self) -> &Option<HashMap<String, String>>
pub fn get_parameters(&self) -> &Option<HashMap<String, String>>
State variables for the current context. You can use these values as default values for slots in subsequent events.
sourcepub fn build(self) -> Result<ActiveContext, BuildError>
pub fn build(self) -> Result<ActiveContext, BuildError>
Consumes the builder and constructs a ActiveContext
.
This method will fail if any of the following fields are not set:
Trait Implementations§
source§impl Clone for ActiveContextBuilder
impl Clone for ActiveContextBuilder
source§fn clone(&self) -> ActiveContextBuilder
fn clone(&self) -> ActiveContextBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for ActiveContextBuilder
impl Debug for ActiveContextBuilder
source§impl Default for ActiveContextBuilder
impl Default for ActiveContextBuilder
source§fn default() -> ActiveContextBuilder
fn default() -> ActiveContextBuilder
source§impl PartialEq for ActiveContextBuilder
impl PartialEq for ActiveContextBuilder
impl StructuralPartialEq for ActiveContextBuilder
Auto Trait Implementations§
impl Freeze for ActiveContextBuilder
impl RefUnwindSafe for ActiveContextBuilder
impl Send for ActiveContextBuilder
impl Sync for ActiveContextBuilder
impl Unpin for ActiveContextBuilder
impl UnwindSafe for ActiveContextBuilder
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