{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DerivingStrategies #-}
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# LANGUAGE LambdaCase #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE PatternSynonyms #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
module Amazonka.Braket.Types.QuantumTaskStatus
( QuantumTaskStatus
( ..,
QuantumTaskStatus_CANCELLED,
QuantumTaskStatus_CANCELLING,
QuantumTaskStatus_COMPLETED,
QuantumTaskStatus_CREATED,
QuantumTaskStatus_FAILED,
QuantumTaskStatus_QUEUED,
QuantumTaskStatus_RUNNING
),
)
where
import qualified Amazonka.Core as Core
import qualified Amazonka.Prelude as Prelude
newtype QuantumTaskStatus = QuantumTaskStatus'
{ QuantumTaskStatus -> Text
fromQuantumTaskStatus ::
Core.Text
}
deriving stock
( Int -> QuantumTaskStatus -> ShowS
[QuantumTaskStatus] -> ShowS
QuantumTaskStatus -> String
(Int -> QuantumTaskStatus -> ShowS)
-> (QuantumTaskStatus -> String)
-> ([QuantumTaskStatus] -> ShowS)
-> Show QuantumTaskStatus
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [QuantumTaskStatus] -> ShowS
$cshowList :: [QuantumTaskStatus] -> ShowS
show :: QuantumTaskStatus -> String
$cshow :: QuantumTaskStatus -> String
showsPrec :: Int -> QuantumTaskStatus -> ShowS
$cshowsPrec :: Int -> QuantumTaskStatus -> ShowS
Prelude.Show,
ReadPrec [QuantumTaskStatus]
ReadPrec QuantumTaskStatus
Int -> ReadS QuantumTaskStatus
ReadS [QuantumTaskStatus]
(Int -> ReadS QuantumTaskStatus)
-> ReadS [QuantumTaskStatus]
-> ReadPrec QuantumTaskStatus
-> ReadPrec [QuantumTaskStatus]
-> Read QuantumTaskStatus
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [QuantumTaskStatus]
$creadListPrec :: ReadPrec [QuantumTaskStatus]
readPrec :: ReadPrec QuantumTaskStatus
$creadPrec :: ReadPrec QuantumTaskStatus
readList :: ReadS [QuantumTaskStatus]
$creadList :: ReadS [QuantumTaskStatus]
readsPrec :: Int -> ReadS QuantumTaskStatus
$creadsPrec :: Int -> ReadS QuantumTaskStatus
Prelude.Read,
QuantumTaskStatus -> QuantumTaskStatus -> Bool
(QuantumTaskStatus -> QuantumTaskStatus -> Bool)
-> (QuantumTaskStatus -> QuantumTaskStatus -> Bool)
-> Eq QuantumTaskStatus
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: QuantumTaskStatus -> QuantumTaskStatus -> Bool
$c/= :: QuantumTaskStatus -> QuantumTaskStatus -> Bool
== :: QuantumTaskStatus -> QuantumTaskStatus -> Bool
$c== :: QuantumTaskStatus -> QuantumTaskStatus -> Bool
Prelude.Eq,
Eq QuantumTaskStatus
Eq QuantumTaskStatus
-> (QuantumTaskStatus -> QuantumTaskStatus -> Ordering)
-> (QuantumTaskStatus -> QuantumTaskStatus -> Bool)
-> (QuantumTaskStatus -> QuantumTaskStatus -> Bool)
-> (QuantumTaskStatus -> QuantumTaskStatus -> Bool)
-> (QuantumTaskStatus -> QuantumTaskStatus -> Bool)
-> (QuantumTaskStatus -> QuantumTaskStatus -> QuantumTaskStatus)
-> (QuantumTaskStatus -> QuantumTaskStatus -> QuantumTaskStatus)
-> Ord QuantumTaskStatus
QuantumTaskStatus -> QuantumTaskStatus -> Bool
QuantumTaskStatus -> QuantumTaskStatus -> Ordering
QuantumTaskStatus -> QuantumTaskStatus -> QuantumTaskStatus
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 :: QuantumTaskStatus -> QuantumTaskStatus -> QuantumTaskStatus
$cmin :: QuantumTaskStatus -> QuantumTaskStatus -> QuantumTaskStatus
max :: QuantumTaskStatus -> QuantumTaskStatus -> QuantumTaskStatus
$cmax :: QuantumTaskStatus -> QuantumTaskStatus -> QuantumTaskStatus
>= :: QuantumTaskStatus -> QuantumTaskStatus -> Bool
$c>= :: QuantumTaskStatus -> QuantumTaskStatus -> Bool
> :: QuantumTaskStatus -> QuantumTaskStatus -> Bool
$c> :: QuantumTaskStatus -> QuantumTaskStatus -> Bool
<= :: QuantumTaskStatus -> QuantumTaskStatus -> Bool
$c<= :: QuantumTaskStatus -> QuantumTaskStatus -> Bool
< :: QuantumTaskStatus -> QuantumTaskStatus -> Bool
$c< :: QuantumTaskStatus -> QuantumTaskStatus -> Bool
compare :: QuantumTaskStatus -> QuantumTaskStatus -> Ordering
$ccompare :: QuantumTaskStatus -> QuantumTaskStatus -> Ordering
$cp1Ord :: Eq QuantumTaskStatus
Prelude.Ord,
(forall x. QuantumTaskStatus -> Rep QuantumTaskStatus x)
-> (forall x. Rep QuantumTaskStatus x -> QuantumTaskStatus)
-> Generic QuantumTaskStatus
forall x. Rep QuantumTaskStatus x -> QuantumTaskStatus
forall x. QuantumTaskStatus -> Rep QuantumTaskStatus x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep QuantumTaskStatus x -> QuantumTaskStatus
$cfrom :: forall x. QuantumTaskStatus -> Rep QuantumTaskStatus x
Prelude.Generic
)
deriving newtype
( Int -> QuantumTaskStatus -> Int
QuantumTaskStatus -> Int
(Int -> QuantumTaskStatus -> Int)
-> (QuantumTaskStatus -> Int) -> Hashable QuantumTaskStatus
forall a. (Int -> a -> Int) -> (a -> Int) -> Hashable a
hash :: QuantumTaskStatus -> Int
$chash :: QuantumTaskStatus -> Int
hashWithSalt :: Int -> QuantumTaskStatus -> Int
$chashWithSalt :: Int -> QuantumTaskStatus -> Int
Prelude.Hashable,
QuantumTaskStatus -> ()
(QuantumTaskStatus -> ()) -> NFData QuantumTaskStatus
forall a. (a -> ()) -> NFData a
rnf :: QuantumTaskStatus -> ()
$crnf :: QuantumTaskStatus -> ()
Prelude.NFData,
Text -> Either String QuantumTaskStatus
(Text -> Either String QuantumTaskStatus)
-> FromText QuantumTaskStatus
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String QuantumTaskStatus
$cfromText :: Text -> Either String QuantumTaskStatus
Core.FromText,
QuantumTaskStatus -> Text
(QuantumTaskStatus -> Text) -> ToText QuantumTaskStatus
forall a. (a -> Text) -> ToText a
toText :: QuantumTaskStatus -> Text
$ctoText :: QuantumTaskStatus -> Text
Core.ToText,
QuantumTaskStatus -> ByteString
(QuantumTaskStatus -> ByteString) -> ToByteString QuantumTaskStatus
forall a. (a -> ByteString) -> ToByteString a
toBS :: QuantumTaskStatus -> ByteString
$ctoBS :: QuantumTaskStatus -> ByteString
Core.ToByteString,
QuantumTaskStatus -> ByteStringBuilder
(QuantumTaskStatus -> ByteStringBuilder) -> ToLog QuantumTaskStatus
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: QuantumTaskStatus -> ByteStringBuilder
$cbuild :: QuantumTaskStatus -> ByteStringBuilder
Core.ToLog,
HeaderName -> QuantumTaskStatus -> [Header]
(HeaderName -> QuantumTaskStatus -> [Header])
-> ToHeader QuantumTaskStatus
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> QuantumTaskStatus -> [Header]
$ctoHeader :: HeaderName -> QuantumTaskStatus -> [Header]
Core.ToHeader,
QuantumTaskStatus -> QueryString
(QuantumTaskStatus -> QueryString) -> ToQuery QuantumTaskStatus
forall a. (a -> QueryString) -> ToQuery a
toQuery :: QuantumTaskStatus -> QueryString
$ctoQuery :: QuantumTaskStatus -> QueryString
Core.ToQuery,
Value -> Parser [QuantumTaskStatus]
Value -> Parser QuantumTaskStatus
(Value -> Parser QuantumTaskStatus)
-> (Value -> Parser [QuantumTaskStatus])
-> FromJSON QuantumTaskStatus
forall a.
(Value -> Parser a) -> (Value -> Parser [a]) -> FromJSON a
parseJSONList :: Value -> Parser [QuantumTaskStatus]
$cparseJSONList :: Value -> Parser [QuantumTaskStatus]
parseJSON :: Value -> Parser QuantumTaskStatus
$cparseJSON :: Value -> Parser QuantumTaskStatus
Core.FromJSON,
FromJSONKeyFunction [QuantumTaskStatus]
FromJSONKeyFunction QuantumTaskStatus
FromJSONKeyFunction QuantumTaskStatus
-> FromJSONKeyFunction [QuantumTaskStatus]
-> FromJSONKey QuantumTaskStatus
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [QuantumTaskStatus]
$cfromJSONKeyList :: FromJSONKeyFunction [QuantumTaskStatus]
fromJSONKey :: FromJSONKeyFunction QuantumTaskStatus
$cfromJSONKey :: FromJSONKeyFunction QuantumTaskStatus
Core.FromJSONKey,
[QuantumTaskStatus] -> Encoding
[QuantumTaskStatus] -> Value
QuantumTaskStatus -> Encoding
QuantumTaskStatus -> Value
(QuantumTaskStatus -> Value)
-> (QuantumTaskStatus -> Encoding)
-> ([QuantumTaskStatus] -> Value)
-> ([QuantumTaskStatus] -> Encoding)
-> ToJSON QuantumTaskStatus
forall a.
(a -> Value)
-> (a -> Encoding)
-> ([a] -> Value)
-> ([a] -> Encoding)
-> ToJSON a
toEncodingList :: [QuantumTaskStatus] -> Encoding
$ctoEncodingList :: [QuantumTaskStatus] -> Encoding
toJSONList :: [QuantumTaskStatus] -> Value
$ctoJSONList :: [QuantumTaskStatus] -> Value
toEncoding :: QuantumTaskStatus -> Encoding
$ctoEncoding :: QuantumTaskStatus -> Encoding
toJSON :: QuantumTaskStatus -> Value
$ctoJSON :: QuantumTaskStatus -> Value
Core.ToJSON,
ToJSONKeyFunction [QuantumTaskStatus]
ToJSONKeyFunction QuantumTaskStatus
ToJSONKeyFunction QuantumTaskStatus
-> ToJSONKeyFunction [QuantumTaskStatus]
-> ToJSONKey QuantumTaskStatus
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [QuantumTaskStatus]
$ctoJSONKeyList :: ToJSONKeyFunction [QuantumTaskStatus]
toJSONKey :: ToJSONKeyFunction QuantumTaskStatus
$ctoJSONKey :: ToJSONKeyFunction QuantumTaskStatus
Core.ToJSONKey,
[Node] -> Either String QuantumTaskStatus
([Node] -> Either String QuantumTaskStatus)
-> FromXML QuantumTaskStatus
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String QuantumTaskStatus
$cparseXML :: [Node] -> Either String QuantumTaskStatus
Core.FromXML,
QuantumTaskStatus -> XML
(QuantumTaskStatus -> XML) -> ToXML QuantumTaskStatus
forall a. (a -> XML) -> ToXML a
toXML :: QuantumTaskStatus -> XML
$ctoXML :: QuantumTaskStatus -> XML
Core.ToXML
)
pattern QuantumTaskStatus_CANCELLED :: QuantumTaskStatus
pattern $bQuantumTaskStatus_CANCELLED :: QuantumTaskStatus
$mQuantumTaskStatus_CANCELLED :: forall r. QuantumTaskStatus -> (Void# -> r) -> (Void# -> r) -> r
QuantumTaskStatus_CANCELLED = QuantumTaskStatus' "CANCELLED"
pattern QuantumTaskStatus_CANCELLING :: QuantumTaskStatus
pattern $bQuantumTaskStatus_CANCELLING :: QuantumTaskStatus
$mQuantumTaskStatus_CANCELLING :: forall r. QuantumTaskStatus -> (Void# -> r) -> (Void# -> r) -> r
QuantumTaskStatus_CANCELLING = QuantumTaskStatus' "CANCELLING"
pattern QuantumTaskStatus_COMPLETED :: QuantumTaskStatus
pattern $bQuantumTaskStatus_COMPLETED :: QuantumTaskStatus
$mQuantumTaskStatus_COMPLETED :: forall r. QuantumTaskStatus -> (Void# -> r) -> (Void# -> r) -> r
QuantumTaskStatus_COMPLETED = QuantumTaskStatus' "COMPLETED"
pattern QuantumTaskStatus_CREATED :: QuantumTaskStatus
pattern $bQuantumTaskStatus_CREATED :: QuantumTaskStatus
$mQuantumTaskStatus_CREATED :: forall r. QuantumTaskStatus -> (Void# -> r) -> (Void# -> r) -> r
QuantumTaskStatus_CREATED = QuantumTaskStatus' "CREATED"
pattern QuantumTaskStatus_FAILED :: QuantumTaskStatus
pattern $bQuantumTaskStatus_FAILED :: QuantumTaskStatus
$mQuantumTaskStatus_FAILED :: forall r. QuantumTaskStatus -> (Void# -> r) -> (Void# -> r) -> r
QuantumTaskStatus_FAILED = QuantumTaskStatus' "FAILED"
pattern QuantumTaskStatus_QUEUED :: QuantumTaskStatus
pattern $bQuantumTaskStatus_QUEUED :: QuantumTaskStatus
$mQuantumTaskStatus_QUEUED :: forall r. QuantumTaskStatus -> (Void# -> r) -> (Void# -> r) -> r
QuantumTaskStatus_QUEUED = QuantumTaskStatus' "QUEUED"
pattern QuantumTaskStatus_RUNNING :: QuantumTaskStatus
pattern $bQuantumTaskStatus_RUNNING :: QuantumTaskStatus
$mQuantumTaskStatus_RUNNING :: forall r. QuantumTaskStatus -> (Void# -> r) -> (Void# -> r) -> r
QuantumTaskStatus_RUNNING = QuantumTaskStatus' "RUNNING"
{-# COMPLETE
QuantumTaskStatus_CANCELLED,
QuantumTaskStatus_CANCELLING,
QuantumTaskStatus_COMPLETED,
QuantumTaskStatus_CREATED,
QuantumTaskStatus_FAILED,
QuantumTaskStatus_QUEUED,
QuantumTaskStatus_RUNNING,
QuantumTaskStatus'
#-}