Get and Set object properties in an elegant way.