@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class StreamSpecification extends Object implements Serializable, Cloneable, StructuredPojo
Represents the DynamoDB Streams configuration for a table in DynamoDB.
Constructor and Description |
---|
StreamSpecification() |
Modifier and Type | Method and Description |
---|---|
StreamSpecification |
clone() |
boolean |
equals(Object obj) |
Boolean |
getStreamEnabled()
Indicates whether DynamoDB Streams is enabled (true) or disabled (false) on the table.
|
String |
getStreamViewType()
When an item in the table is modified,
StreamViewType determines what information is written to the
stream for this table. |
int |
hashCode() |
Boolean |
isStreamEnabled()
Indicates whether DynamoDB Streams is enabled (true) or disabled (false) on the table.
|
void |
marshall(ProtocolMarshaller protocolMarshaller) |
void |
setStreamEnabled(Boolean streamEnabled)
Indicates whether DynamoDB Streams is enabled (true) or disabled (false) on the table.
|
void |
setStreamViewType(StreamViewType streamViewType)
When an item in the table is modified,
StreamViewType determines what information is written to the
stream for this table. |
void |
setStreamViewType(String streamViewType)
When an item in the table is modified,
StreamViewType determines what information is written to the
stream for this table. |
String |
toString()
Returns a string representation of this object.
|
StreamSpecification |
withStreamEnabled(Boolean streamEnabled)
Indicates whether DynamoDB Streams is enabled (true) or disabled (false) on the table.
|
StreamSpecification |
withStreamViewType(StreamViewType streamViewType)
When an item in the table is modified,
StreamViewType determines what information is written to the
stream for this table. |
StreamSpecification |
withStreamViewType(String streamViewType)
When an item in the table is modified,
StreamViewType determines what information is written to the
stream for this table. |
public void setStreamEnabled(Boolean streamEnabled)
Indicates whether DynamoDB Streams is enabled (true) or disabled (false) on the table.
streamEnabled
- Indicates whether DynamoDB Streams is enabled (true) or disabled (false) on the table.public Boolean getStreamEnabled()
Indicates whether DynamoDB Streams is enabled (true) or disabled (false) on the table.
public StreamSpecification withStreamEnabled(Boolean streamEnabled)
Indicates whether DynamoDB Streams is enabled (true) or disabled (false) on the table.
streamEnabled
- Indicates whether DynamoDB Streams is enabled (true) or disabled (false) on the table.public Boolean isStreamEnabled()
Indicates whether DynamoDB Streams is enabled (true) or disabled (false) on the table.
public void setStreamViewType(String 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.
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.
StreamViewType
public String getStreamViewType()
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.
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 withStreamViewType(String 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.
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.
StreamViewType
public void setStreamViewType(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.
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.
StreamViewType
public StreamSpecification withStreamViewType(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.
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.
StreamViewType
public String toString()
toString
in class Object
Object.toString()
public StreamSpecification clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
marshall
in interface StructuredPojo
Copyright © 2020. All rights reserved.