Interface ReceiveMessageResponse.Builder
-
- All Superinterfaces:
AwsResponse.Builder
,Buildable
,CopyableBuilder<ReceiveMessageResponse.Builder,ReceiveMessageResponse>
,SdkBuilder<ReceiveMessageResponse.Builder,ReceiveMessageResponse>
,SdkPojo
,SdkResponse.Builder
,SqsResponse.Builder
- Enclosing class:
- ReceiveMessageResponse
public static interface ReceiveMessageResponse.Builder extends SqsResponse.Builder, SdkPojo, CopyableBuilder<ReceiveMessageResponse.Builder,ReceiveMessageResponse>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ReceiveMessageResponse.Builder
messages(Collection<Message> messages)
A list of messages.ReceiveMessageResponse.Builder
messages(Consumer<Message.Builder>... messages)
A list of messages.ReceiveMessageResponse.Builder
messages(Message... messages)
A list of messages.-
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
-
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
-
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
Methods inherited from interface software.amazon.awssdk.core.SdkResponse.Builder
sdkHttpResponse, sdkHttpResponse
-
Methods inherited from interface software.amazon.awssdk.services.sqs.model.SqsResponse.Builder
build, responseMetadata, responseMetadata
-
-
-
-
Method Detail
-
messages
ReceiveMessageResponse.Builder messages(Collection<Message> messages)
A list of messages.
- Parameters:
messages
- A list of messages.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
messages
ReceiveMessageResponse.Builder messages(Message... messages)
A list of messages.
- Parameters:
messages
- A list of messages.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
messages
ReceiveMessageResponse.Builder messages(Consumer<Message.Builder>... messages)
A list of messages.
This is a convenience method that creates an instance of theMessage.Builder
avoiding the need to create one manually viaMessage.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed to#messages(List
.) - Parameters:
messages
- a consumer that will call methods onMessage.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
#messages(java.util.Collection
)
-
-