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