{-# 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.StepFunctions.Types.StateMachineStatus
-- 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.StepFunctions.Types.StateMachineStatus
  ( StateMachineStatus
      ( ..,
        StateMachineStatus_ACTIVE,
        StateMachineStatus_DELETING
      ),
  )
where

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

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

pattern StateMachineStatus_ACTIVE :: StateMachineStatus
pattern $bStateMachineStatus_ACTIVE :: StateMachineStatus
$mStateMachineStatus_ACTIVE :: forall r. StateMachineStatus -> (Void# -> r) -> (Void# -> r) -> r
StateMachineStatus_ACTIVE = StateMachineStatus' "ACTIVE"

pattern StateMachineStatus_DELETING :: StateMachineStatus
pattern $bStateMachineStatus_DELETING :: StateMachineStatus
$mStateMachineStatus_DELETING :: forall r. StateMachineStatus -> (Void# -> r) -> (Void# -> r) -> r
StateMachineStatus_DELETING = StateMachineStatus' "DELETING"

{-# COMPLETE
  StateMachineStatus_ACTIVE,
  StateMachineStatus_DELETING,
  StateMachineStatus'
  #-}