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