public class S3EventNotification
extends java.lang.Object
Modifier and Type | Class and 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 |
Modifier and Type | Field and Description |
---|---|
private java.util.List<S3EventNotification.S3EventNotificationRecord> |
records |
Constructor and Description |
---|
S3EventNotification(java.util.List<S3EventNotification.S3EventNotificationRecord> records) |
Modifier and Type | Method and Description |
---|---|
java.util.List<S3EventNotification.S3EventNotificationRecord> |
getRecords() |
static S3EventNotification |
parseJson(java.lang.String json)
Parse the JSON string into a S3EventNotification object.
|
java.lang.String |
toJson() |
private final java.util.List<S3EventNotification.S3EventNotificationRecord> records
public S3EventNotification(java.util.List<S3EventNotification.S3EventNotificationRecord> records)
public static S3EventNotification parseJson(java.lang.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.
json
- JSON string to parse. Typically this is the body of your SQS
notification message body.public java.util.List<S3EventNotification.S3EventNotificationRecord> getRecords()
public java.lang.String toJson()