public void setDurationInSeconds(Integer durationInSeconds) {
        this.durationInSeconds = durationInSeconds;
    }
<p>
After an initial failure to deliver to Amazon ES, the total amount of time during which Firehose retries delivery
(including the first attempt). After this time has elapsed, the failed documents are written to Amazon S3.
Default value is 300 seconds (5 minutes). A value of 0 (zero) results in no retries.
</p>

@param durationInSeconds
       After an initial failure to deliver to Amazon ES, the total amount of time during which Firehose retries
       delivery (including the first attempt). After this time has elapsed, the failed documents are written to
       Amazon S3. Default value is 300 seconds (5 minutes). A value of 0 (zero) results in no retries.
aws-java-sdk-kinesis/src/main/java/com/amazonaws/services/kinesisfirehose/model/ElasticsearchRetryOptions.java