{-# 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.IoTDeviceAdvisor.Types.SuiteRunInformation where
import qualified Amazonka.Core as Core
import Amazonka.IoTDeviceAdvisor.Types.SuiteRunStatus
import qualified Amazonka.Lens as Lens
import qualified Amazonka.Prelude as Prelude
data SuiteRunInformation = SuiteRunInformation'
{
SuiteRunInformation -> Maybe SuiteRunStatus
status :: Prelude.Maybe SuiteRunStatus,
SuiteRunInformation -> Maybe POSIX
createdAt :: Prelude.Maybe Core.POSIX,
SuiteRunInformation -> Maybe Natural
passed :: Prelude.Maybe Prelude.Natural,
SuiteRunInformation -> Maybe Text
suiteDefinitionId :: Prelude.Maybe Prelude.Text,
SuiteRunInformation -> Maybe Text
suiteDefinitionVersion :: Prelude.Maybe Prelude.Text,
SuiteRunInformation -> Maybe POSIX
startedAt :: Prelude.Maybe Core.POSIX,
SuiteRunInformation -> Maybe Text
suiteDefinitionName :: Prelude.Maybe Prelude.Text,
SuiteRunInformation -> Maybe POSIX
endAt :: Prelude.Maybe Core.POSIX,
SuiteRunInformation -> Maybe Text
suiteRunId :: Prelude.Maybe Prelude.Text,
SuiteRunInformation -> Maybe Natural
failed :: Prelude.Maybe Prelude.Natural
}
deriving (SuiteRunInformation -> SuiteRunInformation -> Bool
(SuiteRunInformation -> SuiteRunInformation -> Bool)
-> (SuiteRunInformation -> SuiteRunInformation -> Bool)
-> Eq SuiteRunInformation
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: SuiteRunInformation -> SuiteRunInformation -> Bool
$c/= :: SuiteRunInformation -> SuiteRunInformation -> Bool
== :: SuiteRunInformation -> SuiteRunInformation -> Bool
$c== :: SuiteRunInformation -> SuiteRunInformation -> Bool
Prelude.Eq, ReadPrec [SuiteRunInformation]
ReadPrec SuiteRunInformation
Int -> ReadS SuiteRunInformation
ReadS [SuiteRunInformation]
(Int -> ReadS SuiteRunInformation)
-> ReadS [SuiteRunInformation]
-> ReadPrec SuiteRunInformation
-> ReadPrec [SuiteRunInformation]
-> Read SuiteRunInformation
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [SuiteRunInformation]
$creadListPrec :: ReadPrec [SuiteRunInformation]
readPrec :: ReadPrec SuiteRunInformation
$creadPrec :: ReadPrec SuiteRunInformation
readList :: ReadS [SuiteRunInformation]
$creadList :: ReadS [SuiteRunInformation]
readsPrec :: Int -> ReadS SuiteRunInformation
$creadsPrec :: Int -> ReadS SuiteRunInformation
Prelude.Read, Int -> SuiteRunInformation -> ShowS
[SuiteRunInformation] -> ShowS
SuiteRunInformation -> String
(Int -> SuiteRunInformation -> ShowS)
-> (SuiteRunInformation -> String)
-> ([SuiteRunInformation] -> ShowS)
-> Show SuiteRunInformation
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [SuiteRunInformation] -> ShowS
$cshowList :: [SuiteRunInformation] -> ShowS
show :: SuiteRunInformation -> String
$cshow :: SuiteRunInformation -> String
showsPrec :: Int -> SuiteRunInformation -> ShowS
$cshowsPrec :: Int -> SuiteRunInformation -> ShowS
Prelude.Show, (forall x. SuiteRunInformation -> Rep SuiteRunInformation x)
-> (forall x. Rep SuiteRunInformation x -> SuiteRunInformation)
-> Generic SuiteRunInformation
forall x. Rep SuiteRunInformation x -> SuiteRunInformation
forall x. SuiteRunInformation -> Rep SuiteRunInformation x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep SuiteRunInformation x -> SuiteRunInformation
$cfrom :: forall x. SuiteRunInformation -> Rep SuiteRunInformation x
Prelude.Generic)
newSuiteRunInformation ::
SuiteRunInformation
newSuiteRunInformation :: SuiteRunInformation
newSuiteRunInformation =
SuiteRunInformation' :: Maybe SuiteRunStatus
-> Maybe POSIX
-> Maybe Natural
-> Maybe Text
-> Maybe Text
-> Maybe POSIX
-> Maybe Text
-> Maybe POSIX
-> Maybe Text
-> Maybe Natural
-> SuiteRunInformation
SuiteRunInformation'
{ $sel:status:SuiteRunInformation' :: Maybe SuiteRunStatus
status = Maybe SuiteRunStatus
forall a. Maybe a
Prelude.Nothing,
$sel:createdAt:SuiteRunInformation' :: Maybe POSIX
createdAt = Maybe POSIX
forall a. Maybe a
Prelude.Nothing,
$sel:passed:SuiteRunInformation' :: Maybe Natural
passed = Maybe Natural
forall a. Maybe a
Prelude.Nothing,
$sel:suiteDefinitionId:SuiteRunInformation' :: Maybe Text
suiteDefinitionId = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:suiteDefinitionVersion:SuiteRunInformation' :: Maybe Text
suiteDefinitionVersion = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:startedAt:SuiteRunInformation' :: Maybe POSIX
startedAt = Maybe POSIX
forall a. Maybe a
Prelude.Nothing,
$sel:suiteDefinitionName:SuiteRunInformation' :: Maybe Text
suiteDefinitionName = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:endAt:SuiteRunInformation' :: Maybe POSIX
endAt = Maybe POSIX
forall a. Maybe a
Prelude.Nothing,
$sel:suiteRunId:SuiteRunInformation' :: Maybe Text
suiteRunId = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:failed:SuiteRunInformation' :: Maybe Natural
failed = Maybe Natural
forall a. Maybe a
Prelude.Nothing
}
suiteRunInformation_status :: Lens.Lens' SuiteRunInformation (Prelude.Maybe SuiteRunStatus)
suiteRunInformation_status :: (Maybe SuiteRunStatus -> f (Maybe SuiteRunStatus))
-> SuiteRunInformation -> f SuiteRunInformation
suiteRunInformation_status = (SuiteRunInformation -> Maybe SuiteRunStatus)
-> (SuiteRunInformation
-> Maybe SuiteRunStatus -> SuiteRunInformation)
-> Lens
SuiteRunInformation
SuiteRunInformation
(Maybe SuiteRunStatus)
(Maybe SuiteRunStatus)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\SuiteRunInformation' {Maybe SuiteRunStatus
status :: Maybe SuiteRunStatus
$sel:status:SuiteRunInformation' :: SuiteRunInformation -> Maybe SuiteRunStatus
status} -> Maybe SuiteRunStatus
status) (\s :: SuiteRunInformation
s@SuiteRunInformation' {} Maybe SuiteRunStatus
a -> SuiteRunInformation
s {$sel:status:SuiteRunInformation' :: Maybe SuiteRunStatus
status = Maybe SuiteRunStatus
a} :: SuiteRunInformation)
suiteRunInformation_createdAt :: Lens.Lens' SuiteRunInformation (Prelude.Maybe Prelude.UTCTime)
suiteRunInformation_createdAt :: (Maybe UTCTime -> f (Maybe UTCTime))
-> SuiteRunInformation -> f SuiteRunInformation
suiteRunInformation_createdAt = (SuiteRunInformation -> Maybe POSIX)
-> (SuiteRunInformation -> Maybe POSIX -> SuiteRunInformation)
-> Lens
SuiteRunInformation SuiteRunInformation (Maybe POSIX) (Maybe POSIX)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\SuiteRunInformation' {Maybe POSIX
createdAt :: Maybe POSIX
$sel:createdAt:SuiteRunInformation' :: SuiteRunInformation -> Maybe POSIX
createdAt} -> Maybe POSIX
createdAt) (\s :: SuiteRunInformation
s@SuiteRunInformation' {} Maybe POSIX
a -> SuiteRunInformation
s {$sel:createdAt:SuiteRunInformation' :: Maybe POSIX
createdAt = Maybe POSIX
a} :: SuiteRunInformation) ((Maybe POSIX -> f (Maybe POSIX))
-> SuiteRunInformation -> f SuiteRunInformation)
-> ((Maybe UTCTime -> f (Maybe UTCTime))
-> Maybe POSIX -> f (Maybe POSIX))
-> (Maybe UTCTime -> f (Maybe UTCTime))
-> SuiteRunInformation
-> f SuiteRunInformation
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
suiteRunInformation_passed :: Lens.Lens' SuiteRunInformation (Prelude.Maybe Prelude.Natural)
suiteRunInformation_passed :: (Maybe Natural -> f (Maybe Natural))
-> SuiteRunInformation -> f SuiteRunInformation
suiteRunInformation_passed = (SuiteRunInformation -> Maybe Natural)
-> (SuiteRunInformation -> Maybe Natural -> SuiteRunInformation)
-> Lens
SuiteRunInformation
SuiteRunInformation
(Maybe Natural)
(Maybe Natural)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\SuiteRunInformation' {Maybe Natural
passed :: Maybe Natural
$sel:passed:SuiteRunInformation' :: SuiteRunInformation -> Maybe Natural
passed} -> Maybe Natural
passed) (\s :: SuiteRunInformation
s@SuiteRunInformation' {} Maybe Natural
a -> SuiteRunInformation
s {$sel:passed:SuiteRunInformation' :: Maybe Natural
passed = Maybe Natural
a} :: SuiteRunInformation)
suiteRunInformation_suiteDefinitionId :: Lens.Lens' SuiteRunInformation (Prelude.Maybe Prelude.Text)
suiteRunInformation_suiteDefinitionId :: (Maybe Text -> f (Maybe Text))
-> SuiteRunInformation -> f SuiteRunInformation
suiteRunInformation_suiteDefinitionId = (SuiteRunInformation -> Maybe Text)
-> (SuiteRunInformation -> Maybe Text -> SuiteRunInformation)
-> Lens
SuiteRunInformation SuiteRunInformation (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\SuiteRunInformation' {Maybe Text
suiteDefinitionId :: Maybe Text
$sel:suiteDefinitionId:SuiteRunInformation' :: SuiteRunInformation -> Maybe Text
suiteDefinitionId} -> Maybe Text
suiteDefinitionId) (\s :: SuiteRunInformation
s@SuiteRunInformation' {} Maybe Text
a -> SuiteRunInformation
s {$sel:suiteDefinitionId:SuiteRunInformation' :: Maybe Text
suiteDefinitionId = Maybe Text
a} :: SuiteRunInformation)
suiteRunInformation_suiteDefinitionVersion :: Lens.Lens' SuiteRunInformation (Prelude.Maybe Prelude.Text)
suiteRunInformation_suiteDefinitionVersion :: (Maybe Text -> f (Maybe Text))
-> SuiteRunInformation -> f SuiteRunInformation
suiteRunInformation_suiteDefinitionVersion = (SuiteRunInformation -> Maybe Text)
-> (SuiteRunInformation -> Maybe Text -> SuiteRunInformation)
-> Lens
SuiteRunInformation SuiteRunInformation (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\SuiteRunInformation' {Maybe Text
suiteDefinitionVersion :: Maybe Text
$sel:suiteDefinitionVersion:SuiteRunInformation' :: SuiteRunInformation -> Maybe Text
suiteDefinitionVersion} -> Maybe Text
suiteDefinitionVersion) (\s :: SuiteRunInformation
s@SuiteRunInformation' {} Maybe Text
a -> SuiteRunInformation
s {$sel:suiteDefinitionVersion:SuiteRunInformation' :: Maybe Text
suiteDefinitionVersion = Maybe Text
a} :: SuiteRunInformation)
suiteRunInformation_startedAt :: Lens.Lens' SuiteRunInformation (Prelude.Maybe Prelude.UTCTime)
suiteRunInformation_startedAt :: (Maybe UTCTime -> f (Maybe UTCTime))
-> SuiteRunInformation -> f SuiteRunInformation
suiteRunInformation_startedAt = (SuiteRunInformation -> Maybe POSIX)
-> (SuiteRunInformation -> Maybe POSIX -> SuiteRunInformation)
-> Lens
SuiteRunInformation SuiteRunInformation (Maybe POSIX) (Maybe POSIX)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\SuiteRunInformation' {Maybe POSIX
startedAt :: Maybe POSIX
$sel:startedAt:SuiteRunInformation' :: SuiteRunInformation -> Maybe POSIX
startedAt} -> Maybe POSIX
startedAt) (\s :: SuiteRunInformation
s@SuiteRunInformation' {} Maybe POSIX
a -> SuiteRunInformation
s {$sel:startedAt:SuiteRunInformation' :: Maybe POSIX
startedAt = Maybe POSIX
a} :: SuiteRunInformation) ((Maybe POSIX -> f (Maybe POSIX))
-> SuiteRunInformation -> f SuiteRunInformation)
-> ((Maybe UTCTime -> f (Maybe UTCTime))
-> Maybe POSIX -> f (Maybe POSIX))
-> (Maybe UTCTime -> f (Maybe UTCTime))
-> SuiteRunInformation
-> f SuiteRunInformation
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
suiteRunInformation_suiteDefinitionName :: Lens.Lens' SuiteRunInformation (Prelude.Maybe Prelude.Text)
suiteRunInformation_suiteDefinitionName :: (Maybe Text -> f (Maybe Text))
-> SuiteRunInformation -> f SuiteRunInformation
suiteRunInformation_suiteDefinitionName = (SuiteRunInformation -> Maybe Text)
-> (SuiteRunInformation -> Maybe Text -> SuiteRunInformation)
-> Lens
SuiteRunInformation SuiteRunInformation (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\SuiteRunInformation' {Maybe Text
suiteDefinitionName :: Maybe Text
$sel:suiteDefinitionName:SuiteRunInformation' :: SuiteRunInformation -> Maybe Text
suiteDefinitionName} -> Maybe Text
suiteDefinitionName) (\s :: SuiteRunInformation
s@SuiteRunInformation' {} Maybe Text
a -> SuiteRunInformation
s {$sel:suiteDefinitionName:SuiteRunInformation' :: Maybe Text
suiteDefinitionName = Maybe Text
a} :: SuiteRunInformation)
suiteRunInformation_endAt :: Lens.Lens' SuiteRunInformation (Prelude.Maybe Prelude.UTCTime)
suiteRunInformation_endAt :: (Maybe UTCTime -> f (Maybe UTCTime))
-> SuiteRunInformation -> f SuiteRunInformation
suiteRunInformation_endAt = (SuiteRunInformation -> Maybe POSIX)
-> (SuiteRunInformation -> Maybe POSIX -> SuiteRunInformation)
-> Lens
SuiteRunInformation SuiteRunInformation (Maybe POSIX) (Maybe POSIX)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\SuiteRunInformation' {Maybe POSIX
endAt :: Maybe POSIX
$sel:endAt:SuiteRunInformation' :: SuiteRunInformation -> Maybe POSIX
endAt} -> Maybe POSIX
endAt) (\s :: SuiteRunInformation
s@SuiteRunInformation' {} Maybe POSIX
a -> SuiteRunInformation
s {$sel:endAt:SuiteRunInformation' :: Maybe POSIX
endAt = Maybe POSIX
a} :: SuiteRunInformation) ((Maybe POSIX -> f (Maybe POSIX))
-> SuiteRunInformation -> f SuiteRunInformation)
-> ((Maybe UTCTime -> f (Maybe UTCTime))
-> Maybe POSIX -> f (Maybe POSIX))
-> (Maybe UTCTime -> f (Maybe UTCTime))
-> SuiteRunInformation
-> f SuiteRunInformation
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
suiteRunInformation_suiteRunId :: Lens.Lens' SuiteRunInformation (Prelude.Maybe Prelude.Text)
suiteRunInformation_suiteRunId :: (Maybe Text -> f (Maybe Text))
-> SuiteRunInformation -> f SuiteRunInformation
suiteRunInformation_suiteRunId = (SuiteRunInformation -> Maybe Text)
-> (SuiteRunInformation -> Maybe Text -> SuiteRunInformation)
-> Lens
SuiteRunInformation SuiteRunInformation (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\SuiteRunInformation' {Maybe Text
suiteRunId :: Maybe Text
$sel:suiteRunId:SuiteRunInformation' :: SuiteRunInformation -> Maybe Text
suiteRunId} -> Maybe Text
suiteRunId) (\s :: SuiteRunInformation
s@SuiteRunInformation' {} Maybe Text
a -> SuiteRunInformation
s {$sel:suiteRunId:SuiteRunInformation' :: Maybe Text
suiteRunId = Maybe Text
a} :: SuiteRunInformation)
suiteRunInformation_failed :: Lens.Lens' SuiteRunInformation (Prelude.Maybe Prelude.Natural)
suiteRunInformation_failed :: (Maybe Natural -> f (Maybe Natural))
-> SuiteRunInformation -> f SuiteRunInformation
suiteRunInformation_failed = (SuiteRunInformation -> Maybe Natural)
-> (SuiteRunInformation -> Maybe Natural -> SuiteRunInformation)
-> Lens
SuiteRunInformation
SuiteRunInformation
(Maybe Natural)
(Maybe Natural)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\SuiteRunInformation' {Maybe Natural
failed :: Maybe Natural
$sel:failed:SuiteRunInformation' :: SuiteRunInformation -> Maybe Natural
failed} -> Maybe Natural
failed) (\s :: SuiteRunInformation
s@SuiteRunInformation' {} Maybe Natural
a -> SuiteRunInformation
s {$sel:failed:SuiteRunInformation' :: Maybe Natural
failed = Maybe Natural
a} :: SuiteRunInformation)
instance Core.FromJSON SuiteRunInformation where
parseJSON :: Value -> Parser SuiteRunInformation
parseJSON =
String
-> (Object -> Parser SuiteRunInformation)
-> Value
-> Parser SuiteRunInformation
forall a. String -> (Object -> Parser a) -> Value -> Parser a
Core.withObject
String
"SuiteRunInformation"
( \Object
x ->
Maybe SuiteRunStatus
-> Maybe POSIX
-> Maybe Natural
-> Maybe Text
-> Maybe Text
-> Maybe POSIX
-> Maybe Text
-> Maybe POSIX
-> Maybe Text
-> Maybe Natural
-> SuiteRunInformation
SuiteRunInformation'
(Maybe SuiteRunStatus
-> Maybe POSIX
-> Maybe Natural
-> Maybe Text
-> Maybe Text
-> Maybe POSIX
-> Maybe Text
-> Maybe POSIX
-> Maybe Text
-> Maybe Natural
-> SuiteRunInformation)
-> Parser (Maybe SuiteRunStatus)
-> Parser
(Maybe POSIX
-> Maybe Natural
-> Maybe Text
-> Maybe Text
-> Maybe POSIX
-> Maybe Text
-> Maybe POSIX
-> Maybe Text
-> Maybe Natural
-> SuiteRunInformation)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x Object -> Text -> Parser (Maybe SuiteRunStatus)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"status")
Parser
(Maybe POSIX
-> Maybe Natural
-> Maybe Text
-> Maybe Text
-> Maybe POSIX
-> Maybe Text
-> Maybe POSIX
-> Maybe Text
-> Maybe Natural
-> SuiteRunInformation)
-> Parser (Maybe POSIX)
-> Parser
(Maybe Natural
-> Maybe Text
-> Maybe Text
-> Maybe POSIX
-> Maybe Text
-> Maybe POSIX
-> Maybe Text
-> Maybe Natural
-> SuiteRunInformation)
forall (f :: * -> *) a b. Applicative f => 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
"createdAt")
Parser
(Maybe Natural
-> Maybe Text
-> Maybe Text
-> Maybe POSIX
-> Maybe Text
-> Maybe POSIX
-> Maybe Text
-> Maybe Natural
-> SuiteRunInformation)
-> Parser (Maybe Natural)
-> Parser
(Maybe Text
-> Maybe Text
-> Maybe POSIX
-> Maybe Text
-> Maybe POSIX
-> Maybe Text
-> Maybe Natural
-> SuiteRunInformation)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe Natural)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"passed")
Parser
(Maybe Text
-> Maybe Text
-> Maybe POSIX
-> Maybe Text
-> Maybe POSIX
-> Maybe Text
-> Maybe Natural
-> SuiteRunInformation)
-> Parser (Maybe Text)
-> Parser
(Maybe Text
-> Maybe POSIX
-> Maybe Text
-> Maybe POSIX
-> Maybe Text
-> Maybe Natural
-> SuiteRunInformation)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe Text)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"suiteDefinitionId")
Parser
(Maybe Text
-> Maybe POSIX
-> Maybe Text
-> Maybe POSIX
-> Maybe Text
-> Maybe Natural
-> SuiteRunInformation)
-> Parser (Maybe Text)
-> Parser
(Maybe POSIX
-> Maybe Text
-> Maybe POSIX
-> Maybe Text
-> Maybe Natural
-> SuiteRunInformation)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe Text)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"suiteDefinitionVersion")
Parser
(Maybe POSIX
-> Maybe Text
-> Maybe POSIX
-> Maybe Text
-> Maybe Natural
-> SuiteRunInformation)
-> Parser (Maybe POSIX)
-> Parser
(Maybe Text
-> Maybe POSIX
-> Maybe Text
-> Maybe Natural
-> SuiteRunInformation)
forall (f :: * -> *) a b. Applicative f => 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
"startedAt")
Parser
(Maybe Text
-> Maybe POSIX
-> Maybe Text
-> Maybe Natural
-> SuiteRunInformation)
-> Parser (Maybe Text)
-> Parser
(Maybe POSIX -> Maybe Text -> Maybe Natural -> SuiteRunInformation)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe Text)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"suiteDefinitionName")
Parser
(Maybe POSIX -> Maybe Text -> Maybe Natural -> SuiteRunInformation)
-> Parser (Maybe POSIX)
-> Parser (Maybe Text -> Maybe Natural -> SuiteRunInformation)
forall (f :: * -> *) a b. Applicative f => 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
"endAt")
Parser (Maybe Text -> Maybe Natural -> SuiteRunInformation)
-> Parser (Maybe Text)
-> Parser (Maybe Natural -> SuiteRunInformation)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe Text)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"suiteRunId")
Parser (Maybe Natural -> SuiteRunInformation)
-> Parser (Maybe Natural) -> Parser SuiteRunInformation
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe Natural)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"failed")
)
instance Prelude.Hashable SuiteRunInformation
instance Prelude.NFData SuiteRunInformation