Any officer or employee, or member of the board of appeals, charged with the enforcement of these technical codes, acting for the board of commissioners in the discharge of his duties, shall not thereby render himself personally liable, and is hereby relieved from all personal liability, for any damage that may occur to persons or property as a result of any act required or permitted in the discharge of his duties. Any suit brought against any officer or employee or member because of such act performed by him in the enforcement of any provision of these technical codes shall be defended by the county attorney until the final termination of the proceedings.