{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DerivingStrategies #-}
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# LANGUAGE LambdaCase #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE PatternSynonyms #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
module Amazonka.SnowDeviceManagement.Types.TaskState
( TaskState
( ..,
TaskState_CANCELED,
TaskState_COMPLETED,
TaskState_IN_PROGRESS
),
)
where
import qualified Amazonka.Core as Core
import qualified Amazonka.Prelude as Prelude
newtype TaskState = TaskState'
{ TaskState -> Text
fromTaskState ::
Core.Text
}
deriving stock
( Int -> TaskState -> ShowS
[TaskState] -> ShowS
TaskState -> String
(Int -> TaskState -> ShowS)
-> (TaskState -> String)
-> ([TaskState] -> ShowS)
-> Show TaskState
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [TaskState] -> ShowS
$cshowList :: [TaskState] -> ShowS
show :: TaskState -> String
$cshow :: TaskState -> String
showsPrec :: Int -> TaskState -> ShowS
$cshowsPrec :: Int -> TaskState -> ShowS
Prelude.Show,
ReadPrec [TaskState]
ReadPrec TaskState
Int -> ReadS TaskState
ReadS [TaskState]
(Int -> ReadS TaskState)
-> ReadS [TaskState]
-> ReadPrec TaskState
-> ReadPrec [TaskState]
-> Read TaskState
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [TaskState]
$creadListPrec :: ReadPrec [TaskState]
readPrec :: ReadPrec TaskState
$creadPrec :: ReadPrec TaskState
readList :: ReadS [TaskState]
$creadList :: ReadS [TaskState]
readsPrec :: Int -> ReadS TaskState
$creadsPrec :: Int -> ReadS TaskState
Prelude.Read,
TaskState -> TaskState -> Bool
(TaskState -> TaskState -> Bool)
-> (TaskState -> TaskState -> Bool) -> Eq TaskState
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: TaskState -> TaskState -> Bool
$c/= :: TaskState -> TaskState -> Bool
== :: TaskState -> TaskState -> Bool
$c== :: TaskState -> TaskState -> Bool
Prelude.Eq,
Eq TaskState
Eq TaskState
-> (TaskState -> TaskState -> Ordering)
-> (TaskState -> TaskState -> Bool)
-> (TaskState -> TaskState -> Bool)
-> (TaskState -> TaskState -> Bool)
-> (TaskState -> TaskState -> Bool)
-> (TaskState -> TaskState -> TaskState)
-> (TaskState -> TaskState -> TaskState)
-> Ord TaskState
TaskState -> TaskState -> Bool
TaskState -> TaskState -> Ordering
TaskState -> TaskState -> TaskState
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 :: TaskState -> TaskState -> TaskState
$cmin :: TaskState -> TaskState -> TaskState
max :: TaskState -> TaskState -> TaskState
$cmax :: TaskState -> TaskState -> TaskState
>= :: TaskState -> TaskState -> Bool
$c>= :: TaskState -> TaskState -> Bool
> :: TaskState -> TaskState -> Bool
$c> :: TaskState -> TaskState -> Bool
<= :: TaskState -> TaskState -> Bool
$c<= :: TaskState -> TaskState -> Bool
< :: TaskState -> TaskState -> Bool
$c< :: TaskState -> TaskState -> Bool
compare :: TaskState -> TaskState -> Ordering
$ccompare :: TaskState -> TaskState -> Ordering
$cp1Ord :: Eq TaskState
Prelude.Ord,
(forall x. TaskState -> Rep TaskState x)
-> (forall x. Rep TaskState x -> TaskState) -> Generic TaskState
forall x. Rep TaskState x -> TaskState
forall x. TaskState -> Rep TaskState x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep TaskState x -> TaskState
$cfrom :: forall x. TaskState -> Rep TaskState x
Prelude.Generic
)
deriving newtype
( Int -> TaskState -> Int
TaskState -> Int
(Int -> TaskState -> Int)
-> (TaskState -> Int) -> Hashable TaskState
forall a. (Int -> a -> Int) -> (a -> Int) -> Hashable a
hash :: TaskState -> Int
$chash :: TaskState -> Int
hashWithSalt :: Int -> TaskState -> Int
$chashWithSalt :: Int -> TaskState -> Int
Prelude.Hashable,
TaskState -> ()
(TaskState -> ()) -> NFData TaskState
forall a. (a -> ()) -> NFData a
rnf :: TaskState -> ()
$crnf :: TaskState -> ()
Prelude.NFData,
Text -> Either String TaskState
(Text -> Either String TaskState) -> FromText TaskState
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String TaskState
$cfromText :: Text -> Either String TaskState
Core.FromText,
TaskState -> Text
(TaskState -> Text) -> ToText TaskState
forall a. (a -> Text) -> ToText a
toText :: TaskState -> Text
$ctoText :: TaskState -> Text
Core.ToText,
TaskState -> ByteString
(TaskState -> ByteString) -> ToByteString TaskState
forall a. (a -> ByteString) -> ToByteString a
toBS :: TaskState -> ByteString
$ctoBS :: TaskState -> ByteString
Core.ToByteString,
TaskState -> ByteStringBuilder
(TaskState -> ByteStringBuilder) -> ToLog TaskState
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: TaskState -> ByteStringBuilder
$cbuild :: TaskState -> ByteStringBuilder
Core.ToLog,
HeaderName -> TaskState -> [Header]
(HeaderName -> TaskState -> [Header]) -> ToHeader TaskState
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> TaskState -> [Header]
$ctoHeader :: HeaderName -> TaskState -> [Header]
Core.ToHeader,
TaskState -> QueryString
(TaskState -> QueryString) -> ToQuery TaskState
forall a. (a -> QueryString) -> ToQuery a
toQuery :: TaskState -> QueryString
$ctoQuery :: TaskState -> QueryString
Core.ToQuery,
Value -> Parser [TaskState]
Value -> Parser TaskState
(Value -> Parser TaskState)
-> (Value -> Parser [TaskState]) -> FromJSON TaskState
forall a.
(Value -> Parser a) -> (Value -> Parser [a]) -> FromJSON a
parseJSONList :: Value -> Parser [TaskState]
$cparseJSONList :: Value -> Parser [TaskState]
parseJSON :: Value -> Parser TaskState
$cparseJSON :: Value -> Parser TaskState
Core.FromJSON,
FromJSONKeyFunction [TaskState]
FromJSONKeyFunction TaskState
FromJSONKeyFunction TaskState
-> FromJSONKeyFunction [TaskState] -> FromJSONKey TaskState
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [TaskState]
$cfromJSONKeyList :: FromJSONKeyFunction [TaskState]
fromJSONKey :: FromJSONKeyFunction TaskState
$cfromJSONKey :: FromJSONKeyFunction TaskState
Core.FromJSONKey,
[TaskState] -> Encoding
[TaskState] -> Value
TaskState -> Encoding
TaskState -> Value
(TaskState -> Value)
-> (TaskState -> Encoding)
-> ([TaskState] -> Value)
-> ([TaskState] -> Encoding)
-> ToJSON TaskState
forall a.
(a -> Value)
-> (a -> Encoding)
-> ([a] -> Value)
-> ([a] -> Encoding)
-> ToJSON a
toEncodingList :: [TaskState] -> Encoding
$ctoEncodingList :: [TaskState] -> Encoding
toJSONList :: [TaskState] -> Value
$ctoJSONList :: [TaskState] -> Value
toEncoding :: TaskState -> Encoding
$ctoEncoding :: TaskState -> Encoding
toJSON :: TaskState -> Value
$ctoJSON :: TaskState -> Value
Core.ToJSON,
ToJSONKeyFunction [TaskState]
ToJSONKeyFunction TaskState
ToJSONKeyFunction TaskState
-> ToJSONKeyFunction [TaskState] -> ToJSONKey TaskState
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [TaskState]
$ctoJSONKeyList :: ToJSONKeyFunction [TaskState]
toJSONKey :: ToJSONKeyFunction TaskState
$ctoJSONKey :: ToJSONKeyFunction TaskState
Core.ToJSONKey,
[Node] -> Either String TaskState
([Node] -> Either String TaskState) -> FromXML TaskState
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String TaskState
$cparseXML :: [Node] -> Either String TaskState
Core.FromXML,
TaskState -> XML
(TaskState -> XML) -> ToXML TaskState
forall a. (a -> XML) -> ToXML a
toXML :: TaskState -> XML
$ctoXML :: TaskState -> XML
Core.ToXML
)
pattern TaskState_CANCELED :: TaskState
pattern $bTaskState_CANCELED :: TaskState
$mTaskState_CANCELED :: forall r. TaskState -> (Void# -> r) -> (Void# -> r) -> r
TaskState_CANCELED = TaskState' "CANCELED"
pattern TaskState_COMPLETED :: TaskState
pattern $bTaskState_COMPLETED :: TaskState
$mTaskState_COMPLETED :: forall r. TaskState -> (Void# -> r) -> (Void# -> r) -> r
TaskState_COMPLETED = TaskState' "COMPLETED"
pattern TaskState_IN_PROGRESS :: TaskState
pattern $bTaskState_IN_PROGRESS :: TaskState
$mTaskState_IN_PROGRESS :: forall r. TaskState -> (Void# -> r) -> (Void# -> r) -> r
TaskState_IN_PROGRESS = TaskState' "IN_PROGRESS"
{-# COMPLETE
TaskState_CANCELED,
TaskState_COMPLETED,
TaskState_IN_PROGRESS,
TaskState'
#-}