Add attributes to generated class type