Interface ListMessagesResponse.Builder
- All Superinterfaces:
AwsResponse.Builder
,Buildable
,CopyableBuilder<ListMessagesResponse.Builder,
,ListMessagesResponse> QConnectResponse.Builder
,SdkBuilder<ListMessagesResponse.Builder,
,ListMessagesResponse> SdkPojo
,SdkResponse.Builder
- Enclosing class:
ListMessagesResponse
@Mutable
@NotThreadSafe
public static interface ListMessagesResponse.Builder
extends QConnectResponse.Builder, SdkPojo, CopyableBuilder<ListMessagesResponse.Builder,ListMessagesResponse>
-
Method Summary
Modifier and TypeMethodDescriptionmessages
(Collection<MessageOutput> messages) The message information.messages
(Consumer<MessageOutput.Builder>... messages) The message information.messages
(MessageOutput... messages) The message information.The token for the next set of results.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
-
messages
The message information.
- Parameters:
messages
- The message information.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
messages
The message information.
- Parameters:
messages
- The message information.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
messages
The message information.
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 tomessages(List<MessageOutput>)
.- Parameters:
messages
- 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:
-
nextToken
The token for the next set of results. Use the value returned in the previous response in the next request to retrieve the next set of results.
- Parameters:
nextToken
- The token for the next set of results. Use the value returned in the previous response in the next request to retrieve the next set of results.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-