B is the metaphor, which contains the direct statement of "being" an inanimate object. C and D are similes, with the key words "as" and "like" indicating similarity. A is more of personification, where the breeze acts like a person in making the branches move.