Interface PutRecordBatchRequest.Builder
- All Superinterfaces:
AwsRequest.Builder,Buildable,CopyableBuilder<PutRecordBatchRequest.Builder,,PutRecordBatchRequest> FirehoseRequest.Builder,SdkBuilder<PutRecordBatchRequest.Builder,,PutRecordBatchRequest> SdkPojo,SdkRequest.Builder
- Enclosing class:
PutRecordBatchRequest
@Mutable
@NotThreadSafe
public static interface PutRecordBatchRequest.Builder
extends FirehoseRequest.Builder, SdkPojo, CopyableBuilder<PutRecordBatchRequest.Builder,PutRecordBatchRequest>
-
Method Summary
Modifier and TypeMethodDescriptiondeliveryStreamName(String deliveryStreamName) The name of the Firehose stream.overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Add an optional request override configuration.overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Add an optional request override configuration.records(Collection<Record> records) One or more records.records(Consumer<Record.Builder>... records) One or more records.One or more records.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.firehose.model.FirehoseRequest.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
-
deliveryStreamName
The name of the Firehose stream.
- Parameters:
deliveryStreamName- The name of the Firehose stream.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
records
One or more records.
- Parameters:
records- One or more records.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
records
One or more records.
- Parameters:
records- One or more records.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
records
One or more records.
This is a convenience method that creates an instance of theRecord.Builderavoiding the need to create one manually viaRecord.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed torecords(List<Record>).- Parameters:
records- a consumer that will call methods onRecord.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
overrideConfiguration
PutRecordBatchRequest.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
PutRecordBatchRequest.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.
-