{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DerivingStrategies #-}
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# LANGUAGE LambdaCase #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE PatternSynonyms #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}

-- Derived from AWS service descriptions, licensed under Apache 2.0.

-- |
-- Module      : Amazonka.CloudSearchDomains.Types.QueryParser
-- Copyright   : (c) 2013-2021 Brendan Hay
-- License     : Mozilla Public License, v. 2.0.
-- Maintainer  : Brendan Hay <brendan.g.hay+amazonka@gmail.com>
-- Stability   : auto-generated
-- Portability : non-portable (GHC extensions)
module Amazonka.CloudSearchDomains.Types.QueryParser
  ( QueryParser
      ( ..,
        QueryParser_Dismax,
        QueryParser_Lucene,
        QueryParser_Simple,
        QueryParser_Structured
      ),
  )
where

import qualified Amazonka.Core as Core
import qualified Amazonka.Prelude as Prelude

newtype QueryParser = QueryParser'
  { QueryParser -> Text
fromQueryParser ::
      Core.Text
  }
  deriving stock
    ( Int -> QueryParser -> ShowS
[QueryParser] -> ShowS
QueryParser -> String
(Int -> QueryParser -> ShowS)
-> (QueryParser -> String)
-> ([QueryParser] -> ShowS)
-> Show QueryParser
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [QueryParser] -> ShowS
$cshowList :: [QueryParser] -> ShowS
show :: QueryParser -> String
$cshow :: QueryParser -> String
showsPrec :: Int -> QueryParser -> ShowS
$cshowsPrec :: Int -> QueryParser -> ShowS
Prelude.Show,
      ReadPrec [QueryParser]
ReadPrec QueryParser
Int -> ReadS QueryParser
ReadS [QueryParser]
(Int -> ReadS QueryParser)
-> ReadS [QueryParser]
-> ReadPrec QueryParser
-> ReadPrec [QueryParser]
-> Read QueryParser
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [QueryParser]
$creadListPrec :: ReadPrec [QueryParser]
readPrec :: ReadPrec QueryParser
$creadPrec :: ReadPrec QueryParser
readList :: ReadS [QueryParser]
$creadList :: ReadS [QueryParser]
readsPrec :: Int -> ReadS QueryParser
$creadsPrec :: Int -> ReadS QueryParser
Prelude.Read,
      QueryParser -> QueryParser -> Bool
(QueryParser -> QueryParser -> Bool)
-> (QueryParser -> QueryParser -> Bool) -> Eq QueryParser
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: QueryParser -> QueryParser -> Bool
$c/= :: QueryParser -> QueryParser -> Bool
== :: QueryParser -> QueryParser -> Bool
$c== :: QueryParser -> QueryParser -> Bool
Prelude.Eq,
      Eq QueryParser
Eq QueryParser
-> (QueryParser -> QueryParser -> Ordering)
-> (QueryParser -> QueryParser -> Bool)
-> (QueryParser -> QueryParser -> Bool)
-> (QueryParser -> QueryParser -> Bool)
-> (QueryParser -> QueryParser -> Bool)
-> (QueryParser -> QueryParser -> QueryParser)
-> (QueryParser -> QueryParser -> QueryParser)
-> Ord QueryParser
QueryParser -> QueryParser -> Bool
QueryParser -> QueryParser -> Ordering
QueryParser -> QueryParser -> QueryParser
forall a.
Eq a
-> (a -> a -> Ordering)
-> (a -> a -> Bool)
-> (a -> a -> Bool)
-> (a -> a -> Bool)
-> (a -> a -> Bool)
-> (a -> a -> a)
-> (a -> a -> a)
-> Ord a
min :: QueryParser -> QueryParser -> QueryParser
$cmin :: QueryParser -> QueryParser -> QueryParser
max :: QueryParser -> QueryParser -> QueryParser
$cmax :: QueryParser -> QueryParser -> QueryParser
>= :: QueryParser -> QueryParser -> Bool
$c>= :: QueryParser -> QueryParser -> Bool
> :: QueryParser -> QueryParser -> Bool
$c> :: QueryParser -> QueryParser -> Bool
<= :: QueryParser -> QueryParser -> Bool
$c<= :: QueryParser -> QueryParser -> Bool
< :: QueryParser -> QueryParser -> Bool
$c< :: QueryParser -> QueryParser -> Bool
compare :: QueryParser -> QueryParser -> Ordering
$ccompare :: QueryParser -> QueryParser -> Ordering
$cp1Ord :: Eq QueryParser
Prelude.Ord,
      (forall x. QueryParser -> Rep QueryParser x)
-> (forall x. Rep QueryParser x -> QueryParser)
-> Generic QueryParser
forall x. Rep QueryParser x -> QueryParser
forall x. QueryParser -> Rep QueryParser x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep QueryParser x -> QueryParser
$cfrom :: forall x. QueryParser -> Rep QueryParser x
Prelude.Generic
    )
  deriving newtype
    ( Int -> QueryParser -> Int
QueryParser -> Int
(Int -> QueryParser -> Int)
-> (QueryParser -> Int) -> Hashable QueryParser
forall a. (Int -> a -> Int) -> (a -> Int) -> Hashable a
hash :: QueryParser -> Int
$chash :: QueryParser -> Int
hashWithSalt :: Int -> QueryParser -> Int
$chashWithSalt :: Int -> QueryParser -> Int
Prelude.Hashable,
      QueryParser -> ()
(QueryParser -> ()) -> NFData QueryParser
forall a. (a -> ()) -> NFData a
rnf :: QueryParser -> ()
$crnf :: QueryParser -> ()
Prelude.NFData,
      Text -> Either String QueryParser
(Text -> Either String QueryParser) -> FromText QueryParser
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String QueryParser
$cfromText :: Text -> Either String QueryParser
Core.FromText,
      QueryParser -> Text
(QueryParser -> Text) -> ToText QueryParser
forall a. (a -> Text) -> ToText a
toText :: QueryParser -> Text
$ctoText :: QueryParser -> Text
Core.ToText,
      QueryParser -> ByteString
(QueryParser -> ByteString) -> ToByteString QueryParser
forall a. (a -> ByteString) -> ToByteString a
toBS :: QueryParser -> ByteString
$ctoBS :: QueryParser -> ByteString
Core.ToByteString,
      QueryParser -> ByteStringBuilder
(QueryParser -> ByteStringBuilder) -> ToLog QueryParser
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: QueryParser -> ByteStringBuilder
$cbuild :: QueryParser -> ByteStringBuilder
Core.ToLog,
      HeaderName -> QueryParser -> [Header]
(HeaderName -> QueryParser -> [Header]) -> ToHeader QueryParser
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> QueryParser -> [Header]
$ctoHeader :: HeaderName -> QueryParser -> [Header]
Core.ToHeader,
      QueryParser -> QueryString
(QueryParser -> QueryString) -> ToQuery QueryParser
forall a. (a -> QueryString) -> ToQuery a
toQuery :: QueryParser -> QueryString
$ctoQuery :: QueryParser -> QueryString
Core.ToQuery,
      Value -> Parser [QueryParser]
Value -> Parser QueryParser
(Value -> Parser QueryParser)
-> (Value -> Parser [QueryParser]) -> FromJSON QueryParser
forall a.
(Value -> Parser a) -> (Value -> Parser [a]) -> FromJSON a
parseJSONList :: Value -> Parser [QueryParser]
$cparseJSONList :: Value -> Parser [QueryParser]
parseJSON :: Value -> Parser QueryParser
$cparseJSON :: Value -> Parser QueryParser
Core.FromJSON,
      FromJSONKeyFunction [QueryParser]
FromJSONKeyFunction QueryParser
FromJSONKeyFunction QueryParser
-> FromJSONKeyFunction [QueryParser] -> FromJSONKey QueryParser
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [QueryParser]
$cfromJSONKeyList :: FromJSONKeyFunction [QueryParser]
fromJSONKey :: FromJSONKeyFunction QueryParser
$cfromJSONKey :: FromJSONKeyFunction QueryParser
Core.FromJSONKey,
      [QueryParser] -> Encoding
[QueryParser] -> Value
QueryParser -> Encoding
QueryParser -> Value
(QueryParser -> Value)
-> (QueryParser -> Encoding)
-> ([QueryParser] -> Value)
-> ([QueryParser] -> Encoding)
-> ToJSON QueryParser
forall a.
(a -> Value)
-> (a -> Encoding)
-> ([a] -> Value)
-> ([a] -> Encoding)
-> ToJSON a
toEncodingList :: [QueryParser] -> Encoding
$ctoEncodingList :: [QueryParser] -> Encoding
toJSONList :: [QueryParser] -> Value
$ctoJSONList :: [QueryParser] -> Value
toEncoding :: QueryParser -> Encoding
$ctoEncoding :: QueryParser -> Encoding
toJSON :: QueryParser -> Value
$ctoJSON :: QueryParser -> Value
Core.ToJSON,
      ToJSONKeyFunction [QueryParser]
ToJSONKeyFunction QueryParser
ToJSONKeyFunction QueryParser
-> ToJSONKeyFunction [QueryParser] -> ToJSONKey QueryParser
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [QueryParser]
$ctoJSONKeyList :: ToJSONKeyFunction [QueryParser]
toJSONKey :: ToJSONKeyFunction QueryParser
$ctoJSONKey :: ToJSONKeyFunction QueryParser
Core.ToJSONKey,
      [Node] -> Either String QueryParser
([Node] -> Either String QueryParser) -> FromXML QueryParser
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String QueryParser
$cparseXML :: [Node] -> Either String QueryParser
Core.FromXML,
      QueryParser -> XML
(QueryParser -> XML) -> ToXML QueryParser
forall a. (a -> XML) -> ToXML a
toXML :: QueryParser -> XML
$ctoXML :: QueryParser -> XML
Core.ToXML
    )

pattern QueryParser_Dismax :: QueryParser
pattern $bQueryParser_Dismax :: QueryParser
$mQueryParser_Dismax :: forall r. QueryParser -> (Void# -> r) -> (Void# -> r) -> r
QueryParser_Dismax = QueryParser' "dismax"

pattern QueryParser_Lucene :: QueryParser
pattern $bQueryParser_Lucene :: QueryParser
$mQueryParser_Lucene :: forall r. QueryParser -> (Void# -> r) -> (Void# -> r) -> r
QueryParser_Lucene = QueryParser' "lucene"

pattern QueryParser_Simple :: QueryParser
pattern $bQueryParser_Simple :: QueryParser
$mQueryParser_Simple :: forall r. QueryParser -> (Void# -> r) -> (Void# -> r) -> r
QueryParser_Simple = QueryParser' "simple"

pattern QueryParser_Structured :: QueryParser
pattern $bQueryParser_Structured :: QueryParser
$mQueryParser_Structured :: forall r. QueryParser -> (Void# -> r) -> (Void# -> r) -> r
QueryParser_Structured = QueryParser' "structured"

{-# COMPLETE
  QueryParser_Dismax,
  QueryParser_Lucene,
  QueryParser_Simple,
  QueryParser_Structured,
  QueryParser'
  #-}