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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanstatic S3EventNotificationfromJson(byte[] json) Converts a json representation of the notification message to an instance of S3EventNotification.static S3EventNotificationfromJson(InputStream json) Converts a json representation of the notification message to an instance of S3EventNotification.static S3EventNotificationConverts a json representation of the notification message to an instance of S3EventNotification.inthashCode()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,IntelligentTieringEventDataandLifecycleEventDatakeys 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,IntelligentTieringEventDataandLifecycleEventDatakeys 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
-
toString
-