@Generated(value="software.amazon.awssdk:codegen") public final class Record extends Object implements SdkPojo, Serializable, ToCopyableBuilder<Record.Builder,Record>
The unit of data of the Kinesis data stream, which is composed of a sequence number, a partition key, and a data blob.
Modifier and Type | Class and Description |
---|---|
static interface |
Record.Builder |
Modifier and Type | Method and Description |
---|---|
Instant |
approximateArrivalTimestamp()
The approximate time that the record was inserted into the stream.
|
static Record.Builder |
builder() |
SdkBytes |
data()
The data blob.
|
EncryptionType |
encryptionType()
The encryption type used on the record.
|
String |
encryptionTypeAsString()
The encryption type used on the record.
|
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
String |
partitionKey()
Identifies which shard in the stream the data record is assigned to.
|
List<SdkField<?>> |
sdkFields() |
String |
sequenceNumber()
The unique identifier of the record within its shard.
|
static Class<? extends Record.Builder> |
serializableBuilderClass() |
Record.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
copy
public final String sequenceNumber()
The unique identifier of the record within its shard.
public final Instant approximateArrivalTimestamp()
The approximate time that the record was inserted into the stream.
public final SdkBytes data()
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).
public final String partitionKey()
Identifies which shard in the stream the data record is assigned to.
public final EncryptionType encryptionType()
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.
If the service returns an enum value that is not available in the current SDK version, encryptionType
will return EncryptionType.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available
from encryptionTypeAsString()
.
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.
EncryptionType
public final String encryptionTypeAsString()
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.
If the service returns an enum value that is not available in the current SDK version, encryptionType
will return EncryptionType.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available
from encryptionTypeAsString()
.
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.
EncryptionType
public Record.Builder toBuilder()
toBuilder
in interface ToCopyableBuilder<Record.Builder,Record>
public static Record.Builder builder()
public static Class<? extends Record.Builder> serializableBuilderClass()
public final boolean equalsBySdkFields(Object obj)
equalsBySdkFields
in interface SdkPojo
public final String toString()
Copyright © 2022. All rights reserved.