public void setScope(Scope scopeType) {
    if (scopeType == null) {
      throw new IllegalArgumentException(
          "scopeType must not be null");
    }
    regionAttributes.setScope(scopeType);
  }
Sets the scope for the next {@code RegionAttributes} created. Default scope is
DISTRIBUTED_NO_ACK. Refer gemfire documentation for more details on this.

@param scopeType the type of Scope to use for the region
@throws IllegalArgumentException if scopeType is null
geode-core/src/main/java/org/apache/geode/cache/AttributesFactory.java