Interface PutRecordsRequest.Builder
- All Superinterfaces:
AwsRequest.Builder
,Buildable
,CopyableBuilder<PutRecordsRequest.Builder,
,PutRecordsRequest> KinesisRequest.Builder
,SdkBuilder<PutRecordsRequest.Builder,
,PutRecordsRequest> SdkPojo
,SdkRequest.Builder
- Enclosing class:
PutRecordsRequest
public static interface PutRecordsRequest.Builder
extends KinesisRequest.Builder, SdkPojo, CopyableBuilder<PutRecordsRequest.Builder,PutRecordsRequest>
-
Method Summary
Modifier and TypeMethodDescriptionoverrideConfiguration
(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Add an optional request override configuration.overrideConfiguration
(AwsRequestOverrideConfiguration overrideConfiguration) Add an optional request override configuration.records
(Collection<PutRecordsRequestEntry> records) The records associated with the request.records
(Consumer<PutRecordsRequestEntry.Builder>... records) The records associated with the request.records
(PutRecordsRequestEntry... records) The records associated with the request.The ARN of the stream.streamName
(String streamName) The stream name associated with the request.Methods inherited from interface software.amazon.awssdk.awscore.AwsRequest.Builder
overrideConfiguration
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.services.kinesis.model.KinesisRequest.Builder
build
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
Method Details
-
records
The records associated with the request.
- Parameters:
records
- The records associated with the request.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
records
The records associated with the request.
- Parameters:
records
- The records associated with the request.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
records
The records associated with the request.
This is a convenience method that creates an instance of thePutRecordsRequestEntry.Builder
avoiding the need to create one manually viaPutRecordsRequestEntry.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed torecords(List<PutRecordsRequestEntry>)
.- Parameters:
records
- a consumer that will call methods onPutRecordsRequestEntry.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
streamName
The stream name associated with the request.
- Parameters:
streamName
- The stream name associated with the request.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
streamARN
The ARN of the stream.
- Parameters:
streamARN
- The ARN of the stream.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
overrideConfiguration
PutRecordsRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Description copied from interface:AwsRequest.Builder
Add an optional request override configuration.- Specified by:
overrideConfiguration
in interfaceAwsRequest.Builder
- Parameters:
overrideConfiguration
- The override configuration.- Returns:
- This object for method chaining.
-
overrideConfiguration
PutRecordsRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Description copied from interface:AwsRequest.Builder
Add an optional request override configuration.- Specified by:
overrideConfiguration
in interfaceAwsRequest.Builder
- Parameters:
builderConsumer
- AConsumer
to which an emptyAwsRequestOverrideConfiguration.Builder
will be given.- Returns:
- This object for method chaining.
-