public class StreamRecord
extends java.lang.Object
implements java.io.Serializable, java.lang.Cloneable
A description of a single data modification that was performed on an item in a DynamoDB table.
Modifier and Type | Field and Description |
---|---|
private java.util.Map<java.lang.String,AttributeValue> |
keys
The primary key attribute(s) for the DynamoDB item that was modified.
|
private java.util.Map<java.lang.String,AttributeValue> |
newImage
The item in the DynamoDB table as it appeared after it was modified.
|
private java.util.Map<java.lang.String,AttributeValue> |
oldImage
The item in the DynamoDB table as it appeared before it was modified.
|
private java.lang.String |
sequenceNumber
The sequence number of the stream record.
|
private java.lang.Long |
sizeBytes
The size of the stream record, in bytes.
|
private java.lang.String |
streamViewType
The type of data from the modified DynamoDB item that was captured in
this stream record:
|
Constructor and Description |
---|
StreamRecord() |
Modifier and Type | Method and Description |
---|---|
StreamRecord |
addKeysEntry(java.lang.String key,
AttributeValue value) |
StreamRecord |
addNewImageEntry(java.lang.String key,
AttributeValue value) |
StreamRecord |
addOldImageEntry(java.lang.String key,
AttributeValue value) |
StreamRecord |
clearKeysEntries()
Removes all the entries added into Keys.
|
StreamRecord |
clearNewImageEntries()
Removes all the entries added into NewImage.
|
StreamRecord |
clearOldImageEntries()
Removes all the entries added into OldImage.
|
StreamRecord |
clone() |
boolean |
equals(java.lang.Object obj) |
java.util.Map<java.lang.String,AttributeValue> |
getKeys()
The primary key attribute(s) for the DynamoDB item that was modified.
|
java.util.Map<java.lang.String,AttributeValue> |
getNewImage()
The item in the DynamoDB table as it appeared after it was modified.
|
java.util.Map<java.lang.String,AttributeValue> |
getOldImage()
The item in the DynamoDB table as it appeared before it was modified.
|
java.lang.String |
getSequenceNumber()
The sequence number of the stream record.
|
java.lang.Long |
getSizeBytes()
The size of the stream record, in bytes.
|
java.lang.String |
getStreamViewType()
The type of data from the modified DynamoDB item that was captured in
this stream record:
|
int |
hashCode() |
void |
setKeys(java.util.Map<java.lang.String,AttributeValue> keys)
The primary key attribute(s) for the DynamoDB item that was modified.
|
void |
setNewImage(java.util.Map<java.lang.String,AttributeValue> newImage)
The item in the DynamoDB table as it appeared after it was modified.
|
void |
setOldImage(java.util.Map<java.lang.String,AttributeValue> oldImage)
The item in the DynamoDB table as it appeared before it was modified.
|
void |
setSequenceNumber(java.lang.String sequenceNumber)
The sequence number of the stream record.
|
void |
setSizeBytes(java.lang.Long sizeBytes)
The size of the stream record, in bytes.
|
void |
setStreamViewType(StreamViewType streamViewType)
The type of data from the modified DynamoDB item that was captured in
this stream record:
|
void |
setStreamViewType(java.lang.String streamViewType)
The type of data from the modified DynamoDB item that was captured in
this stream record:
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
StreamRecord |
withKeys(java.util.Map<java.lang.String,AttributeValue> keys)
The primary key attribute(s) for the DynamoDB item that was modified.
|
StreamRecord |
withNewImage(java.util.Map<java.lang.String,AttributeValue> newImage)
The item in the DynamoDB table as it appeared after it was modified.
|
StreamRecord |
withOldImage(java.util.Map<java.lang.String,AttributeValue> oldImage)
The item in the DynamoDB table as it appeared before it was modified.
|
StreamRecord |
withSequenceNumber(java.lang.String sequenceNumber)
The sequence number of the stream record.
|
StreamRecord |
withSizeBytes(java.lang.Long sizeBytes)
The size of the stream record, in bytes.
|
StreamRecord |
withStreamViewType(StreamViewType streamViewType)
The type of data from the modified DynamoDB item that was captured in
this stream record:
|
StreamRecord |
withStreamViewType(java.lang.String streamViewType)
The type of data from the modified DynamoDB item that was captured in
this stream record:
|
private java.util.Map<java.lang.String,AttributeValue> keys
The primary key attribute(s) for the DynamoDB item that was modified.
private java.util.Map<java.lang.String,AttributeValue> newImage
The item in the DynamoDB table as it appeared after it was modified.
private java.util.Map<java.lang.String,AttributeValue> oldImage
The item in the DynamoDB table as it appeared before it was modified.
private java.lang.String sequenceNumber
The sequence number of the stream record.
private java.lang.Long sizeBytes
The size of the stream record, in bytes.
private java.lang.String streamViewType
The type of data from the modified DynamoDB item that was captured in this stream record:
KEYS_ONLY
- only the key attributes of the modified item.
NEW_IMAGE
- the entire item, as it appears after it was
modified.
OLD_IMAGE
- the entire item, as it appeared before it was
modified.
NEW_AND_OLD_IMAGES
— both the new and the old item images of
the item.
public java.util.Map<java.lang.String,AttributeValue> getKeys()
The primary key attribute(s) for the DynamoDB item that was modified.
public void setKeys(java.util.Map<java.lang.String,AttributeValue> keys)
The primary key attribute(s) for the DynamoDB item that was modified.
keys
- The primary key attribute(s) for the DynamoDB item that was
modified.public StreamRecord withKeys(java.util.Map<java.lang.String,AttributeValue> keys)
The primary key attribute(s) for the DynamoDB item that was modified.
keys
- The primary key attribute(s) for the DynamoDB item that was
modified.public StreamRecord addKeysEntry(java.lang.String key, AttributeValue value)
public StreamRecord clearKeysEntries()
public java.util.Map<java.lang.String,AttributeValue> getNewImage()
The item in the DynamoDB table as it appeared after it was modified.
public void setNewImage(java.util.Map<java.lang.String,AttributeValue> newImage)
The item in the DynamoDB table as it appeared after it was modified.
newImage
- The item in the DynamoDB table as it appeared after it was
modified.public StreamRecord withNewImage(java.util.Map<java.lang.String,AttributeValue> newImage)
The item in the DynamoDB table as it appeared after it was modified.
newImage
- The item in the DynamoDB table as it appeared after it was
modified.public StreamRecord addNewImageEntry(java.lang.String key, AttributeValue value)
public StreamRecord clearNewImageEntries()
public java.util.Map<java.lang.String,AttributeValue> getOldImage()
The item in the DynamoDB table as it appeared before it was modified.
public void setOldImage(java.util.Map<java.lang.String,AttributeValue> oldImage)
The item in the DynamoDB table as it appeared before it was modified.
oldImage
- The item in the DynamoDB table as it appeared before it was
modified.public StreamRecord withOldImage(java.util.Map<java.lang.String,AttributeValue> oldImage)
The item in the DynamoDB table as it appeared before it was modified.
oldImage
- The item in the DynamoDB table as it appeared before it was
modified.public StreamRecord addOldImageEntry(java.lang.String key, AttributeValue value)
public StreamRecord clearOldImageEntries()
public void setSequenceNumber(java.lang.String sequenceNumber)
The sequence number of the stream record.
sequenceNumber
- The sequence number of the stream record.public java.lang.String getSequenceNumber()
The sequence number of the stream record.
public StreamRecord withSequenceNumber(java.lang.String sequenceNumber)
The sequence number of the stream record.
sequenceNumber
- The sequence number of the stream record.public void setSizeBytes(java.lang.Long sizeBytes)
The size of the stream record, in bytes.
sizeBytes
- The size of the stream record, in bytes.public java.lang.Long getSizeBytes()
The size of the stream record, in bytes.
public StreamRecord withSizeBytes(java.lang.Long sizeBytes)
The size of the stream record, in bytes.
sizeBytes
- The size of the stream record, in bytes.public void setStreamViewType(java.lang.String streamViewType)
The type of data from the modified DynamoDB item that was captured in this stream record:
KEYS_ONLY
- only the key attributes of the modified item.
NEW_IMAGE
- the entire item, as it appears after it was
modified.
OLD_IMAGE
- the entire item, as it appeared before it was
modified.
NEW_AND_OLD_IMAGES
— both the new and the old item images of
the item.
streamViewType
- The type of data from the modified DynamoDB item that was captured
in this stream record:
KEYS_ONLY
- only the key attributes of the modified
item.
NEW_IMAGE
- the entire item, as it appears after it
was modified.
OLD_IMAGE
- the entire item, as it appeared before it
was modified.
NEW_AND_OLD_IMAGES
— both the new and the old item
images of the item.
StreamViewType
public java.lang.String getStreamViewType()
The type of data from the modified DynamoDB item that was captured in this stream record:
KEYS_ONLY
- only the key attributes of the modified item.
NEW_IMAGE
- the entire item, as it appears after it was
modified.
OLD_IMAGE
- the entire item, as it appeared before it was
modified.
NEW_AND_OLD_IMAGES
— both the new and the old item images of
the item.
KEYS_ONLY
- only the key attributes of the modified
item.
NEW_IMAGE
- the entire item, as it appears after it
was modified.
OLD_IMAGE
- the entire item, as it appeared before
it was modified.
NEW_AND_OLD_IMAGES
— both the new and the old item
images of the item.
StreamViewType
public StreamRecord withStreamViewType(java.lang.String streamViewType)
The type of data from the modified DynamoDB item that was captured in this stream record:
KEYS_ONLY
- only the key attributes of the modified item.
NEW_IMAGE
- the entire item, as it appears after it was
modified.
OLD_IMAGE
- the entire item, as it appeared before it was
modified.
NEW_AND_OLD_IMAGES
— both the new and the old item images of
the item.
streamViewType
- The type of data from the modified DynamoDB item that was captured
in this stream record:
KEYS_ONLY
- only the key attributes of the modified
item.
NEW_IMAGE
- the entire item, as it appears after it
was modified.
OLD_IMAGE
- the entire item, as it appeared before it
was modified.
NEW_AND_OLD_IMAGES
— both the new and the old item
images of the item.
StreamViewType
public void setStreamViewType(StreamViewType streamViewType)
The type of data from the modified DynamoDB item that was captured in this stream record:
KEYS_ONLY
- only the key attributes of the modified item.
NEW_IMAGE
- the entire item, as it appears after it was
modified.
OLD_IMAGE
- the entire item, as it appeared before it was
modified.
NEW_AND_OLD_IMAGES
— both the new and the old item images of
the item.
streamViewType
- The type of data from the modified DynamoDB item that was captured
in this stream record:
KEYS_ONLY
- only the key attributes of the modified
item.
NEW_IMAGE
- the entire item, as it appears after it
was modified.
OLD_IMAGE
- the entire item, as it appeared before it
was modified.
NEW_AND_OLD_IMAGES
— both the new and the old item
images of the item.
StreamViewType
public StreamRecord withStreamViewType(StreamViewType streamViewType)
The type of data from the modified DynamoDB item that was captured in this stream record:
KEYS_ONLY
- only the key attributes of the modified item.
NEW_IMAGE
- the entire item, as it appears after it was
modified.
OLD_IMAGE
- the entire item, as it appeared before it was
modified.
NEW_AND_OLD_IMAGES
— both the new and the old item images of
the item.
streamViewType
- The type of data from the modified DynamoDB item that was captured
in this stream record:
KEYS_ONLY
- only the key attributes of the modified
item.
NEW_IMAGE
- the entire item, as it appears after it
was modified.
OLD_IMAGE
- the entire item, as it appeared before it
was modified.
NEW_AND_OLD_IMAGES
— both the new and the old item
images of the item.
StreamViewType
public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public StreamRecord clone()
clone
in class java.lang.Object