{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DerivingStrategies #-}
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# LANGUAGE LambdaCase #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE PatternSynonyms #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
module Amazonka.CodePipeline.Types.JobStatus
( JobStatus
( ..,
JobStatus_Created,
JobStatus_Dispatched,
JobStatus_Failed,
JobStatus_InProgress,
JobStatus_Queued,
JobStatus_Succeeded,
JobStatus_TimedOut
),
)
where
import qualified Amazonka.Core as Core
import qualified Amazonka.Data as Data
import qualified Amazonka.Prelude as Prelude
newtype JobStatus = JobStatus'
{ JobStatus -> Text
fromJobStatus ::
Data.Text
}
deriving stock
( Int -> JobStatus -> ShowS
[JobStatus] -> ShowS
JobStatus -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [JobStatus] -> ShowS
$cshowList :: [JobStatus] -> ShowS
show :: JobStatus -> String
$cshow :: JobStatus -> String
showsPrec :: Int -> JobStatus -> ShowS
$cshowsPrec :: Int -> JobStatus -> ShowS
Prelude.Show,
ReadPrec [JobStatus]
ReadPrec JobStatus
Int -> ReadS JobStatus
ReadS [JobStatus]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [JobStatus]
$creadListPrec :: ReadPrec [JobStatus]
readPrec :: ReadPrec JobStatus
$creadPrec :: ReadPrec JobStatus
readList :: ReadS [JobStatus]
$creadList :: ReadS [JobStatus]
readsPrec :: Int -> ReadS JobStatus
$creadsPrec :: Int -> ReadS JobStatus
Prelude.Read,
JobStatus -> JobStatus -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: JobStatus -> JobStatus -> Bool
$c/= :: JobStatus -> JobStatus -> Bool
== :: JobStatus -> JobStatus -> Bool
$c== :: JobStatus -> JobStatus -> Bool
Prelude.Eq,
Eq JobStatus
JobStatus -> JobStatus -> Bool
JobStatus -> JobStatus -> Ordering
JobStatus -> JobStatus -> JobStatus
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 :: JobStatus -> JobStatus -> JobStatus
$cmin :: JobStatus -> JobStatus -> JobStatus
max :: JobStatus -> JobStatus -> JobStatus
$cmax :: JobStatus -> JobStatus -> JobStatus
>= :: JobStatus -> JobStatus -> Bool
$c>= :: JobStatus -> JobStatus -> Bool
> :: JobStatus -> JobStatus -> Bool
$c> :: JobStatus -> JobStatus -> Bool
<= :: JobStatus -> JobStatus -> Bool
$c<= :: JobStatus -> JobStatus -> Bool
< :: JobStatus -> JobStatus -> Bool
$c< :: JobStatus -> JobStatus -> Bool
compare :: JobStatus -> JobStatus -> Ordering
$ccompare :: JobStatus -> JobStatus -> Ordering
Prelude.Ord,
forall x. Rep JobStatus x -> JobStatus
forall x. JobStatus -> Rep JobStatus x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep JobStatus x -> JobStatus
$cfrom :: forall x. JobStatus -> Rep JobStatus x
Prelude.Generic
)
deriving newtype
( Eq JobStatus
Int -> JobStatus -> Int
JobStatus -> Int
forall a. Eq a -> (Int -> a -> Int) -> (a -> Int) -> Hashable a
hash :: JobStatus -> Int
$chash :: JobStatus -> Int
hashWithSalt :: Int -> JobStatus -> Int
$chashWithSalt :: Int -> JobStatus -> Int
Prelude.Hashable,
JobStatus -> ()
forall a. (a -> ()) -> NFData a
rnf :: JobStatus -> ()
$crnf :: JobStatus -> ()
Prelude.NFData,
Text -> Either String JobStatus
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String JobStatus
$cfromText :: Text -> Either String JobStatus
Data.FromText,
JobStatus -> Text
forall a. (a -> Text) -> ToText a
toText :: JobStatus -> Text
$ctoText :: JobStatus -> Text
Data.ToText,
JobStatus -> ByteString
forall a. (a -> ByteString) -> ToByteString a
toBS :: JobStatus -> ByteString
$ctoBS :: JobStatus -> ByteString
Data.ToByteString,
JobStatus -> ByteStringBuilder
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: JobStatus -> ByteStringBuilder
$cbuild :: JobStatus -> ByteStringBuilder
Data.ToLog,
HeaderName -> JobStatus -> [Header]
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> JobStatus -> [Header]
$ctoHeader :: HeaderName -> JobStatus -> [Header]
Data.ToHeader,
JobStatus -> QueryString
forall a. (a -> QueryString) -> ToQuery a
toQuery :: JobStatus -> QueryString
$ctoQuery :: JobStatus -> QueryString
Data.ToQuery,
Value -> Parser [JobStatus]
Value -> Parser JobStatus
forall a.
(Value -> Parser a) -> (Value -> Parser [a]) -> FromJSON a
parseJSONList :: Value -> Parser [JobStatus]
$cparseJSONList :: Value -> Parser [JobStatus]
parseJSON :: Value -> Parser JobStatus
$cparseJSON :: Value -> Parser JobStatus
Data.FromJSON,
FromJSONKeyFunction [JobStatus]
FromJSONKeyFunction JobStatus
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [JobStatus]
$cfromJSONKeyList :: FromJSONKeyFunction [JobStatus]
fromJSONKey :: FromJSONKeyFunction JobStatus
$cfromJSONKey :: FromJSONKeyFunction JobStatus
Data.FromJSONKey,
[JobStatus] -> Encoding
[JobStatus] -> Value
JobStatus -> Encoding
JobStatus -> Value
forall a.
(a -> Value)
-> (a -> Encoding)
-> ([a] -> Value)
-> ([a] -> Encoding)
-> ToJSON a
toEncodingList :: [JobStatus] -> Encoding
$ctoEncodingList :: [JobStatus] -> Encoding
toJSONList :: [JobStatus] -> Value
$ctoJSONList :: [JobStatus] -> Value
toEncoding :: JobStatus -> Encoding
$ctoEncoding :: JobStatus -> Encoding
toJSON :: JobStatus -> Value
$ctoJSON :: JobStatus -> Value
Data.ToJSON,
ToJSONKeyFunction [JobStatus]
ToJSONKeyFunction JobStatus
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [JobStatus]
$ctoJSONKeyList :: ToJSONKeyFunction [JobStatus]
toJSONKey :: ToJSONKeyFunction JobStatus
$ctoJSONKey :: ToJSONKeyFunction JobStatus
Data.ToJSONKey,
[Node] -> Either String JobStatus
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String JobStatus
$cparseXML :: [Node] -> Either String JobStatus
Data.FromXML,
JobStatus -> XML
forall a. (a -> XML) -> ToXML a
toXML :: JobStatus -> XML
$ctoXML :: JobStatus -> XML
Data.ToXML
)
pattern JobStatus_Created :: JobStatus
pattern $bJobStatus_Created :: JobStatus
$mJobStatus_Created :: forall {r}. JobStatus -> ((# #) -> r) -> ((# #) -> r) -> r
JobStatus_Created = JobStatus' "Created"
pattern JobStatus_Dispatched :: JobStatus
pattern $bJobStatus_Dispatched :: JobStatus
$mJobStatus_Dispatched :: forall {r}. JobStatus -> ((# #) -> r) -> ((# #) -> r) -> r
JobStatus_Dispatched = JobStatus' "Dispatched"
pattern JobStatus_Failed :: JobStatus
pattern $bJobStatus_Failed :: JobStatus
$mJobStatus_Failed :: forall {r}. JobStatus -> ((# #) -> r) -> ((# #) -> r) -> r
JobStatus_Failed = JobStatus' "Failed"
pattern JobStatus_InProgress :: JobStatus
pattern $bJobStatus_InProgress :: JobStatus
$mJobStatus_InProgress :: forall {r}. JobStatus -> ((# #) -> r) -> ((# #) -> r) -> r
JobStatus_InProgress = JobStatus' "InProgress"
pattern JobStatus_Queued :: JobStatus
pattern $bJobStatus_Queued :: JobStatus
$mJobStatus_Queued :: forall {r}. JobStatus -> ((# #) -> r) -> ((# #) -> r) -> r
JobStatus_Queued = JobStatus' "Queued"
pattern JobStatus_Succeeded :: JobStatus
pattern $bJobStatus_Succeeded :: JobStatus
$mJobStatus_Succeeded :: forall {r}. JobStatus -> ((# #) -> r) -> ((# #) -> r) -> r
JobStatus_Succeeded = JobStatus' "Succeeded"
pattern JobStatus_TimedOut :: JobStatus
pattern $bJobStatus_TimedOut :: JobStatus
$mJobStatus_TimedOut :: forall {r}. JobStatus -> ((# #) -> r) -> ((# #) -> r) -> r
JobStatus_TimedOut = JobStatus' "TimedOut"
{-# COMPLETE
JobStatus_Created,
JobStatus_Dispatched,
JobStatus_Failed,
JobStatus_InProgress,
JobStatus_Queued,
JobStatus_Succeeded,
JobStatus_TimedOut,
JobStatus'
#-}