{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DerivingStrategies #-}
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# LANGUAGE LambdaCase #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE PatternSynonyms #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
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.Prelude as Prelude
newtype RestoreJobStatus = RestoreJobStatus'
{ RestoreJobStatus -> Text
fromRestoreJobStatus ::
Core.Text
}
deriving stock
( Int -> RestoreJobStatus -> ShowS
[RestoreJobStatus] -> ShowS
RestoreJobStatus -> String
(Int -> RestoreJobStatus -> ShowS)
-> (RestoreJobStatus -> String)
-> ([RestoreJobStatus] -> ShowS)
-> Show RestoreJobStatus
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]
(Int -> ReadS RestoreJobStatus)
-> ReadS [RestoreJobStatus]
-> ReadPrec RestoreJobStatus
-> ReadPrec [RestoreJobStatus]
-> Read 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
(RestoreJobStatus -> RestoreJobStatus -> Bool)
-> (RestoreJobStatus -> RestoreJobStatus -> Bool)
-> Eq RestoreJobStatus
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
Eq RestoreJobStatus
-> (RestoreJobStatus -> RestoreJobStatus -> Ordering)
-> (RestoreJobStatus -> RestoreJobStatus -> Bool)
-> (RestoreJobStatus -> RestoreJobStatus -> Bool)
-> (RestoreJobStatus -> RestoreJobStatus -> Bool)
-> (RestoreJobStatus -> RestoreJobStatus -> Bool)
-> (RestoreJobStatus -> RestoreJobStatus -> RestoreJobStatus)
-> (RestoreJobStatus -> RestoreJobStatus -> RestoreJobStatus)
-> Ord 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
$cp1Ord :: Eq RestoreJobStatus
Prelude.Ord,
(forall x. RestoreJobStatus -> Rep RestoreJobStatus x)
-> (forall x. Rep RestoreJobStatus x -> RestoreJobStatus)
-> Generic RestoreJobStatus
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
( Int -> RestoreJobStatus -> Int
RestoreJobStatus -> Int
(Int -> RestoreJobStatus -> Int)
-> (RestoreJobStatus -> Int) -> Hashable RestoreJobStatus
forall 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 -> ()
(RestoreJobStatus -> ()) -> NFData RestoreJobStatus
forall a. (a -> ()) -> NFData a
rnf :: RestoreJobStatus -> ()
$crnf :: RestoreJobStatus -> ()
Prelude.NFData,
Text -> Either String RestoreJobStatus
(Text -> Either String RestoreJobStatus)
-> FromText RestoreJobStatus
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String RestoreJobStatus
$cfromText :: Text -> Either String RestoreJobStatus
Core.FromText,
RestoreJobStatus -> Text
(RestoreJobStatus -> Text) -> ToText RestoreJobStatus
forall a. (a -> Text) -> ToText a
toText :: RestoreJobStatus -> Text
$ctoText :: RestoreJobStatus -> Text
Core.ToText,
RestoreJobStatus -> ByteString
(RestoreJobStatus -> ByteString) -> ToByteString RestoreJobStatus
forall a. (a -> ByteString) -> ToByteString a
toBS :: RestoreJobStatus -> ByteString
$ctoBS :: RestoreJobStatus -> ByteString
Core.ToByteString,
RestoreJobStatus -> ByteStringBuilder
(RestoreJobStatus -> ByteStringBuilder) -> ToLog RestoreJobStatus
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: RestoreJobStatus -> ByteStringBuilder
$cbuild :: RestoreJobStatus -> ByteStringBuilder
Core.ToLog,
HeaderName -> RestoreJobStatus -> [Header]
(HeaderName -> RestoreJobStatus -> [Header])
-> ToHeader RestoreJobStatus
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> RestoreJobStatus -> [Header]
$ctoHeader :: HeaderName -> RestoreJobStatus -> [Header]
Core.ToHeader,
RestoreJobStatus -> QueryString
(RestoreJobStatus -> QueryString) -> ToQuery RestoreJobStatus
forall a. (a -> QueryString) -> ToQuery a
toQuery :: RestoreJobStatus -> QueryString
$ctoQuery :: RestoreJobStatus -> QueryString
Core.ToQuery,
Value -> Parser [RestoreJobStatus]
Value -> Parser RestoreJobStatus
(Value -> Parser RestoreJobStatus)
-> (Value -> Parser [RestoreJobStatus])
-> FromJSON 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
Core.FromJSON,
FromJSONKeyFunction [RestoreJobStatus]
FromJSONKeyFunction RestoreJobStatus
FromJSONKeyFunction RestoreJobStatus
-> FromJSONKeyFunction [RestoreJobStatus]
-> FromJSONKey RestoreJobStatus
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [RestoreJobStatus]
$cfromJSONKeyList :: FromJSONKeyFunction [RestoreJobStatus]
fromJSONKey :: FromJSONKeyFunction RestoreJobStatus
$cfromJSONKey :: FromJSONKeyFunction RestoreJobStatus
Core.FromJSONKey,
[RestoreJobStatus] -> Encoding
[RestoreJobStatus] -> Value
RestoreJobStatus -> Encoding
RestoreJobStatus -> Value
(RestoreJobStatus -> Value)
-> (RestoreJobStatus -> Encoding)
-> ([RestoreJobStatus] -> Value)
-> ([RestoreJobStatus] -> Encoding)
-> ToJSON RestoreJobStatus
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
Core.ToJSON,
ToJSONKeyFunction [RestoreJobStatus]
ToJSONKeyFunction RestoreJobStatus
ToJSONKeyFunction RestoreJobStatus
-> ToJSONKeyFunction [RestoreJobStatus]
-> ToJSONKey RestoreJobStatus
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [RestoreJobStatus]
$ctoJSONKeyList :: ToJSONKeyFunction [RestoreJobStatus]
toJSONKey :: ToJSONKeyFunction RestoreJobStatus
$ctoJSONKey :: ToJSONKeyFunction RestoreJobStatus
Core.ToJSONKey,
[Node] -> Either String RestoreJobStatus
([Node] -> Either String RestoreJobStatus)
-> FromXML RestoreJobStatus
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String RestoreJobStatus
$cparseXML :: [Node] -> Either String RestoreJobStatus
Core.FromXML,
RestoreJobStatus -> XML
(RestoreJobStatus -> XML) -> ToXML RestoreJobStatus
forall a. (a -> XML) -> ToXML a
toXML :: RestoreJobStatus -> XML
$ctoXML :: RestoreJobStatus -> XML
Core.ToXML
)
pattern RestoreJobStatus_ABORTED :: RestoreJobStatus
pattern $bRestoreJobStatus_ABORTED :: RestoreJobStatus
$mRestoreJobStatus_ABORTED :: forall r. RestoreJobStatus -> (Void# -> r) -> (Void# -> r) -> r
RestoreJobStatus_ABORTED = RestoreJobStatus' "ABORTED"
pattern RestoreJobStatus_COMPLETED :: RestoreJobStatus
pattern $bRestoreJobStatus_COMPLETED :: RestoreJobStatus
$mRestoreJobStatus_COMPLETED :: forall r. RestoreJobStatus -> (Void# -> r) -> (Void# -> r) -> r
RestoreJobStatus_COMPLETED = RestoreJobStatus' "COMPLETED"
pattern RestoreJobStatus_FAILED :: RestoreJobStatus
pattern $bRestoreJobStatus_FAILED :: RestoreJobStatus
$mRestoreJobStatus_FAILED :: forall r. RestoreJobStatus -> (Void# -> r) -> (Void# -> r) -> r
RestoreJobStatus_FAILED = RestoreJobStatus' "FAILED"
pattern RestoreJobStatus_PENDING :: RestoreJobStatus
pattern $bRestoreJobStatus_PENDING :: RestoreJobStatus
$mRestoreJobStatus_PENDING :: forall r. RestoreJobStatus -> (Void# -> r) -> (Void# -> r) -> r
RestoreJobStatus_PENDING = RestoreJobStatus' "PENDING"
pattern RestoreJobStatus_RUNNING :: RestoreJobStatus
pattern $bRestoreJobStatus_RUNNING :: RestoreJobStatus
$mRestoreJobStatus_RUNNING :: forall r. RestoreJobStatus -> (Void# -> r) -> (Void# -> r) -> r
RestoreJobStatus_RUNNING = RestoreJobStatus' "RUNNING"
{-# COMPLETE
RestoreJobStatus_ABORTED,
RestoreJobStatus_COMPLETED,
RestoreJobStatus_FAILED,
RestoreJobStatus_PENDING,
RestoreJobStatus_RUNNING,
RestoreJobStatus'
#-}