Data::Object::RoleHas provides options for defining class attributes.