{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DerivingStrategies #-}
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# LANGUAGE LambdaCase #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE PatternSynonyms #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}

-- Derived from AWS service descriptions, licensed under Apache 2.0.

-- |
-- Module      : Amazonka.AppFlow.Types.FlowStatus
-- Copyright   : (c) 2013-2021 Brendan Hay
-- License     : Mozilla Public License, v. 2.0.
-- Maintainer  : Brendan Hay <brendan.g.hay+amazonka@gmail.com>
-- Stability   : auto-generated
-- Portability : non-portable (GHC extensions)
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.Prelude as Prelude

newtype FlowStatus = FlowStatus'
  { FlowStatus -> Text
fromFlowStatus ::
      Core.Text
  }
  deriving stock
    ( Int -> FlowStatus -> ShowS
[FlowStatus] -> ShowS
FlowStatus -> String
(Int -> FlowStatus -> ShowS)
-> (FlowStatus -> String)
-> ([FlowStatus] -> ShowS)
-> Show FlowStatus
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]
(Int -> ReadS FlowStatus)
-> ReadS [FlowStatus]
-> ReadPrec FlowStatus
-> ReadPrec [FlowStatus]
-> Read 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
(FlowStatus -> FlowStatus -> Bool)
-> (FlowStatus -> FlowStatus -> Bool) -> Eq FlowStatus
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
Eq FlowStatus
-> (FlowStatus -> FlowStatus -> Ordering)
-> (FlowStatus -> FlowStatus -> Bool)
-> (FlowStatus -> FlowStatus -> Bool)
-> (FlowStatus -> FlowStatus -> Bool)
-> (FlowStatus -> FlowStatus -> Bool)
-> (FlowStatus -> FlowStatus -> FlowStatus)
-> (FlowStatus -> FlowStatus -> FlowStatus)
-> Ord 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
$cp1Ord :: Eq FlowStatus
Prelude.Ord,
      (forall x. FlowStatus -> Rep FlowStatus x)
-> (forall x. Rep FlowStatus x -> FlowStatus) -> Generic FlowStatus
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
    ( Int -> FlowStatus -> Int
FlowStatus -> Int
(Int -> FlowStatus -> Int)
-> (FlowStatus -> Int) -> Hashable FlowStatus
forall 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 -> ()
(FlowStatus -> ()) -> NFData FlowStatus
forall a. (a -> ()) -> NFData a
rnf :: FlowStatus -> ()
$crnf :: FlowStatus -> ()
Prelude.NFData,
      Text -> Either String FlowStatus
(Text -> Either String FlowStatus) -> FromText FlowStatus
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String FlowStatus
$cfromText :: Text -> Either String FlowStatus
Core.FromText,
      FlowStatus -> Text
(FlowStatus -> Text) -> ToText FlowStatus
forall a. (a -> Text) -> ToText a
toText :: FlowStatus -> Text
$ctoText :: FlowStatus -> Text
Core.ToText,
      FlowStatus -> ByteString
(FlowStatus -> ByteString) -> ToByteString FlowStatus
forall a. (a -> ByteString) -> ToByteString a
toBS :: FlowStatus -> ByteString
$ctoBS :: FlowStatus -> ByteString
Core.ToByteString,
      FlowStatus -> ByteStringBuilder
(FlowStatus -> ByteStringBuilder) -> ToLog FlowStatus
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: FlowStatus -> ByteStringBuilder
$cbuild :: FlowStatus -> ByteStringBuilder
Core.ToLog,
      HeaderName -> FlowStatus -> [Header]
(HeaderName -> FlowStatus -> [Header]) -> ToHeader FlowStatus
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> FlowStatus -> [Header]
$ctoHeader :: HeaderName -> FlowStatus -> [Header]
Core.ToHeader,
      FlowStatus -> QueryString
(FlowStatus -> QueryString) -> ToQuery FlowStatus
forall a. (a -> QueryString) -> ToQuery a
toQuery :: FlowStatus -> QueryString
$ctoQuery :: FlowStatus -> QueryString
Core.ToQuery,
      Value -> Parser [FlowStatus]
Value -> Parser FlowStatus
(Value -> Parser FlowStatus)
-> (Value -> Parser [FlowStatus]) -> FromJSON 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
Core.FromJSON,
      FromJSONKeyFunction [FlowStatus]
FromJSONKeyFunction FlowStatus
FromJSONKeyFunction FlowStatus
-> FromJSONKeyFunction [FlowStatus] -> FromJSONKey FlowStatus
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [FlowStatus]
$cfromJSONKeyList :: FromJSONKeyFunction [FlowStatus]
fromJSONKey :: FromJSONKeyFunction FlowStatus
$cfromJSONKey :: FromJSONKeyFunction FlowStatus
Core.FromJSONKey,
      [FlowStatus] -> Encoding
[FlowStatus] -> Value
FlowStatus -> Encoding
FlowStatus -> Value
(FlowStatus -> Value)
-> (FlowStatus -> Encoding)
-> ([FlowStatus] -> Value)
-> ([FlowStatus] -> Encoding)
-> ToJSON FlowStatus
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
Core.ToJSON,
      ToJSONKeyFunction [FlowStatus]
ToJSONKeyFunction FlowStatus
ToJSONKeyFunction FlowStatus
-> ToJSONKeyFunction [FlowStatus] -> ToJSONKey FlowStatus
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [FlowStatus]
$ctoJSONKeyList :: ToJSONKeyFunction [FlowStatus]
toJSONKey :: ToJSONKeyFunction FlowStatus
$ctoJSONKey :: ToJSONKeyFunction FlowStatus
Core.ToJSONKey,
      [Node] -> Either String FlowStatus
([Node] -> Either String FlowStatus) -> FromXML FlowStatus
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String FlowStatus
$cparseXML :: [Node] -> Either String FlowStatus
Core.FromXML,
      FlowStatus -> XML
(FlowStatus -> XML) -> ToXML FlowStatus
forall a. (a -> XML) -> ToXML a
toXML :: FlowStatus -> XML
$ctoXML :: FlowStatus -> XML
Core.ToXML
    )

pattern FlowStatus_Active :: FlowStatus
pattern $bFlowStatus_Active :: FlowStatus
$mFlowStatus_Active :: forall r. FlowStatus -> (Void# -> r) -> (Void# -> r) -> r
FlowStatus_Active = FlowStatus' "Active"

pattern FlowStatus_Deleted :: FlowStatus
pattern $bFlowStatus_Deleted :: FlowStatus
$mFlowStatus_Deleted :: forall r. FlowStatus -> (Void# -> r) -> (Void# -> r) -> r
FlowStatus_Deleted = FlowStatus' "Deleted"

pattern FlowStatus_Deprecated :: FlowStatus
pattern $bFlowStatus_Deprecated :: FlowStatus
$mFlowStatus_Deprecated :: forall r. FlowStatus -> (Void# -> r) -> (Void# -> r) -> r
FlowStatus_Deprecated = FlowStatus' "Deprecated"

pattern FlowStatus_Draft :: FlowStatus
pattern $bFlowStatus_Draft :: FlowStatus
$mFlowStatus_Draft :: forall r. FlowStatus -> (Void# -> r) -> (Void# -> r) -> r
FlowStatus_Draft = FlowStatus' "Draft"

pattern FlowStatus_Errored :: FlowStatus
pattern $bFlowStatus_Errored :: FlowStatus
$mFlowStatus_Errored :: forall r. FlowStatus -> (Void# -> r) -> (Void# -> r) -> r
FlowStatus_Errored = FlowStatus' "Errored"

pattern FlowStatus_Suspended :: FlowStatus
pattern $bFlowStatus_Suspended :: FlowStatus
$mFlowStatus_Suspended :: forall r. FlowStatus -> (Void# -> r) -> (Void# -> r) -> r
FlowStatus_Suspended = FlowStatus' "Suspended"

{-# COMPLETE
  FlowStatus_Active,
  FlowStatus_Deleted,
  FlowStatus_Deprecated,
  FlowStatus_Draft,
  FlowStatus_Errored,
  FlowStatus_Suspended,
  FlowStatus'
  #-}