{-# 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 #-}

-- Derived from AWS service descriptions, licensed under Apache 2.0.

-- |
-- Module      : Amazonka.IoTDeviceAdvisor.Types.TestCaseRun
-- Copyright   : (c) 2013-2021 Brendan Hay
-- License     : Mozilla Public License, v. 2.0.
-- Maintainer  : Brendan Hay <brendan.g.hay+amazonka@gmail.com>
-- Stability   : auto-generated
-- Portability : non-portable (GHC extensions)
module Amazonka.IoTDeviceAdvisor.Types.TestCaseRun where

import qualified Amazonka.Core as Core
import Amazonka.IoTDeviceAdvisor.Types.Status
import qualified Amazonka.Lens as Lens
import qualified Amazonka.Prelude as Prelude

-- | Provides test case run.
--
-- /See:/ 'newTestCaseRun' smart constructor.
data TestCaseRun = TestCaseRun'
  { -- | Provides test case run status.
    TestCaseRun -> Maybe Status
status :: Prelude.Maybe Status,
    -- | Provides test case run log Url.
    TestCaseRun -> Maybe Text
logUrl :: Prelude.Maybe Prelude.Text,
    -- | Provides test case run start time.
    TestCaseRun -> Maybe POSIX
startTime :: Prelude.Maybe Core.POSIX,
    -- | Provides test case run Id.
    TestCaseRun -> Maybe Text
testCaseRunId :: Prelude.Maybe Prelude.Text,
    -- | Provides test case run warnings.
    TestCaseRun -> Maybe Text
warnings :: Prelude.Maybe Prelude.Text,
    -- | Provides test case run end time.
    TestCaseRun -> Maybe POSIX
endTime :: Prelude.Maybe Core.POSIX,
    -- | Provides test case run definition Id.
    TestCaseRun -> Maybe Text
testCaseDefinitionId :: Prelude.Maybe Prelude.Text,
    -- | Provides test case run failure result.
    TestCaseRun -> Maybe Text
failure :: Prelude.Maybe Prelude.Text,
    -- | Provides test case run definition Name.
    TestCaseRun -> Maybe Text
testCaseDefinitionName :: Prelude.Maybe Prelude.Text
  }
  deriving (TestCaseRun -> TestCaseRun -> Bool
(TestCaseRun -> TestCaseRun -> Bool)
-> (TestCaseRun -> TestCaseRun -> Bool) -> Eq TestCaseRun
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: TestCaseRun -> TestCaseRun -> Bool
$c/= :: TestCaseRun -> TestCaseRun -> Bool
== :: TestCaseRun -> TestCaseRun -> Bool
$c== :: TestCaseRun -> TestCaseRun -> Bool
Prelude.Eq, ReadPrec [TestCaseRun]
ReadPrec TestCaseRun
Int -> ReadS TestCaseRun
ReadS [TestCaseRun]
(Int -> ReadS TestCaseRun)
-> ReadS [TestCaseRun]
-> ReadPrec TestCaseRun
-> ReadPrec [TestCaseRun]
-> Read TestCaseRun
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [TestCaseRun]
$creadListPrec :: ReadPrec [TestCaseRun]
readPrec :: ReadPrec TestCaseRun
$creadPrec :: ReadPrec TestCaseRun
readList :: ReadS [TestCaseRun]
$creadList :: ReadS [TestCaseRun]
readsPrec :: Int -> ReadS TestCaseRun
$creadsPrec :: Int -> ReadS TestCaseRun
Prelude.Read, Int -> TestCaseRun -> ShowS
[TestCaseRun] -> ShowS
TestCaseRun -> String
(Int -> TestCaseRun -> ShowS)
-> (TestCaseRun -> String)
-> ([TestCaseRun] -> ShowS)
-> Show TestCaseRun
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [TestCaseRun] -> ShowS
$cshowList :: [TestCaseRun] -> ShowS
show :: TestCaseRun -> String
$cshow :: TestCaseRun -> String
showsPrec :: Int -> TestCaseRun -> ShowS
$cshowsPrec :: Int -> TestCaseRun -> ShowS
Prelude.Show, (forall x. TestCaseRun -> Rep TestCaseRun x)
-> (forall x. Rep TestCaseRun x -> TestCaseRun)
-> Generic TestCaseRun
forall x. Rep TestCaseRun x -> TestCaseRun
forall x. TestCaseRun -> Rep TestCaseRun x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep TestCaseRun x -> TestCaseRun
$cfrom :: forall x. TestCaseRun -> Rep TestCaseRun x
Prelude.Generic)

-- |
-- Create a value of 'TestCaseRun' with all optional fields omitted.
--
-- Use <https://hackage.haskell.org/package/generic-lens generic-lens> or <https://hackage.haskell.org/package/optics optics> to modify other optional fields.
--
-- The following record fields are available, with the corresponding lenses provided
-- for backwards compatibility:
--
-- 'status', 'testCaseRun_status' - Provides test case run status.
--
-- 'logUrl', 'testCaseRun_logUrl' - Provides test case run log Url.
--
-- 'startTime', 'testCaseRun_startTime' - Provides test case run start time.
--
-- 'testCaseRunId', 'testCaseRun_testCaseRunId' - Provides test case run Id.
--
-- 'warnings', 'testCaseRun_warnings' - Provides test case run warnings.
--
-- 'endTime', 'testCaseRun_endTime' - Provides test case run end time.
--
-- 'testCaseDefinitionId', 'testCaseRun_testCaseDefinitionId' - Provides test case run definition Id.
--
-- 'failure', 'testCaseRun_failure' - Provides test case run failure result.
--
-- 'testCaseDefinitionName', 'testCaseRun_testCaseDefinitionName' - Provides test case run definition Name.
newTestCaseRun ::
  TestCaseRun
newTestCaseRun :: TestCaseRun
newTestCaseRun =
  TestCaseRun' :: Maybe Status
-> Maybe Text
-> Maybe POSIX
-> Maybe Text
-> Maybe Text
-> Maybe POSIX
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> TestCaseRun
TestCaseRun'
    { $sel:status:TestCaseRun' :: Maybe Status
status = Maybe Status
forall a. Maybe a
Prelude.Nothing,
      $sel:logUrl:TestCaseRun' :: Maybe Text
logUrl = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:startTime:TestCaseRun' :: Maybe POSIX
startTime = Maybe POSIX
forall a. Maybe a
Prelude.Nothing,
      $sel:testCaseRunId:TestCaseRun' :: Maybe Text
testCaseRunId = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:warnings:TestCaseRun' :: Maybe Text
warnings = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:endTime:TestCaseRun' :: Maybe POSIX
endTime = Maybe POSIX
forall a. Maybe a
Prelude.Nothing,
      $sel:testCaseDefinitionId:TestCaseRun' :: Maybe Text
testCaseDefinitionId = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:failure:TestCaseRun' :: Maybe Text
failure = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:testCaseDefinitionName:TestCaseRun' :: Maybe Text
testCaseDefinitionName = Maybe Text
forall a. Maybe a
Prelude.Nothing
    }

-- | Provides test case run status.
testCaseRun_status :: Lens.Lens' TestCaseRun (Prelude.Maybe Status)
testCaseRun_status :: (Maybe Status -> f (Maybe Status)) -> TestCaseRun -> f TestCaseRun
testCaseRun_status = (TestCaseRun -> Maybe Status)
-> (TestCaseRun -> Maybe Status -> TestCaseRun)
-> Lens TestCaseRun TestCaseRun (Maybe Status) (Maybe Status)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\TestCaseRun' {Maybe Status
status :: Maybe Status
$sel:status:TestCaseRun' :: TestCaseRun -> Maybe Status
status} -> Maybe Status
status) (\s :: TestCaseRun
s@TestCaseRun' {} Maybe Status
a -> TestCaseRun
s {$sel:status:TestCaseRun' :: Maybe Status
status = Maybe Status
a} :: TestCaseRun)

