{-# 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.CopyJobState
( CopyJobState
( ..,
CopyJobState_COMPLETED,
CopyJobState_CREATED,
CopyJobState_FAILED,
CopyJobState_PARTIAL,
CopyJobState_RUNNING
),
)
where
import qualified Amazonka.Core as Core
import qualified Amazonka.Data as Data
import qualified Amazonka.Prelude as Prelude
newtype CopyJobState = CopyJobState'
{ CopyJobState -> Text
fromCopyJobState ::
Data.Text
}
deriving stock
( Int -> CopyJobState -> ShowS
[CopyJobState] -> ShowS
CopyJobState -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [CopyJobState] -> ShowS
$cshowList :: [CopyJobState] -> ShowS
show :: CopyJobState -> String
$cshow :: CopyJobState -> String
showsPrec :: Int -> CopyJobState -> ShowS
$cshowsPrec :: Int -> CopyJobState -> ShowS
Prelude.Show,
ReadPrec [CopyJobState]
ReadPrec CopyJobState
Int -> ReadS CopyJobState
ReadS [CopyJobState]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [CopyJobState]
$creadListPrec :: ReadPrec [CopyJobState]
readPrec :: ReadPrec CopyJobState
$creadPrec :: ReadPrec CopyJobState
readList :: ReadS [CopyJobState]
$creadList :: ReadS [CopyJobState]
readsPrec :: Int -> ReadS CopyJobState
$creadsPrec :: Int -> ReadS CopyJobState
Prelude.Read,
CopyJobState -> CopyJobState -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: CopyJobState -> CopyJobState -> Bool
$c/= :: CopyJobState -> CopyJobState -> Bool
== :: CopyJobState -> CopyJobState -> Bool
$c== :: CopyJobState -> CopyJobState -> Bool
Prelude.Eq,
Eq CopyJobState
CopyJobState -> CopyJobState -> Bool
CopyJobState -> CopyJobState -> Ordering
CopyJobState -> CopyJobState -> CopyJobState
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 :: CopyJobState -> CopyJobState -> CopyJobState
$cmin :: CopyJobState -> CopyJobState -> CopyJobState
max :: CopyJobState -> CopyJobState -> CopyJobState
$cmax :: CopyJobState -> CopyJobState -> CopyJobState
>= :: CopyJobState -> CopyJobState -> Bool
$c>= :: CopyJobState -> CopyJobState -> Bool
> :: CopyJobState -> CopyJobState -> Bool
$c> :: CopyJobState -> CopyJobState -> Bool
<= :: CopyJobState -> CopyJobState -> Bool
$c<= :: CopyJobState -> CopyJobState -> Bool
< :: CopyJobState -> CopyJobState -> Bool
$c< :: CopyJobState -> CopyJobState -> Bool
compare :: CopyJobState -> CopyJobState -> Ordering
$ccompare :: CopyJobState -> CopyJobState -> Ordering
Prelude.Ord,
forall x. Rep CopyJobState x -> CopyJobState
forall x. CopyJobState -> Rep CopyJobState x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep CopyJobState x -> CopyJobState
$cfrom :: forall x. CopyJobState -> Rep CopyJobState x
Prelude.Generic
)
deriving newtype
( Eq CopyJobState
Int -> CopyJobState -> Int
CopyJobState -> Int
forall a. Eq a -> (Int -> a -> Int) -> (a -> Int) -> Hashable a
hash :: CopyJobState -> Int
$chash :: CopyJobState -> Int
hashWithSalt :: Int -> CopyJobState -> Int
$chashWithSalt :: Int -> CopyJobState -> Int
Prelude.Hashable,
CopyJobState -> ()
forall a. (a -> ()) -> NFData a
rnf :: CopyJobState -> ()
$crnf :: CopyJobState -> ()
Prelude.NFData,
Text -> Either String CopyJobState
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String CopyJobState
$cfromText :: Text -> Either String CopyJobState
Data.FromText,
CopyJobState -> Text
forall a. (a -> Text) -> ToText a
toText :: CopyJobState -> Text
$ctoText :: CopyJobState -> Text
Data.ToText,
CopyJobState -> ByteString
forall a. (a -> ByteString) -> ToByteString a
toBS :: CopyJobState -> ByteString
$ctoBS :: CopyJobState -> ByteString
Data.ToByteString,
CopyJobState -> ByteStringBuilder
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: CopyJobState -> ByteStringBuilder
$cbuild :: CopyJobState -> ByteStringBuilder
Data.ToLog,
HeaderName -> CopyJobState -> [Header]
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> CopyJobState -> [Header]
$ctoHeader :: HeaderName -> CopyJobState -> [Header]
Data.ToHeader,
CopyJobState -> QueryString
forall a. (a -> QueryString) -> ToQuery a
toQuery :: CopyJobState -> QueryString
$ctoQuery :: CopyJobState -> QueryString
Data.ToQuery,
Value -> Parser [CopyJobState]
Value -> Parser CopyJobState
forall a.
(Value -> Parser a) -> (Value -> Parser [a]) -> FromJSON a
parseJSONList :: Value -> Parser [CopyJobState]
$cparseJSONList :: Value -> Parser [CopyJobState]
parseJSON :: Value -> Parser CopyJobState
$cparseJSON :: Value -> Parser CopyJobState
Data.FromJSON,
FromJSONKeyFunction [CopyJobState]
FromJSONKeyFunction CopyJobState
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [CopyJobState]
$cfromJSONKeyList :: FromJSONKeyFunction [CopyJobState]
fromJSONKey :: FromJSONKeyFunction CopyJobState
$cfromJSONKey :: FromJSONKeyFunction CopyJobState
Data.FromJSONKey,
[CopyJobState] -> Encoding
[CopyJobState] -> Value
CopyJobState -> Encoding
CopyJobState -> Value
forall a.
(a -> Value)
-> (a -> Encoding)
-> ([a] -> Value)
-> ([a] -> Encoding)
-> ToJSON a
toEncodingList :: [CopyJobState] -> Encoding
$ctoEncodingList :: [CopyJobState] -> Encoding
toJSONList :: [CopyJobState] -> Value
$ctoJSONList :: [CopyJobState] -> Value
toEncoding :: CopyJobState -> Encoding
$ctoEncoding :: CopyJobState -> Encoding
toJSON :: CopyJobState -> Value
$ctoJSON :: CopyJobState -> Value
Data.ToJSON,
ToJSONKeyFunction [CopyJobState]
ToJSONKeyFunction CopyJobState
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [CopyJobState]
$ctoJSONKeyList :: ToJSONKeyFunction [CopyJobState]
toJSONKey :: ToJSONKeyFunction CopyJobState
$ctoJSONKey :: ToJSONKeyFunction CopyJobState
Data.ToJSONKey,
[Node] -> Either String CopyJobState
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String CopyJobState
$cparseXML :: [Node] -> Either String CopyJobState
Data.FromXML,
CopyJobState -> XML
forall a. (a -> XML) -> ToXML a
toXML :: CopyJobState -> XML
$ctoXML :: CopyJobState -> XML
Data.ToXML
)
pattern CopyJobState_COMPLETED :: CopyJobState
pattern $bCopyJobState_COMPLETED :: CopyJobState
$mCopyJobState_COMPLETED :: forall {r}. CopyJobState -> ((# #) -> r) -> ((# #) -> r) -> r
CopyJobState_COMPLETED = CopyJobState' "COMPLETED"
pattern CopyJobState_CREATED :: CopyJobState
pattern $bCopyJobState_CREATED :: CopyJobState
$mCopyJobState_CREATED :: forall {r}. CopyJobState -> ((# #) -> r) -> ((# #) -> r) -> r
CopyJobState_CREATED = CopyJobState' "CREATED"
pattern CopyJobState_FAILED :: CopyJobState
pattern $bCopyJobState_FAILED :: CopyJobState
$mCopyJobState_FAILED :: forall {r}. CopyJobState -> ((# #) -> r) -> ((# #) -> r) -> r
CopyJobState_FAILED = CopyJobState' "FAILED"
pattern CopyJobState_PARTIAL :: CopyJobState
pattern $bCopyJobState_PARTIAL :: CopyJobState
$mCopyJobState_PARTIAL :: forall {r}. CopyJobState -> ((# #) -> r) -> ((# #) -> r) -> r
CopyJobState_PARTIAL = CopyJobState' "PARTIAL"
pattern CopyJobState_RUNNING :: CopyJobState
pattern $bCopyJobState_RUNNING :: CopyJobState
$mCopyJobState_RUNNING :: forall {r}. CopyJobState -> ((# #) -> r) -> ((# #) -> r) -> r
CopyJobState_RUNNING = CopyJobState' "RUNNING"
{-# COMPLETE
CopyJobState_COMPLETED,
CopyJobState_CREATED,
CopyJobState_FAILED,
CopyJobState_PARTIAL,
CopyJobState_RUNNING,
CopyJobState'
#-}