{-# 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.MGN.Types.DataReplicationInitiationStepStatus
-- 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.MGN.Types.DataReplicationInitiationStepStatus
  ( DataReplicationInitiationStepStatus
      ( ..,
        DataReplicationInitiationStepStatus_FAILED,
        DataReplicationInitiationStepStatus_IN_PROGRESS,
        DataReplicationInitiationStepStatus_NOT_STARTED,
        DataReplicationInitiationStepStatus_SKIPPED,
        DataReplicationInitiationStepStatus_SUCCEEDED
      ),
  )
where

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

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

pattern DataReplicationInitiationStepStatus_FAILED :: DataReplicationInitiationStepStatus
pattern $bDataReplicationInitiationStepStatus_FAILED :: DataReplicationInitiationStepStatus
$mDataReplicationInitiationStepStatus_FAILED :: forall r.
DataReplicationInitiationStepStatus
-> (Void# -> r) -> (Void# -> r) -> r
DataReplicationInitiationStepStatus_FAILED = DataReplicationInitiationStepStatus' "FAILED"

pattern DataReplicationInitiationStepStatus_IN_PROGRESS :: DataReplicationInitiationStepStatus
pattern $bDataReplicationInitiationStepStatus_IN_PROGRESS :: DataReplicationInitiationStepStatus
$mDataReplicationInitiationStepStatus_IN_PROGRESS :: forall r.
DataReplicationInitiationStepStatus
-> (Void# -> r) -> (Void# -> r) -> r
DataReplicationInitiationStepStatus_IN_PROGRESS = DataReplicationInitiationStepStatus' "IN_PROGRESS"

pattern DataReplicationInitiationStepStatus_NOT_STARTED :: DataReplicationInitiationStepStatus
pattern $bDataReplicationInitiationStepStatus_NOT_STARTED :: DataReplicationInitiationStepStatus
$mDataReplicationInitiationStepStatus_NOT_STARTED :: forall r.
DataReplicationInitiationStepStatus
-> (Void# -> r) -> (Void# -> r) -> r
DataReplicationInitiationStepStatus_NOT_STARTED = DataReplicationInitiationStepStatus' "NOT_STARTED"

pattern DataReplicationInitiationStepStatus_SKIPPED :: DataReplicationInitiationStepStatus
pattern $bDataReplicationInitiationStepStatus_SKIPPED :: DataReplicationInitiationStepStatus
$mDataReplicationInitiationStepStatus_SKIPPED :: forall r.
DataReplicationInitiationStepStatus
-> (Void# -> r) -> (Void# -> r) -> r
DataReplicationInitiationStepStatus_SKIPPED = DataReplicationInitiationStepStatus' "SKIPPED"

pattern DataReplicationInitiationStepStatus_SUCCEEDED :: DataReplicationInitiationStepStatus
pattern $bDataReplicationInitiationStepStatus_SUCCEEDED :: DataReplicationInitiationStepStatus
$mDataReplicationInitiationStepStatus_SUCCEEDED :: forall r.
DataReplicationInitiationStepStatus
-> (Void# -> r) -> (Void# -> r) -> r
DataReplicationInitiationStepStatus_SUCCEEDED = DataReplicationInitiationStepStatus' "SUCCEEDED"

{-# COMPLETE
  DataReplicationInitiationStepStatus_FAILED,
  DataReplicationInitiationStepStatus_IN_PROGRESS,
  DataReplicationInitiationStepStatus_NOT_STARTED,
  DataReplicationInitiationStepStatus_SKIPPED,
  DataReplicationInitiationStepStatus_SUCCEEDED,
  DataReplicationInitiationStepStatus'
  #-}