Struct aws_sdk_connect::operation::send_chat_integration_event::builders::SendChatIntegrationEventFluentBuilder
source · pub struct SendChatIntegrationEventFluentBuilder { /* private fields */ }
Expand description
Fluent builder constructing a request to SendChatIntegrationEvent
.
Processes chat integration events from Amazon Web Services or external integrations to Amazon Connect. A chat integration event includes:
-
SourceId, DestinationId, and Subtype: a set of identifiers, uniquely representing a chat
-
ChatEvent: details of the chat action to perform such as sending a message, event, or disconnecting from a chat
When a chat integration event is sent with chat identifiers that do not map to an active chat contact, a new chat contact is also created before handling chat action.
Access to this API is currently restricted to Amazon Pinpoint for supporting SMS integration.
Implementations§
source§impl SendChatIntegrationEventFluentBuilder
impl SendChatIntegrationEventFluentBuilder
sourcepub fn as_input(&self) -> &SendChatIntegrationEventInputBuilder
pub fn as_input(&self) -> &SendChatIntegrationEventInputBuilder
Access the SendChatIntegrationEvent as a reference.
sourcepub async fn send(
self
) -> Result<SendChatIntegrationEventOutput, SdkError<SendChatIntegrationEventError, HttpResponse>>
pub async fn send( self ) -> Result<SendChatIntegrationEventOutput, SdkError<SendChatIntegrationEventError, HttpResponse>>
Sends the request and returns the response.
If an error occurs, an SdkError
will be returned with additional details that
can be matched against.
By default, any retryable failures will be retried twice. Retry behavior is configurable with the RetryConfig, which can be set when configuring the client.
sourcepub fn customize(
self
) -> CustomizableOperation<SendChatIntegrationEventOutput, SendChatIntegrationEventError, Self>
pub fn customize( self ) -> CustomizableOperation<SendChatIntegrationEventOutput, SendChatIntegrationEventError, Self>
Consumes this builder, creating a customizable operation that can be modified before being sent.
sourcepub fn source_id(self, input: impl Into<String>) -> Self
pub fn source_id(self, input: impl Into<String>) -> Self
External identifier of chat customer participant, used in part to uniquely identify a chat. For SMS, this is the E164 phone number of the chat customer participant.
sourcepub fn set_source_id(self, input: Option<String>) -> Self
pub fn set_source_id(self, input: Option<String>) -> Self
External identifier of chat customer participant, used in part to uniquely identify a chat. For SMS, this is the E164 phone number of the chat customer participant.
sourcepub fn get_source_id(&self) -> &Option<String>
pub fn get_source_id(&self) -> &Option<String>
External identifier of chat customer participant, used in part to uniquely identify a chat. For SMS, this is the E164 phone number of the chat customer participant.
sourcepub fn destination_id(self, input: impl Into<String>) -> Self
pub fn destination_id(self, input: impl Into<String>) -> Self
Chat system identifier, used in part to uniquely identify chat. This is associated with the Amazon Connect instance and flow to be used to start chats. For SMS, this is the phone number destination of inbound SMS messages represented by an Amazon Pinpoint phone number ARN.
sourcepub fn set_destination_id(self, input: Option<String>) -> Self
pub fn set_destination_id(self, input: Option<String>) -> Self
Chat system identifier, used in part to uniquely identify chat. This is associated with the Amazon Connect instance and flow to be used to start chats. For SMS, this is the phone number destination of inbound SMS messages represented by an Amazon Pinpoint phone number ARN.
sourcepub fn get_destination_id(&self) -> &Option<String>
pub fn get_destination_id(&self) -> &Option<String>
Chat system identifier, used in part to uniquely identify chat. This is associated with the Amazon Connect instance and flow to be used to start chats. For SMS, this is the phone number destination of inbound SMS messages represented by an Amazon Pinpoint phone number ARN.
sourcepub fn subtype(self, input: impl Into<String>) -> Self
pub fn subtype(self, input: impl Into<String>) -> Self
Classification of a channel. This is used in part to uniquely identify chat.
Valid value: ["connect:sms"]
sourcepub fn set_subtype(self, input: Option<String>) -> Self
pub fn set_subtype(self, input: Option<String>) -> Self
Classification of a channel. This is used in part to uniquely identify chat.
Valid value: ["connect:sms"]
sourcepub fn get_subtype(&self) -> &Option<String>
pub fn get_subtype(&self) -> &Option<String>
Classification of a channel. This is used in part to uniquely identify chat.
Valid value: ["connect:sms"]
sourcepub fn new_session_details(self, input: NewSessionDetails) -> Self
pub fn new_session_details(self, input: NewSessionDetails) -> Self
Contact properties to apply when starting a new chat. If the integration event is handled with an existing chat, this is ignored.
sourcepub fn set_new_session_details(self, input: Option<NewSessionDetails>) -> Self
pub fn set_new_session_details(self, input: Option<NewSessionDetails>) -> Self
Contact properties to apply when starting a new chat. If the integration event is handled with an existing chat, this is ignored.
sourcepub fn get_new_session_details(&self) -> &Option<NewSessionDetails>
pub fn get_new_session_details(&self) -> &Option<NewSessionDetails>
Contact properties to apply when starting a new chat. If the integration event is handled with an existing chat, this is ignored.
Trait Implementations§
source§impl Clone for SendChatIntegrationEventFluentBuilder
impl Clone for SendChatIntegrationEventFluentBuilder
source§fn clone(&self) -> SendChatIntegrationEventFluentBuilder
fn clone(&self) -> SendChatIntegrationEventFluentBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more