public AmazonopensearchserviceDestinationConfiguration withS3BackupMode(AmazonopensearchserviceS3BackupMode s3BackupMode) {
        this.s3BackupMode = s3BackupMode.toString();
        return this;
    }
<p>
Defines how documents should be delivered to Amazon S3. When it is set to FailedDocumentsOnly, Firehose writes
any documents that could not be indexed to the configured Amazon S3 destination, with
AmazonOpenSearchService-failed/ appended to the key prefix. When set to AllDocuments, Firehose delivers all
incoming records to Amazon S3, and also writes failed documents with AmazonOpenSearchService-failed/ appended to
the prefix.
</p>

@param s3BackupMode
       Defines how documents should be delivered to Amazon S3. When it is set to FailedDocumentsOnly, Firehose
       writes any documents that could not be indexed to the configured Amazon S3 destination, with
       AmazonOpenSearchService-failed/ appended to the key prefix. When set to AllDocuments, Firehose delivers
       all incoming records to Amazon S3, and also writes failed documents with AmazonOpenSearchService-failed/
       appended to the prefix.
@return Returns a reference to this object so that method calls can be chained together.
@see AmazonopensearchserviceS3BackupMode
aws-java-sdk-kinesis/src/main/java/com/amazonaws/services/kinesisfirehose/model/AmazonopensearchserviceDestinationConfiguration.java