package Ġorg . z al ando . z ally . rule set . z al ando . model Ċ Ċ enum Ġclass ĠApi Audience ( val Ġcode : ĠString ) Ġ{ ĊĠĠĠ ĠEXTER NAL _ PUBLIC (" external - public "), ĊĠĠĠ ĠEXTER NAL _ PART NER (" external - partner "), ĊĠĠĠ ĠCOMP ANY _ INTERNAL (" company - internal "), ĊĠĠĠ ĠBUSINESS _ UNIT _ INTERNAL (" business - unit - internal "), ĊĠĠĠ ĠCOMPONENT _ INTERNAL (" component - internal "); ĊĊĠĠĠ Ġcompanion Ġobject Ġ{ ĊĠĠĠĠĠĠĠ Ġfun Ġparse ( code : ĠString ): ĠApi Audience Ġ= ĊĠĠĠĠĠĠĠĠĠĠĠ Ġvalues (). find Ġ{ Ġit . code Ġ== Ġcode Ġ} ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġ?: Ġthrow ĠUnsupported Audience Exception ( code ) ĊĠĠĠ Ġ} Ċ } Ċ Ċ class ĠUnsupported Audience Exception ( val Ġcode : ĠString ) Ġ: ĠException (" API Ġaudience Ġ$ code Ġis Ġnot Ġsupported .") Ċ