@Override
  public boolean equals(Object o) {
    if (this == o) {
      return true;
    }
    if (o == null || getClass() != o.getClass()) {
      return false;
    }
    if (!super.equals(o)) {
      return false;
    }
    Region region = (Region) o;
    return Objects.equals(name, region.name) &&
        type == region.type &&
        Objects.equals(keyConstraint, region.keyConstraint) &&
        Objects.equals(valueConstraint, region.valueConstraint) &&
        Objects.equals(diskStoreName, region.diskStoreName) &&
        Objects.equals(redundantCopies, region.redundantCopies) &&
        Objects.equals(expirations, region.expirations) &&
        Objects.equals(eviction, region.eviction);
  }
this sets the memory size in megabytes and the eviction type to MEMORY_SIZE

@param memorySizeMb the memory size in megabytes
@throws IllegalArgumentException if type is already set to other values. This is to prevent
        users from trying to send conflicting json attributes
        such as {type:HEAP_PERCENTAGE,memorySizeMb:100}
geode-management/src/main/java/org/apache/geode/management/configuration/Region.java