def closed_captions=(closed_captions)
      validator = EnumAttributeValidator.new('String', ["add", "burn"])
      unless validator.valid?(closed_captions)
        fail ArgumentError, "invalid value for 'closed_captions', must be one of #{validator.allowable_values}."
      end
      @closed_captions = closed_captions
    end
def closed_captions=(closed_captions)
      validator = EnumAttributeValidator.new('String', ["add", "burn"])
      unless validator.valid?(closed_captions)
        fail ArgumentError, "invalid value for 'closed_captions', must be one of #{validator.allowable_values}."
      end
      @closed_captions = closed_captions
    end
Custom attribute writer method checking allowed values (enum).
 @param [Object] closed_captions Object to be assigned