Class Record
- java.lang.Object
-
- com.amazonaws.services.dynamodbv2.model.Record
-
- All Implemented Interfaces:
Serializable
,Cloneable
public class Record extends Object implements Serializable, Cloneable
A description of a unique event within a stream.
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description Record()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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.
-
-
-
Method Detail
-
setEventID
public void setEventID(String eventID)
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
public String 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
public Record withEventID(String eventID)
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
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
- 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:
OperationType
-
-
getEventName
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
- 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:
OperationType
-
-
withEventName
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
- 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:
OperationType
-
-
setEventName
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
- 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:
OperationType
-
-
withEventName
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
- 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:
OperationType
-
-
setEventVersion
public void setEventVersion(String eventVersion)
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
public String 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
public Record withEventVersion(String eventVersion)
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
public void setEventSource(String eventSource)
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
public String 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
public Record withEventSource(String eventSource)
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
public void setAwsRegion(String awsRegion)
The region in which the GetRecords request was received.
- Parameters:
awsRegion
- The region in which the GetRecords request was received.
-
getAwsRegion
public String getAwsRegion()
The region in which the GetRecords request was received.
- Returns:
- The region in which the GetRecords request was received.
-
withAwsRegion
public Record withAwsRegion(String awsRegion)
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
public void setDynamodb(StreamRecord dynamodb)
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
public StreamRecord 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
public Record withDynamodb(StreamRecord dynamodb)
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
public String toString()
Returns a string representation of this object; useful for testing and debugging.- Overrides:
toString
in classObject
- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
-