Class StreamRecord
- All Implemented Interfaces:
Serializable
,Cloneable
A description of a single data modification that was performed on an item in a DynamoDB table.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddKeysEntry
(String key, AttributeValue value) addNewImageEntry
(String key, AttributeValue value) addOldImageEntry
(String key, AttributeValue value) Removes all the entries added into Keys.Removes all the entries added into NewImage.Removes all the entries added into OldImage.clone()
boolean
getKeys()
The primary key attribute(s) for the DynamoDB item that was modified.The item in the DynamoDB table as it appeared after it was modified.The item in the DynamoDB table as it appeared before it was modified.The sequence number of the stream record.The size of the stream record, in bytes.The type of data from the modified DynamoDB item that was captured in this stream record:int
hashCode()
void
setKeys
(Map<String, AttributeValue> keys) The primary key attribute(s) for the DynamoDB item that was modified.void
setNewImage
(Map<String, AttributeValue> newImage) The item in the DynamoDB table as it appeared after it was modified.void
setOldImage
(Map<String, AttributeValue> oldImage) The item in the DynamoDB table as it appeared before it was modified.void
setSequenceNumber
(String sequenceNumber) The sequence number of the stream record.void
setSizeBytes
(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
(String streamViewType) The type of data from the modified DynamoDB item that was captured in this stream record:toString()
Returns a string representation of this object; useful for testing and debugging.withKeys
(Map<String, AttributeValue> keys) The primary key attribute(s) for the DynamoDB item that was modified.withNewImage
(Map<String, AttributeValue> newImage) The item in the DynamoDB table as it appeared after it was modified.withOldImage
(Map<String, AttributeValue> oldImage) The item in the DynamoDB table as it appeared before it was modified.withSequenceNumber
(String sequenceNumber) The sequence number of the stream record.withSizeBytes
(Long sizeBytes) The size of the stream record, in bytes.withStreamViewType
(StreamViewType streamViewType) The type of data from the modified DynamoDB item that was captured in this stream record:withStreamViewType
(String streamViewType) The type of data from the modified DynamoDB item that was captured in this stream record:
-
Constructor Details
-
StreamRecord
public StreamRecord()
-
-
Method Details
-
getKeys
The primary key attribute(s) for the DynamoDB item that was modified.
- Returns:
- The primary key attribute(s) for the DynamoDB item that was modified.
-
setKeys
The primary key attribute(s) for the DynamoDB item that was modified.
- Parameters:
keys
- The primary key attribute(s) for the DynamoDB item that was modified.
-
withKeys
The primary key attribute(s) for the DynamoDB item that was modified.
- Parameters:
keys
- The primary key attribute(s) for the DynamoDB item that was modified.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
addKeysEntry
-
clearKeysEntries
Removes all the entries added into Keys. <p> Returns a reference to this object so that method calls can be chained together. -
getNewImage
The item in the DynamoDB table as it appeared after it was modified.
- Returns:
- The item in the DynamoDB table as it appeared after it was modified.
-
setNewImage
The item in the DynamoDB table as it appeared after it was modified.
- Parameters:
newImage
- The item in the DynamoDB table as it appeared after it was modified.
-
withNewImage
The item in the DynamoDB table as it appeared after it was modified.
- Parameters:
newImage
- The item in the DynamoDB table as it appeared after it was modified.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
addNewImageEntry
-
clearNewImageEntries
Removes all the entries added into NewImage. <p> Returns a reference to this object so that method calls can be chained together. -
getOldImage
The item in the DynamoDB table as it appeared before it was modified.
- Returns:
- The item in the DynamoDB table as it appeared before it was modified.
-
setOldImage
The item in the DynamoDB table as it appeared before it was modified.
- Parameters:
oldImage
- The item in the DynamoDB table as it appeared before it was modified.
-
withOldImage
The item in the DynamoDB table as it appeared before it was modified.
- Parameters:
oldImage
- The item in the DynamoDB table as it appeared before it was modified.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
addOldImageEntry
-
clearOldImageEntries
Removes all the entries added into OldImage. <p> Returns a reference to this object so that method calls can be chained together. -
setSequenceNumber
The sequence number of the stream record.
- Parameters:
sequenceNumber
- The sequence number of the stream record.
-
getSequenceNumber
The sequence number of the stream record.
- Returns:
- The sequence number of the stream record.
-
withSequenceNumber
The sequence number of the stream record.
- Parameters:
sequenceNumber
- The sequence number of the stream record.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setSizeBytes
The size of the stream record, in bytes.
- Parameters:
sizeBytes
- The size of the stream record, in bytes.
-
getSizeBytes
The size of the stream record, in bytes.
- Returns:
- The size of the stream record, in bytes.
-
withSizeBytes
The size of the stream record, in bytes.
- Parameters:
sizeBytes
- The size of the stream record, in bytes.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setStreamViewType
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.
- Parameters:
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.
-
- See Also:
-
-
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.
- Returns:
- 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.
-
- See Also:
-
-
withStreamViewType
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.
- Parameters:
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.
-
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
-
setStreamViewType
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.
- Parameters:
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.
-
- See Also:
-
-
withStreamViewType
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.
- Parameters:
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.
-
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
-
toString
Returns a string representation of this object; useful for testing and debugging. -
equals
-
hashCode
public int hashCode() -
clone
-