Class S3EventNotification


  • public class S3EventNotification
    extends Object
    A helper class that represents a strongly typed S3 EventNotification item sent to SQS, SNS, or Lambda.
    • Method Detail

      • parseJson

        public static S3EventNotification parseJson​(String json)

        Parse the JSON string into a S3EventNotification object.

        The function will try its best to parse input JSON string as best as it can. It will not fail even if the JSON string contains unknown properties. The function will throw AmazonClientException if the input JSON string is not valid JSON.

        Parameters:
        json - JSON string to parse. Typically this is the body of your SQS notification message body.
        Returns:
        The resulting S3EventNotification object.
      • toJson

        public String toJson()
        Returns:
        a JSON representation of this object