{-# 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.AppReplicationStatus
-- 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.AppReplicationStatus
  ( AppReplicationStatus
      ( ..,
        AppReplicationStatus_CONFIGURATION_INVALID,
        AppReplicationStatus_CONFIGURATION_IN_PROGRESS,
        AppReplicationStatus_DELTA_REPLICATED,
        AppReplicationStatus_DELTA_REPLICATION_FAILED,
        AppReplicationStatus_DELTA_REPLICATION_IN_PROGRESS,
        AppReplicationStatus_PARTIALLY_REPLICATED,
        AppReplicationStatus_READY_FOR_CONFIGURATION,
        AppReplicationStatus_READY_FOR_REPLICATION,
        AppReplicationStatus_REPLICATED,
        AppReplicationStatus_REPLICATION_FAILED,
        AppReplicationStatus_REPLICATION_IN_PROGRESS,
        AppReplicationStatus_REPLICATION_PENDING,
        AppReplicationStatus_REPLICATION_STOPPED,
        AppReplicationStatus_REPLICATION_STOPPING,
        AppReplicationStatus_REPLICATION_STOP_FAILED,
        AppReplicationStatus_VALIDATION_IN_PROGRESS
      ),
  )
where

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

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

pattern AppReplicationStatus_CONFIGURATION_INVALID :: AppReplicationStatus
pattern $bAppReplicationStatus_CONFIGURATION_INVALID :: AppReplicationStatus
$mAppReplicationStatus_CONFIGURATION_INVALID :: forall r. AppReplicationStatus -> (Void# -> r) -> (Void# -> r) -> r
AppReplicationStatus_CONFIGURATION_INVALID = AppReplicationStatus' "CONFIGURATION_INVALID"

pattern AppReplicationStatus_CONFIGURATION_IN_PROGRESS :: AppReplicationStatus
pattern $bAppReplicationStatus_CONFIGURATION_IN_PROGRESS :: AppReplicationStatus
$mAppReplicationStatus_CONFIGURATION_IN_PROGRESS :: forall r. AppReplicationStatus -> (Void# -> r) -> (Void# -> r) -> r
AppReplicationStatus_CONFIGURATION_IN_PROGRESS = AppReplicationStatus' "CONFIGURATION_IN_PROGRESS"

pattern AppReplicationStatus_DELTA_REPLICATED :: AppReplicationStatus
pattern $bAppReplicationStatus_DELTA_REPLICATED :: AppReplicationStatus
$mAppReplicationStatus_DELTA_REPLICATED :: forall r. AppReplicationStatus -> (Void# -> r) -> (Void# -> r) -> r
AppReplicationStatus_DELTA_REPLICATED = AppReplicationStatus' "DELTA_REPLICATED"

pattern AppReplicationStatus_DELTA_REPLICATION_FAILED :: AppReplicationStatus
pattern $bAppReplicationStatus_DELTA_REPLICATION_FAILED :: AppReplicationStatus
$mAppReplicationStatus_DELTA_REPLICATION_FAILED :: forall r. AppReplicationStatus -> (Void# -> r) -> (Void# -> r) -> r
AppReplicationStatus_DELTA_REPLICATION_FAILED = AppReplicationStatus' "DELTA_REPLICATION_FAILED"

pattern AppReplicationStatus_DELTA_REPLICATION_IN_PROGRESS :: AppReplicationStatus
pattern $bAppReplicationStatus_DELTA_REPLICATION_IN_PROGRESS :: AppReplicationStatus
$mAppReplicationStatus_DELTA_REPLICATION_IN_PROGRESS :: forall r. AppReplicationStatus -> (Void# -> r) -> (Void# -> r) -> r
AppReplicationStatus_DELTA_REPLICATION_IN_PROGRESS = AppReplicationStatus' "DELTA_REPLICATION_IN_PROGRESS"

pattern AppReplicationStatus_PARTIALLY_REPLICATED :: AppReplicationStatus
pattern $bAppReplicationStatus_PARTIALLY_REPLICATED :: AppReplicationStatus
$mAppReplicationStatus_PARTIALLY_REPLICATED :: forall r. AppReplicationStatus -> (Void# -> r) -> (Void# -> r) -> r
AppReplicationStatus_PARTIALLY_REPLICATED = AppReplicationStatus' "PARTIALLY_REPLICATED"

pattern AppReplicationStatus_READY_FOR_CONFIGURATION :: AppReplicationStatus
pattern $bAppReplicationStatus_READY_FOR_CONFIGURATION :: AppReplicationStatus
$mAppReplicationStatus_READY_FOR_CONFIGURATION :: forall r. AppReplicationStatus -> (Void# -> r) -> (Void# -> r) -> r
AppReplicationStatus_READY_FOR_CONFIGURATION = AppReplicationStatus' "READY_FOR_CONFIGURATION"

pattern AppReplicationStatus_READY_FOR_REPLICATION :: AppReplicationStatus
pattern $bAppReplicationStatus_READY_FOR_REPLICATION :: AppReplicationStatus
$mAppReplicationStatus_READY_FOR_REPLICATION :: forall r. AppReplicationStatus -> (Void# -> r) -> (Void# -> r) -> r
AppReplicationStatus_READY_FOR_REPLICATION = AppReplicationStatus' "READY_FOR_REPLICATION"

pattern AppReplicationStatus_REPLICATED :: AppReplicationStatus
pattern $bAppReplicationStatus_REPLICATED :: AppReplicationStatus
$mAppReplicationStatus_REPLICATED :: forall r. AppReplicationStatus -> (Void# -> r) -> (Void# -> r) -> r
AppReplicationStatus_REPLICATED = AppReplicationStatus' "REPLICATED"

pattern AppReplicationStatus_REPLICATION_FAILED :: AppReplicationStatus
pattern $bAppReplicationStatus_REPLICATION_FAILED :: AppReplicationStatus
$mAppReplicationStatus_REPLICATION_FAILED :: forall r. AppReplicationStatus -> (Void# -> r) -> (Void# -> r) -> r
AppReplicationStatus_REPLICATION_FAILED = AppReplicationStatus' "REPLICATION_FAILED"

pattern AppReplicationStatus_REPLICATION_IN_PROGRESS :: AppReplicationStatus
pattern $bAppReplicationStatus_REPLICATION_IN_PROGRESS :: AppReplicationStatus
$mAppReplicationStatus_REPLICATION_IN_PROGRESS :: forall r. AppReplicationStatus -> (Void# -> r) -> (Void# -> r) -> r
AppReplicationStatus_REPLICATION_IN_PROGRESS = AppReplicationStatus' "REPLICATION_IN_PROGRESS"

pattern AppReplicationStatus_REPLICATION_PENDING :: AppReplicationStatus
pattern $bAppReplicationStatus_REPLICATION_PENDING :: AppReplicationStatus
$mAppReplicationStatus_REPLICATION_PENDING :: forall r. AppReplicationStatus -> (Void# -> r) -> (Void# -> r) -> r
AppReplicationStatus_REPLICATION_PENDING = AppReplicationStatus' "REPLICATION_PENDING"

pattern AppReplicationStatus_REPLICATION_STOPPED :: AppReplicationStatus
pattern $bAppReplicationStatus_REPLICATION_STOPPED :: AppReplicationStatus
$mAppReplicationStatus_REPLICATION_STOPPED :: forall r. AppReplicationStatus -> (Void# -> r) -> (Void# -> r) -> r
AppReplicationStatus_REPLICATION_STOPPED = AppReplicationStatus' "REPLICATION_STOPPED"

pattern AppReplicationStatus_REPLICATION_STOPPING :: AppReplicationStatus
pattern $bAppReplicationStatus_REPLICATION_STOPPING :: AppReplicationStatus
$mAppReplicationStatus_REPLICATION_STOPPING :: forall r. AppReplicationStatus -> (Void# -> r) -> (Void# -> r) -> r
AppReplicationStatus_REPLICATION_STOPPING = AppReplicationStatus' "REPLICATION_STOPPING"

pattern AppReplicationStatus_REPLICATION_STOP_FAILED :: AppReplicationStatus
pattern $bAppReplicationStatus_REPLICATION_STOP_FAILED :: AppReplicationStatus
$mAppReplicationStatus_REPLICATION_STOP_FAILED :: forall r. AppReplicationStatus -> (Void# -> r) -> (Void# -> r) -> r
AppReplicationStatus_REPLICATION_STOP_FAILED = AppReplicationStatus' "REPLICATION_STOP_FAILED"

pattern AppReplicationStatus_VALIDATION_IN_PROGRESS :: AppReplicationStatus
pattern $bAppReplicationStatus_VALIDATION_IN_PROGRESS :: AppReplicationStatus
$mAppReplicationStatus_VALIDATION_IN_PROGRESS :: forall r. AppReplicationStatus -> (Void# -> r) -> (Void# -> r) -> r
AppReplicationStatus_VALIDATION_IN_PROGRESS = AppReplicationStatus' "VALIDATION_IN_PROGRESS"

{-# COMPLETE
  AppReplicationStatus_CONFIGURATION_INVALID,
  AppReplicationStatus_CONFIGURATION_IN_PROGRESS,
  AppReplicationStatus_DELTA_REPLICATED,
  AppReplicationStatus_DELTA_REPLICATION_FAILED,
  AppReplicationStatus_DELTA_REPLICATION_IN_PROGRESS,
  AppReplicationStatus_PARTIALLY_REPLICATED,
  AppReplicationStatus_READY_FOR_CONFIGURATION,
  AppReplicationStatus_READY_FOR_REPLICATION,
  AppReplicationStatus_REPLICATED,
  AppReplicationStatus_REPLICATION_FAILED,
  AppReplicationStatus_REPLICATION_IN_PROGRESS,
  AppReplicationStatus_REPLICATION_PENDING,
  AppReplicationStatus_REPLICATION_STOPPED,
  AppReplicationStatus_REPLICATION_STOPPING,
  AppReplicationStatus_REPLICATION_STOP_FAILED,
  AppReplicationStatus_VALIDATION_IN_PROGRESS,
  AppReplicationStatus'
  #-}