{-# 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.ReplicationRuleStatus
-- 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.ReplicationRuleStatus
  ( ReplicationRuleStatus
      ( ..,
        ReplicationRuleStatus_Disabled,
        ReplicationRuleStatus_Enabled
      ),
  )
where

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

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

pattern ReplicationRuleStatus_Disabled :: ReplicationRuleStatus
pattern $bReplicationRuleStatus_Disabled :: ReplicationRuleStatus
$mReplicationRuleStatus_Disabled :: forall r.
ReplicationRuleStatus -> (Void# -> r) -> (Void# -> r) -> r
ReplicationRuleStatus_Disabled = ReplicationRuleStatus' "Disabled"

pattern ReplicationRuleStatus_Enabled :: ReplicationRuleStatus
pattern $bReplicationRuleStatus_Enabled :: ReplicationRuleStatus
$mReplicationRuleStatus_Enabled :: forall r.
ReplicationRuleStatus -> (Void# -> r) -> (Void# -> r) -> r
ReplicationRuleStatus_Enabled = ReplicationRuleStatus' "Enabled"

{-# COMPLETE
  ReplicationRuleStatus_Disabled,
  ReplicationRuleStatus_Enabled,
  ReplicationRuleStatus'
  #-}