Class S3EventNotification


  • public class S3EventNotification
    extends Object
    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.
    • Method Detail

      • fromJson

        public static S3EventNotification fromJson​(String json)
        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

        public static S3EventNotification fromJson​(byte[] json)
        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

        public S3EventNotification fromJson​(InputStream json)
        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
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object