{-# 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-2023 Brendan Hay
-- License     : Mozilla Public License, v. 2.0.
-- Maintainer  : Brendan Hay
-- 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.Data as Data
import qualified Amazonka.Prelude as Prelude

newtype RecoveryPointStatus = RecoveryPointStatus'
  { RecoveryPointStatus -> Text
fromRecoveryPointStatus ::
      Data.Text
  }
  deriving stock
    ( Int -> RecoveryPointStatus -> ShowS
[RecoveryPointStatus] -> ShowS
RecoveryPointStatus -> String
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]
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
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
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
Prelude.Ord,
      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
    ( Eq RecoveryPointStatus
Int -> RecoveryPointStatus -> Int
RecoveryPointStatus -> Int
forall a. Eq 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 -> ()
forall a. (a -> ()) -> NFData a
rnf :: RecoveryPointStatus -> ()
$crnf :: RecoveryPointStatus -> ()
Prelude.NFData,
      Text -> Either String RecoveryPointStatus
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String RecoveryPointStatus
$cfromText :: Text -> Either String RecoveryPointStatus
Data.FromText,
      RecoveryPointStatus -> Text
forall a. (a -> Text) -> ToText a
toText :: RecoveryPointStatus -> Text
$ctoText :: RecoveryPointStatus -> Text
Data.ToText,
      RecoveryPointStatus -> ByteString
forall a. (a -> ByteString) -> ToByteString a
toBS :: RecoveryPointStatus -> ByteString
$ctoBS :: RecoveryPointStatus -> ByteString
Data.ToByteString,
      RecoveryPointStatus -> ByteStringBuilder
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: RecoveryPointStatus -> ByteStringBuilder
$cbuild :: RecoveryPointStatus -> ByteStringBuilder
Data.ToLog,
      HeaderName -> RecoveryPointStatus -> [Header]
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> RecoveryPointStatus -> [Header]
$ctoHeader :: HeaderName -> RecoveryPointStatus -> [Header]
Data.ToHeader,
      RecoveryPointStatus -> QueryString
forall a. (a -> QueryString) -> ToQuery a
toQuery :: RecoveryPointStatus -> QueryString
$ctoQuery :: RecoveryPointStatus -> QueryString
Data.ToQuery,
      Value -> Parser [RecoveryPointStatus]
Value -> Parser 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
Data.FromJSON,
      FromJSONKeyFunction [RecoveryPointStatus]
FromJSONKeyFunction RecoveryPointStatus
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [RecoveryPointStatus]
$cfromJSONKeyList :: FromJSONKeyFunction [RecoveryPointStatus]
fromJSONKey :: FromJSONKeyFunction RecoveryPointStatus
$cfromJSONKey :: FromJSONKeyFunction RecoveryPointStatus
Data.FromJSONKey,
      [RecoveryPointStatus] -> Encoding
[RecoveryPointStatus] -> Value
RecoveryPointStatus -> Encoding
RecoveryPointStatus -> Value
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
Data.ToJSON,
      ToJSONKeyFunction [RecoveryPointStatus]
ToJSONKeyFunction RecoveryPointStatus
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [RecoveryPointStatus]
$ctoJSONKeyList :: ToJSONKeyFunction [RecoveryPointStatus]
toJSONKey :: ToJSONKeyFunction RecoveryPointStatus
$ctoJSONKey :: ToJSONKeyFunction RecoveryPointStatus
Data.ToJSONKey,
      [Node] -> Either String RecoveryPointStatus
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String RecoveryPointStatus
$cparseXML :: [Node] -> Either String RecoveryPointStatus
Data.FromXML,
      RecoveryPointStatus -> XML
forall a. (a -> XML) -> ToXML a
toXML :: RecoveryPointStatus -> XML
$ctoXML :: RecoveryPointStatus -> XML
Data.ToXML
    )

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

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

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

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

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