{-# 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.ReplicationTimeStatus
-- 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.ReplicationTimeStatus
  ( ReplicationTimeStatus
      ( ..,
        ReplicationTimeStatus_Disabled,
        ReplicationTimeStatus_Enabled
      ),
  )
where

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

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

pattern ReplicationTimeStatus_Disabled :: ReplicationTimeStatus
pattern $bReplicationTimeStatus_Disabled :: ReplicationTimeStatus
$mReplicationTimeStatus_Disabled :: forall r.
ReplicationTimeStatus -> (Void# -> r) -> (Void# -> r) -> r
ReplicationTimeStatus_Disabled = ReplicationTimeStatus' "Disabled"

pattern ReplicationTimeStatus_Enabled :: ReplicationTimeStatus
pattern $bReplicationTimeStatus_Enabled :: ReplicationTimeStatus
$mReplicationTimeStatus_Enabled :: forall r.
ReplicationTimeStatus -> (Void# -> r) -> (Void# -> r) -> r
ReplicationTimeStatus_Enabled = ReplicationTimeStatus' "Enabled"

{-# COMPLETE
  ReplicationTimeStatus_Disabled,
  ReplicationTimeStatus_Enabled,
  ReplicationTimeStatus'
  #-}