Interface S3EventNotificationReader
- All Known Implementing Classes:
DefaultS3EventNotificationReader
public interface S3EventNotificationReader
Read Amazon S3 Event Notification in json format and marshal them into an instance of
S3EventNotification
.-
Method Summary
Modifier and TypeMethodDescriptionstatic S3EventNotificationReader
create()
Creates a S3EventNotificationReaderread
(byte[] event) Read a json formatted Amazon S3 Event Notification from a UTF-8 encoded byte array.read
(InputStream event) Read a json formatted Amazon S3 Event Notification from a UTF-8 InputStream.Read a json formatted Amazon S3 Event Notification from a UTF-8 string.
-
Method Details
-
create
Creates a S3EventNotificationReader- Returns:
-
read
Read a json formatted Amazon S3 Event Notification from a UTF-8 string. Will ignores all additional fields and missing fields will be set to null.- Parameters:
event
- UTF-8 json of the notification.- Returns:
- S3EventNotification
- Throws:
software.amazon.awssdk.thirdparty.jackson.core.JsonParseException
- if json if malformed
-
read
Read a json formatted Amazon S3 Event Notification from a UTF-8 InputStream. Will ignores all additional fields and missing fields will be set to null.- Parameters:
event
- UTF-8 json of the notification.- Returns:
- S3EventNotification
- Throws:
software.amazon.awssdk.thirdparty.jackson.core.JsonParseException
- if json if malformed
-
read
Read a json formatted Amazon S3 Event Notification from a UTF-8 encoded byte array. Will ignores all additional fields and missing fields will be set to null.- Parameters:
event
- UTF-8 json of the notification.- Returns:
- S3EventNotification
- Throws:
software.amazon.awssdk.thirdparty.jackson.core.JsonParseException
- if json if malformed
-