-- | Provides test case run log Url.
testCaseRun_logUrl :: Lens.Lens' TestCaseRun (Prelude.Maybe Prelude.Text)
testCaseRun_logUrl :: (Maybe Text -> f (Maybe Text)) -> TestCaseRun -> f TestCaseRun
testCaseRun_logUrl = (TestCaseRun -> Maybe Text)
-> (TestCaseRun -> Maybe Text -> TestCaseRun)
-> Lens TestCaseRun TestCaseRun (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\TestCaseRun' {Maybe Text
logUrl :: Maybe Text
$sel:logUrl:TestCaseRun' :: TestCaseRun -> Maybe Text
logUrl} -> Maybe Text
logUrl) (\s :: TestCaseRun
s@TestCaseRun' {} Maybe Text
a -> TestCaseRun
s {$sel:logUrl:TestCaseRun' :: Maybe Text
logUrl = Maybe Text
a} :: TestCaseRun)

-- | Provides test case run start time.
testCaseRun_startTime :: Lens.Lens' TestCaseRun (Prelude.Maybe Prelude.UTCTime)
testCaseRun_startTime :: (Maybe UTCTime -> f (Maybe UTCTime))
-> TestCaseRun -> f TestCaseRun
testCaseRun_startTime = (TestCaseRun -> Maybe POSIX)
-> (TestCaseRun -> Maybe POSIX -> TestCaseRun)
-> Lens TestCaseRun TestCaseRun (Maybe POSIX) (Maybe POSIX)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\TestCaseRun' {Maybe POSIX
startTime :: Maybe POSIX
$sel:startTime:TestCaseRun' :: TestCaseRun -> Maybe POSIX
startTime} -> Maybe POSIX
startTime) (\s :: TestCaseRun
s@TestCaseRun' {} Maybe POSIX
a -> TestCaseRun
s {$sel:startTime:TestCaseRun' :: Maybe POSIX
startTime = Maybe POSIX
a} :: TestCaseRun) ((Maybe POSIX -> f (Maybe POSIX)) -> TestCaseRun -> f TestCaseRun)
-> ((Maybe UTCTime -> f (Maybe UTCTime))
    -> Maybe POSIX -> f (Maybe POSIX))
