Interface PutRecordsResponse.Builder

    • 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 a PutRecords 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 and ShardId in the result. A record that fails to be added to a stream includes ErrorCode and ErrorMessage in the result.

        Parameters:
        records - An array of successfully and unsuccessfully processed record results. A record that is successfully added to a stream includes SequenceNumber and ShardId in the result. A record that fails to be added to a stream includes ErrorCode and ErrorMessage 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 and ShardId in the result. A record that fails to be added to a stream includes ErrorCode and ErrorMessage in the result.

        Parameters:
        records - An array of successfully and unsuccessfully processed record results. A record that is successfully added to a stream includes SequenceNumber and ShardId in the result. A record that fails to be added to a stream includes ErrorCode and ErrorMessage in the result.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • 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