#[non_exhaustive]pub struct AgentContactReferenceBuilder { /* private fields */ }
Expand description
A builder for AgentContactReference
.
Implementations§
source§impl AgentContactReferenceBuilder
impl AgentContactReferenceBuilder
sourcepub fn contact_id(self, input: impl Into<String>) -> Self
pub fn contact_id(self, input: impl Into<String>) -> Self
The identifier of the contact in this instance of Amazon Connect.
sourcepub fn set_contact_id(self, input: Option<String>) -> Self
pub fn set_contact_id(self, input: Option<String>) -> Self
The identifier of the contact in this instance of Amazon Connect.
sourcepub fn get_contact_id(&self) -> &Option<String>
pub fn get_contact_id(&self) -> &Option<String>
The identifier of the contact in this instance of Amazon Connect.
sourcepub fn set_channel(self, input: Option<Channel>) -> Self
pub fn set_channel(self, input: Option<Channel>) -> Self
The channel of the contact.
sourcepub fn get_channel(&self) -> &Option<Channel>
pub fn get_channel(&self) -> &Option<Channel>
The channel of the contact.
sourcepub fn initiation_method(self, input: ContactInitiationMethod) -> Self
pub fn initiation_method(self, input: ContactInitiationMethod) -> Self
How the contact was initiated.
sourcepub fn set_initiation_method(
self,
input: Option<ContactInitiationMethod>
) -> Self
pub fn set_initiation_method( self, input: Option<ContactInitiationMethod> ) -> Self
How the contact was initiated.
sourcepub fn get_initiation_method(&self) -> &Option<ContactInitiationMethod>
pub fn get_initiation_method(&self) -> &Option<ContactInitiationMethod>
How the contact was initiated.
sourcepub fn agent_contact_state(self, input: ContactState) -> Self
pub fn agent_contact_state(self, input: ContactState) -> Self
The state of the contact.
When AgentContactState
is set to CONNECTED_ONHOLD
, StateStartTimestamp
is not changed. Instead, StateStartTimestamp
reflects the time the contact was CONNECTED
to the agent.
sourcepub fn set_agent_contact_state(self, input: Option<ContactState>) -> Self
pub fn set_agent_contact_state(self, input: Option<ContactState>) -> Self
The state of the contact.
When AgentContactState
is set to CONNECTED_ONHOLD
, StateStartTimestamp
is not changed. Instead, StateStartTimestamp
reflects the time the contact was CONNECTED
to the agent.
sourcepub fn get_agent_contact_state(&self) -> &Option<ContactState>
pub fn get_agent_contact_state(&self) -> &Option<ContactState>
The state of the contact.
When AgentContactState
is set to CONNECTED_ONHOLD
, StateStartTimestamp
is not changed. Instead, StateStartTimestamp
reflects the time the contact was CONNECTED
to the agent.
sourcepub fn state_start_timestamp(self, input: DateTime) -> Self
pub fn state_start_timestamp(self, input: DateTime) -> Self
The epoch timestamp when the contact state started.
sourcepub fn set_state_start_timestamp(self, input: Option<DateTime>) -> Self
pub fn set_state_start_timestamp(self, input: Option<DateTime>) -> Self
The epoch timestamp when the contact state started.
sourcepub fn get_state_start_timestamp(&self) -> &Option<DateTime>
pub fn get_state_start_timestamp(&self) -> &Option<DateTime>
The epoch timestamp when the contact state started.
sourcepub fn connected_to_agent_timestamp(self, input: DateTime) -> Self
pub fn connected_to_agent_timestamp(self, input: DateTime) -> Self
The time at which the contact was connected to an agent.
sourcepub fn set_connected_to_agent_timestamp(self, input: Option<DateTime>) -> Self
pub fn set_connected_to_agent_timestamp(self, input: Option<DateTime>) -> Self
The time at which the contact was connected to an agent.
sourcepub fn get_connected_to_agent_timestamp(&self) -> &Option<DateTime>
pub fn get_connected_to_agent_timestamp(&self) -> &Option<DateTime>
The time at which the contact was connected to an agent.
sourcepub fn queue(self, input: QueueReference) -> Self
pub fn queue(self, input: QueueReference) -> Self
Contains information about a queue resource for which metrics are returned.
sourcepub fn set_queue(self, input: Option<QueueReference>) -> Self
pub fn set_queue(self, input: Option<QueueReference>) -> Self
Contains information about a queue resource for which metrics are returned.
sourcepub fn get_queue(&self) -> &Option<QueueReference>
pub fn get_queue(&self) -> &Option<QueueReference>
Contains information about a queue resource for which metrics are returned.
sourcepub fn build(self) -> AgentContactReference
pub fn build(self) -> AgentContactReference
Consumes the builder and constructs a AgentContactReference
.
Trait Implementations§
source§impl Clone for AgentContactReferenceBuilder
impl Clone for AgentContactReferenceBuilder
source§fn clone(&self) -> AgentContactReferenceBuilder
fn clone(&self) -> AgentContactReferenceBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for AgentContactReferenceBuilder
impl Debug for AgentContactReferenceBuilder
source§impl Default for AgentContactReferenceBuilder
impl Default for AgentContactReferenceBuilder
source§fn default() -> AgentContactReferenceBuilder
fn default() -> AgentContactReferenceBuilder
source§impl PartialEq for AgentContactReferenceBuilder
impl PartialEq for AgentContactReferenceBuilder
source§fn eq(&self, other: &AgentContactReferenceBuilder) -> bool
fn eq(&self, other: &AgentContactReferenceBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for AgentContactReferenceBuilder
Auto Trait Implementations§
impl Freeze for AgentContactReferenceBuilder
impl RefUnwindSafe for AgentContactReferenceBuilder
impl Send for AgentContactReferenceBuilder
impl Sync for AgentContactReferenceBuilder
impl Unpin for AgentContactReferenceBuilder
impl UnwindSafe for AgentContactReferenceBuilder
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> 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