Interface SendChatIntegrationEventRequest.Builder
- All Superinterfaces:
AwsRequest.Builder
,Buildable
,ConnectRequest.Builder
,CopyableBuilder<SendChatIntegrationEventRequest.Builder,
,SendChatIntegrationEventRequest> SdkBuilder<SendChatIntegrationEventRequest.Builder,
,SendChatIntegrationEventRequest> SdkPojo
,SdkRequest.Builder
- Enclosing class:
SendChatIntegrationEventRequest
-
Method Summary
Modifier and TypeMethodDescriptiondestinationId
(String destinationId) Chat system identifier, used in part to uniquely identify chat.event
(Consumer<ChatEvent.Builder> event) Chat integration event payloadChat integration event payloadnewSessionDetails
(Consumer<NewSessionDetails.Builder> newSessionDetails) Contact properties to apply when starting a new chat.newSessionDetails
(NewSessionDetails newSessionDetails) Contact properties to apply when starting a new chat.overrideConfiguration
(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Add an optional request override configuration.overrideConfiguration
(AwsRequestOverrideConfiguration overrideConfiguration) Add an optional request override configuration.External identifier of chat customer participant, used in part to uniquely identify a chat.Classification of a channel.Methods inherited from interface software.amazon.awssdk.awscore.AwsRequest.Builder
overrideConfiguration
Methods inherited from interface software.amazon.awssdk.services.connect.model.ConnectRequest.Builder
build
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
Method Details
-
sourceId
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.
- Parameters:
sourceId
- 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.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
destinationId
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 Server Migration Service, this is the phone number destination of inbound Server Migration Service messages represented by an Amazon Web Services End User Messaging phone number ARN.
- Parameters:
destinationId
- 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 Server Migration Service, this is the phone number destination of inbound Server Migration Service messages represented by an Amazon Web Services End User Messaging phone number ARN.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
subtype
Classification of a channel. This is used in part to uniquely identify chat.
Valid value:
["connect:sms", connect:"WhatsApp"]
- Parameters:
subtype
- Classification of a channel. This is used in part to uniquely identify chat.Valid value:
["connect:sms", connect:"WhatsApp"]
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
event
Chat integration event payload
- Parameters:
event
- Chat integration event payload- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
event
Chat integration event payload
This is a convenience method that creates an instance of theChatEvent.Builder
avoiding the need to create one manually viaChatEvent.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toevent(ChatEvent)
.- Parameters:
event
- a consumer that will call methods onChatEvent.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
newSessionDetails
Contact properties to apply when starting a new chat. If the integration event is handled with an existing chat, this is ignored.
- Parameters:
newSessionDetails
- Contact properties to apply when starting a new chat. If the integration event is handled with an existing chat, this is ignored.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
newSessionDetails
default SendChatIntegrationEventRequest.Builder newSessionDetails(Consumer<NewSessionDetails.Builder> newSessionDetails) Contact properties to apply when starting a new chat. If the integration event is handled with an existing chat, this is ignored.
This is a convenience method that creates an instance of theNewSessionDetails.Builder
avoiding the need to create one manually viaNewSessionDetails.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tonewSessionDetails(NewSessionDetails)
.- Parameters:
newSessionDetails
- a consumer that will call methods onNewSessionDetails.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
overrideConfiguration
SendChatIntegrationEventRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Description copied from interface:AwsRequest.Builder
Add an optional request override configuration.- Specified by:
overrideConfiguration
in interfaceAwsRequest.Builder
- Parameters:
overrideConfiguration
- The override configuration.- Returns:
- This object for method chaining.
-
overrideConfiguration
SendChatIntegrationEventRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Description copied from interface:AwsRequest.Builder
Add an optional request override configuration.- Specified by:
overrideConfiguration
in interfaceAwsRequest.Builder
- Parameters:
builderConsumer
- AConsumer
to which an emptyAwsRequestOverrideConfiguration.Builder
will be given.- Returns:
- This object for method chaining.
-