{-# 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.DeleteMarkerReplicationStatus
-- 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.DeleteMarkerReplicationStatus
  ( DeleteMarkerReplicationStatus
      ( ..,
        DeleteMarkerReplicationStatus_Disabled,
        DeleteMarkerReplicationStatus_Enabled
      ),
  )
where

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

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

pattern DeleteMarkerReplicationStatus_Disabled :: DeleteMarkerReplicationStatus
pattern $bDeleteMarkerReplicationStatus_Disabled :: DeleteMarkerReplicationStatus
$mDeleteMarkerReplicationStatus_Disabled :: forall r.
DeleteMarkerReplicationStatus -> (Void# -> r) -> (Void# -> r) -> r
DeleteMarkerReplicationStatus_Disabled = DeleteMarkerReplicationStatus' "Disabled"

pattern DeleteMarkerReplicationStatus_Enabled :: DeleteMarkerReplicationStatus
pattern $bDeleteMarkerReplicationStatus_Enabled :: DeleteMarkerReplicationStatus
$mDeleteMarkerReplicationStatus_Enabled :: forall r.
DeleteMarkerReplicationStatus -> (Void# -> r) -> (Void# -> r) -> r
DeleteMarkerReplicationStatus_Enabled = DeleteMarkerReplicationStatus' "Enabled"

{-# COMPLETE
  DeleteMarkerReplicationStatus_Disabled,
  DeleteMarkerReplicationStatus_Enabled,
  DeleteMarkerReplicationStatus'
  #-}