Interface PutRecordsResponse.Builder
-
- All Superinterfaces:
AwsResponse.Builder
,Buildable
,CopyableBuilder<PutRecordsResponse.Builder,PutRecordsResponse>
,KinesisResponse.Builder
,SdkBuilder<PutRecordsResponse.Builder,PutRecordsResponse>
,SdkPojo
,SdkResponse.Builder
- Enclosing class:
- PutRecordsResponse
public static interface PutRecordsResponse.Builder extends KinesisResponse.Builder, SdkPojo, CopyableBuilder<PutRecordsResponse.Builder,PutRecordsResponse>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description PutRecordsResponse.Builder
encryptionType(String encryptionType)
The encryption type used on the records.PutRecordsResponse.Builder
encryptionType(EncryptionType encryptionType)
The encryption type used on the records.PutRecordsResponse.Builder
failedRecordCount(Integer failedRecordCount)
The number of unsuccessfully processed records in aPutRecords
request.PutRecordsResponse.Builder
records(Collection<PutRecordsResultEntry> records)
An array of successfully and unsuccessfully processed record results.PutRecordsResponse.Builder
records(Consumer<PutRecordsResultEntry.Builder>... records)
An array of successfully and unsuccessfully processed record results.PutRecordsResponse.Builder
records(PutRecordsResultEntry... records)
An array of successfully and unsuccessfully processed record results.-
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
-
Methods inherited from interface software.amazon.awssdk.services.kinesis.model.KinesisResponse.Builder
build, responseMetadata, responseMetadata
-
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
-
-
-
-
Method Detail
-
failedRecordCount
PutRecordsResponse.Builder failedRecordCount(Integer failedRecordCount)
The number of unsuccessfully processed records in a
PutRecords
request.- Parameters:
failedRecordCount
- The number of unsuccessfully processed records in aPutRecords
request.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
records
PutRecordsResponse.Builder records(Collection<PutRecordsResultEntry> records)
An array of successfully and unsuccessfully processed record results. A record that is successfully added to a stream includes
SequenceNumber
andShardId
in the result. A record that fails to be added to a stream includesErrorCode
andErrorMessage
in the result.- Parameters:
records
- An array of successfully and unsuccessfully processed record results. A record that is successfully added to a stream includesSequenceNumber
andShardId
in the result. A record that fails to be added to a stream includesErrorCode
andErrorMessage
in the result.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
records
PutRecordsResponse.Builder records(PutRecordsResultEntry... records)
An array of successfully and unsuccessfully processed record results. A record that is successfully added to a stream includes
SequenceNumber
andShardId
in the result. A record that fails to be added to a stream includesErrorCode
andErrorMessage
in the result.- Parameters:
records
- An array of successfully and unsuccessfully processed record results. A record that is successfully added to a stream includesSequenceNumber
andShardId
in the result. A record that fails to be added to a stream includesErrorCode
andErrorMessage
in the result.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
records
PutRecordsResponse.Builder records(Consumer<PutRecordsResultEntry.Builder>... 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 theSequenceNumber
andShardId
in the result. A record that fails to be added to a stream includesErrorCode
andErrorMessage
in the result.PutRecordsResultEntry.Builder
avoiding the need to create one manually viaPutRecordsResultEntry.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed to#records(List
.) - 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:
#records(java.util.Collection
)
-
encryptionType
PutRecordsResponse.Builder encryptionType(String 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
,EncryptionType
-
-
encryptionType
PutRecordsResponse.Builder encryptionType(EncryptionType 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
,EncryptionType
-
-
-