Set action identifier from class instance
Fix indentation for build method
Do not initialize datetimes if values are null