@Generated(value="software.amazon.awssdk:codegen") public final class StreamSpecification extends Object implements SdkPojo, Serializable, 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) |
boolean |
equalsBySdkFields(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
List<SdkField<?>> |
sdkFields() |
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 |
streamViewTypeAsString()
When an item in the table is modified,
StreamViewType determines what information is written to the
stream for this table. |
StreamSpecification.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
copy
public final Boolean streamEnabled()
Indicates whether DynamoDB Streams is enabled (true) or disabled (false) on the table.
public final 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 streamViewTypeAsString()
.
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 final String streamViewTypeAsString()
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 streamViewTypeAsString()
.
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()
toBuilder
in interface ToCopyableBuilder<StreamSpecification.Builder,StreamSpecification>
public static StreamSpecification.Builder builder()
public static Class<? extends StreamSpecification.Builder> serializableBuilderClass()
public final boolean equalsBySdkFields(Object obj)
equalsBySdkFields
in interface SdkPojo
public final String toString()
Copyright © 2021. All rights reserved.