Struct aws_sdk_kinesis::output::put_records_output::Builder
source · pub struct Builder { /* private fields */ }
Expand description
A builder for PutRecordsOutput
.
Implementations§
source§impl Builder
impl Builder
sourcepub fn failed_record_count(self, input: i32) -> Self
pub fn failed_record_count(self, input: i32) -> Self
The number of unsuccessfully processed records in a PutRecords
request.
sourcepub fn set_failed_record_count(self, input: Option<i32>) -> Self
pub fn set_failed_record_count(self, input: Option<i32>) -> Self
The number of unsuccessfully processed records in a PutRecords
request.
sourcepub fn records(self, input: PutRecordsResultEntry) -> Self
pub fn records(self, input: PutRecordsResultEntry) -> Self
Appends an item to records
.
To override the contents of this collection use set_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.
sourcepub fn set_records(self, input: Option<Vec<PutRecordsResultEntry>>) -> Self
pub fn set_records(self, input: Option<Vec<PutRecordsResultEntry>>) -> Self
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.
sourcepub fn encryption_type(self, input: EncryptionType) -> Self
pub fn encryption_type(self, input: EncryptionType) -> Self
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.
sourcepub fn set_encryption_type(self, input: Option<EncryptionType>) -> Self
pub fn set_encryption_type(self, input: Option<EncryptionType>) -> Self
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.
sourcepub fn build(self) -> PutRecordsOutput
pub fn build(self) -> PutRecordsOutput
Consumes the builder and constructs a PutRecordsOutput
.