I must have caught a cold.

Literal

Cold [object-を] caught [certainty-に違いない].

~に違いない expresses strong certainty based on evidence: 'there's no doubt I caught a cold.' Stronger than ~らしい or ~ようだ.