Package no.unit.nva.events.models
Class ScanDatabaseRequestV2
java.lang.Object
no.unit.nva.events.models.ScanDatabaseRequestV2
- All Implemented Interfaces:
EventBody
Class that can be sent as an event to a lambda handler for scanning a page of a DynamoDB table. The
startMarker is a scan start marker as required by the DynamoDb client. The pageSize is the number of the
results the scan will return (max 1000). The topic is the event topic that the handler is listening for
events.-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescription -
Method Summary
Modifier and TypeMethodDescriptionsoftware.amazon.awssdk.services.eventbridge.model.PutEventsRequestEntrycreateNewEventEntry(String eventBusName, String detailType, String invokedFunctionArn) booleanstatic ScanDatabaseRequestV2intgetTopic()inthashCode()newScanDatabaseRequest(Map<String, software.amazon.awssdk.services.dynamodb.model.AttributeValue> newStartMarker) final voidsetPageSize(int pageSize) final voidsetStartMarker(Map<String, String> startMarker) final voidtoString()
-
Field Details
-
START_MARKER
- See Also:
-
PAGE_SIZE
- See Also:
-
DEFAULT_PAGE_SIZE
public static final int DEFAULT_PAGE_SIZE- See Also:
-
MAX_PAGE_SIZE
public static final int MAX_PAGE_SIZE- See Also:
-
DYNAMODB_EMPTY_MARKER
-
-
Constructor Details
-
ScanDatabaseRequestV2
public ScanDatabaseRequestV2() -
ScanDatabaseRequestV2
-
-
Method Details
-
fromJson
-
getStartMarker
-
setStartMarker
-
getPageSize
public int getPageSize() -
setPageSize
public final void setPageSize(int pageSize) -
newScanDatabaseRequest
public ScanDatabaseRequestV2 newScanDatabaseRequest(Map<String, software.amazon.awssdk.services.dynamodb.model.AttributeValue> newStartMarker) -
getTopic
-
setTopic
-
toDynamoScanMarker
-
createNewEventEntry
-
hashCode
public int hashCode() -
equals
-
toString
-