public BucketDefinition withReplicas(final int numReplicas) {
        if (numReplicas < 0 || numReplicas > 3) {
            throw new IllegalArgumentException("The number of replicas must be between 0 and 3 (inclusive)");
        }
        this.numReplicas = numReplicas;
        return this;
    }
Allows to configure the number of replicas on a bucket (defaults to 0).
<p>
By default the bucket is initialized with 0 replicas since only a single container is launched. Modifying
this value can still be useful in some test scenarios (i.e. to test failures with the wrong number of replicas
and durability requirements on operations).
<p>
Couchbase buckets can have a maximum of three replicas configured.

@param numReplicas the number of replicas to configure.
@return this {@link BucketDefinition} for chaining purposes.
modules/couchbase/src/main/java/org/testcontainers/couchbase/BucketDefinition.java