{-# 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.ExistingObjectReplicationStatus
-- 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.ExistingObjectReplicationStatus
  ( ExistingObjectReplicationStatus
      ( ..,
        ExistingObjectReplicationStatus_Disabled,
        ExistingObjectReplicationStatus_Enabled
      ),
  )
where

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

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

pattern ExistingObjectReplicationStatus_Disabled :: ExistingObjectReplicationStatus
pattern $bExistingObjectReplicationStatus_Disabled :: ExistingObjectReplicationStatus
$mExistingObjectReplicationStatus_Disabled :: forall r.
ExistingObjectReplicationStatus
-> (Void# -> r) -> (Void# -> r) -> r
ExistingObjectReplicationStatus_Disabled = ExistingObjectReplicationStatus' "Disabled"

pattern ExistingObjectReplicationStatus_Enabled :: ExistingObjectReplicationStatus
pattern $bExistingObjectReplicationStatus_Enabled :: ExistingObjectReplicationStatus
$mExistingObjectReplicationStatus_Enabled :: forall r.
ExistingObjectReplicationStatus
-> (Void# -> r) -> (Void# -> r) -> r
ExistingObjectReplicationStatus_Enabled = ExistingObjectReplicationStatus' "Enabled"

{-# COMPLETE
  ExistingObjectReplicationStatus_Disabled,
  ExistingObjectReplicationStatus_Enabled,
  ExistingObjectReplicationStatus'
  #-}