It's really unfortunate we have non-professionals mandating treatment based on criteria that don't make sense. For example, the Dept. of Public Safety in our state requires a certain number of hours of treatment for a DWI offender to get their license reinstated, whether treatment is medically necessary or not.
In your case, based on your own statements you experienced a physical or psychological dependency on a particular drug for a period of time. Your use of this drug compromised your employment (and perhaps other consequences.) By most definitions, you are an addict. You may not see yourself as an addict because you are assuming all addicts have more difficulty than you did abstaining. Cravings can be an indication of the SEVERITY of an addiction, but not all addicts experience cravings that are more than a mild annoyance.
In any case, you would probably be successful at recovering from your addiction without structured treatment. There is a term for that: natural recovery. That, unfortunately for you, does not seem to be an option. Treatment may be a pain in the butt for you, but the treatment itself will not do you any harm. Being labeled an addict is another story!
If you have to do it, make the most of it. Learn everything you can from treatment. I can almost guarantee that you will find yourself in a position to help someone else someday, and what you learn in treatment will prepare you to be a knowledgeable resource for someone who may need treatment a lot more than you do.