Perfect (past, present and future) is used when the state caused by an event prevails until the time of a second event. In the case of the present perfect the second event is always "now".
I had been vaccinated before I visited Africa.
I have been vaccinated for my visit to Africa.
I will have been vaccinated before I visit Africa.
With future perfect the first event occurs between the present and the second event.