public boolean hasFlushEnabled() {
        return flushEnabled;
    }
Allows to disable creating a primary index for this bucket (enabled by default).

@param create if false, a primary index will not be created.
@return this {@link BucketDefinition} for chaining purposes.
modules/couchbase/src/main/java/org/testcontainers/couchbase/BucketDefinition.java