Interface SendMessageResponse.Builder
- All Superinterfaces:
AwsResponse.Builder
,Buildable
,CopyableBuilder<SendMessageResponse.Builder,
,SendMessageResponse> QConnectResponse.Builder
,SdkBuilder<SendMessageResponse.Builder,
,SendMessageResponse> SdkPojo
,SdkResponse.Builder
- Enclosing class:
SendMessageResponse
@Mutable
@NotThreadSafe
public static interface SendMessageResponse.Builder
extends QConnectResponse.Builder, SdkPojo, CopyableBuilder<SendMessageResponse.Builder,SendMessageResponse>
-
Method Summary
Modifier and TypeMethodDescriptiondefault SendMessageResponse.Builder
configuration
(Consumer<MessageConfiguration.Builder> configuration) The configuration of the SendMessage request.configuration
(MessageConfiguration configuration) The configuration of the SendMessage request.nextMessageToken
(String nextMessageToken) The token for the next message, used by GetNextMessage.requestMessageId
(String requestMessageId) The identifier of the submitted message.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
-
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.
-
configuration
The configuration of the SendMessage request.
- Parameters:
configuration
- The configuration of the SendMessage request.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
configuration
default SendMessageResponse.Builder configuration(Consumer<MessageConfiguration.Builder> configuration) The configuration of the SendMessage request.
This is a convenience method that creates an instance of theMessageConfiguration.Builder
avoiding the need to create one manually viaMessageConfiguration.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toconfiguration(MessageConfiguration)
.- Parameters:
configuration
- a consumer that will call methods onMessageConfiguration.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, used by GetNextMessage.
- Parameters:
nextMessageToken
- The token for the next message, used by GetNextMessage.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-