@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class StreamRecord extends Object implements Serializable, Cloneable, StructuredPojo
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) |
Date |
getApproximateCreationDateTime()
The approximate date and time when the stream record was created, in UNIX epoch time format.
|
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 |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setApproximateCreationDateTime(Date approximateCreationDateTime)
The approximate date and time when the stream record was created, in UNIX epoch time format.
|
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 |
withApproximateCreationDateTime(Date approximateCreationDateTime)
The approximate date and time when the stream record was created, in UNIX epoch time format.
|
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 void setApproximateCreationDateTime(Date approximateCreationDateTime)
The approximate date and time when the stream record was created, in UNIX epoch time format.
approximateCreationDateTime
- The approximate date and time when the stream record was created, in UNIX epoch time format.public Date getApproximateCreationDateTime()
The approximate date and time when the stream record was created, in UNIX epoch time format.
public StreamRecord withApproximateCreationDateTime(Date approximateCreationDateTime)
The approximate date and time when the stream record was created, in UNIX epoch time format.
approximateCreationDateTime
- The approximate date and time when the stream record was created, in UNIX epoch time format.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 appeared 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 appeared 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 appeared 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 appeared 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 appeared 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 appeared 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 appeared 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 appeared 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 appeared 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 appeared 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()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.