Generate setter and getter by attribute name.