public class Record
extends java.lang.Object
implements java.io.Serializable, java.lang.Cloneable
A description of a unique event within a stream.
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
awsRegion
The region in which the GetRecords request was received.
|
private StreamRecord |
dynamodb
The main body of the stream record, containing all of the
DynamoDB-specific fields.
|
private java.lang.String |
eventID
A globally unique identifier for the event that was recorded in this
stream record.
|
private java.lang.String |
eventName
The type of data modification that was performed on the DynamoDB table:
|
private java.lang.String |
eventSource
The AWS service from which the stream record originated.
|
private java.lang.String |
eventVersion
The version number of the stream record format.
|
Constructor and Description |
---|
Record() |
Modifier and Type | Method and Description |
---|---|
Record |
clone() |
boolean |
equals(java.lang.Object obj) |
java.lang.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.
|
java.lang.String |
getEventID()
A globally unique identifier for the event that was recorded in this
stream record.
|
java.lang.String |
getEventName()
The type of data modification that was performed on the DynamoDB table:
|
java.lang.String |
getEventSource()
The AWS service from which the stream record originated.
|
java.lang.String |
getEventVersion()
The version number of the stream record format.
|
int |
hashCode() |
void |
setAwsRegion(java.lang.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(java.lang.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(java.lang.String eventName)
The type of data modification that was performed on the DynamoDB table:
|
void |
setEventSource(java.lang.String eventSource)
The AWS service from which the stream record originated.
|
void |
setEventVersion(java.lang.String eventVersion)
The version number of the stream record format.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
Record |
withAwsRegion(java.lang.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(java.lang.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(java.lang.String eventName)
The type of data modification that was performed on the DynamoDB table:
|
Record |
withEventSource(java.lang.String eventSource)
The AWS service from which the stream record originated.
|
Record |
withEventVersion(java.lang.String eventVersion)
The version number of the stream record format.
|
private java.lang.String eventID
A globally unique identifier for the event that was recorded in this stream record.
private java.lang.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
private java.lang.String eventVersion
The version number of the stream record format. Currently, this is 1.0.
private java.lang.String eventSource
The AWS service from which the stream record originated. For DynamoDB Streams, this is aws:dynamodb.
private java.lang.String awsRegion
The region in which the GetRecords request was received.
private StreamRecord dynamodb
The main body of the stream record, containing all of the DynamoDB-specific fields.
public void setEventID(java.lang.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 java.lang.String getEventID()
A globally unique identifier for the event that was recorded in this stream record.
public Record withEventID(java.lang.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(java.lang.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 java.lang.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(java.lang.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(java.lang.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 java.lang.String getEventVersion()
The version number of the stream record format. Currently, this is 1.0.
public Record withEventVersion(java.lang.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(java.lang.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 java.lang.String getEventSource()
The AWS service from which the stream record originated. For DynamoDB Streams, this is aws:dynamodb.
public Record withEventSource(java.lang.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(java.lang.String awsRegion)
The region in which the GetRecords request was received.
awsRegion
- The region in which the GetRecords request was received.public java.lang.String getAwsRegion()
The region in which the GetRecords request was received.
public Record withAwsRegion(java.lang.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 java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public Record clone()
clone
in class java.lang.Object