public class Record extends Object implements Serializable, Cloneable
A description of a unique event within a stream.
Constructor and Description |
---|
Record() |
Modifier and Type | Method and Description |
---|---|
Record |
clone() |
boolean |
equals(Object obj) |
String |
getAwsRegion()
The region in which the GetRecords request was received.
|
StreamRecord |
getDynamodb()
The main body of the stream record, containing all of the
DynamoDB-specific fields.
|
String |
getEventID()
A globally unique identifier for the event that was recorded in this
stream record.
|
String |
getEventName()
The type of data modification that was performed on the DynamoDB table:
|
String |
getEventSource()
The AWS service from which the stream record originated.
|
String |
getEventVersion()
The version number of the stream record format.
|
int |
hashCode() |
void |
setAwsRegion(String awsRegion)
The region in which the GetRecords request was received.
|
void |
setDynamodb(StreamRecord dynamodb)
The main body of the stream record, containing all of the
DynamoDB-specific fields.
|
void |
setEventID(String eventID)
A globally unique identifier for the event that was recorded in this
stream record.
|
void |
setEventName(OperationType eventName)
The type of data modification that was performed on the DynamoDB table:
|
void |
setEventName(String eventName)
The type of data modification that was performed on the DynamoDB table:
|
void |
setEventSource(String eventSource)
The AWS service from which the stream record originated.
|
void |
setEventVersion(String eventVersion)
The version number of the stream record format.
|
String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
Record |
withAwsRegion(String awsRegion)
The region in which the GetRecords request was received.
|
Record |
withDynamodb(StreamRecord dynamodb)
The main body of the stream record, containing all of the
DynamoDB-specific fields.
|
Record |
withEventID(String eventID)
A globally unique identifier for the event that was recorded in this
stream record.
|
Record |
withEventName(OperationType eventName)
The type of data modification that was performed on the DynamoDB table:
|
Record |
withEventName(String eventName)
The type of data modification that was performed on the DynamoDB table:
|
Record |
withEventSource(String eventSource)
The AWS service from which the stream record originated.
|
Record |
withEventVersion(String eventVersion)
The version number of the stream record format.
|
public void setEventID(String eventID)
A globally unique identifier for the event that was recorded in this stream record.
eventID
- A globally unique identifier for the event that was recorded in
this stream record.public String getEventID()
A globally unique identifier for the event that was recorded in this stream record.
public Record withEventID(String eventID)
A globally unique identifier for the event that was recorded in this stream record.
eventID
- A globally unique identifier for the event that was recorded in
this stream record.public void setEventName(String eventName)
The type of data modification that was performed on the DynamoDB table:
INSERT
- a new item was added to the table.
MODIFY
- one or more of the item's attributes were updated.
REMOVE
- the item was deleted from the table
eventName
- The type of data modification that was performed on the DynamoDB
table:
INSERT
- a new item was added to the table.
MODIFY
- one or more of the item's attributes were
updated.
REMOVE
- the item was deleted from the table
OperationType
public String getEventName()
The type of data modification that was performed on the DynamoDB table:
INSERT
- a new item was added to the table.
MODIFY
- one or more of the item's attributes were updated.
REMOVE
- the item was deleted from the table
INSERT
- a new item was added to the table.
MODIFY
- one or more of the item's attributes were
updated.
REMOVE
- the item was deleted from the table
OperationType
public Record withEventName(String eventName)
The type of data modification that was performed on the DynamoDB table:
INSERT
- a new item was added to the table.
MODIFY
- one or more of the item's attributes were updated.
REMOVE
- the item was deleted from the table
eventName
- The type of data modification that was performed on the DynamoDB
table:
INSERT
- a new item was added to the table.
MODIFY
- one or more of the item's attributes were
updated.
REMOVE
- the item was deleted from the table
OperationType
public void setEventName(OperationType eventName)
The type of data modification that was performed on the DynamoDB table:
INSERT
- a new item was added to the table.
MODIFY
- one or more of the item's attributes were updated.
REMOVE
- the item was deleted from the table
eventName
- The type of data modification that was performed on the DynamoDB
table:
INSERT
- a new item was added to the table.
MODIFY
- one or more of the item's attributes were
updated.
REMOVE
- the item was deleted from the table
OperationType
public Record withEventName(OperationType eventName)
The type of data modification that was performed on the DynamoDB table:
INSERT
- a new item was added to the table.
MODIFY
- one or more of the item's attributes were updated.
REMOVE
- the item was deleted from the table
eventName
- The type of data modification that was performed on the DynamoDB
table:
INSERT
- a new item was added to the table.
MODIFY
- one or more of the item's attributes were
updated.
REMOVE
- the item was deleted from the table
OperationType
public void setEventVersion(String eventVersion)
The version number of the stream record format. Currently, this is 1.0.
eventVersion
- The version number of the stream record format. Currently, this is
1.0.public String getEventVersion()
The version number of the stream record format. Currently, this is 1.0.
public Record withEventVersion(String eventVersion)
The version number of the stream record format. Currently, this is 1.0.
eventVersion
- The version number of the stream record format. Currently, this is
1.0.public void setEventSource(String eventSource)
The AWS service from which the stream record originated. For DynamoDB Streams, this is aws:dynamodb.
eventSource
- The AWS service from which the stream record originated. For
DynamoDB Streams, this is aws:dynamodb.public String getEventSource()
The AWS service from which the stream record originated. For DynamoDB Streams, this is aws:dynamodb.
public Record withEventSource(String eventSource)
The AWS service from which the stream record originated. For DynamoDB Streams, this is aws:dynamodb.
eventSource
- The AWS service from which the stream record originated. For
DynamoDB Streams, this is aws:dynamodb.public void setAwsRegion(String awsRegion)
The region in which the GetRecords request was received.
awsRegion
- The region in which the GetRecords request was received.public String getAwsRegion()
The region in which the GetRecords request was received.
public Record withAwsRegion(String awsRegion)
The region in which the GetRecords request was received.
awsRegion
- The region in which the GetRecords request was received.public void setDynamodb(StreamRecord dynamodb)
The main body of the stream record, containing all of the DynamoDB-specific fields.
dynamodb
- The main body of the stream record, containing all of the
DynamoDB-specific fields.public StreamRecord getDynamodb()
The main body of the stream record, containing all of the DynamoDB-specific fields.
public Record withDynamodb(StreamRecord dynamodb)
The main body of the stream record, containing all of the DynamoDB-specific fields.
dynamodb
- The main body of the stream record, containing all of the
DynamoDB-specific fields.public String toString()
toString
in class Object
Object.toString()
Copyright © 2015. All rights reserved.