Interface GetNextMessageResponse.Builder
- All Superinterfaces:
AwsResponse.Builder
,Buildable
,CopyableBuilder<GetNextMessageResponse.Builder,
,GetNextMessageResponse> QConnectResponse.Builder
,SdkBuilder<GetNextMessageResponse.Builder,
,GetNextMessageResponse> SdkPojo
,SdkResponse.Builder
- Enclosing class:
GetNextMessageResponse
-
Method Summary
Modifier and TypeMethodDescriptionconversationSessionData
(Collection<RuntimeSessionData> conversationSessionData) The conversation data stored on an Amazon Q in Connect Session.conversationSessionData
(Consumer<RuntimeSessionData.Builder>... conversationSessionData) The conversation data stored on an Amazon Q in Connect Session.conversationSessionData
(RuntimeSessionData... conversationSessionData) The conversation data stored on an Amazon Q in Connect Session.default GetNextMessageResponse.Builder
conversationState
(Consumer<ConversationState.Builder> conversationState) The state of current conversation.conversationState
(ConversationState conversationState) The state of current conversation.nextMessageToken
(String nextMessageToken) The token for the next message.requestMessageId
(String requestMessageId) The identifier of the submitted message.default GetNextMessageResponse.Builder
response
(Consumer<MessageOutput.Builder> response) The message response to the requested message.response
(MessageOutput response) The message response to the requested message.The type of message response.type
(MessageType type) The type of message response.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.services.qconnect.model.QConnectResponse.Builder
build, responseMetadata, responseMetadata
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
Methods inherited from interface software.amazon.awssdk.core.SdkResponse.Builder
sdkHttpResponse, sdkHttpResponse
-
Method Details
-
type
The type of message response.
- Parameters:
type
- The type of message response.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
type
The type of message response.
- Parameters:
type
- The type of message response.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
response
The message response to the requested message.
- Parameters:
response
- The message response to the requested message.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
response
The message response to the requested message.
This is a convenience method that creates an instance of theMessageOutput.Builder
avoiding the need to create one manually viaMessageOutput.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toresponse(MessageOutput)
.- Parameters:
response
- a consumer that will call methods onMessageOutput.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
requestMessageId
The identifier of the submitted message.
- Parameters:
requestMessageId
- The identifier of the submitted message.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
conversationState
The state of current conversation.
- Parameters:
conversationState
- The state of current conversation.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
conversationState
default GetNextMessageResponse.Builder conversationState(Consumer<ConversationState.Builder> conversationState) The state of current conversation.
This is a convenience method that creates an instance of theConversationState.Builder
avoiding the need to create one manually viaConversationState.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toconversationState(ConversationState)
.- Parameters:
conversationState
- a consumer that will call methods onConversationState.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
nextMessageToken
The token for the next message.
- Parameters:
nextMessageToken
- The token for the next message.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
conversationSessionData
GetNextMessageResponse.Builder conversationSessionData(Collection<RuntimeSessionData> conversationSessionData) The conversation data stored on an Amazon Q in Connect Session.
- Parameters:
conversationSessionData
- The conversation data stored on an Amazon Q in Connect Session.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
conversationSessionData
GetNextMessageResponse.Builder conversationSessionData(RuntimeSessionData... conversationSessionData) The conversation data stored on an Amazon Q in Connect Session.
- Parameters:
conversationSessionData
- The conversation data stored on an Amazon Q in Connect Session.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
conversationSessionData
GetNextMessageResponse.Builder conversationSessionData(Consumer<RuntimeSessionData.Builder>... conversationSessionData) The conversation data stored on an Amazon Q in Connect Session.
This is a convenience method that creates an instance of theRuntimeSessionData.Builder
avoiding the need to create one manually viaRuntimeSessionData.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toconversationSessionData(List<RuntimeSessionData>)
.- Parameters:
conversationSessionData
- a consumer that will call methods onRuntimeSessionData.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-