#[non_exhaustive]pub struct ParticipantTimerConfigurationBuilder { /* private fields */ }
Expand description
A builder for ParticipantTimerConfiguration
.
Implementations§
source§impl ParticipantTimerConfigurationBuilder
impl ParticipantTimerConfigurationBuilder
sourcepub fn participant_role(self, input: TimerEligibleParticipantRoles) -> Self
pub fn participant_role(self, input: TimerEligibleParticipantRoles) -> Self
The role of the participant in the chat conversation.
This field is required.sourcepub fn set_participant_role(
self,
input: Option<TimerEligibleParticipantRoles>
) -> Self
pub fn set_participant_role( self, input: Option<TimerEligibleParticipantRoles> ) -> Self
The role of the participant in the chat conversation.
sourcepub fn get_participant_role(&self) -> &Option<TimerEligibleParticipantRoles>
pub fn get_participant_role(&self) -> &Option<TimerEligibleParticipantRoles>
The role of the participant in the chat conversation.
sourcepub fn timer_type(self, input: ParticipantTimerType) -> Self
pub fn timer_type(self, input: ParticipantTimerType) -> Self
The type of timer. IDLE
indicates the timer applies for considering a human chat participant as idle. DISCONNECT_NONCUSTOMER
indicates the timer applies to automatically disconnecting a chat participant due to idleness.
sourcepub fn set_timer_type(self, input: Option<ParticipantTimerType>) -> Self
pub fn set_timer_type(self, input: Option<ParticipantTimerType>) -> Self
The type of timer. IDLE
indicates the timer applies for considering a human chat participant as idle. DISCONNECT_NONCUSTOMER
indicates the timer applies to automatically disconnecting a chat participant due to idleness.
sourcepub fn get_timer_type(&self) -> &Option<ParticipantTimerType>
pub fn get_timer_type(&self) -> &Option<ParticipantTimerType>
The type of timer. IDLE
indicates the timer applies for considering a human chat participant as idle. DISCONNECT_NONCUSTOMER
indicates the timer applies to automatically disconnecting a chat participant due to idleness.
sourcepub fn timer_value(self, input: ParticipantTimerValue) -> Self
pub fn timer_value(self, input: ParticipantTimerValue) -> Self
The value of the timer. Either the timer action (Unset to delete the timer), or the duration of the timer in minutes. Only one value can be set.
This field is required.sourcepub fn set_timer_value(self, input: Option<ParticipantTimerValue>) -> Self
pub fn set_timer_value(self, input: Option<ParticipantTimerValue>) -> Self
The value of the timer. Either the timer action (Unset to delete the timer), or the duration of the timer in minutes. Only one value can be set.
sourcepub fn get_timer_value(&self) -> &Option<ParticipantTimerValue>
pub fn get_timer_value(&self) -> &Option<ParticipantTimerValue>
The value of the timer. Either the timer action (Unset to delete the timer), or the duration of the timer in minutes. Only one value can be set.
sourcepub fn build(self) -> Result<ParticipantTimerConfiguration, BuildError>
pub fn build(self) -> Result<ParticipantTimerConfiguration, BuildError>
Consumes the builder and constructs a ParticipantTimerConfiguration
.
This method will fail if any of the following fields are not set:
Trait Implementations§
source§impl Clone for ParticipantTimerConfigurationBuilder
impl Clone for ParticipantTimerConfigurationBuilder
source§fn clone(&self) -> ParticipantTimerConfigurationBuilder
fn clone(&self) -> ParticipantTimerConfigurationBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Default for ParticipantTimerConfigurationBuilder
impl Default for ParticipantTimerConfigurationBuilder
source§fn default() -> ParticipantTimerConfigurationBuilder
fn default() -> ParticipantTimerConfigurationBuilder
source§impl PartialEq for ParticipantTimerConfigurationBuilder
impl PartialEq for ParticipantTimerConfigurationBuilder
source§fn eq(&self, other: &ParticipantTimerConfigurationBuilder) -> bool
fn eq(&self, other: &ParticipantTimerConfigurationBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.