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