@Deprecated
    public NotificationConfiguration withObjectPrefixes(String... objectPrefixes) {
        this.objectPrefixes.clear();
        if (objectPrefixes != null && objectPrefixes.length > 0)
            this.objectPrefixes.addAll(Arrays.asList(objectPrefixes));
        return this;
    }
@deprecated This field is not used by S3. It will be removed in the next major version of the
            SDK. See {@link #withFilter(Filter)} for the correct way to filter notifications.
aws-java-sdk-s3/src/main/java/com/amazonaws/services/s3/model/NotificationConfiguration.java