{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DerivingStrategies #-}
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# LANGUAGE LambdaCase #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE PatternSynonyms #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
module Amazonka.Wisdom.Types.RelevanceLevel
( RelevanceLevel
( ..,
RelevanceLevel_HIGH,
RelevanceLevel_LOW,
RelevanceLevel_MEDIUM
),
)
where
import qualified Amazonka.Core as Core
import qualified Amazonka.Prelude as Prelude
newtype RelevanceLevel = RelevanceLevel'
{ RelevanceLevel -> Text
fromRelevanceLevel ::
Core.Text
}
deriving stock
( Int -> RelevanceLevel -> ShowS
[RelevanceLevel] -> ShowS
RelevanceLevel -> String
(Int -> RelevanceLevel -> ShowS)
-> (RelevanceLevel -> String)
-> ([RelevanceLevel] -> ShowS)
-> Show RelevanceLevel
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [RelevanceLevel] -> ShowS
$cshowList :: [RelevanceLevel] -> ShowS
show :: RelevanceLevel -> String
$cshow :: RelevanceLevel -> String
showsPrec :: Int -> RelevanceLevel -> ShowS
$cshowsPrec :: Int -> RelevanceLevel -> ShowS
Prelude.Show,
ReadPrec [RelevanceLevel]
ReadPrec RelevanceLevel
Int -> ReadS RelevanceLevel
ReadS [RelevanceLevel]
(Int -> ReadS RelevanceLevel)
-> ReadS [RelevanceLevel]
-> ReadPrec RelevanceLevel
-> ReadPrec [RelevanceLevel]
-> Read RelevanceLevel
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [RelevanceLevel]
$creadListPrec :: ReadPrec [RelevanceLevel]
readPrec :: ReadPrec RelevanceLevel
$creadPrec :: ReadPrec RelevanceLevel
readList :: ReadS [RelevanceLevel]
$creadList :: ReadS [RelevanceLevel]
readsPrec :: Int -> ReadS RelevanceLevel
$creadsPrec :: Int -> ReadS RelevanceLevel
Prelude.Read,
RelevanceLevel -> RelevanceLevel -> Bool
(RelevanceLevel -> RelevanceLevel -> Bool)
-> (RelevanceLevel -> RelevanceLevel -> Bool) -> Eq RelevanceLevel
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: RelevanceLevel -> RelevanceLevel -> Bool
$c/= :: RelevanceLevel -> RelevanceLevel -> Bool
== :: RelevanceLevel -> RelevanceLevel -> Bool
$c== :: RelevanceLevel -> RelevanceLevel -> Bool
Prelude.Eq,
Eq RelevanceLevel
Eq RelevanceLevel
-> (RelevanceLevel -> RelevanceLevel -> Ordering)
-> (RelevanceLevel -> RelevanceLevel -> Bool)
-> (RelevanceLevel -> RelevanceLevel -> Bool)
-> (RelevanceLevel -> RelevanceLevel -> Bool)
-> (RelevanceLevel -> RelevanceLevel -> Bool)
-> (RelevanceLevel -> RelevanceLevel -> RelevanceLevel)
-> (RelevanceLevel -> RelevanceLevel -> RelevanceLevel)
-> Ord RelevanceLevel
RelevanceLevel -> RelevanceLevel -> Bool
RelevanceLevel -> RelevanceLevel -> Ordering
RelevanceLevel -> RelevanceLevel -> RelevanceLevel
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 :: RelevanceLevel -> RelevanceLevel -> RelevanceLevel
$cmin :: RelevanceLevel -> RelevanceLevel -> RelevanceLevel
max :: RelevanceLevel -> RelevanceLevel -> RelevanceLevel
$cmax :: RelevanceLevel -> RelevanceLevel -> RelevanceLevel
>= :: RelevanceLevel -> RelevanceLevel -> Bool
$c>= :: RelevanceLevel -> RelevanceLevel -> Bool
> :: RelevanceLevel -> RelevanceLevel -> Bool
$c> :: RelevanceLevel -> RelevanceLevel -> Bool
<= :: RelevanceLevel -> RelevanceLevel -> Bool
$c<= :: RelevanceLevel -> RelevanceLevel -> Bool
< :: RelevanceLevel -> RelevanceLevel -> Bool
$c< :: RelevanceLevel -> RelevanceLevel -> Bool
compare :: RelevanceLevel -> RelevanceLevel -> Ordering
$ccompare :: RelevanceLevel -> RelevanceLevel -> Ordering
$cp1Ord :: Eq RelevanceLevel
Prelude.Ord,
(forall x. RelevanceLevel -> Rep RelevanceLevel x)
-> (forall x. Rep RelevanceLevel x -> RelevanceLevel)
-> Generic RelevanceLevel
forall x. Rep RelevanceLevel x -> RelevanceLevel
forall x. RelevanceLevel -> Rep RelevanceLevel x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep RelevanceLevel x -> RelevanceLevel
$cfrom :: forall x. RelevanceLevel -> Rep RelevanceLevel x
Prelude.Generic
)
deriving newtype
( Int -> RelevanceLevel -> Int
RelevanceLevel -> Int
(Int -> RelevanceLevel -> Int)
-> (RelevanceLevel -> Int) -> Hashable RelevanceLevel
forall a. (Int -> a -> Int) -> (a -> Int) -> Hashable a
hash :: RelevanceLevel -> Int
$chash :: RelevanceLevel -> Int
hashWithSalt :: Int -> RelevanceLevel -> Int
$chashWithSalt :: Int -> RelevanceLevel -> Int
Prelude.Hashable,
RelevanceLevel -> ()
(RelevanceLevel -> ()) -> NFData RelevanceLevel
forall a. (a -> ()) -> NFData a
rnf :: RelevanceLevel -> ()
$crnf :: RelevanceLevel -> ()
Prelude.NFData,
Text -> Either String RelevanceLevel
(Text -> Either String RelevanceLevel) -> FromText RelevanceLevel
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String RelevanceLevel
$cfromText :: Text -> Either String RelevanceLevel
Core.FromText,
RelevanceLevel -> Text
(RelevanceLevel -> Text) -> ToText RelevanceLevel
forall a. (a -> Text) -> ToText a
toText :: RelevanceLevel -> Text
$ctoText :: RelevanceLevel -> Text
Core.ToText,
RelevanceLevel -> ByteString
(RelevanceLevel -> ByteString) -> ToByteString RelevanceLevel
forall a. (a -> ByteString) -> ToByteString a
toBS :: RelevanceLevel -> ByteString
$ctoBS :: RelevanceLevel -> ByteString
Core.ToByteString,
RelevanceLevel -> ByteStringBuilder
(RelevanceLevel -> ByteStringBuilder) -> ToLog RelevanceLevel
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: RelevanceLevel -> ByteStringBuilder
$cbuild :: RelevanceLevel -> ByteStringBuilder
Core.ToLog,
HeaderName -> RelevanceLevel -> [Header]
(HeaderName -> RelevanceLevel -> [Header])
-> ToHeader RelevanceLevel
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> RelevanceLevel -> [Header]
$ctoHeader :: HeaderName -> RelevanceLevel -> [Header]
Core.ToHeader,
RelevanceLevel -> QueryString
(RelevanceLevel -> QueryString) -> ToQuery RelevanceLevel
forall a. (a -> QueryString) -> ToQuery a
toQuery :: RelevanceLevel -> QueryString
$ctoQuery :: RelevanceLevel -> QueryString
Core.ToQuery,
Value -> Parser [RelevanceLevel]
Value -> Parser RelevanceLevel
(Value -> Parser RelevanceLevel)
-> (Value -> Parser [RelevanceLevel]) -> FromJSON RelevanceLevel
forall a.
(Value -> Parser a) -> (Value -> Parser [a]) -> FromJSON a
parseJSONList :: Value -> Parser [RelevanceLevel]
$cparseJSONList :: Value -> Parser [RelevanceLevel]
parseJSON :: Value -> Parser RelevanceLevel
$cparseJSON :: Value -> Parser RelevanceLevel
Core.FromJSON,
FromJSONKeyFunction [RelevanceLevel]
FromJSONKeyFunction RelevanceLevel
FromJSONKeyFunction RelevanceLevel
-> FromJSONKeyFunction [RelevanceLevel]
-> FromJSONKey RelevanceLevel
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [RelevanceLevel]
$cfromJSONKeyList :: FromJSONKeyFunction [RelevanceLevel]
fromJSONKey :: FromJSONKeyFunction RelevanceLevel
$cfromJSONKey :: FromJSONKeyFunction RelevanceLevel
Core.FromJSONKey,
[RelevanceLevel] -> Encoding
[RelevanceLevel] -> Value
RelevanceLevel -> Encoding
RelevanceLevel -> Value
(RelevanceLevel -> Value)
-> (RelevanceLevel -> Encoding)
-> ([RelevanceLevel] -> Value)
-> ([RelevanceLevel] -> Encoding)
-> ToJSON RelevanceLevel
forall a.
(a -> Value)
-> (a -> Encoding)
-> ([a] -> Value)
-> ([a] -> Encoding)
-> ToJSON a
toEncodingList :: [RelevanceLevel] -> Encoding
$ctoEncodingList :: [RelevanceLevel] -> Encoding
toJSONList :: [RelevanceLevel] -> Value
$ctoJSONList :: [RelevanceLevel] -> Value
toEncoding :: RelevanceLevel -> Encoding
$ctoEncoding :: RelevanceLevel -> Encoding
toJSON :: RelevanceLevel -> Value
$ctoJSON :: RelevanceLevel -> Value
Core.ToJSON,
ToJSONKeyFunction [RelevanceLevel]
ToJSONKeyFunction RelevanceLevel
ToJSONKeyFunction RelevanceLevel
-> ToJSONKeyFunction [RelevanceLevel] -> ToJSONKey RelevanceLevel
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [RelevanceLevel]
$ctoJSONKeyList :: ToJSONKeyFunction [RelevanceLevel]
toJSONKey :: ToJSONKeyFunction RelevanceLevel
$ctoJSONKey :: ToJSONKeyFunction RelevanceLevel
Core.ToJSONKey,
[Node] -> Either String RelevanceLevel
([Node] -> Either String RelevanceLevel) -> FromXML RelevanceLevel
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String RelevanceLevel
$cparseXML :: [Node] -> Either String RelevanceLevel
Core.FromXML,
RelevanceLevel -> XML
(RelevanceLevel -> XML) -> ToXML RelevanceLevel
forall a. (a -> XML) -> ToXML a
toXML :: RelevanceLevel -> XML
$ctoXML :: RelevanceLevel -> XML
Core.ToXML
)
pattern RelevanceLevel_HIGH :: RelevanceLevel
pattern $bRelevanceLevel_HIGH :: RelevanceLevel
$mRelevanceLevel_HIGH :: forall r. RelevanceLevel -> (Void# -> r) -> (Void# -> r) -> r
RelevanceLevel_HIGH = RelevanceLevel' "HIGH"
pattern RelevanceLevel_LOW :: RelevanceLevel
pattern $bRelevanceLevel_LOW :: RelevanceLevel
$mRelevanceLevel_LOW :: forall r. RelevanceLevel -> (Void# -> r) -> (Void# -> r) -> r
RelevanceLevel_LOW = RelevanceLevel' "LOW"
pattern RelevanceLevel_MEDIUM :: RelevanceLevel
pattern $bRelevanceLevel_MEDIUM :: RelevanceLevel
$mRelevanceLevel_MEDIUM :: forall r. RelevanceLevel -> (Void# -> r) -> (Void# -> r) -> r
RelevanceLevel_MEDIUM = RelevanceLevel' "MEDIUM"
{-# COMPLETE
RelevanceLevel_HIGH,
RelevanceLevel_LOW,
RelevanceLevel_MEDIUM,
RelevanceLevel'
#-}