public class S3EventSerializer<T> extends Object implements OrgJsonSerializer<T>
| Constructor and Description |
|---|
S3EventSerializer() |
| Modifier and Type | Method and Description |
|---|---|
T |
fromJson(InputStream input)
deserialize an instance of an s3 event from an input stream
|
T |
fromJson(String input)
deserialize an instance of an s3 event from a string
|
void |
toJson(T value,
OutputStream output)
serialize an S3 event object to the output stream
|
S3EventSerializer<T> |
withClass(Class<T> eventClass)
Construct s3Event Serialize from specific s3 event class from user
|
S3EventSerializer<T> |
withClassLoader(ClassLoader classLoader)
Sets the ClassLoader that will be used to load S3 event classes
|
public S3EventSerializer<T> withClass(Class<T> eventClass)
withClass in interface OrgJsonSerializer<T>eventClass - s3 event classcom.amazonaws.services.lambda.runtime.events.S3Event;,
com.amazonaws.services.lambda.runtime.events.models.s3.S3EventNotification;,
com.amazonaws.services.s3.event.S3EventNotification;public S3EventSerializer<T> withClassLoader(ClassLoader classLoader)
withClassLoader in interface OrgJsonSerializer<T>classLoader - - ClassLoader that S3 event classes will be loaded frompublic T fromJson(InputStream input)
fromJson in interface OrgJsonSerializer<T>fromJson in interface PojoSerializer<T>input - InputStream reading frompublic T fromJson(String input)
fromJson in interface OrgJsonSerializer<T>fromJson in interface PojoSerializer<T>input - String with JSONpublic void toJson(T value, OutputStream output)
toJson in interface OrgJsonSerializer<T>toJson in interface PojoSerializer<T>value - S3 event objectoutput - OutputStream serializing toCopyright © 2020. All rights reserved.