Struct aws_sdk_connect::model::persistent_chat::Builder
source · pub struct Builder { /* private fields */ }
Expand description
A builder for PersistentChat
.
Implementations§
source§impl Builder
impl Builder
sourcepub fn rehydration_type(self, input: RehydrationType) -> Self
pub fn rehydration_type(self, input: RehydrationType) -> Self
The contactId that is used for rehydration depends on the rehydration type. RehydrationType is required for persistent chat.
-
ENTIRE_PAST_SESSION
: Rehydrates a chat from the most recently terminated past chat contact of the specified past ended chat session. To use this type, provide theinitialContactId
of the past ended chat session in thesourceContactId
field. In this type, Amazon Connect determines the most recent chat contact on the specified chat session that has ended, and uses it to start a persistent chat. -
FROM_SEGMENT
: Rehydrates a chat from the past chat contact that is specified in thesourceContactId
field.
The actual contactId used for rehydration is provided in the response of this API.
sourcepub fn set_rehydration_type(self, input: Option<RehydrationType>) -> Self
pub fn set_rehydration_type(self, input: Option<RehydrationType>) -> Self
The contactId that is used for rehydration depends on the rehydration type. RehydrationType is required for persistent chat.
-
ENTIRE_PAST_SESSION
: Rehydrates a chat from the most recently terminated past chat contact of the specified past ended chat session. To use this type, provide theinitialContactId
of the past ended chat session in thesourceContactId
field. In this type, Amazon Connect determines the most recent chat contact on the specified chat session that has ended, and uses it to start a persistent chat. -
FROM_SEGMENT
: Rehydrates a chat from the past chat contact that is specified in thesourceContactId
field.
The actual contactId used for rehydration is provided in the response of this API.
sourcepub fn source_contact_id(self, input: impl Into<String>) -> Self
pub fn source_contact_id(self, input: impl Into<String>) -> Self
The contactId from which a persistent chat session must be started.
sourcepub fn set_source_contact_id(self, input: Option<String>) -> Self
pub fn set_source_contact_id(self, input: Option<String>) -> Self
The contactId from which a persistent chat session must be started.
sourcepub fn build(self) -> PersistentChat
pub fn build(self) -> PersistentChat
Consumes the builder and constructs a PersistentChat
.