{-# 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.CloudWatchEvents.Types.ReplayState
-- 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.CloudWatchEvents.Types.ReplayState
  ( ReplayState
      ( ..,
        ReplayState_CANCELLED,
        ReplayState_CANCELLING,
        ReplayState_COMPLETED,
        ReplayState_FAILED,
        ReplayState_RUNNING,
        ReplayState_STARTING
      ),
  )
where

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

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

pattern ReplayState_CANCELLED :: ReplayState
pattern $bReplayState_CANCELLED :: ReplayState
$mReplayState_CANCELLED :: forall r. ReplayState -> (Void# -> r) -> (Void# -> r) -> r
ReplayState_CANCELLED = ReplayState' "CANCELLED"

pattern ReplayState_CANCELLING :: ReplayState
pattern $bReplayState_CANCELLING :: ReplayState
$mReplayState_CANCELLING :: forall r. ReplayState -> (Void# -> r) -> (Void# -> r) -> r
ReplayState_CANCELLING = ReplayState' "CANCELLING"

pattern ReplayState_COMPLETED :: ReplayState
pattern $bReplayState_COMPLETED :: ReplayState
$mReplayState_COMPLETED :: forall r. ReplayState -> (Void# -> r) -> (Void# -> r) -> r
ReplayState_COMPLETED = ReplayState' "COMPLETED"

pattern ReplayState_FAILED :: ReplayState
pattern $bReplayState_FAILED :: ReplayState
$mReplayState_FAILED :: forall r. ReplayState -> (Void# -> r) -> (Void# -> r) -> r
ReplayState_FAILED = ReplayState' "FAILED"

pattern ReplayState_RUNNING :: ReplayState
pattern $bReplayState_RUNNING :: ReplayState
$mReplayState_RUNNING :: forall r. ReplayState -> (Void# -> r) -> (Void# -> r) -> r
ReplayState_RUNNING = ReplayState' "RUNNING"

pattern ReplayState_STARTING :: ReplayState
pattern $bReplayState_STARTING :: ReplayState
$mReplayState_STARTING :: forall r. ReplayState -> (Void# -> r) -> (Void# -> r) -> r
ReplayState_STARTING = ReplayState' "STARTING"

{-# COMPLETE
  ReplayState_CANCELLED,
  ReplayState_CANCELLING,
  ReplayState_COMPLETED,
  ReplayState_FAILED,
  ReplayState_RUNNING,
  ReplayState_STARTING,
  ReplayState'
  #-}