Interface PutRecordsRequest.Builder
- All Superinterfaces:
AwsRequest.Builder,Buildable,CopyableBuilder<PutRecordsRequest.Builder,,PutRecordsRequest> KinesisRequest.Builder,SdkBuilder<PutRecordsRequest.Builder,,PutRecordsRequest> SdkPojo,SdkRequest.Builder
- Enclosing class:
PutRecordsRequest
@Mutable
@NotThreadSafe
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
overrideConfigurationMethods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.services.kinesis.model.KinesisRequest.Builder
buildMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, 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.Builderavoiding the need to create one manually viaPutRecordsRequestEntry.builder().When the
Consumercompletes,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.BuilderAdd an optional request override configuration.- Specified by:
overrideConfigurationin 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.BuilderAdd an optional request override configuration.- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder- Parameters:
builderConsumer- AConsumerto which an emptyAwsRequestOverrideConfiguration.Builderwill be given.- Returns:
- This object for method chaining.
-