{-# 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.BackupJobState
( BackupJobState
( ..,
BackupJobState_ABORTED,
BackupJobState_ABORTING,
BackupJobState_COMPLETED,
BackupJobState_CREATED,
BackupJobState_EXPIRED,
BackupJobState_FAILED,
BackupJobState_PENDING,
BackupJobState_RUNNING
),
)
where
import qualified Amazonka.Core as Core
import qualified Amazonka.Prelude as Prelude
newtype BackupJobState = BackupJobState'
{ BackupJobState -> Text
fromBackupJobState ::
Core.Text
}
deriving stock
( Int -> BackupJobState -> ShowS
[BackupJobState] -> ShowS
BackupJobState -> String
(Int -> BackupJobState -> ShowS)
-> (BackupJobState -> String)
-> ([BackupJobState] -> ShowS)
-> Show BackupJobState
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [BackupJobState] -> ShowS
$cshowList :: [BackupJobState] -> ShowS
show :: BackupJobState -> String
$cshow :: BackupJobState -> String
showsPrec :: Int -> BackupJobState -> ShowS
$cshowsPrec :: Int -> BackupJobState -> ShowS
Prelude.Show,
ReadPrec [BackupJobState]
ReadPrec BackupJobState
Int -> ReadS BackupJobState
ReadS [BackupJobState]
(Int -> ReadS BackupJobState)
-> ReadS [BackupJobState]
-> ReadPrec BackupJobState
-> ReadPrec [BackupJobState]
-> Read BackupJobState
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [BackupJobState]
$creadListPrec :: ReadPrec [BackupJobState]
readPrec :: ReadPrec BackupJobState
$creadPrec :: ReadPrec BackupJobState
readList :: ReadS [BackupJobState]
$creadList :: ReadS [BackupJobState]
readsPrec :: Int -> ReadS BackupJobState
$creadsPrec :: Int -> ReadS BackupJobState
Prelude.Read,
BackupJobState -> BackupJobState -> Bool
(BackupJobState -> BackupJobState -> Bool)
-> (BackupJobState -> BackupJobState -> Bool) -> Eq BackupJobState
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: BackupJobState -> BackupJobState -> Bool
$c/= :: BackupJobState -> BackupJobState -> Bool
== :: BackupJobState -> BackupJobState -> Bool
$c== :: BackupJobState -> BackupJobState -> Bool
Prelude.Eq,
Eq BackupJobState
Eq BackupJobState
-> (BackupJobState -> BackupJobState -> Ordering)
-> (BackupJobState -> BackupJobState -> Bool)
-> (BackupJobState -> BackupJobState -> Bool)
-> (BackupJobState -> BackupJobState -> Bool)
-> (BackupJobState -> BackupJobState -> Bool)
-> (BackupJobState -> BackupJobState -> BackupJobState)
-> (BackupJobState -> BackupJobState -> BackupJobState)
-> Ord BackupJobState
BackupJobState -> BackupJobState -> Bool
BackupJobState -> BackupJobState -> Ordering
BackupJobState -> BackupJobState -> BackupJobState
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 :: BackupJobState -> BackupJobState -> BackupJobState
$cmin :: BackupJobState -> BackupJobState -> BackupJobState
max :: BackupJobState -> BackupJobState -> BackupJobState
$cmax :: BackupJobState -> BackupJobState -> BackupJobState
>= :: BackupJobState -> BackupJobState -> Bool
$c>= :: BackupJobState -> BackupJobState -> Bool
> :: BackupJobState -> BackupJobState -> Bool
$c> :: BackupJobState -> BackupJobState -> Bool
<= :: BackupJobState -> BackupJobState -> Bool
$c<= :: BackupJobState -> BackupJobState -> Bool
< :: BackupJobState -> BackupJobState -> Bool
$c< :: BackupJobState -> BackupJobState -> Bool
compare :: BackupJobState -> BackupJobState -> Ordering
$ccompare :: BackupJobState -> BackupJobState -> Ordering
$cp1Ord :: Eq BackupJobState
Prelude.Ord,
(forall x. BackupJobState -> Rep BackupJobState x)
-> (forall x. Rep BackupJobState x -> BackupJobState)
-> Generic BackupJobState
forall x. Rep BackupJobState x -> BackupJobState
forall x. BackupJobState -> Rep BackupJobState x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep BackupJobState x -> BackupJobState
$cfrom :: forall x. BackupJobState -> Rep BackupJobState x
Prelude.Generic
)
deriving newtype
( Int -> BackupJobState -> Int
BackupJobState -> Int
(Int -> BackupJobState -> Int)
-> (BackupJobState -> Int) -> Hashable BackupJobState
forall a. (Int -> a -> Int) -> (a -> Int) -> Hashable a
hash :: BackupJobState -> Int
$chash :: BackupJobState -> Int
hashWithSalt :: Int -> BackupJobState -> Int
$chashWithSalt :: Int -> BackupJobState -> Int
Prelude.Hashable,
BackupJobState -> ()
(BackupJobState -> ()) -> NFData BackupJobState
forall a. (a -> ()) -> NFData a
rnf :: BackupJobState -> ()
$crnf :: BackupJobState -> ()
Prelude.NFData,
Text -> Either String BackupJobState
(Text -> Either String BackupJobState) -> FromText BackupJobState
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String BackupJobState
$cfromText :: Text -> Either String BackupJobState
Core.FromText,
BackupJobState -> Text
(BackupJobState -> Text) -> ToText BackupJobState
forall a. (a -> Text) -> ToText a
toText :: BackupJobState -> Text
$ctoText :: BackupJobState -> Text
Core.ToText,
BackupJobState -> ByteString
(BackupJobState -> ByteString) -> ToByteString BackupJobState
forall a. (a -> ByteString) -> ToByteString a
toBS :: BackupJobState -> ByteString
$ctoBS :: BackupJobState -> ByteString
Core.ToByteString,
BackupJobState -> ByteStringBuilder
(BackupJobState -> ByteStringBuilder) -> ToLog BackupJobState
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: BackupJobState -> ByteStringBuilder
$cbuild :: BackupJobState -> ByteStringBuilder
Core.ToLog,
HeaderName -> BackupJobState -> [Header]
(HeaderName -> BackupJobState -> [Header])
-> ToHeader BackupJobState
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> BackupJobState -> [Header]
$ctoHeader :: HeaderName -> BackupJobState -> [Header]
Core.ToHeader,
BackupJobState -> QueryString
(BackupJobState -> QueryString) -> ToQuery BackupJobState
forall a. (a -> QueryString) -> ToQuery a
toQuery :: BackupJobState -> QueryString
$ctoQuery :: BackupJobState -> QueryString
Core.ToQuery,
Value -> Parser [BackupJobState]
Value -> Parser BackupJobState
(Value -> Parser BackupJobState)
-> (Value -> Parser [BackupJobState]) -> FromJSON BackupJobState
forall a.
(Value -> Parser a) -> (Value -> Parser [a]) -> FromJSON a
parseJSONList :: Value -> Parser [BackupJobState]
$cparseJSONList :: Value -> Parser [BackupJobState]
parseJSON :: Value -> Parser BackupJobState
$cparseJSON :: Value -> Parser BackupJobState
Core.FromJSON,
FromJSONKeyFunction [BackupJobState]
FromJSONKeyFunction BackupJobState
FromJSONKeyFunction BackupJobState
-> FromJSONKeyFunction [BackupJobState]
-> FromJSONKey BackupJobState
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [BackupJobState]
$cfromJSONKeyList :: FromJSONKeyFunction [BackupJobState]
fromJSONKey :: FromJSONKeyFunction BackupJobState
$cfromJSONKey :: FromJSONKeyFunction BackupJobState
Core.FromJSONKey,
[BackupJobState] -> Encoding
[BackupJobState] -> Value
BackupJobState -> Encoding
BackupJobState -> Value
(BackupJobState -> Value)
-> (BackupJobState -> Encoding)
-> ([BackupJobState] -> Value)
-> ([BackupJobState] -> Encoding)
-> ToJSON BackupJobState
forall a.
(a -> Value)
-> (a -> Encoding)
-> ([a] -> Value)
-> ([a] -> Encoding)
-> ToJSON a
toEncodingList :: [BackupJobState] -> Encoding
$ctoEncodingList :: [BackupJobState] -> Encoding
toJSONList :: [BackupJobState] -> Value
$ctoJSONList :: [BackupJobState] -> Value
toEncoding :: BackupJobState -> Encoding
$ctoEncoding :: BackupJobState -> Encoding
toJSON :: BackupJobState -> Value
$ctoJSON :: BackupJobState -> Value
Core.ToJSON,
ToJSONKeyFunction [BackupJobState]
ToJSONKeyFunction BackupJobState
ToJSONKeyFunction BackupJobState
-> ToJSONKeyFunction [BackupJobState] -> ToJSONKey BackupJobState
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [BackupJobState]
$ctoJSONKeyList :: ToJSONKeyFunction [BackupJobState]
toJSONKey :: ToJSONKeyFunction BackupJobState
$ctoJSONKey :: ToJSONKeyFunction BackupJobState
Core.ToJSONKey,
[Node] -> Either String BackupJobState
([Node] -> Either String BackupJobState) -> FromXML BackupJobState
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String BackupJobState
$cparseXML :: [Node] -> Either String BackupJobState
Core.FromXML,
BackupJobState -> XML
(BackupJobState -> XML) -> ToXML BackupJobState
forall a. (a -> XML) -> ToXML a
toXML :: BackupJobState -> XML
$ctoXML :: BackupJobState -> XML
Core.ToXML
)
pattern BackupJobState_ABORTED :: BackupJobState
pattern $bBackupJobState_ABORTED :: BackupJobState
$mBackupJobState_ABORTED :: forall r. BackupJobState -> (Void# -> r) -> (Void# -> r) -> r
BackupJobState_ABORTED = BackupJobState' "ABORTED"
pattern BackupJobState_ABORTING :: BackupJobState
pattern $bBackupJobState_ABORTING :: BackupJobState
$mBackupJobState_ABORTING :: forall r. BackupJobState -> (Void# -> r) -> (Void# -> r) -> r
BackupJobState_ABORTING = BackupJobState' "ABORTING"
pattern BackupJobState_COMPLETED :: BackupJobState
pattern $bBackupJobState_COMPLETED :: BackupJobState
$mBackupJobState_COMPLETED :: forall r. BackupJobState -> (Void# -> r) -> (Void# -> r) -> r
BackupJobState_COMPLETED = BackupJobState' "COMPLETED"
pattern BackupJobState_CREATED :: BackupJobState
pattern $bBackupJobState_CREATED :: BackupJobState
$mBackupJobState_CREATED :: forall r. BackupJobState -> (Void# -> r) -> (Void# -> r) -> r
BackupJobState_CREATED = BackupJobState' "CREATED"
pattern BackupJobState_EXPIRED :: BackupJobState
pattern $bBackupJobState_EXPIRED :: BackupJobState
$mBackupJobState_EXPIRED :: forall r. BackupJobState -> (Void# -> r) -> (Void# -> r) -> r
BackupJobState_EXPIRED = BackupJobState' "EXPIRED"
pattern BackupJobState_FAILED :: BackupJobState
pattern $bBackupJobState_FAILED :: BackupJobState
$mBackupJobState_FAILED :: forall r. BackupJobState -> (Void# -> r) -> (Void# -> r) -> r
BackupJobState_FAILED = BackupJobState' "FAILED"
pattern BackupJobState_PENDING :: BackupJobState
pattern $bBackupJobState_PENDING :: BackupJobState
$mBackupJobState_PENDING :: forall r. BackupJobState -> (Void# -> r) -> (Void# -> r) -> r
BackupJobState_PENDING = BackupJobState' "PENDING"
pattern BackupJobState_RUNNING :: BackupJobState
pattern $bBackupJobState_RUNNING :: BackupJobState
$mBackupJobState_RUNNING :: forall r. BackupJobState -> (Void# -> r) -> (Void# -> r) -> r
BackupJobState_RUNNING = BackupJobState' "RUNNING"
{-# COMPLETE
BackupJobState_ABORTED,
BackupJobState_ABORTING,
BackupJobState_COMPLETED,
BackupJobState_CREATED,
BackupJobState_EXPIRED,
BackupJobState_FAILED,
BackupJobState_PENDING,
BackupJobState_RUNNING,
BackupJobState'
#-}