-> (Maybe UTCTime -> f (Maybe UTCTime))
-> TestCaseRun
-> f TestCaseRun
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

-- | Provides test case run Id.
testCaseRun_testCaseRunId :: Lens.Lens' TestCaseRun (Prelude.Maybe Prelude.Text)
testCaseRun_testCaseRunId :: (Maybe Text -> f (Maybe Text)) -> TestCaseRun -> f TestCaseRun
testCaseRun_testCaseRunId = (TestCaseRun -> Maybe Text)
-> (TestCaseRun -> Maybe Text -> TestCaseRun)
-> Lens TestCaseRun TestCaseRun (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\TestCaseRun' {Maybe Text
testCaseRunId :: Maybe Text
$sel:testCaseRunId:TestCaseRun' :: TestCaseRun -> Maybe Text
testCaseRunId} -> Maybe Text
testCaseRunId) (\s :: TestCaseRun
s@TestCaseRun' {} Maybe Text
a -> TestCaseRun
s {$sel:testCaseRunId:TestCaseRun' :: Maybe Text
testCaseRunId = Maybe Text
a} :: TestCaseRun)

-- | Provides test case run warnings.
testCaseRun_warnings :: Lens.Lens' TestCaseRun (Prelude.Maybe Prelude.Text)
testCaseRun_warnings :: (Maybe Text -> f (Maybe Text)) -> TestCaseRun -> f TestCaseRun
testCaseRun_warnings = (TestCaseRun -> Maybe Text)
-> (TestCaseRun -> Maybe Text -> TestCaseRun)
-> Lens TestCaseRun TestCaseRun (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\TestCaseRun' {Maybe Text
warnings :: Maybe Text
$sel:warnings:TestCaseRun' :: TestCaseRun -> Maybe Text
warnings} -> Maybe Text
warnings) (\s :: TestCaseRun
s@TestCaseRun' {} Maybe Text
a -> TestCaseRun
s {$sel:warnings:TestCaseRun' :: Maybe Text
warnings = Maybe Text
a} :: TestCaseRun)

