public void setDiskStoreName(String name) {
    if (regionAttributes.hasDiskDirs() || regionAttributes.hasDiskWriteAttributes()) {
      throw new IllegalStateException(
          String.format("Deprecated API %s cannot be used with DiskStore %s",
              "setDiskDirs or setDiskWriteAttributes", name));
    }
    regionAttributes.diskStoreName = name;
    regionAttributes.setHasDiskStoreName(true);
  }
Sets the DiskStore name attribute. This causes the region to use the {@link DiskStore}.

@param name the name of the diskstore
@since GemFire 6.5
geode-core/src/main/java/org/apache/geode/cache/AttributesFactory.java