public AmazonOpenSearchServerlessRetryOptions withDurationInSeconds(Integer durationInSeconds) {
        setDurationInSeconds(durationInSeconds);
        return this;
    }
<p>
After an initial failure to deliver to the Serverless offering for Amazon OpenSearch Service, 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 the Serverless offering for Amazon OpenSearch Service, 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.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-kinesis/src/main/java/com/amazonaws/services/kinesisfirehose/model/AmazonOpenSearchServerlessRetryOptions.java