{-# 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.Kendra.Types.HighlightType
-- Copyright   : (c) 2013-2023 Brendan Hay
-- License     : Mozilla Public License, v. 2.0.
-- Maintainer  : Brendan Hay
-- Stability   : auto-generated
-- Portability : non-portable (GHC extensions)
module Amazonka.Kendra.Types.HighlightType
  ( HighlightType
      ( ..,
        HighlightType_STANDARD,
        HighlightType_THESAURUS_SYNONYM
      ),
  )
where

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

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

pattern HighlightType_STANDARD :: HighlightType
pattern $bHighlightType_STANDARD :: HighlightType
$mHighlightType_STANDARD :: forall {r}. HighlightType -> ((# #) -> r) -> ((# #) -> r) -> r
HighlightType_STANDARD = HighlightType' "STANDARD"

pattern HighlightType_THESAURUS_SYNONYM :: HighlightType
pattern $bHighlightType_THESAURUS_SYNONYM :: HighlightType
$mHighlightType_THESAURUS_SYNONYM :: forall {r}. HighlightType -> ((# #) -> r) -> ((# #) -> r) -> r
HighlightType_THESAURUS_SYNONYM = HighlightType' "THESAURUS_SYNONYM"

{-# COMPLETE
  HighlightType_STANDARD,
  HighlightType_THESAURUS_SYNONYM,
  HighlightType'
  #-}