Struct aws_sdk_lexruntimev2::model::active_context::Builder
source · pub struct Builder { /* private fields */ }Expand description
A builder for ActiveContext.
Implementations§
source§impl Builder
impl Builder
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 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 build(self) -> ActiveContext
pub fn build(self) -> ActiveContext
Consumes the builder and constructs a ActiveContext.