Class S3EventNotification
java.lang.Object
software.amazon.awssdk.eventnotifications.s3.model.S3EventNotification
A helper class that represents a strongly typed S3 Event Notification item sent to SQS, SNS, or Lambda. For more information
about Amazon S3 Event Notifications, visit the
S3 User Guide.
This class can be used to parse notification messages in the json format or to serialize a S3EventNotification instance to
json.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
static S3EventNotification
fromJson
(byte[] json) Converts a json representation of the notification message to an instance of S3EventNotification.fromJson
(InputStream json) Converts a json representation of the notification message to an instance of S3EventNotification.static S3EventNotification
Converts a json representation of the notification message to an instance of S3EventNotification.int
hashCode()
toJson()
Serialize this instance to json format.Serialize this instance to json format, with new line and correct indentation levels.toString()
-
Constructor Details
-
S3EventNotification
-
-
Method Details
-
getRecords
-
fromJson
Converts a json representation of the notification message to an instance of S3EventNotification. Any missing fields of the json will be null in the resulting object. Any extra fields will be ignored.- Parameters:
json
- the notification message in json format- Returns:
- an instance of notification message S3EventNotification
-
fromJson
Converts a json representation of the notification message to an instance of S3EventNotification. Any missing fields of the json will be null in the resulting object. Any extra fields will be ignored.- Parameters:
json
- the notification message in json format- Returns:
- an instance of notification message S3EventNotification
-
fromJson
Converts a json representation of the notification message to an instance of S3EventNotification. Any missing fields of the json will be null in the resulting object. Any extra fields will be ignored.- Parameters:
json
- the notification message in json format- Returns:
- an instance of notification message S3EventNotification
-
toJson
Serialize this instance to json format.GlacierEventData
,ReplicationEventData
,IntelligentTieringEventData
andLifecycleEventData
keys will be excluded from the json ifnull
. Any other null fields of the object will be serialized as jsonnull
.- Returns:
- the json representation of this class.
-
toJsonPretty
Serialize this instance to json format, with new line and correct indentation levels.GlacierEventData
,ReplicationEventData
,IntelligentTieringEventData
andLifecycleEventData
keys will be excluded from the json ifnull
. Any other null fields of the object will be serialized as jsonnull
.- Returns:
- the json representation of this class.
-
equals
-
hashCode
public int hashCode() -
toString
-