[Generator] Add Getter method of Key Class Attribute