Interface GetChatMessagesResponse.Builder
- All Superinterfaces:
AssuranceResponse.Builder,AwsResponse.Builder,Buildable,CopyableBuilder<GetChatMessagesResponse.Builder,,GetChatMessagesResponse> SdkBuilder<GetChatMessagesResponse.Builder,,GetChatMessagesResponse> SdkPojo,SdkResponse.Builder
- Enclosing class:
GetChatMessagesResponse
@Mutable
@NotThreadSafe
public static interface GetChatMessagesResponse.Builder
extends AssuranceResponse.Builder, SdkPojo, CopyableBuilder<GetChatMessagesResponse.Builder,GetChatMessagesResponse>
-
Method Summary
Modifier and TypeMethodDescriptionmessages(Collection<ChatMessage> messages) The list of chat messages in chronological order.messages(Consumer<ChatMessage.Builder>... messages) The list of chat messages in chronological order.messages(ChatMessage... messages) The list of chat messages in chronological order.The pagination token returned by a previous request.Methods inherited from interface software.amazon.awssdk.services.assurance.model.AssuranceResponse.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
-
messages
The list of chat messages in chronological order.
- Parameters:
messages- The list of chat messages in chronological order.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
messages
The list of chat messages in chronological order.
- Parameters:
messages- The list of chat messages in chronological order.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
messages
The list of chat messages in chronological order.
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 tomessages(List<ChatMessage>).- Parameters:
messages- 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:
-
nextToken
The pagination token returned by a previous request. Use it to retrieve the next page of results. If the value is null, there are no more results to return.
- Parameters:
nextToken- The pagination token returned by a previous request. Use it to retrieve the next page of results. If the value is null, there are no more results to return.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-