Struct aws_sdk_connect::operation::send_chat_integration_event::builders::SendChatIntegrationEventInputBuilder
source · #[non_exhaustive]pub struct SendChatIntegrationEventInputBuilder { /* private fields */ }
Expand description
A builder for SendChatIntegrationEventInput
.
Implementations§
source§impl SendChatIntegrationEventInputBuilder
impl SendChatIntegrationEventInputBuilder
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.
This field is required.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.
This field is required.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 event(self, input: ChatEvent) -> Self
pub fn event(self, input: ChatEvent) -> Self
Chat integration event payload
This field is required.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.
sourcepub fn build(self) -> Result<SendChatIntegrationEventInput, BuildError>
pub fn build(self) -> Result<SendChatIntegrationEventInput, BuildError>
Consumes the builder and constructs a SendChatIntegrationEventInput
.
source§impl SendChatIntegrationEventInputBuilder
impl SendChatIntegrationEventInputBuilder
sourcepub async fn send_with(
self,
client: &Client
) -> Result<SendChatIntegrationEventOutput, SdkError<SendChatIntegrationEventError, HttpResponse>>
pub async fn send_with( self, client: &Client ) -> Result<SendChatIntegrationEventOutput, SdkError<SendChatIntegrationEventError, HttpResponse>>
Sends a request with this input using the given client.
Trait Implementations§
source§impl Clone for SendChatIntegrationEventInputBuilder
impl Clone for SendChatIntegrationEventInputBuilder
source§fn clone(&self) -> SendChatIntegrationEventInputBuilder
fn clone(&self) -> SendChatIntegrationEventInputBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Default for SendChatIntegrationEventInputBuilder
impl Default for SendChatIntegrationEventInputBuilder
source§fn default() -> SendChatIntegrationEventInputBuilder
fn default() -> SendChatIntegrationEventInputBuilder
source§impl PartialEq for SendChatIntegrationEventInputBuilder
impl PartialEq for SendChatIntegrationEventInputBuilder
source§fn eq(&self, other: &SendChatIntegrationEventInputBuilder) -> bool
fn eq(&self, other: &SendChatIntegrationEventInputBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.