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.BuilderconversationState(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.Builderresponse(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
copyMethods inherited from interface software.amazon.awssdk.services.qconnect.model.QConnectResponse.Builder
build, responseMetadata, responseMetadataMethods 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
-
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.Builderavoiding the need to create one manually viaMessageOutput.builder().When the
Consumercompletes,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.Builderavoiding the need to create one manually viaConversationState.builder().When the
Consumercompletes,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.Builderavoiding the need to create one manually viaRuntimeSessionData.builder().When the
Consumercompletes,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:
-