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