{-# 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.SWF.Types.ExecutionStatus
-- 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.SWF.Types.ExecutionStatus
  ( ExecutionStatus
      ( ..,
        ExecutionStatus_CLOSED,
        ExecutionStatus_OPEN
      ),
  )
where

import qualified Amazonka.Core as Core
import qualified Amazonka.Prelude as Prelude

newtype ExecutionStatus = ExecutionStatus'
  { ExecutionStatus -> Text
fromExecutionStatus ::
      Core.Text
  }
  deriving stock
    ( Int -> ExecutionStatus -> ShowS
[ExecutionStatus] -> ShowS
ExecutionStatus -> String
(Int -> ExecutionStatus -> ShowS)
-> (ExecutionStatus -> String)
-> ([ExecutionStatus] -> ShowS)
-> Show ExecutionStatus
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ExecutionStatus] -> ShowS
$cshowList :: [ExecutionStatus] -> ShowS
show :: ExecutionStatus -> String
$cshow :: ExecutionStatus -> String
showsPrec :: Int -> ExecutionStatus -> ShowS
$cshowsPrec :: Int -> ExecutionStatus -> ShowS
Prelude.Show,
      ReadPrec [ExecutionStatus]
ReadPrec ExecutionStatus
Int -> ReadS ExecutionStatus
ReadS [ExecutionStatus]
(Int -> ReadS ExecutionStatus)
-> ReadS [ExecutionStatus]
-> ReadPrec ExecutionStatus
-> ReadPrec [ExecutionStatus]
-> Read ExecutionStatus
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ExecutionStatus]
$creadListPrec :: ReadPrec [ExecutionStatus]
readPrec :: ReadPrec ExecutionStatus
$creadPrec :: ReadPrec ExecutionStatus
readList :: ReadS [ExecutionStatus]
$creadList :: ReadS [ExecutionStatus]
readsPrec :: Int -> ReadS ExecutionStatus
$creadsPrec :: Int -> ReadS ExecutionStatus
Prelude.Read,
      ExecutionStatus -> ExecutionStatus -> Bool
(ExecutionStatus -> ExecutionStatus -> Bool)
-> (ExecutionStatus -> ExecutionStatus -> Bool)
-> Eq ExecutionStatus
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ExecutionStatus -> ExecutionStatus -> Bool
$c/= :: ExecutionStatus -> ExecutionStatus -> Bool
== :: ExecutionStatus -> ExecutionStatus -> Bool
$c== :: ExecutionStatus -> ExecutionStatus -> Bool
Prelude.Eq,
      Eq ExecutionStatus
Eq ExecutionStatus
-> (ExecutionStatus -> ExecutionStatus -> Ordering)
-> (ExecutionStatus -> ExecutionStatus -> Bool)
-> (ExecutionStatus -> ExecutionStatus -> Bool)
-> (ExecutionStatus -> ExecutionStatus -> Bool)
-> (ExecutionStatus -> ExecutionStatus -> Bool)
-> (ExecutionStatus -> ExecutionStatus -> ExecutionStatus)
-> (ExecutionStatus -> ExecutionStatus -> ExecutionStatus)
-> Ord ExecutionStatus
ExecutionStatus -> ExecutionStatus -> Bool
ExecutionStatus -> ExecutionStatus -> Ordering
ExecutionStatus -> ExecutionStatus -> ExecutionStatus
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 :: ExecutionStatus -> ExecutionStatus -> ExecutionStatus
$cmin :: ExecutionStatus -> ExecutionStatus -> ExecutionStatus
max :: ExecutionStatus -> ExecutionStatus -> ExecutionStatus
$cmax :: ExecutionStatus -> ExecutionStatus -> ExecutionStatus
>= :: ExecutionStatus -> ExecutionStatus -> Bool
$c>= :: ExecutionStatus -> ExecutionStatus -> Bool
> :: ExecutionStatus -> ExecutionStatus -> Bool
$c> :: ExecutionStatus -> ExecutionStatus -> Bool
<= :: ExecutionStatus -> ExecutionStatus -> Bool
$c<= :: ExecutionStatus -> ExecutionStatus -> Bool
< :: ExecutionStatus -> ExecutionStatus -> Bool
$c< :: ExecutionStatus -> ExecutionStatus -> Bool
compare :: ExecutionStatus -> ExecutionStatus -> Ordering
$ccompare :: ExecutionStatus -> ExecutionStatus -> Ordering
$cp1Ord :: Eq ExecutionStatus
Prelude.Ord,
      (forall x. ExecutionStatus -> Rep ExecutionStatus x)
