@Generated(value="software.amazon.awssdk:codegen") public class StreamSpecification extends Object implements StructuredPojo, ToCopyableBuilder<StreamSpecification.Builder,StreamSpecification>
Represents the DynamoDB Streams configuration for a table in DynamoDB.
Modifier and Type | Class and Description |
---|---|
static interface |
StreamSpecification.Builder |
Modifier and Type | Method and Description |
---|---|
static StreamSpecification.Builder |
builder() |
boolean |
equals(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
static Class<? extends StreamSpecification.Builder> |
serializableBuilderClass() |
Boolean |
streamEnabled()
Indicates whether DynamoDB Streams is enabled (true) or disabled (false) on the table.
|
StreamViewType |
streamViewType()
When an item in the table is modified,
StreamViewType determines what information is written to the
stream for this table. |
String |
streamViewTypeString()
When an item in the table is modified,
StreamViewType determines what information is written to the
stream for this table. |
StreamSpecification.Builder |
toBuilder()
Take this object and create a builder that contains all of the current property values of this object.
|
String |
toString() |
copy
public Boolean streamEnabled()
Indicates whether DynamoDB Streams is enabled (true) or disabled (false) on the table.
public StreamViewType streamViewType()
When an item in the table is modified, StreamViewType
determines what information is written to the
stream for this table. Valid values for StreamViewType
are:
KEYS_ONLY
- Only the key attributes of the modified item are written to the stream.
NEW_IMAGE
- The entire item, as it appears after it was modified, is written to the stream.
OLD_IMAGE
- The entire item, as it appeared before it was modified, is written to the stream.
NEW_AND_OLD_IMAGES
- Both the new and the old item images of the item are written to the stream.
If the service returns an enum value that is not available in the current SDK version, streamViewType
will return StreamViewType.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available
from streamViewTypeString()
.
StreamViewType
determines what information is written
to the stream for this table. Valid values for StreamViewType
are:
KEYS_ONLY
- Only the key attributes of the modified item are written to the stream.
NEW_IMAGE
- The entire item, as it appears after it was modified, is written to the stream.
OLD_IMAGE
- The entire item, as it appeared before it was modified, is written to the
stream.
NEW_AND_OLD_IMAGES
- Both the new and the old item images of the item are written to the
stream.
StreamViewType
public String streamViewTypeString()
When an item in the table is modified, StreamViewType
determines what information is written to the
stream for this table. Valid values for StreamViewType
are:
KEYS_ONLY
- Only the key attributes of the modified item are written to the stream.
NEW_IMAGE
- The entire item, as it appears after it was modified, is written to the stream.
OLD_IMAGE
- The entire item, as it appeared before it was modified, is written to the stream.
NEW_AND_OLD_IMAGES
- Both the new and the old item images of the item are written to the stream.
If the service returns an enum value that is not available in the current SDK version, streamViewType
will return StreamViewType.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available
from streamViewTypeString()
.
StreamViewType
determines what information is written
to the stream for this table. Valid values for StreamViewType
are:
KEYS_ONLY
- Only the key attributes of the modified item are written to the stream.
NEW_IMAGE
- The entire item, as it appears after it was modified, is written to the stream.
OLD_IMAGE
- The entire item, as it appeared before it was modified, is written to the
stream.
NEW_AND_OLD_IMAGES
- Both the new and the old item images of the item are written to the
stream.
StreamViewType
public StreamSpecification.Builder toBuilder()
ToCopyableBuilder
toBuilder
in interface ToCopyableBuilder<StreamSpecification.Builder,StreamSpecification>
public static StreamSpecification.Builder builder()
public static Class<? extends StreamSpecification.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.