public class StreamSpecification
extends java.lang.Object
implements java.io.Serializable
Represents the DynamoDB Streams configuration for a table in DynamoDB.
Constructor and Description |
---|
StreamSpecification() |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
java.lang.Boolean |
getStreamEnabled()
Indicates whether DynamoDB Streams is enabled (true) or disabled (false)
on the table.
|
java.lang.String |
getStreamViewType()
When an item in the table is modified,
StreamViewType
determines what information is written to the stream for this table. |
int |
hashCode() |
java.lang.Boolean |
isStreamEnabled()
Indicates whether DynamoDB Streams is enabled (true) or disabled (false)
on the table.
|
void |
setStreamEnabled(java.lang.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(java.lang.String streamViewType)
When an item in the table is modified,
StreamViewType
determines what information is written to the stream for this table. |
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
StreamSpecification |
withStreamEnabled(java.lang.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(java.lang.String streamViewType)
When an item in the table is modified,
StreamViewType
determines what information is written to the stream for this table. |
public java.lang.Boolean isStreamEnabled()
Indicates whether DynamoDB Streams is enabled (true) or disabled (false) on the table.
Indicates whether DynamoDB Streams is enabled (true) or disabled (false) on the table.
public java.lang.Boolean getStreamEnabled()
Indicates whether DynamoDB Streams is enabled (true) or disabled (false) on the table.
Indicates whether DynamoDB Streams is enabled (true) or disabled (false) on the table.
public void setStreamEnabled(java.lang.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 StreamSpecification withStreamEnabled(java.lang.Boolean streamEnabled)
Indicates whether DynamoDB Streams is enabled (true) or disabled (false) on the table.
Returns a reference to this object so that method calls can be chained together.
streamEnabled
- Indicates whether DynamoDB Streams is enabled (true) or disabled (false) on the table.
public java.lang.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.
Constraints:
Allowed Values: NEW_IMAGE, OLD_IMAGE, NEW_AND_OLD_IMAGES,
KEYS_ONLY
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(java.lang.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.
Constraints:
Allowed Values: NEW_IMAGE, OLD_IMAGE, NEW_AND_OLD_IMAGES,
KEYS_ONLY
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(java.lang.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.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: NEW_IMAGE, OLD_IMAGE, NEW_AND_OLD_IMAGES,
KEYS_ONLY
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.
Constraints:
Allowed Values: NEW_IMAGE, OLD_IMAGE, NEW_AND_OLD_IMAGES,
KEYS_ONLY
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.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: NEW_IMAGE, OLD_IMAGE, NEW_AND_OLD_IMAGES,
KEYS_ONLY
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 java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
Copyright © 2018 Amazon Web Services, Inc. All Rights Reserved.