{-# 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.DynamoDB.Types.PointInTimeRecoveryStatus
-- 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.DynamoDB.Types.PointInTimeRecoveryStatus
  ( PointInTimeRecoveryStatus
      ( ..,
        PointInTimeRecoveryStatus_DISABLED,
        PointInTimeRecoveryStatus_ENABLED
      ),
  )
where

import qualified Amazonka.Core as Core
import qualified Amazonka.Prelude as Prelude

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

pattern PointInTimeRecoveryStatus_DISABLED :: PointInTimeRecoveryStatus
pattern $bPointInTimeRecoveryStatus_DISABLED :: PointInTimeRecoveryStatus
$mPointInTimeRecoveryStatus_DISABLED :: forall r.
PointInTimeRecoveryStatus -> (Void# -> r) -> (Void# -> r) -> r
PointInTimeRecoveryStatus_DISABLED = PointInTimeRecoveryStatus' "DISABLED"

pattern PointInTimeRecoveryStatus_ENABLED :: PointInTimeRecoveryStatus
pattern $bPointInTimeRecoveryStatus_ENABLED :: PointInTimeRecoveryStatus
$mPointInTimeRecoveryStatus_ENABLED :: forall r.
PointInTimeRecoveryStatus -> (Void# -> r) -> (Void# -> r) -> r
PointInTimeRecoveryStatus_ENABLED = PointInTimeRecoveryStatus' "ENABLED"

{-# COMPLETE
  PointInTimeRecoveryStatus_DISABLED,
  PointInTimeRecoveryStatus_ENABLED,
  PointInTimeRecoveryStatus'
  #-}