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 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.
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 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 build(self) -> ActiveContext
pub fn build(self) -> ActiveContext
Consumes the builder and constructs a ActiveContext
.
Trait Implementations§
source§impl Clone for ActiveContextBuilder
impl Clone for ActiveContextBuilder
source§fn clone(&self) -> ActiveContextBuilder
fn clone(&self) -> ActiveContextBuilder
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
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
Returns the “default value” for a type. Read more
source§impl PartialEq<ActiveContextBuilder> for ActiveContextBuilder
impl PartialEq<ActiveContextBuilder> for ActiveContextBuilder
source§fn eq(&self, other: &ActiveContextBuilder) -> bool
fn eq(&self, other: &ActiveContextBuilder) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for ActiveContextBuilder
Auto Trait Implementations§
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
Mutably borrows from an owned value. Read more