#[non_exhaustive]pub struct ActiveContextTimeToLiveBuilder { /* private fields */ }
Expand description
A builder for ActiveContextTimeToLive
.
Implementations§
source§impl ActiveContextTimeToLiveBuilder
impl ActiveContextTimeToLiveBuilder
sourcepub fn time_to_live_in_seconds(self, input: i32) -> Self
pub fn time_to_live_in_seconds(self, input: i32) -> Self
The number of seconds that the context should be active after it is first sent in a PostContent
or PostText
response. You can set the value between 5 and 86,400 seconds (24 hours).
sourcepub fn set_time_to_live_in_seconds(self, input: Option<i32>) -> Self
pub fn set_time_to_live_in_seconds(self, input: Option<i32>) -> Self
The number of seconds that the context should be active after it is first sent in a PostContent
or PostText
response. You can set the value between 5 and 86,400 seconds (24 hours).
sourcepub fn get_time_to_live_in_seconds(&self) -> &Option<i32>
pub fn get_time_to_live_in_seconds(&self) -> &Option<i32>
The number of seconds that the context should be active after it is first sent in a PostContent
or PostText
response. You can set the value between 5 and 86,400 seconds (24 hours).
sourcepub fn turns_to_live(self, input: i32) -> Self
pub fn turns_to_live(self, input: i32) -> Self
The number of conversation turns that the context should be active. A conversation turn is one PostContent
or PostText
request and the corresponding response from Amazon Lex.
sourcepub fn set_turns_to_live(self, input: Option<i32>) -> Self
pub fn set_turns_to_live(self, input: Option<i32>) -> Self
The number of conversation turns that the context should be active. A conversation turn is one PostContent
or PostText
request and the corresponding response from Amazon Lex.
sourcepub fn get_turns_to_live(&self) -> &Option<i32>
pub fn get_turns_to_live(&self) -> &Option<i32>
The number of conversation turns that the context should be active. A conversation turn is one PostContent
or PostText
request and the corresponding response from Amazon Lex.
sourcepub fn build(self) -> ActiveContextTimeToLive
pub fn build(self) -> ActiveContextTimeToLive
Consumes the builder and constructs a ActiveContextTimeToLive
.
Trait Implementations§
source§impl Clone for ActiveContextTimeToLiveBuilder
impl Clone for ActiveContextTimeToLiveBuilder
source§fn clone(&self) -> ActiveContextTimeToLiveBuilder
fn clone(&self) -> ActiveContextTimeToLiveBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Default for ActiveContextTimeToLiveBuilder
impl Default for ActiveContextTimeToLiveBuilder
source§fn default() -> ActiveContextTimeToLiveBuilder
fn default() -> ActiveContextTimeToLiveBuilder
source§impl PartialEq for ActiveContextTimeToLiveBuilder
impl PartialEq for ActiveContextTimeToLiveBuilder
source§fn eq(&self, other: &ActiveContextTimeToLiveBuilder) -> bool
fn eq(&self, other: &ActiveContextTimeToLiveBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.