-- | Provides test case run end time.
testCaseRun_endTime :: Lens.Lens' TestCaseRun (Prelude.Maybe Prelude.UTCTime)
testCaseRun_endTime :: (Maybe UTCTime -> f (Maybe UTCTime))
-> TestCaseRun -> f TestCaseRun
testCaseRun_endTime = (TestCaseRun -> Maybe POSIX)
-> (TestCaseRun -> Maybe POSIX -> TestCaseRun)
-> Lens TestCaseRun TestCaseRun (Maybe POSIX) (Maybe POSIX)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\TestCaseRun' {Maybe POSIX
endTime :: Maybe POSIX
$sel:endTime:TestCaseRun' :: TestCaseRun -> Maybe POSIX
endTime} -> Maybe POSIX
endTime) (\s :: TestCaseRun
s@TestCaseRun' {} Maybe POSIX
a -> TestCaseRun
s {$sel:endTime:TestCaseRun' :: Maybe POSIX
endTime = Maybe POSIX
a} :: TestCaseRun) ((Maybe POSIX -> f (Maybe POSIX)) -> TestCaseRun -> f TestCaseRun)
-> ((Maybe UTCTime -> f (Maybe UTCTime))
    -> Maybe POSIX -> f (Maybe POSIX))
-> (Maybe UTCTime -> f (Maybe UTCTime))
-> TestCaseRun
-> f TestCaseRun
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

-- | Provides test case run definition Id.
testCaseRun_testCaseDefinitionId :: Lens.Lens' TestCaseRun (Prelude.Maybe Prelude.Text)
testCaseRun_testCaseDefinitionId :: (Maybe Text -> f (Maybe Text)) -> TestCaseRun -> f TestCaseRun
testCaseRun_testCaseDefinitionId = (TestCaseRun -> Maybe Text)
-> (TestCaseRun -> Maybe Text -> TestCaseRun)
-> Lens TestCaseRun TestCaseRun (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\TestCaseRun' {Maybe Text
testCaseDefinitionId :: Maybe Text
$sel:testCaseDefinitionId:TestCaseRun' :: TestCaseRun -> Maybe Text
testCaseDefinitionId} -> Maybe Text
testCaseDefinitionId) (\s :: TestCaseRun
s@TestCaseRun' {} Maybe Text
a -> TestCaseRun
s {$sel:testCaseDefinitionId:TestCaseRun' :: Maybe Text
testCaseDefinitionId = Maybe Text
a} :: TestCaseRun)

-- | Provides test case run failure result.
testCaseRun_failure :: Lens.Lens' TestCaseRun (Prelude.Maybe Prelude.Text)
testCaseRun_failure :: (Maybe Text -> f (Maybe Text)) -> TestCaseRun -> f TestCaseRun
testCaseRun_failure = (TestCaseRun -> Maybe Text)
-> (TestCaseRun -> Maybe Text -> TestCaseRun)
-> Lens TestCaseRun TestCaseRun (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\TestCaseRun' {Maybe Text
failure :: Maybe Text
$sel:failure:TestCaseRun' :: TestCaseRun -> Maybe Text
failure} -> Maybe Text
failure) (\s :: TestCaseRun
s@TestCaseRun' {} Maybe Text
a -> TestCaseRun
s {$sel:failure:TestCaseRun' :: Maybe Text
failure = Maybe Text
a} :: TestCaseRun)

