def valid?
      language_validator = EnumAttributeValidator.new('String', ["afts", "lucene", "cmis"])
      return false unless language_validator.valid?(@language)
      return false if @query.nil?
      return true
    end
def valid?
      language_validator = EnumAttributeValidator.new('String', ["afts", "lucene", "cmis"])
      return false unless language_validator.valid?(@language)
      return false if @query.nil?
      return true
    end
Check to see if the all the properties in the model are valid
 @return true if the model is valid