Interface PutRecordsResponse.Builder
- All Superinterfaces:
AwsResponse.Builder,Buildable,CopyableBuilder<PutRecordsResponse.Builder,,PutRecordsResponse> KinesisResponse.Builder,SdkBuilder<PutRecordsResponse.Builder,,PutRecordsResponse> SdkPojo,SdkResponse.Builder
- Enclosing class:
PutRecordsResponse
-
Method Summary
Modifier and TypeMethodDescriptionencryptionType(String encryptionType) The encryption type used on the records.encryptionType(EncryptionType encryptionType) The encryption type used on the records.failedRecordCount(Integer failedRecordCount) The number of unsuccessfully processed records in aPutRecordsrequest.records(Collection<PutRecordsResultEntry> records) An array of successfully and unsuccessfully processed record results.records(Consumer<PutRecordsResultEntry.Builder>... records) An array of successfully and unsuccessfully processed record results.records(PutRecordsResultEntry... records) An array of successfully and unsuccessfully processed record results.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.services.kinesis.model.KinesisResponse.Builder
build, responseMetadata, responseMetadataMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldsMethods inherited from interface software.amazon.awssdk.core.SdkResponse.Builder
sdkHttpResponse, sdkHttpResponse
-
Method Details
-
failedRecordCount
The number of unsuccessfully processed records in a
PutRecordsrequest.- Parameters:
failedRecordCount- The number of unsuccessfully processed records in aPutRecordsrequest.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
records
An array of successfully and unsuccessfully processed record results. A record that is successfully added to a stream includes
SequenceNumberandShardIdin the result. A record that fails to be added to a stream includesErrorCodeandErrorMessagein the result.- Parameters:
records- An array of successfully and unsuccessfully processed record results. A record that is successfully added to a stream includesSequenceNumberandShardIdin the result. A record that fails to be added to a stream includesErrorCodeandErrorMessagein the result.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
records
An array of successfully and unsuccessfully processed record results. A record that is successfully added to a stream includes
SequenceNumberandShardIdin the result. A record that fails to be added to a stream includesErrorCodeandErrorMessagein the result.- Parameters:
records- An array of successfully and unsuccessfully processed record results. A record that is successfully added to a stream includesSequenceNumberandShardIdin the result. A record that fails to be added to a stream includesErrorCodeandErrorMessagein the result.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
records
An array of successfully and unsuccessfully processed record results. A record that is successfully added to a stream includes
This is a convenience method that creates an instance of theSequenceNumberandShardIdin the result. A record that fails to be added to a stream includesErrorCodeandErrorMessagein the result.PutRecordsResultEntry.Builderavoiding the need to create one manually viaPutRecordsResultEntry.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed torecords(List<PutRecordsResultEntry>).- Parameters:
records- a consumer that will call methods onPutRecordsResultEntry.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
encryptionType
The encryption type used on the records. This parameter can be one of the following values:
-
NONE: Do not encrypt the records. -
KMS: Use server-side encryption on the records using a customer-managed Amazon Web Services KMS key.
- Parameters:
encryptionType- The encryption type used on the records. This parameter can be one of the following values:-
NONE: Do not encrypt the records. -
KMS: Use server-side encryption on the records using a customer-managed Amazon Web Services KMS key.
-
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
-
encryptionType
The encryption type used on the records. This parameter can be one of the following values:
-
NONE: Do not encrypt the records. -
KMS: Use server-side encryption on the records using a customer-managed Amazon Web Services KMS key.
- Parameters:
encryptionType- The encryption type used on the records. This parameter can be one of the following values:-
NONE: Do not encrypt the records. -
KMS: Use server-side encryption on the records using a customer-managed Amazon Web Services KMS key.
-
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
-