{-# 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.S3.Types.ReplicaModificationsStatus
-- 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.S3.Types.ReplicaModificationsStatus
  ( ReplicaModificationsStatus
      ( ..,
        ReplicaModificationsStatus_Disabled,
        ReplicaModificationsStatus_Enabled
      ),
  )
where

import qualified Amazonka.Core as Core
import qualified Amazonka.Prelude as Prelude
import Amazonka.S3.Internal

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

pattern ReplicaModificationsStatus_Disabled :: ReplicaModificationsStatus
pattern $bReplicaModificationsStatus_Disabled :: ReplicaModificationsStatus
$mReplicaModificationsStatus_Disabled :: forall r.
ReplicaModificationsStatus -> (Void# -> r) -> (Void# -> r) -> r
ReplicaModificationsStatus_Disabled = ReplicaModificationsStatus' "Disabled"

pattern ReplicaModificationsStatus_Enabled :: ReplicaModificationsStatus
pattern $bReplicaModificationsStatus_Enabled :: ReplicaModificationsStatus
$mReplicaModificationsStatus_Enabled :: forall r.
ReplicaModificationsStatus -> (Void# -> r) -> (Void# -> r) -> r
ReplicaModificationsStatus_Enabled = ReplicaModificationsStatus' "Enabled"

{-# COMPLETE
  ReplicaModificationsStatus_Disabled,
  ReplicaModificationsStatus_Enabled,
  ReplicaModificationsStatus'
  #-}