Struct aws_sdk_lexruntimev2::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
Indicates the number of turns or seconds that the context is active. Once the time to live expires, the context is no longer returned in a response.
sourcepub fn set_time_to_live(self, input: Option<ActiveContextTimeToLive>) -> Self
pub fn set_time_to_live(self, input: Option<ActiveContextTimeToLive>) -> Self
Indicates the number of turns or seconds that the context is active. Once the time to live expires, the context is no longer returned in a response.
sourcepub fn get_time_to_live(&self) -> &Option<ActiveContextTimeToLive>
pub fn get_time_to_live(&self) -> &Option<ActiveContextTimeToLive>
Indicates the number of turns or seconds that the context is active. Once the time to live expires, the context is no longer returned in a response.
sourcepub fn context_attributes(
self,
k: impl Into<String>,
v: impl Into<String>
) -> Self
pub fn context_attributes( self, k: impl Into<String>, v: impl Into<String> ) -> Self
Adds a key-value pair to context_attributes
.
To override the contents of this collection use set_context_attributes
.
A list of contexts active for the request. A context can be activated when a previous intent is fulfilled, or by including the context in the request.
If you don't specify a list of contexts, Amazon Lex V2 will use the current list of contexts for the session. If you specify an empty list, all contexts for the session are cleared.
sourcepub fn set_context_attributes(
self,
input: Option<HashMap<String, String>>
) -> Self
pub fn set_context_attributes( self, input: Option<HashMap<String, String>> ) -> Self
A list of contexts active for the request. A context can be activated when a previous intent is fulfilled, or by including the context in the request.
If you don't specify a list of contexts, Amazon Lex V2 will use the current list of contexts for the session. If you specify an empty list, all contexts for the session are cleared.
sourcepub fn get_context_attributes(&self) -> &Option<HashMap<String, String>>
pub fn get_context_attributes(&self) -> &Option<HashMap<String, String>>
A list of contexts active for the request. A context can be activated when a previous intent is fulfilled, or by including the context in the request.
If you don't specify a list of contexts, Amazon Lex V2 will use the current list of contexts for the session. If you specify an empty list, all contexts for the session are cleared.
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
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<ActiveContextBuilder> for ActiveContextBuilder
impl PartialEq<ActiveContextBuilder> for ActiveContextBuilder
source§fn eq(&self, other: &ActiveContextBuilder) -> bool
fn eq(&self, other: &ActiveContextBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.