{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DuplicateRecordFields #-}
{-# LANGUAGE NamedFieldPuns #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
{-# OPTIONS_GHC -fno-warn-unused-matches #-}
module Amazonka.Braket.Types.QuantumTaskSummary where
import Amazonka.Braket.Types.QuantumTaskStatus
import qualified Amazonka.Core as Core
import qualified Amazonka.Lens as Lens
import qualified Amazonka.Prelude as Prelude
data QuantumTaskSummary = QuantumTaskSummary'
{
QuantumTaskSummary -> Maybe POSIX
endedAt :: Prelude.Maybe Core.POSIX,
QuantumTaskSummary -> Maybe (HashMap Text Text)
tags :: Prelude.Maybe (Prelude.HashMap Prelude.Text Prelude.Text),
QuantumTaskSummary -> POSIX
createdAt :: Core.POSIX,
QuantumTaskSummary -> Text
deviceArn :: Prelude.Text,
QuantumTaskSummary -> Text
outputS3Bucket :: Prelude.Text,
QuantumTaskSummary -> Text
outputS3Directory :: Prelude.Text,
QuantumTaskSummary -> Text
quantumTaskArn :: Prelude.Text,
QuantumTaskSummary -> Integer
shots :: Prelude.Integer,
QuantumTaskSummary -> QuantumTaskStatus
status :: QuantumTaskStatus
}
deriving (QuantumTaskSummary -> QuantumTaskSummary -> Bool
(QuantumTaskSummary -> QuantumTaskSummary -> Bool)
-> (QuantumTaskSummary -> QuantumTaskSummary -> Bool)
-> Eq QuantumTaskSummary
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: QuantumTaskSummary -> QuantumTaskSummary -> Bool
$c/= :: QuantumTaskSummary -> QuantumTaskSummary -> Bool
== :: QuantumTaskSummary -> QuantumTaskSummary -> Bool
$c== :: QuantumTaskSummary -> QuantumTaskSummary -> Bool
Prelude.Eq, ReadPrec [QuantumTaskSummary]
ReadPrec QuantumTaskSummary
Int -> ReadS QuantumTaskSummary
ReadS [QuantumTaskSummary]
(Int -> ReadS QuantumTaskSummary)
-> ReadS [QuantumTaskSummary]
-> ReadPrec QuantumTaskSummary
-> ReadPrec [QuantumTaskSummary]
-> Read QuantumTaskSummary
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [QuantumTaskSummary]
$creadListPrec :: ReadPrec [QuantumTaskSummary]
readPrec :: ReadPrec QuantumTaskSummary
$creadPrec :: ReadPrec QuantumTaskSummary
readList :: ReadS [QuantumTaskSummary]
$creadList :: ReadS [QuantumTaskSummary]
readsPrec :: Int -> ReadS QuantumTaskSummary
$creadsPrec :: Int -> ReadS QuantumTaskSummary
Prelude.Read, Int -> QuantumTaskSummary -> ShowS
[QuantumTaskSummary] -> ShowS
QuantumTaskSummary -> String
(Int -> QuantumTaskSummary -> ShowS)
-> (QuantumTaskSummary -> String)
-> ([QuantumTaskSummary] -> ShowS)
-> Show QuantumTaskSummary
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [QuantumTaskSummary] -> ShowS
$cshowList :: [QuantumTaskSummary] -> ShowS
show :: QuantumTaskSummary -> String
$cshow :: QuantumTaskSummary -> String
showsPrec :: Int -> QuantumTaskSummary -> ShowS
$cshowsPrec :: Int -> QuantumTaskSummary -> ShowS
Prelude.Show, (forall x. QuantumTaskSummary -> Rep QuantumTaskSummary x)
-> (forall x. Rep QuantumTaskSummary x -> QuantumTaskSummary)
-> Generic QuantumTaskSummary
forall x. Rep QuantumTaskSummary x -> QuantumTaskSummary
forall x. QuantumTaskSummary -> Rep QuantumTaskSummary x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep QuantumTaskSummary x -> QuantumTaskSummary
$cfrom :: forall x. QuantumTaskSummary -> Rep QuantumTaskSummary x
Prelude.Generic)
newQuantumTaskSummary ::
Prelude.UTCTime ->
Prelude.Text ->
Prelude.Text ->
Prelude.Text ->
Prelude.Text ->
Prelude.Integer ->
QuantumTaskStatus ->
QuantumTaskSummary
newQuantumTaskSummary :: UTCTime
-> Text
-> Text
-> Text
-> Text
-> Integer
-> QuantumTaskStatus
-> QuantumTaskSummary
newQuantumTaskSummary
UTCTime
pCreatedAt_
Text
pDeviceArn_
Text
pOutputS3Bucket_
Text
pOutputS3Directory_
Text
pQuantumTaskArn_
Integer
pShots_
QuantumTaskStatus
pStatus_ =
QuantumTaskSummary' :: Maybe POSIX
-> Maybe (HashMap Text Text)
-> POSIX
-> Text
-> Text
-> Text
-> Text
-> Integer
-> QuantumTaskStatus
-> QuantumTaskSummary
QuantumTaskSummary'
{ $sel:endedAt:QuantumTaskSummary' :: Maybe POSIX
endedAt = Maybe POSIX
forall a. Maybe a
Prelude.Nothing,
$sel:tags:QuantumTaskSummary' :: Maybe (HashMap Text Text)
tags = Maybe (HashMap Text Text)
forall a. Maybe a
Prelude.Nothing,
$sel:createdAt:QuantumTaskSummary' :: POSIX
createdAt = Tagged UTCTime (Identity UTCTime) -> Tagged POSIX (Identity POSIX)
forall (a :: Format). Iso' (Time a) UTCTime
Core._Time (Tagged UTCTime (Identity UTCTime)
-> Tagged POSIX (Identity POSIX))
-> UTCTime -> POSIX
forall t b. AReview t b -> b -> t
Lens.# UTCTime
pCreatedAt_,
$sel:deviceArn:QuantumTaskSummary' :: Text
deviceArn = Text
pDeviceArn_,
$sel:outputS3Bucket:QuantumTaskSummary' :: Text
outputS3Bucket = Text
pOutputS3Bucket_,
$sel:outputS3Directory:QuantumTaskSummary' :: Text
outputS3Directory = Text
pOutputS3Directory_,
$sel:quantumTaskArn:QuantumTaskSummary' :: Text
quantumTaskArn = Text
pQuantumTaskArn_,
$sel:shots:QuantumTaskSummary' :: Integer
shots = Integer
pShots_,
$sel:status:QuantumTaskSummary' :: QuantumTaskStatus
status = QuantumTaskStatus
pStatus_
}
quantumTaskSummary_endedAt :: Lens.Lens' QuantumTaskSummary (Prelude.Maybe Prelude.UTCTime)
quantumTaskSummary_endedAt :: (Maybe UTCTime -> f (Maybe UTCTime))
-> QuantumTaskSummary -> f QuantumTaskSummary
quantumTaskSummary_endedAt = (QuantumTaskSummary -> Maybe POSIX)
-> (QuantumTaskSummary -> Maybe POSIX -> QuantumTaskSummary)
-> Lens
QuantumTaskSummary QuantumTaskSummary (Maybe POSIX) (Maybe POSIX)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\QuantumTaskSummary' {Maybe POSIX
endedAt :: Maybe POSIX
$sel:endedAt:QuantumTaskSummary' :: QuantumTaskSummary -> Maybe POSIX
endedAt} -> Maybe POSIX
endedAt) (\s :: QuantumTaskSummary
s@QuantumTaskSummary' {} Maybe POSIX
a -> QuantumTaskSummary
s {$sel:endedAt:QuantumTaskSummary' :: Maybe POSIX
endedAt = Maybe POSIX
a} :: QuantumTaskSummary) ((Maybe POSIX -> f (Maybe POSIX))
-> QuantumTaskSummary -> f QuantumTaskSummary)
-> ((Maybe UTCTime -> f (Maybe UTCTime))
-> Maybe POSIX -> f (Maybe POSIX))
-> (Maybe UTCTime -> f (Maybe UTCTime))
-> QuantumTaskSummary
-> f QuantumTaskSummary
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso POSIX POSIX UTCTime UTCTime
-> Iso (Maybe POSIX) (Maybe POSIX) (Maybe UTCTime) (Maybe UTCTime)
forall (f :: * -> *) (g :: * -> *) s t a b.
(Functor f, Functor g) =>
AnIso s t a b -> Iso (f s) (g t) (f a) (g b)
Lens.mapping AnIso POSIX POSIX UTCTime UTCTime
forall (a :: Format). Iso' (Time a) UTCTime
Core._Time
quantumTaskSummary_tags :: Lens.Lens' QuantumTaskSummary (Prelude.Maybe (Prelude.HashMap Prelude.Text Prelude.Text))
quantumTaskSummary_tags :: (Maybe (HashMap Text Text) -> f (Maybe (HashMap Text Text)))
-> QuantumTaskSummary -> f QuantumTaskSummary
quantumTaskSummary_tags = (QuantumTaskSummary -> Maybe (HashMap Text Text))
-> (QuantumTaskSummary
-> Maybe (HashMap Text Text) -> QuantumTaskSummary)
-> Lens
QuantumTaskSummary
QuantumTaskSummary
(Maybe (HashMap Text Text))
(Maybe (HashMap Text Text))
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\QuantumTaskSummary' {Maybe (HashMap Text Text)
tags :: Maybe (HashMap Text Text)
$sel:tags:QuantumTaskSummary' :: QuantumTaskSummary -> Maybe (HashMap Text Text)
tags} -> Maybe (HashMap Text Text)
tags) (\s :: QuantumTaskSummary
s@QuantumTaskSummary' {} Maybe (HashMap Text Text)
a -> QuantumTaskSummary
s {$sel:tags:QuantumTaskSummary' :: Maybe (HashMap Text Text)
tags = Maybe (HashMap Text Text)
a} :: QuantumTaskSummary) ((Maybe (HashMap Text Text) -> f (Maybe (HashMap Text Text)))
-> QuantumTaskSummary -> f QuantumTaskSummary)
-> ((Maybe (HashMap Text Text) -> f (Maybe (HashMap Text Text)))
-> Maybe (HashMap Text Text) -> f (Maybe (HashMap Text Text)))
-> (Maybe (HashMap Text Text) -> f (Maybe (HashMap Text Text)))
-> QuantumTaskSummary
-> f QuantumTaskSummary
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso
(HashMap Text Text)
(HashMap Text Text)
(HashMap Text Text)
(HashMap Text Text)
-> Iso
(Maybe (HashMap Text Text))
(Maybe (HashMap Text Text))
(Maybe (HashMap Text Text))
(Maybe (HashMap Text Text))
forall (f :: * -> *) (g :: * -> *) s t a b.
(Functor f, Functor g) =>
AnIso s t a b -> Iso (f s) (g t) (f a) (g b)
Lens.mapping AnIso
(HashMap Text Text)
(HashMap Text Text)
(HashMap Text Text)
(HashMap Text Text)
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
quantumTaskSummary_createdAt :: Lens.Lens' QuantumTaskSummary Prelude.UTCTime
quantumTaskSummary_createdAt :: (UTCTime -> f UTCTime)
-> QuantumTaskSummary -> f QuantumTaskSummary
quantumTaskSummary_createdAt = (QuantumTaskSummary -> POSIX)
-> (QuantumTaskSummary -> POSIX -> QuantumTaskSummary)
-> Lens QuantumTaskSummary QuantumTaskSummary POSIX POSIX
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\QuantumTaskSummary' {POSIX
createdAt :: POSIX
$sel:createdAt:QuantumTaskSummary' :: QuantumTaskSummary -> POSIX
createdAt} -> POSIX
createdAt) (\s :: QuantumTaskSummary
s@QuantumTaskSummary' {} POSIX
a -> QuantumTaskSummary
s {$sel:createdAt:QuantumTaskSummary' :: POSIX
createdAt = POSIX
a} :: QuantumTaskSummary) ((POSIX -> f POSIX) -> QuantumTaskSummary -> f QuantumTaskSummary)
-> ((UTCTime -> f UTCTime) -> POSIX -> f POSIX)
-> (UTCTime -> f UTCTime)
-> QuantumTaskSummary
-> f QuantumTaskSummary
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. (UTCTime -> f UTCTime) -> POSIX -> f POSIX
forall (a :: Format). Iso' (Time a) UTCTime
Core._Time
quantumTaskSummary_deviceArn :: Lens.Lens' QuantumTaskSummary Prelude.Text
quantumTaskSummary_deviceArn :: (Text -> f Text) -> QuantumTaskSummary -> f QuantumTaskSummary
quantumTaskSummary_deviceArn = (QuantumTaskSummary -> Text)
-> (QuantumTaskSummary -> Text -> QuantumTaskSummary)
-> Lens QuantumTaskSummary QuantumTaskSummary Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\QuantumTaskSummary' {Text
deviceArn :: Text
$sel:deviceArn:QuantumTaskSummary' :: QuantumTaskSummary -> Text
deviceArn} -> Text
deviceArn) (\s :: QuantumTaskSummary
s@QuantumTaskSummary' {} Text
a -> QuantumTaskSummary
s {$sel:deviceArn:QuantumTaskSummary' :: Text
deviceArn = Text
a} :: QuantumTaskSummary)
quantumTaskSummary_outputS3Bucket :: Lens.Lens' QuantumTaskSummary Prelude.Text
quantumTaskSummary_outputS3Bucket :: (Text -> f Text) -> QuantumTaskSummary -> f QuantumTaskSummary
quantumTaskSummary_outputS3Bucket = (QuantumTaskSummary -> Text)
-> (QuantumTaskSummary -> Text -> QuantumTaskSummary)
-> Lens QuantumTaskSummary QuantumTaskSummary Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\QuantumTaskSummary' {Text
outputS3Bucket :: Text
$sel:outputS3Bucket:QuantumTaskSummary' :: QuantumTaskSummary -> Text
outputS3Bucket} -> Text
outputS3Bucket) (\s :: QuantumTaskSummary
s@QuantumTaskSummary' {} Text
a -> QuantumTaskSummary
s {$sel:outputS3Bucket:QuantumTaskSummary' :: Text
outputS3Bucket = Text
a} :: QuantumTaskSummary)
quantumTaskSummary_outputS3Directory :: Lens.Lens' QuantumTaskSummary Prelude.Text
quantumTaskSummary_outputS3Directory :: (Text -> f Text) -> QuantumTaskSummary -> f QuantumTaskSummary
quantumTaskSummary_outputS3Directory = (QuantumTaskSummary -> Text)
-> (QuantumTaskSummary -> Text -> QuantumTaskSummary)
-> Lens QuantumTaskSummary QuantumTaskSummary Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\QuantumTaskSummary' {Text
outputS3Directory :: Text
$sel:outputS3Directory:QuantumTaskSummary' :: QuantumTaskSummary -> Text
outputS3Directory} -> Text
outputS3Directory) (\s :: QuantumTaskSummary
s@QuantumTaskSummary' {} Text
a -> QuantumTaskSummary
s {$sel:outputS3Directory:QuantumTaskSummary' :: Text
outputS3Directory = Text
a} :: QuantumTaskSummary)
quantumTaskSummary_quantumTaskArn :: Lens.Lens' QuantumTaskSummary Prelude.Text
quantumTaskSummary_quantumTaskArn :: (Text -> f Text) -> QuantumTaskSummary -> f QuantumTaskSummary
quantumTaskSummary_quantumTaskArn = (QuantumTaskSummary -> Text)
-> (QuantumTaskSummary -> Text -> QuantumTaskSummary)
-> Lens QuantumTaskSummary QuantumTaskSummary Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\QuantumTaskSummary' {Text
quantumTaskArn :: Text
$sel:quantumTaskArn:QuantumTaskSummary' :: QuantumTaskSummary -> Text
quantumTaskArn} -> Text
quantumTaskArn) (\s :: QuantumTaskSummary
s@QuantumTaskSummary' {} Text
a -> QuantumTaskSummary
s {$sel:quantumTaskArn:QuantumTaskSummary' :: Text
quantumTaskArn = Text
a} :: QuantumTaskSummary)
quantumTaskSummary_shots :: Lens.Lens' QuantumTaskSummary Prelude.Integer
quantumTaskSummary_shots :: (Integer -> f Integer)
-> QuantumTaskSummary -> f QuantumTaskSummary
quantumTaskSummary_shots = (QuantumTaskSummary -> Integer)
-> (QuantumTaskSummary -> Integer -> QuantumTaskSummary)
-> Lens QuantumTaskSummary QuantumTaskSummary Integer Integer
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\QuantumTaskSummary' {Integer
shots :: Integer
$sel:shots:QuantumTaskSummary' :: QuantumTaskSummary -> Integer
shots} -> Integer
shots) (\s :: QuantumTaskSummary
s@QuantumTaskSummary' {} Integer
a -> QuantumTaskSummary
s {$sel:shots:QuantumTaskSummary' :: Integer
shots = Integer
a} :: QuantumTaskSummary)
quantumTaskSummary_status :: Lens.Lens' QuantumTaskSummary QuantumTaskStatus
quantumTaskSummary_status :: (QuantumTaskStatus -> f QuantumTaskStatus)
-> QuantumTaskSummary -> f QuantumTaskSummary
quantumTaskSummary_status = (QuantumTaskSummary -> QuantumTaskStatus)
-> (QuantumTaskSummary -> QuantumTaskStatus -> QuantumTaskSummary)
-> Lens
QuantumTaskSummary
QuantumTaskSummary
QuantumTaskStatus
QuantumTaskStatus
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\QuantumTaskSummary' {QuantumTaskStatus
status :: QuantumTaskStatus
$sel:status:QuantumTaskSummary' :: QuantumTaskSummary -> QuantumTaskStatus
status} -> QuantumTaskStatus
status) (\s :: QuantumTaskSummary
s@QuantumTaskSummary' {} QuantumTaskStatus
a -> QuantumTaskSummary
s {$sel:status:QuantumTaskSummary' :: QuantumTaskStatus
status = QuantumTaskStatus
a} :: QuantumTaskSummary)
instance Core.FromJSON QuantumTaskSummary where
parseJSON :: Value -> Parser QuantumTaskSummary
parseJSON =
String
-> (Object -> Parser QuantumTaskSummary)
-> Value
-> Parser QuantumTaskSummary
forall a. String -> (Object -> Parser a) -> Value -> Parser a
Core.withObject
String
"QuantumTaskSummary"
( \Object
x ->
Maybe POSIX
-> Maybe (HashMap Text Text)
-> POSIX
-> Text
-> Text
-> Text
-> Text
-> Integer
-> QuantumTaskStatus
-> QuantumTaskSummary
QuantumTaskSummary'
(Maybe POSIX
-> Maybe (HashMap Text Text)
-> POSIX
-> Text
-> Text
-> Text
-> Text
-> Integer
-> QuantumTaskStatus
-> QuantumTaskSummary)
-> Parser (Maybe POSIX)
-> Parser
(Maybe (HashMap Text Text)
-> POSIX
-> Text
-> Text
-> Text
-> Text
-> Integer
-> QuantumTaskStatus
-> QuantumTaskSummary)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x Object -> Text -> Parser (Maybe POSIX)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"endedAt")
Parser
(Maybe (HashMap Text Text)
-> POSIX
-> Text
-> Text
-> Text
-> Text
-> Integer
-> QuantumTaskStatus
-> QuantumTaskSummary)
-> Parser (Maybe (HashMap Text Text))
-> Parser
(POSIX
-> Text
-> Text
-> Text
-> Text
-> Integer
-> QuantumTaskStatus
-> QuantumTaskSummary)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe (Maybe (HashMap Text Text)))
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"tags" Parser (Maybe (Maybe (HashMap Text Text)))
-> Maybe (HashMap Text Text) -> Parser (Maybe (HashMap Text Text))
forall a. Parser (Maybe a) -> a -> Parser a
Core..!= Maybe (HashMap Text Text)
forall a. Monoid a => a
Prelude.mempty)
Parser
(POSIX
-> Text
-> Text
-> Text
-> Text
-> Integer
-> QuantumTaskStatus
-> QuantumTaskSummary)
-> Parser POSIX
-> Parser
(Text
-> Text
-> Text
-> Text
-> Integer
-> QuantumTaskStatus
-> QuantumTaskSummary)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser POSIX
forall a. FromJSON a => Object -> Text -> Parser a
Core..: Text
"createdAt")
Parser
(Text
-> Text
-> Text
-> Text
-> Integer
-> QuantumTaskStatus
-> QuantumTaskSummary)
-> Parser Text
-> Parser
(Text
-> Text
-> Text
-> Integer
-> QuantumTaskStatus
-> QuantumTaskSummary)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser Text
forall a. FromJSON a => Object -> Text -> Parser a
Core..: Text
"deviceArn")
Parser
(Text
-> Text
-> Text
-> Integer
-> QuantumTaskStatus
-> QuantumTaskSummary)
-> Parser Text
-> Parser
(Text
-> Text -> Integer -> QuantumTaskStatus -> QuantumTaskSummary)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser Text
forall a. FromJSON a => Object -> Text -> Parser a
Core..: Text
"outputS3Bucket")
Parser
(Text
-> Text -> Integer -> QuantumTaskStatus -> QuantumTaskSummary)
-> Parser Text
-> Parser
(Text -> Integer -> QuantumTaskStatus -> QuantumTaskSummary)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser Text
forall a. FromJSON a => Object -> Text -> Parser a
Core..: Text
"outputS3Directory")
Parser (Text -> Integer -> QuantumTaskStatus -> QuantumTaskSummary)
-> Parser Text
-> Parser (Integer -> QuantumTaskStatus -> QuantumTaskSummary)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser Text
forall a. FromJSON a => Object -> Text -> Parser a
Core..: Text
"quantumTaskArn")
Parser (Integer -> QuantumTaskStatus -> QuantumTaskSummary)
-> Parser Integer
-> Parser (QuantumTaskStatus -> QuantumTaskSummary)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser Integer
forall a. FromJSON a => Object -> Text -> Parser a
Core..: Text
"shots")
Parser (QuantumTaskStatus -> QuantumTaskSummary)
-> Parser QuantumTaskStatus -> Parser QuantumTaskSummary
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser QuantumTaskStatus
forall a. FromJSON a => Object -> Text -> Parser a
Core..: Text
"status")
)
instance Prelude.Hashable QuantumTaskSummary
instance Prelude.NFData QuantumTaskSummary