Struct aws_sdk_kinesis::model::record::Builder
source · pub struct Builder { /* private fields */ }
Expand description
A builder for Record
.
Implementations§
source§impl Builder
impl Builder
sourcepub fn sequence_number(self, input: impl Into<String>) -> Self
pub fn sequence_number(self, input: impl Into<String>) -> Self
The unique identifier of the record within its shard.
sourcepub fn set_sequence_number(self, input: Option<String>) -> Self
pub fn set_sequence_number(self, input: Option<String>) -> Self
The unique identifier of the record within its shard.
sourcepub fn approximate_arrival_timestamp(self, input: DateTime) -> Self
pub fn approximate_arrival_timestamp(self, input: DateTime) -> Self
The approximate time that the record was inserted into the stream.
sourcepub fn set_approximate_arrival_timestamp(self, input: Option<DateTime>) -> Self
pub fn set_approximate_arrival_timestamp(self, input: Option<DateTime>) -> Self
The approximate time that the record was inserted into the stream.
sourcepub fn data(self, input: Blob) -> Self
pub fn data(self, input: Blob) -> Self
The data blob. The data in the blob is both opaque and immutable to Kinesis Data Streams, which does not inspect, interpret, or change the data in the blob in any way. When the data blob (the payload before base64-encoding) is added to the partition key size, the total size must not exceed the maximum record size (1 MiB).
sourcepub fn set_data(self, input: Option<Blob>) -> Self
pub fn set_data(self, input: Option<Blob>) -> Self
The data blob. The data in the blob is both opaque and immutable to Kinesis Data Streams, which does not inspect, interpret, or change the data in the blob in any way. When the data blob (the payload before base64-encoding) is added to the partition key size, the total size must not exceed the maximum record size (1 MiB).
sourcepub fn partition_key(self, input: impl Into<String>) -> Self
pub fn partition_key(self, input: impl Into<String>) -> Self
Identifies which shard in the stream the data record is assigned to.
sourcepub fn set_partition_key(self, input: Option<String>) -> Self
pub fn set_partition_key(self, input: Option<String>) -> Self
Identifies which shard in the stream the data record is assigned to.
sourcepub fn encryption_type(self, input: EncryptionType) -> Self
pub fn encryption_type(self, input: EncryptionType) -> Self
The encryption type used on the record. This parameter can be one of the following values:
-
NONE
: Do not encrypt the records in the stream. -
KMS
: Use server-side encryption on the records in the stream 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 record. This parameter can be one of the following values:
-
NONE
: Do not encrypt the records in the stream. -
KMS
: Use server-side encryption on the records in the stream using a customer-managed Amazon Web Services KMS key.