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:
  • Constructor Details

    • Record

      public Record()
  • Method Details

    • 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:
    • 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:
    • 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:
    • 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:
    • 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:
    • 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 class Object
      Returns:
      A string representation of this object.
      See Also:
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • clone

      public Record clone()
      Overrides:
      clone in class Object