-> (forall x. Rep ExecutionStatus x -> ExecutionStatus)
-> Generic ExecutionStatus
forall x. Rep ExecutionStatus x -> ExecutionStatus
forall x. ExecutionStatus -> Rep ExecutionStatus x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep ExecutionStatus x -> ExecutionStatus
$cfrom :: forall x. ExecutionStatus -> Rep ExecutionStatus x
Prelude.Generic
    )
  deriving newtype
    ( Int -> ExecutionStatus -> Int
ExecutionStatus -> Int
(Int -> ExecutionStatus -> Int)
-> (ExecutionStatus -> Int) -> Hashable ExecutionStatus
forall a. (Int -> a -> Int) -> (a -> Int) -> Hashable a
hash :: ExecutionStatus -> Int
$chash :: ExecutionStatus -> Int
hashWithSalt :: Int -> ExecutionStatus -> Int
$chashWithSalt :: Int -> ExecutionStatus -> Int
Prelude.Hashable,
      ExecutionStatus -> ()
(ExecutionStatus -> ()) -> NFData ExecutionStatus
forall a. (a -> ()) -> NFData a
rnf :: ExecutionStatus -> ()
$crnf :: ExecutionStatus -> ()
Prelude.NFData,
      Text -> Either String ExecutionStatus
(Text -> Either String ExecutionStatus) -> FromText ExecutionStatus
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String ExecutionStatus
$cfromText :: Text -> Either String ExecutionStatus
Core.FromText,
      ExecutionStatus -> Text
(ExecutionStatus -> Text) -> ToText ExecutionStatus
forall a. (a -> Text) -> ToText a
toText :: ExecutionStatus -> Text
$ctoText :: ExecutionStatus -> Text
Core.ToText,
      ExecutionStatus -> ByteString
(ExecutionStatus -> ByteString) -> ToByteString ExecutionStatus
forall a. (a -> ByteString) -> ToByteString a
toBS :: ExecutionStatus -> ByteString
$ctoBS :: ExecutionStatus -> ByteString
Core.ToByteString,
      ExecutionStatus -> ByteStringBuilder
(ExecutionStatus -> ByteStringBuilder) -> ToLog ExecutionStatus
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: ExecutionStatus -> ByteStringBuilder
$cbuild :: ExecutionStatus -> ByteStringBuilder
Core.ToLog,
      HeaderName -> ExecutionStatus -> [Header]
(HeaderName -> ExecutionStatus -> [Header])
-> ToHeader ExecutionStatus
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> ExecutionStatus -> [Header]
$ctoHeader :: HeaderName -> ExecutionStatus -> [Header]
Core.ToHeader,
      ExecutionStatus -> QueryString
(ExecutionStatus -> QueryString) -> ToQuery ExecutionStatus
forall a. (a -> QueryString) -> ToQuery a
toQuery :: ExecutionStatus -> QueryString
$ctoQuery :: ExecutionStatus -> QueryString
Core.ToQuery,
      Value -> Parser [ExecutionStatus]
Value -> Parser ExecutionStatus
(Value -> Parser ExecutionStatus)
-> (Value -> Parser [ExecutionStatus]) -> FromJSON ExecutionStatus
forall a.
(Value -> Parser a) -> (Value -> Parser [a]) -> FromJSON a
parseJSONList :: Value -> Parser [ExecutionStatus]
$cparseJSONList :: Value -> Parser [ExecutionStatus]
parseJSON :: Value -> Parser ExecutionStatus
$cparseJSON :: Value -> Parser ExecutionStatus
Core.FromJSON,
      FromJSONKeyFunction [ExecutionStatus]
FromJSONKeyFunction ExecutionStatus
FromJSONKeyFunction ExecutionStatus
-> FromJSONKeyFunction [ExecutionStatus]
-> FromJSONKey ExecutionStatus
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [ExecutionStatus]
$cfromJSONKeyList :: FromJSONKeyFunction [ExecutionStatus]
fromJSONKey :: FromJSONKeyFunction ExecutionStatus
$cfromJSONKey :: FromJSONKeyFunction ExecutionStatus
Core.FromJSONKey,
      [ExecutionStatus] -> Encoding
[ExecutionStatus] -> Value
ExecutionStatus -> Encoding
ExecutionStatus -> Value
(ExecutionStatus -> Value)
-> (ExecutionStatus -> Encoding)
-> ([ExecutionStatus] -> Value)
-> ([ExecutionStatus] -> Encoding)
-> ToJSON ExecutionStatus
forall a.
(a -> Value)
-> (a -> Encoding)
-> ([a] -> Value)
-> ([a] -> Encoding)
-> ToJSON a
toEncodingList :: [ExecutionStatus] -> Encoding
$ctoEncodingList :: [ExecutionStatus] -> Encoding
toJSONList :: [ExecutionStatus] -> Value
$ctoJSONList :: [ExecutionStatus] -> Value
toEncoding :: ExecutionStatus -> Encoding
$ctoEncoding :: ExecutionStatus -> Encoding
toJSON :: ExecutionStatus -> Value
$ctoJSON :: ExecutionStatus -> Value
Core.ToJSON,
      ToJSONKeyFunction [ExecutionStatus]
ToJSONKeyFunction ExecutionStatus
ToJSONKeyFunction ExecutionStatus
-> ToJSONKeyFunction [ExecutionStatus] -> ToJSONKey ExecutionStatus
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [ExecutionStatus]
$ctoJSONKeyList :: ToJSONKeyFunction [ExecutionStatus]
toJSONKey :: ToJSONKeyFunction ExecutionStatus
$ctoJSONKey :: ToJSONKeyFunction ExecutionStatus
Core.ToJSONKey,
      [Node] -> Either String ExecutionStatus
([Node] -> Either String ExecutionStatus)
-> FromXML ExecutionStatus
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String ExecutionStatus
$cparseXML :: [Node] -> Either String ExecutionStatus
Core.FromXML,
      ExecutionStatus -> XML
(ExecutionStatus -> XML) -> ToXML ExecutionStatus
forall a. (a -> XML) -> ToXML a
toXML :: ExecutionStatus -> XML
$ctoXML :: ExecutionStatus -> XML
Core.ToXML
    )

pattern ExecutionStatus_CLOSED :: ExecutionStatus
pattern $bExecutionStatus_CLOSED :: ExecutionStatus
$mExecutionStatus_CLOSED :: forall r. ExecutionStatus -> (Void# -> r) -> (Void# -> r) -> r
ExecutionStatus_CLOSED = ExecutionStatus' "CLOSED"

pattern ExecutionStatus_OPEN :: ExecutionStatus
pattern $bExecutionStatus_OPEN :: ExecutionStatus
$mExecutionStatus_OPEN :: forall r. ExecutionStatus -> (Void# -> r) -> (Void# -> r) -> r
ExecutionStatus_OPEN = ExecutionStatus' "OPEN"

{-# COMPLETE
  ExecutionStatus_CLOSED,
  ExecutionStatus_OPEN,
  ExecutionStatus'
  #-}