public class StreamRecord extends Object implements Serializable, Cloneable
A description of a single data modification that was performed on an item in a DynamoDB table.
Constructor and Description |
---|
StreamRecord() |
Modifier and Type | Method and Description |
---|---|
StreamRecord |
addKeysEntry(String key,
AttributeValue value) |
StreamRecord |
addNewImageEntry(String key,
AttributeValue value) |
StreamRecord |
addOldImageEntry(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(Object obj) |
Map<String,AttributeValue> |
getKeys()
The primary key attribute(s) for the DynamoDB item that was modified.
|
Map<String,AttributeValue> |
getNewImage()
The item in the DynamoDB table as it appeared after it was modified.
|
Map<String,AttributeValue> |
getOldImage()
The item in the DynamoDB table as it appeared before it was modified.
|
String |
getSequenceNumber()
The sequence number of the stream record.
|
Long |
getSizeBytes()
The size of the stream record, in bytes.
|
String |
getStreamViewType()
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:
|
String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
StreamRecord |
withKeys(Map<String,AttributeValue> keys)
The primary key attribute(s) for the DynamoDB item that was modified.
|
StreamRecord |
withNewImage(Map<String,AttributeValue> newImage)
The item in the DynamoDB table as it appeared after it was modified.
|
StreamRecord |
withOldImage(Map<String,AttributeValue> oldImage)
The item in the DynamoDB table as it appeared before it was modified.
|
StreamRecord |
withSequenceNumber(String sequenceNumber)
The sequence number of the stream record.
|
StreamRecord |
withSizeBytes(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(String streamViewType)
The type of data from the modified DynamoDB item that was captured in
this stream record:
|
public Map<String,AttributeValue> getKeys()
The primary key attribute(s) for the DynamoDB item that was modified.
public void setKeys(Map<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(Map<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(String key, AttributeValue value)
public StreamRecord clearKeysEntries()
public Map<String,AttributeValue> getNewImage()
The item in the DynamoDB table as it appeared after it was modified.
public void setNewImage(Map<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(Map<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(String key, AttributeValue value)
public StreamRecord clearNewImageEntries()
public Map<String,AttributeValue> getOldImage()
The item in the DynamoDB table as it appeared before it was modified.
public void setOldImage(Map<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(Map<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(String key, AttributeValue value)
public StreamRecord clearOldImageEntries()
public void setSequenceNumber(String sequenceNumber)
The sequence number of the stream record.
sequenceNumber
- The sequence number of the stream record.public String getSequenceNumber()
The sequence number of the stream record.
public StreamRecord withSequenceNumber(String sequenceNumber)
The sequence number of the stream record.
sequenceNumber
- The sequence number of the stream record.public void setSizeBytes(Long sizeBytes)
The size of the stream record, in bytes.
sizeBytes
- The size of the stream record, in bytes.public Long getSizeBytes()
The size of the stream record, in bytes.
public StreamRecord withSizeBytes(Long sizeBytes)
The size of the stream record, in bytes.
sizeBytes
- The size of the stream record, in bytes.public void setStreamViewType(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 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(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 String toString()
toString
in class Object
Object.toString()
public StreamRecord clone()
Copyright © 2017. All rights reserved.