Add xxx? methods if resource object has xxx_flag attributes.