{-# 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.ReplicationState
-- 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.ReplicationState
  ( ReplicationState
      ( ..,
        ReplicationState_DISABLED,
        ReplicationState_ENABLED
      ),
  )
where

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

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

pattern ReplicationState_DISABLED :: ReplicationState
pattern $bReplicationState_DISABLED :: ReplicationState
$mReplicationState_DISABLED :: forall {r}. ReplicationState -> ((# #) -> r) -> ((# #) -> r) -> r
ReplicationState_DISABLED = ReplicationState' "DISABLED"

pattern ReplicationState_ENABLED :: ReplicationState
pattern $bReplicationState_ENABLED :: ReplicationState
$mReplicationState_ENABLED :: forall {r}. ReplicationState -> ((# #) -> r) -> ((# #) -> r) -> r
ReplicationState_ENABLED = ReplicationState' "ENABLED"

{-# COMPLETE
  ReplicationState_DISABLED,
  ReplicationState_ENABLED,
  ReplicationState'
  #-}