Struct aws_sdk_lexmodelsv2::types::builders::OutputContextBuilder
source · #[non_exhaustive]pub struct OutputContextBuilder { /* private fields */ }
Expand description
A builder for OutputContext
.
Implementations§
source§impl OutputContextBuilder
impl OutputContextBuilder
sourcepub fn name(self, input: impl Into<String>) -> Self
pub fn name(self, input: impl Into<String>) -> Self
The name of the output context.
This field is required.sourcepub fn time_to_live_in_seconds(self, input: i32) -> Self
pub fn time_to_live_in_seconds(self, input: i32) -> Self
The amount of time, in seconds, that the output context should remain active. The time is figured from the first time the context is sent to the user.
This field is required.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 amount of time, in seconds, that the output context should remain active. The time is figured from the first time the context is sent to the user.
sourcepub fn get_time_to_live_in_seconds(&self) -> &Option<i32>
pub fn get_time_to_live_in_seconds(&self) -> &Option<i32>
The amount of time, in seconds, that the output context should remain active. The time is figured from the first time the context is sent to the user.
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 output context should remain active. The number of turns is counted from the first time that the context is sent to the user.
This field is required.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 output context should remain active. The number of turns is counted from the first time that the context is sent to the user.
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 output context should remain active. The number of turns is counted from the first time that the context is sent to the user.
sourcepub fn build(self) -> Result<OutputContext, BuildError>
pub fn build(self) -> Result<OutputContext, BuildError>
Consumes the builder and constructs a OutputContext
.
This method will fail if any of the following fields are not set:
Trait Implementations§
source§impl Clone for OutputContextBuilder
impl Clone for OutputContextBuilder
source§fn clone(&self) -> OutputContextBuilder
fn clone(&self) -> OutputContextBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for OutputContextBuilder
impl Debug for OutputContextBuilder
source§impl Default for OutputContextBuilder
impl Default for OutputContextBuilder
source§fn default() -> OutputContextBuilder
fn default() -> OutputContextBuilder
source§impl PartialEq for OutputContextBuilder
impl PartialEq for OutputContextBuilder
impl StructuralPartialEq for OutputContextBuilder
Auto Trait Implementations§
impl Freeze for OutputContextBuilder
impl RefUnwindSafe for OutputContextBuilder
impl Send for OutputContextBuilder
impl Sync for OutputContextBuilder
impl Unpin for OutputContextBuilder
impl UnwindSafe for OutputContextBuilder
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more