Struct aws_sdk_lexruntime::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
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
.