{-# 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-2023 Brendan Hay
-- License     : Mozilla Public License, v. 2.0.
-- Maintainer  : Brendan Hay
-- 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.Data as Data
import qualified Amazonka.Prelude as Prelude

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

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

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

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

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

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

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

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