Interface StartAssistantContactRequest.Builder
- All Superinterfaces:
AwsRequest.Builder,Buildable,ConnectRequest.Builder,CopyableBuilder<StartAssistantContactRequest.Builder,,StartAssistantContactRequest> SdkBuilder<StartAssistantContactRequest.Builder,,StartAssistantContactRequest> SdkPojo,SdkRequest.Builder
- Enclosing class:
StartAssistantContactRequest
-
Method Summary
Modifier and TypeMethodDescriptionaiAgent(Consumer<AiAgentInput.Builder> aiAgent) The AI agent that participates in the contact.aiAgent(AiAgentInput aiAgent) The AI agent that participates in the contact.attributes(Map<String, String> attributes) A map of key-value pairs to associate with the contact.clientToken(String clientToken) A unique, case-sensitive identifier that you provide to ensure the idempotency of the request.initialMessage(Consumer<ChatMessage.Builder> initialMessage) The initial message to send to the newly created chat.initialMessage(ChatMessage initialMessage) The initial message to send to the newly created chat.instanceId(String instanceId) The identifier of the Connect Customer instance.overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Add an optional request override configuration.overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Add an optional request override configuration.participantDetails(Consumer<ParticipantDetails.Builder> participantDetails) The display name and other details that identify the chat participant.participantDetails(ParticipantDetails participantDetails) The display name and other details that identify the chat participant.persistentChat(Consumer<PersistentChat.Builder> persistentChat) The configuration that enables persistent chat.persistentChat(PersistentChat persistentChat) The configuration that enables persistent chat.relatedContactId(String relatedContactId) The identifier of an Connect Customer contact related to the new assistant contact.Methods inherited from interface software.amazon.awssdk.awscore.AwsRequest.Builder
overrideConfigurationMethods inherited from interface software.amazon.awssdk.services.connect.model.ConnectRequest.Builder
buildMethods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
Method Details
-
instanceId
The identifier of the Connect Customer instance. You can find the instance ID in the Amazon Resource Name (ARN) of the instance.
- Parameters:
instanceId- The identifier of the Connect Customer instance. You can find the instance ID in the Amazon Resource Name (ARN) of the instance.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
aiAgent
The AI agent that participates in the contact.
- Parameters:
aiAgent- The AI agent that participates in the contact.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
aiAgent
The AI agent that participates in the contact.
This is a convenience method that creates an instance of theAiAgentInput.Builderavoiding the need to create one manually viaAiAgentInput.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toaiAgent(AiAgentInput).- Parameters:
aiAgent- a consumer that will call methods onAiAgentInput.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
participantDetails
The display name and other details that identify the chat participant.
- Parameters:
participantDetails- The display name and other details that identify the chat participant.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
participantDetails
default StartAssistantContactRequest.Builder participantDetails(Consumer<ParticipantDetails.Builder> participantDetails) The display name and other details that identify the chat participant.
This is a convenience method that creates an instance of theParticipantDetails.Builderavoiding the need to create one manually viaParticipantDetails.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toparticipantDetails(ParticipantDetails).- Parameters:
participantDetails- a consumer that will call methods onParticipantDetails.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
initialMessage
The initial message to send to the newly created chat.
- Parameters:
initialMessage- The initial message to send to the newly created chat.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
initialMessage
default StartAssistantContactRequest.Builder initialMessage(Consumer<ChatMessage.Builder> initialMessage) The initial message to send to the newly created chat.
This is a convenience method that creates an instance of theChatMessage.Builderavoiding the need to create one manually viaChatMessage.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toinitialMessage(ChatMessage).- Parameters:
initialMessage- a consumer that will call methods onChatMessage.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
attributes
A map of key-value pairs to associate with the contact. Amazon Connect makes these attributes available to flows as standard contact attributes.
You can provide up to 32,768 UTF-8 bytes across all key-value pairs per contact. Attribute keys can contain only alphanumeric characters, dashes, and underscores.
- Parameters:
attributes- A map of key-value pairs to associate with the contact. Amazon Connect makes these attributes available to flows as standard contact attributes.You can provide up to 32,768 UTF-8 bytes across all key-value pairs per contact. Attribute keys can contain only alphanumeric characters, dashes, and underscores.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
clientToken
A unique, case-sensitive identifier that you provide to ensure the idempotency of the request. If not provided, the Amazon Web Services SDK populates this field. For more information about idempotency, see Making retries safe with idempotent APIs.
- Parameters:
clientToken- A unique, case-sensitive identifier that you provide to ensure the idempotency of the request. If not provided, the Amazon Web Services SDK populates this field. For more information about idempotency, see Making retries safe with idempotent APIs.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
persistentChat
The configuration that enables persistent chat. For more information about persistent chat and its use cases, see Enable persistent chat.
- Parameters:
persistentChat- The configuration that enables persistent chat. For more information about persistent chat and its use cases, see Enable persistent chat.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
persistentChat
default StartAssistantContactRequest.Builder persistentChat(Consumer<PersistentChat.Builder> persistentChat) The configuration that enables persistent chat. For more information about persistent chat and its use cases, see Enable persistent chat.
This is a convenience method that creates an instance of thePersistentChat.Builderavoiding the need to create one manually viaPersistentChat.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed topersistentChat(PersistentChat).- Parameters:
persistentChat- a consumer that will call methods onPersistentChat.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
overrideConfiguration
StartAssistantContactRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Description copied from interface:AwsRequest.BuilderAdd an optional request override configuration.- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder- Parameters:
overrideConfiguration- The override configuration.- Returns:
- This object for method chaining.
-
overrideConfiguration
StartAssistantContactRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Description copied from interface:AwsRequest.BuilderAdd an optional request override configuration.- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder- Parameters:
builderConsumer- AConsumerto which an emptyAwsRequestOverrideConfiguration.Builderwill be given.- Returns:
- This object for method chaining.
-