custom taxonomy – filter "get_terms" query

I am currently receiving data from a custom taxonomy using this:

$ terms = get_terms (array (
& # 39; taxonomy & # 39; => & # 39; my_custom_taxonomy_name & # 39;
& # 39; hide_empty & # 39; => true
));

Now, it returns a lot of things in every WP_Term object; term_id, first name, slug, term_group, term_taxonomy_id, taxonomy, the description, relative, count and filtered.

I only need 2 of them: first name and slug. How can I filter this query so that it does not return any unused data?