{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DerivingStrategies #-}
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# LANGUAGE LambdaCase #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE PatternSynonyms #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
module Amazonka.AppFlow.Types.FlowStatus
( FlowStatus
( ..,
FlowStatus_Active,
FlowStatus_Deleted,
FlowStatus_Deprecated,
FlowStatus_Draft,
FlowStatus_Errored,
FlowStatus_Suspended
),
)
where
import qualified Amazonka.Core as Core
import qualified Amazonka.Data as Data
import qualified Amazonka.Prelude as Prelude
newtype FlowStatus = FlowStatus'
{ FlowStatus -> Text
fromFlowStatus ::
Data.Text
}
deriving stock
( Int -> FlowStatus -> ShowS
[FlowStatus] -> ShowS
FlowStatus -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [FlowStatus] -> ShowS
$cshowList :: [FlowStatus] -> ShowS
show :: FlowStatus -> String
$cshow :: FlowStatus -> String
showsPrec :: Int -> FlowStatus -> ShowS
$cshowsPrec :: Int -> FlowStatus -> ShowS
Prelude.Show,
ReadPrec [FlowStatus]
ReadPrec FlowStatus
Int -> ReadS FlowStatus
ReadS [FlowStatus]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [FlowStatus]
$creadListPrec :: ReadPrec [FlowStatus]
readPrec :: ReadPrec FlowStatus
$creadPrec :: ReadPrec FlowStatus
readList :: ReadS [FlowStatus]
$creadList :: ReadS [FlowStatus]
readsPrec :: Int -> ReadS FlowStatus
$creadsPrec :: Int -> ReadS FlowStatus
Prelude.Read,
FlowStatus -> FlowStatus -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: FlowStatus -> FlowStatus -> Bool
$c/= :: FlowStatus -> FlowStatus -> Bool
== :: FlowStatus -> FlowStatus -> Bool
$c== :: FlowStatus -> FlowStatus -> Bool
Prelude.Eq,
Eq FlowStatus
FlowStatus -> FlowStatus -> Bool
FlowStatus -> FlowStatus -> Ordering
FlowStatus -> FlowStatus -> FlowStatus
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 :: FlowStatus -> FlowStatus -> FlowStatus
$cmin :: FlowStatus -> FlowStatus -> FlowStatus
max :: FlowStatus -> FlowStatus -> FlowStatus
$cmax :: FlowStatus -> FlowStatus -> FlowStatus
>= :: FlowStatus -> FlowStatus -> Bool
$c>= :: FlowStatus -> FlowStatus -> Bool
> :: FlowStatus -> FlowStatus -> Bool
$c> :: FlowStatus -> FlowStatus -> Bool
<= :: FlowStatus -> FlowStatus -> Bool
$c<= :: FlowStatus -> FlowStatus -> Bool
< :: FlowStatus -> FlowStatus -> Bool
$c< :: FlowStatus -> FlowStatus -> Bool
compare :: FlowStatus -> FlowStatus -> Ordering
$ccompare :: FlowStatus -> FlowStatus -> Ordering
Prelude.Ord,
forall x. Rep FlowStatus x -> FlowStatus
forall x. FlowStatus -> Rep FlowStatus x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep FlowStatus x -> FlowStatus
$cfrom :: forall x. FlowStatus -> Rep FlowStatus x
Prelude.Generic
)
deriving newtype
( Eq FlowStatus
Int -> FlowStatus -> Int
FlowStatus -> Int
forall a. Eq a -> (Int -> a -> Int) -> (a -> Int) -> Hashable a
hash :: FlowStatus -> Int
$chash :: FlowStatus -> Int
hashWithSalt :: Int -> FlowStatus -> Int
$chashWithSalt :: Int -> FlowStatus -> Int
Prelude.Hashable,
FlowStatus -> ()
forall a. (a -> ()) -> NFData a
rnf :: FlowStatus -> ()
$crnf :: FlowStatus -> ()
Prelude.NFData,
Text -> Either String FlowStatus
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String FlowStatus
$cfromText :: Text -> Either String FlowStatus
Data.FromText,
FlowStatus -> Text
forall a. (a -> Text) -> ToText a
toText :: FlowStatus -> Text
$ctoText :: FlowStatus -> Text
Data.ToText,
FlowStatus -> ByteString
forall a. (a -> ByteString) -> ToByteString a
toBS :: FlowStatus -> ByteString
$ctoBS :: FlowStatus -> ByteString
Data.ToByteString,
FlowStatus -> ByteStringBuilder
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: FlowStatus -> ByteStringBuilder
$cbuild :: FlowStatus -> ByteStringBuilder
Data.ToLog,
HeaderName -> FlowStatus -> [Header]
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> FlowStatus -> [Header]
$ctoHeader :: HeaderName -> FlowStatus -> [Header]
Data.ToHeader,
FlowStatus -> QueryString
forall a. (a -> QueryString) -> ToQuery a
toQuery :: FlowStatus -> QueryString
$ctoQuery :: FlowStatus -> QueryString
Data.ToQuery,
Value -> Parser [FlowStatus]
Value -> Parser FlowStatus
forall a.
(Value -> Parser a) -> (Value -> Parser [a]) -> FromJSON a
parseJSONList :: Value -> Parser [FlowStatus]
$cparseJSONList :: Value -> Parser [FlowStatus]
parseJSON :: Value -> Parser FlowStatus
$cparseJSON :: Value -> Parser FlowStatus
Data.FromJSON,
FromJSONKeyFunction [FlowStatus]
FromJSONKeyFunction FlowStatus
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [FlowStatus]
$cfromJSONKeyList :: FromJSONKeyFunction [FlowStatus]
fromJSONKey :: FromJSONKeyFunction FlowStatus
$cfromJSONKey :: FromJSONKeyFunction FlowStatus
Data.FromJSONKey,
[FlowStatus] -> Encoding
[FlowStatus] -> Value
FlowStatus -> Encoding
FlowStatus -> Value
forall a.
(a -> Value)
-> (a -> Encoding)
-> ([a] -> Value)
-> ([a] -> Encoding)
-> ToJSON a
toEncodingList :: [FlowStatus] -> Encoding
$ctoEncodingList :: [FlowStatus] -> Encoding
toJSONList :: [FlowStatus] -> Value
$ctoJSONList :: [FlowStatus] -> Value
toEncoding :: FlowStatus -> Encoding
$ctoEncoding :: FlowStatus -> Encoding
toJSON :: FlowStatus -> Value
$ctoJSON :: FlowStatus -> Value
Data.ToJSON,
ToJSONKeyFunction [FlowStatus]
ToJSONKeyFunction FlowStatus
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [FlowStatus]
$ctoJSONKeyList :: ToJSONKeyFunction [FlowStatus]
toJSONKey :: ToJSONKeyFunction FlowStatus
$ctoJSONKey :: ToJSONKeyFunction FlowStatus
Data.ToJSONKey,
[Node] -> Either String FlowStatus
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String FlowStatus
$cparseXML :: [Node] -> Either String FlowStatus
Data.FromXML,
FlowStatus -> XML
forall a. (a -> XML) -> ToXML a
toXML :: FlowStatus -> XML
$ctoXML :: FlowStatus -> XML
Data.ToXML
)
pattern FlowStatus_Active :: FlowStatus
pattern $bFlowStatus_Active :: FlowStatus
$mFlowStatus_Active :: forall {r}. FlowStatus -> ((# #) -> r) -> ((# #) -> r) -> r
FlowStatus_Active = FlowStatus' "Active"
pattern FlowStatus_Deleted :: FlowStatus
pattern $bFlowStatus_Deleted :: FlowStatus
$mFlowStatus_Deleted :: forall {r}. FlowStatus -> ((# #) -> r) -> ((# #) -> r) -> r
FlowStatus_Deleted = FlowStatus' "Deleted"
pattern FlowStatus_Deprecated :: FlowStatus
pattern $bFlowStatus_Deprecated :: FlowStatus
$mFlowStatus_Deprecated :: forall {r}. FlowStatus -> ((# #) -> r) -> ((# #) -> r) -> r
FlowStatus_Deprecated = FlowStatus' "Deprecated"
pattern FlowStatus_Draft :: FlowStatus
pattern $bFlowStatus_Draft :: FlowStatus
$mFlowStatus_Draft :: forall {r}. FlowStatus -> ((# #) -> r) -> ((# #) -> r) -> r
FlowStatus_Draft = FlowStatus' "Draft"
pattern FlowStatus_Errored :: FlowStatus
pattern $bFlowStatus_Errored :: FlowStatus
$mFlowStatus_Errored :: forall {r}. FlowStatus -> ((# #) -> r) -> ((# #) -> r) -> r
FlowStatus_Errored = FlowStatus' "Errored"
pattern FlowStatus_Suspended :: FlowStatus
pattern $bFlowStatus_Suspended :: FlowStatus
$mFlowStatus_Suspended :: forall {r}. FlowStatus -> ((# #) -> r) -> ((# #) -> r) -> r
FlowStatus_Suspended = FlowStatus' "Suspended"
{-# COMPLETE
FlowStatus_Active,
FlowStatus_Deleted,
FlowStatus_Deprecated,
FlowStatus_Draft,
FlowStatus_Errored,
FlowStatus_Suspended,
FlowStatus'
#-}