Class Record
- All Implemented Interfaces:
Serializable
,Cloneable
A description of a unique event within a stream.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()
boolean
The region in which the GetRecords request was received.The main body of the stream record, containing all of the DynamoDB-specific fields.A globally unique identifier for the event that was recorded in this stream record.The type of data modification that was performed on the DynamoDB table:The AWS service from which the stream record originated.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.toString()
Returns a string representation of this object; useful for testing and debugging.withAwsRegion
(String awsRegion) The region in which the GetRecords request was received.withDynamodb
(StreamRecord dynamodb) The main body of the stream record, containing all of the DynamoDB-specific fields.withEventID
(String eventID) A globally unique identifier for the event that was recorded in this stream record.withEventName
(OperationType eventName) The type of data modification that was performed on the DynamoDB table:withEventName
(String eventName) The type of data modification that was performed on the DynamoDB table:withEventSource
(String eventSource) The AWS service from which the stream record originated.withEventVersion
(String eventVersion) The version number of the stream record format.
-
Constructor Details
-
Record
public Record()
-
-
Method Details
-
setEventID
A globally unique identifier for the event that was recorded in this stream record.
- Parameters:
eventID
- A globally unique identifier for the event that was recorded in this stream record.
-
getEventID
A globally unique identifier for the event that was recorded in this stream record.
- Returns:
- A globally unique identifier for the event that was recorded in this stream record.
-
withEventID
A globally unique identifier for the event that was recorded in this stream record.
- Parameters:
eventID
- A globally unique identifier for the event that was recorded in this stream record.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setEventName
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
- Parameters:
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
-
- See Also:
-
-
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
- Returns:
- 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
-
- See Also:
-
-
withEventName
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
- Parameters:
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
-
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
-
setEventName
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
- Parameters:
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
-
- See Also:
-
-
withEventName
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
- Parameters:
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
-
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
-
setEventVersion
The version number of the stream record format. Currently, this is 1.0.
- Parameters:
eventVersion
- The version number of the stream record format. Currently, this is 1.0.
-
getEventVersion
The version number of the stream record format. Currently, this is 1.0.
- Returns:
- The version number of the stream record format. Currently, this is 1.0.
-
withEventVersion
The version number of the stream record format. Currently, this is 1.0.
- Parameters:
eventVersion
- The version number of the stream record format. Currently, this is 1.0.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setEventSource
The AWS service from which the stream record originated. For DynamoDB Streams, this is aws:dynamodb.
- Parameters:
eventSource
- The AWS service from which the stream record originated. For DynamoDB Streams, this is aws:dynamodb.
-
getEventSource
The AWS service from which the stream record originated. For DynamoDB Streams, this is aws:dynamodb.
- Returns:
- The AWS service from which the stream record originated. For DynamoDB Streams, this is aws:dynamodb.
-
withEventSource
The AWS service from which the stream record originated. For DynamoDB Streams, this is aws:dynamodb.
- Parameters:
eventSource
- The AWS service from which the stream record originated. For DynamoDB Streams, this is aws:dynamodb.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setAwsRegion
The region in which the GetRecords request was received.
- Parameters:
awsRegion
- The region in which the GetRecords request was received.
-
getAwsRegion
The region in which the GetRecords request was received.
- Returns:
- The region in which the GetRecords request was received.
-
withAwsRegion
The region in which the GetRecords request was received.
- Parameters:
awsRegion
- The region in which the GetRecords request was received.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setDynamodb
The main body of the stream record, containing all of the DynamoDB-specific fields.
- Parameters:
dynamodb
- The main body of the stream record, containing all of the DynamoDB-specific fields.
-
getDynamodb
The main body of the stream record, containing all of the DynamoDB-specific fields.
- Returns:
- The main body of the stream record, containing all of the DynamoDB-specific fields.
-
withDynamodb
The main body of the stream record, containing all of the DynamoDB-specific fields.
- Parameters:
dynamodb
- The main body of the stream record, containing all of the DynamoDB-specific fields.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
toString
Returns a string representation of this object; useful for testing and debugging. -
equals
-
hashCode
public int hashCode() -
clone
-