public RegionFactory<K, V> setDataPolicy(DataPolicy dataPolicy) {
    attrsFactory.setDataPolicy(dataPolicy);
    return this;
  }
Sets the data policy for the next {@code RegionAttributes} created.

@param dataPolicy The type of mirroring to use for the region
@return a reference to this RegionFactory object
@throws IllegalArgumentException if dataPolicy is null
@see AttributesFactory#setDataPolicy
geode-core/src/main/java/org/apache/geode/cache/RegionFactory.java