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 classS3EventNotification.RequestParametersEntitystatic classS3EventNotification.ResponseElementsEntitystatic classS3EventNotification.S3BucketEntitystatic classS3EventNotification.S3Entitystatic classS3EventNotification.S3EventNotificationRecordstatic classS3EventNotification.S3ObjectEntitystatic classS3EventNotification.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 S3EventNotificationparseJson(String json)Parse the JSON string into a S3EventNotification object.StringtoJson()
-
-
-
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
-
-