-- | Provides test case run definition Name.
testCaseRun_testCaseDefinitionName :: Lens.Lens' TestCaseRun (Prelude.Maybe Prelude.Text)
testCaseRun_testCaseDefinitionName :: (Maybe Text -> f (Maybe Text)) -> TestCaseRun -> f TestCaseRun
testCaseRun_testCaseDefinitionName = (TestCaseRun -> Maybe Text)
-> (TestCaseRun -> Maybe Text -> TestCaseRun)
-> Lens TestCaseRun TestCaseRun (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\TestCaseRun' {Maybe Text
testCaseDefinitionName :: Maybe Text
$sel:testCaseDefinitionName:TestCaseRun' :: TestCaseRun -> Maybe Text
testCaseDefinitionName} -> Maybe Text
testCaseDefinitionName) (\s :: TestCaseRun
s@TestCaseRun' {} Maybe Text
a -> TestCaseRun
s {$sel:testCaseDefinitionName:TestCaseRun' :: Maybe Text
testCaseDefinitionName = Maybe Text
a} :: TestCaseRun)

instance Core.FromJSON TestCaseRun where
  parseJSON :: Value -> Parser TestCaseRun
parseJSON =
    String
-> (Object -> Parser TestCaseRun) -> Value -> Parser TestCaseRun
forall a. String -> (Object -> Parser a) -> Value -> Parser a
Core.withObject
      String
"TestCaseRun"
      ( \Object
x ->
          Maybe Status
-> Maybe Text
-> Maybe POSIX
-> Maybe Text
-> Maybe Text
-> Maybe POSIX
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> TestCaseRun
TestCaseRun'
            (Maybe Status
 -> Maybe Text
 -> Maybe POSIX
 -> Maybe Text
 -> Maybe Text
 -> Maybe POSIX
 -> Maybe Text
 -> Maybe Text
 -> Maybe Text
 -> TestCaseRun)
-> Parser (Maybe Status)
-> Parser
     (Maybe Text
      -> Maybe POSIX
      -> Maybe Text
      -> Maybe Text
      -> Maybe POSIX
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> TestCaseRun)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x Object -> Text -> Parser (Maybe Status)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"status")
            Parser
  (Maybe Text
   -> Maybe POSIX
   -> Maybe Text
   -> Maybe Text
   -> Maybe POSIX
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> TestCaseRun)
-> Parser (Maybe Text)
-> Parser
     (Maybe POSIX
      -> Maybe Text
      -> Maybe Text
      -> Maybe POSIX
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> TestCaseRun)
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
"logUrl")
            Parser
  (Maybe POSIX
   -> Maybe Text
   -> Maybe Text
   -> Maybe POSIX
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> TestCaseRun)
-> Parser (Maybe POSIX)
-> Parser
     (Maybe Text
      -> Maybe Text
      -> Maybe POSIX
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> TestCaseRun)
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
"startTime")
            Parser
  (Maybe Text
   -> Maybe Text
   -> Maybe POSIX
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> TestCaseRun)
-> Parser (Maybe Text)
-> Parser
     (Maybe Text
      -> Maybe POSIX
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> TestCaseRun)
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
"testCaseRunId")
            Parser
  (Maybe Text
   -> Maybe POSIX
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> TestCaseRun)
-> Parser (Maybe Text)
-> Parser
     (Maybe POSIX
      -> Maybe Text -> Maybe Text -> Maybe Text -> TestCaseRun)
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
"warnings")
            Parser
  (Maybe POSIX
   -> Maybe Text -> Maybe Text -> Maybe Text -> TestCaseRun)
-> Parser (Maybe POSIX)
-> Parser (Maybe Text -> Maybe Text -> Maybe Text -> TestCaseRun)
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
"endTime")
            Parser (Maybe Text -> Maybe Text -> Maybe Text -> TestCaseRun)
-> Parser (Maybe Text)
-> Parser (Maybe Text -> Maybe Text -> TestCaseRun)
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
"testCaseDefinitionId")
            Parser (Maybe Text -> Maybe Text -> TestCaseRun)
-> Parser (Maybe Text) -> Parser (Maybe Text -> TestCaseRun)
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
"failure")
            Parser (Maybe Text -> TestCaseRun)
-> Parser (Maybe Text) -> Parser TestCaseRun
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
"testCaseDefinitionName")
      )

instance Prelude.Hashable TestCaseRun

instance Prelude.NFData TestCaseRun