Package com.amazonaws.services.s3.event
Class S3EventNotification
- java.lang.Object
-
- com.amazonaws.services.s3.event.S3EventNotification
-
public class S3EventNotification extends Object
A helper class that represents a strongly typed S3 EventNotification item sent to SQS, SNS, or Lambda.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
S3EventNotification.RequestParametersEntity
static class
S3EventNotification.ResponseElementsEntity
static class
S3EventNotification.S3BucketEntity
static class
S3EventNotification.S3Entity
static class
S3EventNotification.S3EventNotificationRecord
static class
S3EventNotification.S3ObjectEntity
static class
S3EventNotification.UserIdentityEntity
-
Constructor Summary
Constructors Constructor Description S3EventNotification(List<S3EventNotification.S3EventNotificationRecord> records)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description List<S3EventNotification.S3EventNotificationRecord>
getRecords()
static S3EventNotification
parseJson(String json)
Parse the JSON string into a S3EventNotification object.String
toJson()
-
-
-
Constructor Detail
-
S3EventNotification
public S3EventNotification(List<S3EventNotification.S3EventNotificationRecord> records)
-
-
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.
-
getRecords
public List<S3EventNotification.S3EventNotificationRecord> getRecords()
- Returns:
- the records in this notification
-
toJson
public String toJson()
- Returns:
- a JSON representation of this object
-
-