StructuredPojo
, ToCopyableBuilder<Record.Builder,Record>
@Generated("software.amazon.awssdk:codegen") public class Record extends Object implements StructuredPojo, ToCopyableBuilder<Record.Builder,Record>
The unit of data in a delivery stream.
Modifier and Type | Class | Description |
---|---|---|
static interface |
Record.Builder |
Modifier and Type | Method | Description |
---|---|---|
static Record.Builder |
builder() |
|
ByteBuffer |
data() |
The data blob, which is base64-encoded when the blob is serialized.
|
boolean |
equals(Object obj) |
|
int |
hashCode() |
|
void |
marshall(ProtocolMarshaller protocolMarshaller) |
Marshalls this structured data using the given
ProtocolMarshaller . |
static Class<? extends Record.Builder> |
serializableBuilderClass() |
|
Record.Builder |
toBuilder() |
Take this object and create a builder that contains all of the current property values of this object.
|
String |
toString() |
public ByteBuffer data()
The data blob, which is base64-encoded when the blob is serialized. The maximum size of the data blob, before base64-encoding, is 1,000 KB.
ByteBuffer
s are stateful. Calling their get
methods changes their position
. We recommend
using ByteBuffer.asReadOnlyBuffer()
to create a read-only view of the buffer with an independent
position
, and calling get
methods on this rather than directly on the returned ByteBuffer
. Doing so will ensure that anyone else using the ByteBuffer
will not be affected by changes to the
position
.
public Record.Builder toBuilder()
ToCopyableBuilder
toBuilder
in interface ToCopyableBuilder<Record.Builder,Record>
public static Record.Builder builder()
public static Class<? extends Record.Builder> serializableBuilderClass()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.