{-# 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.SMS.Types.ReplicationRunState
-- 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.SMS.Types.ReplicationRunState
  ( ReplicationRunState
      ( ..,
        ReplicationRunState_ACTIVE,
        ReplicationRunState_COMPLETED,
        ReplicationRunState_DELETED,
        ReplicationRunState_DELETING,
        ReplicationRunState_FAILED,
        ReplicationRunState_MISSED,
        ReplicationRunState_PENDING
      ),
  )
where

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

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

pattern ReplicationRunState_ACTIVE :: ReplicationRunState
pattern $bReplicationRunState_ACTIVE :: ReplicationRunState
$mReplicationRunState_ACTIVE :: forall r. ReplicationRunState -> (Void# -> r) -> (Void# -> r) -> r
ReplicationRunState_ACTIVE = ReplicationRunState' "ACTIVE"

pattern ReplicationRunState_COMPLETED :: ReplicationRunState
pattern $bReplicationRunState_COMPLETED :: ReplicationRunState
$mReplicationRunState_COMPLETED :: forall r. ReplicationRunState -> (Void# -> r) -> (Void# -> r) -> r
ReplicationRunState_COMPLETED = ReplicationRunState' "COMPLETED"

pattern ReplicationRunState_DELETED :: ReplicationRunState
pattern $bReplicationRunState_DELETED :: ReplicationRunState
$mReplicationRunState_DELETED :: forall r. ReplicationRunState -> (Void# -> r) -> (Void# -> r) -> r
ReplicationRunState_DELETED = ReplicationRunState' "DELETED"

pattern ReplicationRunState_DELETING :: ReplicationRunState
pattern $bReplicationRunState_DELETING :: ReplicationRunState
$mReplicationRunState_DELETING :: forall r. ReplicationRunState -> (Void# -> r) -> (Void# -> r) -> r
ReplicationRunState_DELETING = ReplicationRunState' "DELETING"

pattern ReplicationRunState_FAILED :: ReplicationRunState
pattern $bReplicationRunState_FAILED :: ReplicationRunState
$mReplicationRunState_FAILED :: forall r. ReplicationRunState -> (Void# -> r) -> (Void# -> r) -> r
ReplicationRunState_FAILED = ReplicationRunState' "FAILED"

pattern ReplicationRunState_MISSED :: ReplicationRunState
pattern $bReplicationRunState_MISSED :: ReplicationRunState
$mReplicationRunState_MISSED :: forall r. ReplicationRunState -> (Void# -> r) -> (Void# -> r) -> r
ReplicationRunState_MISSED = ReplicationRunState' "MISSED"

pattern ReplicationRunState_PENDING :: ReplicationRunState
pattern $bReplicationRunState_PENDING :: ReplicationRunState
$mReplicationRunState_PENDING :: forall r. ReplicationRunState -> (Void# -> r) -> (Void# -> r) -> r
ReplicationRunState_PENDING = ReplicationRunState' "PENDING"

{-# COMPLETE
  ReplicationRunState_ACTIVE,
  ReplicationRunState_COMPLETED,
  ReplicationRunState_DELETED,
  ReplicationRunState_DELETING,
  ReplicationRunState_FAILED,
  ReplicationRunState_MISSED,
  ReplicationRunState_PENDING,
  ReplicationRunState'
  #-}