{-# 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.ScoreConfidence
-- 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.ScoreConfidence
  ( ScoreConfidence
      ( ..,
        ScoreConfidence_HIGH,
        ScoreConfidence_LOW,
        ScoreConfidence_MEDIUM,
        ScoreConfidence_NOT_AVAILABLE,
        ScoreConfidence_VERY_HIGH
      ),
  )
where

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

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

pattern ScoreConfidence_HIGH :: ScoreConfidence
pattern $bScoreConfidence_HIGH :: ScoreConfidence
$mScoreConfidence_HIGH :: forall {r}. ScoreConfidence -> ((# #) -> r) -> ((# #) -> r) -> r
ScoreConfidence_HIGH = ScoreConfidence' "HIGH"

pattern ScoreConfidence_LOW :: ScoreConfidence
pattern $bScoreConfidence_LOW :: ScoreConfidence
$mScoreConfidence_LOW :: forall {r}. ScoreConfidence -> ((# #) -> r) -> ((# #) -> r) -> r
ScoreConfidence_LOW = ScoreConfidence' "LOW"

pattern ScoreConfidence_MEDIUM :: ScoreConfidence
pattern $bScoreConfidence_MEDIUM :: ScoreConfidence
$mScoreConfidence_MEDIUM :: forall {r}. ScoreConfidence -> ((# #) -> r) -> ((# #) -> r) -> r
ScoreConfidence_MEDIUM = ScoreConfidence' "MEDIUM"

pattern ScoreConfidence_NOT_AVAILABLE :: ScoreConfidence
pattern $bScoreConfidence_NOT_AVAILABLE :: ScoreConfidence
$mScoreConfidence_NOT_AVAILABLE :: forall {r}. ScoreConfidence -> ((# #) -> r) -> ((# #) -> r) -> r
ScoreConfidence_NOT_AVAILABLE = ScoreConfidence' "NOT_AVAILABLE"

pattern ScoreConfidence_VERY_HIGH :: ScoreConfidence
pattern $bScoreConfidence_VERY_HIGH :: ScoreConfidence
$mScoreConfidence_VERY_HIGH :: forall {r}. ScoreConfidence -> ((# #) -> r) -> ((# #) -> r) -> r
ScoreConfidence_VERY_HIGH = ScoreConfidence' "VERY_HIGH"

{-# COMPLETE
  ScoreConfidence_HIGH,
  ScoreConfidence_LOW,
  ScoreConfidence_MEDIUM,
  ScoreConfidence_NOT_AVAILABLE,
  ScoreConfidence_VERY_HIGH,
  ScoreConfidence'
  #-}