public class S3EventNotification extends Object
Migrating to the AWS SDK for Java v2
The v2 equivalent of this class is S3EventNotification
See Migration Guide for more information.
Modifier and Type | Class and Description |
---|---|
static class |
S3EventNotification.GlacierEventDataEntity |
static class |
S3EventNotification.IntelligentTieringEventDataEntity |
static class |
S3EventNotification.LifecycleEventDataEntity |
static class |
S3EventNotification.ReplicationEventDataEntity |
static class |
S3EventNotification.RequestParametersEntity |
static class |
S3EventNotification.ResponseElementsEntity |
static class |
S3EventNotification.RestoreEventDataEntity |
static class |
S3EventNotification.S3BucketEntity |
static class |
S3EventNotification.S3Entity |
static class |
S3EventNotification.S3EventNotificationRecord |
static class |
S3EventNotification.S3ObjectEntity |
static class |
S3EventNotification.TransitionEventDataEntity |
static class |
S3EventNotification.UserIdentityEntity |
Constructor and Description |
---|
S3EventNotification(List<S3EventNotification.S3EventNotificationRecord> records) |
Modifier and Type | Method and Description |
---|---|
List<S3EventNotification.S3EventNotificationRecord> |
getRecords() |
static S3EventNotification |
parseJson(String json)
Parse the JSON string into a S3EventNotification object.
|
String |
toJson() |
public S3EventNotification(List<S3EventNotification.S3EventNotificationRecord> records)
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 SdkClientException 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 List<S3EventNotification.S3EventNotificationRecord> getRecords()
public String toJson()