public InfluxDBContainer<SELF> withRetention(final String retention) {
        this.retention = Optional.of(retention);
        return this;
    }
Sets the retention in days

@param retention days bucket will retain data (0 is infinite, default is 0).
@return a reference to this container instance
modules/influxdb/src/main/java/org/testcontainers/containers/InfluxDBContainer.java