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