Interface StartChatContactResponse.Builder
- All Superinterfaces:
AwsResponse.Builder,Buildable,ConnectResponse.Builder,CopyableBuilder<StartChatContactResponse.Builder,,StartChatContactResponse> SdkBuilder<StartChatContactResponse.Builder,,StartChatContactResponse> SdkPojo,SdkResponse.Builder
- Enclosing class:
StartChatContactResponse
-
Method Summary
Modifier and TypeMethodDescriptiondefault StartChatContactResponse.BuilderconnectionCredentials(Consumer<ConnectionCredentials.Builder> connectionCredentials) The connection credentials for the chat participant.connectionCredentials(ConnectionCredentials connectionCredentials) The connection credentials for the chat participant.The identifier of this contact within the Connect Customer instance.continuedFromContactId(String continuedFromContactId) The contactId from which a persistent chat session is started.participantId(String participantId) The identifier for a chat participant.participantToken(String participantToken) The token used by the chat participant to call CreateParticipantConnection.streamingId(String streamingId) The identifier of the streaming configuration enabled with the chat.default StartChatContactResponse.Builderwebsocket(Consumer<Websocket.Builder> websocket) The websocket for the chat participant.The websocket for the chat participant.Methods inherited from interface software.amazon.awssdk.services.connect.model.ConnectResponse.Builder
build, responseMetadata, responseMetadataMethods 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, sdkFieldsMethods inherited from interface software.amazon.awssdk.core.SdkResponse.Builder
sdkHttpResponse, sdkHttpResponse
-
Method Details
-
contactId
The identifier of this contact within the Connect Customer instance.
- Parameters:
contactId- The identifier of this contact within the Connect Customer instance.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
participantId
The identifier for a chat participant. The participantId for a chat participant is the same throughout the chat lifecycle.
- Parameters:
participantId- The identifier for a chat participant. The participantId for a chat participant is the same throughout the chat lifecycle.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
participantToken
The token used by the chat participant to call CreateParticipantConnection. The participant token is valid for the lifetime of a chat participant.
- Parameters:
participantToken- The token used by the chat participant to call CreateParticipantConnection. The participant token is valid for the lifetime of a chat participant.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
continuedFromContactId
The contactId from which a persistent chat session is started. This field is populated only for persistent chats.
- Parameters:
continuedFromContactId- The contactId from which a persistent chat session is started. This field is populated only for persistent chats.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
connectionCredentials
The connection credentials for the chat participant. Returned only when the request includes
CONNECTION_CREDENTIALSinConnectionTypes.- Parameters:
connectionCredentials- The connection credentials for the chat participant. Returned only when the request includesCONNECTION_CREDENTIALSinConnectionTypes.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
connectionCredentials
default StartChatContactResponse.Builder connectionCredentials(Consumer<ConnectionCredentials.Builder> connectionCredentials) The connection credentials for the chat participant. Returned only when the request includes
This is a convenience method that creates an instance of theCONNECTION_CREDENTIALSinConnectionTypes.ConnectionCredentials.Builderavoiding the need to create one manually viaConnectionCredentials.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toconnectionCredentials(ConnectionCredentials).- Parameters:
connectionCredentials- a consumer that will call methods onConnectionCredentials.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
websocket
The websocket for the chat participant. Returned only when the request includes
WEBSOCKETinConnectionTypes.- Parameters:
websocket- The websocket for the chat participant. Returned only when the request includesWEBSOCKETinConnectionTypes.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
websocket
The websocket for the chat participant. Returned only when the request includes
This is a convenience method that creates an instance of theWEBSOCKETinConnectionTypes.Websocket.Builderavoiding the need to create one manually viaWebsocket.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed towebsocket(Websocket).- Parameters:
websocket- a consumer that will call methods onWebsocket.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
streamingId
The identifier of the streaming configuration enabled with the chat. Returned only when the request sets
ChatStreamingConfiguration. Use this value to call StopContactStreaming.- Parameters:
streamingId- The identifier of the streaming configuration enabled with the chat. Returned only when the request setsChatStreamingConfiguration. Use this value to call StopContactStreaming.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-