{-# 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.Backup.Types.RecoveryPointStatus
-- 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.Backup.Types.RecoveryPointStatus
  ( RecoveryPointStatus
      ( ..,
        RecoveryPointStatus_COMPLETED,
        RecoveryPointStatus_DELETING,
        RecoveryPointStatus_EXPIRED,
        RecoveryPointStatus_PARTIAL
      ),
  )
where

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

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

pattern RecoveryPointStatus_COMPLETED :: RecoveryPointStatus
pattern $bRecoveryPointStatus_COMPLETED :: RecoveryPointStatus
$mRecoveryPointStatus_COMPLETED :: forall r. RecoveryPointStatus -> (Void# -> r) -> (Void# -> r) -> r
RecoveryPointStatus_COMPLETED = RecoveryPointStatus' "COMPLETED"

pattern RecoveryPointStatus_DELETING :: RecoveryPointStatus
pattern $bRecoveryPointStatus_DELETING :: RecoveryPointStatus
$mRecoveryPointStatus_DELETING :: forall r. RecoveryPointStatus -> (Void# -> r) -> (Void# -> r) -> r
RecoveryPointStatus_DELETING = RecoveryPointStatus' "DELETING"

pattern RecoveryPointStatus_EXPIRED :: RecoveryPointStatus
pattern $bRecoveryPointStatus_EXPIRED :: RecoveryPointStatus
$mRecoveryPointStatus_EXPIRED :: forall r. RecoveryPointStatus -> (Void# -> r) -> (Void# -> r) -> r
RecoveryPointStatus_EXPIRED = RecoveryPointStatus' "EXPIRED"

pattern RecoveryPointStatus_PARTIAL :: RecoveryPointStatus
pattern $bRecoveryPointStatus_PARTIAL :: RecoveryPointStatus
$mRecoveryPointStatus_PARTIAL :: forall r. RecoveryPointStatus -> (Void# -> r) -> (Void# -> r) -> r
RecoveryPointStatus_PARTIAL = RecoveryPointStatus' "PARTIAL"

{-# COMPLETE
  RecoveryPointStatus_COMPLETED,
  RecoveryPointStatus_DELETING,
  RecoveryPointStatus_EXPIRED,
  RecoveryPointStatus_PARTIAL,
  RecoveryPointStatus'
  #-}