{-# 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.CloudSearch.Types.SuggesterFuzzyMatching
-- 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.CloudSearch.Types.SuggesterFuzzyMatching
  ( SuggesterFuzzyMatching
      ( ..,
        SuggesterFuzzyMatching_High,
        SuggesterFuzzyMatching_Low,
        SuggesterFuzzyMatching_None
      ),
  )
where

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

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

pattern SuggesterFuzzyMatching_High :: SuggesterFuzzyMatching
pattern $bSuggesterFuzzyMatching_High :: SuggesterFuzzyMatching
$mSuggesterFuzzyMatching_High :: forall r.
SuggesterFuzzyMatching -> (Void# -> r) -> (Void# -> r) -> r
SuggesterFuzzyMatching_High = SuggesterFuzzyMatching' "high"

pattern SuggesterFuzzyMatching_Low :: SuggesterFuzzyMatching
pattern $bSuggesterFuzzyMatching_Low :: SuggesterFuzzyMatching
$mSuggesterFuzzyMatching_Low :: forall r.
SuggesterFuzzyMatching -> (Void# -> r) -> (Void# -> r) -> r
SuggesterFuzzyMatching_Low = SuggesterFuzzyMatching' "low"

pattern SuggesterFuzzyMatching_None :: SuggesterFuzzyMatching
pattern $bSuggesterFuzzyMatching_None :: SuggesterFuzzyMatching
$mSuggesterFuzzyMatching_None :: forall r.
SuggesterFuzzyMatching -> (Void# -> r) -> (Void# -> r) -> r
SuggesterFuzzyMatching_None = SuggesterFuzzyMatching' "none"

{-# COMPLETE
  SuggesterFuzzyMatching_High,
  SuggesterFuzzyMatching_Low,
  SuggesterFuzzyMatching_None,
  SuggesterFuzzyMatching'
  #-}