{-# 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.RestoreJobStatus
-- 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.RestoreJobStatus
  ( RestoreJobStatus
      ( ..,
        RestoreJobStatus_ABORTED,
        RestoreJobStatus_COMPLETED,
        RestoreJobStatus_FAILED,
        RestoreJobStatus_PENDING,
        RestoreJobStatus_RUNNING
      ),
  )
where

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

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

pattern RestoreJobStatus_ABORTED :: RestoreJobStatus
pattern $bRestoreJobStatus_ABORTED :: RestoreJobStatus
$mRestoreJobStatus_ABORTED :: forall {r}. RestoreJobStatus -> ((# #) -> r) -> ((# #) -> r) -> r
RestoreJobStatus_ABORTED = RestoreJobStatus' "ABORTED"

pattern RestoreJobStatus_COMPLETED :: RestoreJobStatus
pattern $bRestoreJobStatus_COMPLETED :: RestoreJobStatus
$mRestoreJobStatus_COMPLETED :: forall {r}. RestoreJobStatus -> ((# #) -> r) -> ((# #) -> r) -> r
RestoreJobStatus_COMPLETED = RestoreJobStatus' "COMPLETED"

pattern RestoreJobStatus_FAILED :: RestoreJobStatus
pattern $bRestoreJobStatus_FAILED :: RestoreJobStatus
$mRestoreJobStatus_FAILED :: forall {r}. RestoreJobStatus -> ((# #) -> r) -> ((# #) -> r) -> r
RestoreJobStatus_FAILED = RestoreJobStatus' "FAILED"

pattern RestoreJobStatus_PENDING :: RestoreJobStatus
pattern $bRestoreJobStatus_PENDING :: RestoreJobStatus
$mRestoreJobStatus_PENDING :: forall {r}. RestoreJobStatus -> ((# #) -> r) -> ((# #) -> r) -> r
RestoreJobStatus_PENDING = RestoreJobStatus' "PENDING"

pattern RestoreJobStatus_RUNNING :: RestoreJobStatus
pattern $bRestoreJobStatus_RUNNING :: RestoreJobStatus
$mRestoreJobStatus_RUNNING :: forall {r}. RestoreJobStatus -> ((# #) -> r) -> ((# #) -> r) -> r
RestoreJobStatus_RUNNING = RestoreJobStatus' "RUNNING"

{-# COMPLETE
  RestoreJobStatus_ABORTED,
  RestoreJobStatus_COMPLETED,
  RestoreJobStatus_FAILED,
  RestoreJobStatus_PENDING,
  RestoreJobStatus_RUNNING,
  RestoreJobStatus'
  #-}