{-# 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-2023 Brendan Hay
-- License     : Mozilla Public License, v. 2.0.
-- Maintainer  : Brendan Hay
-- Stability   : auto-generated
-- Portability : non-portable (GHC extensions)
module Amazonka.IoTDeviceAdvisor.Types.TestCaseRun where

import qualified Amazonka.Core as Core
import qualified Amazonka.Core.Lens.Internal as Lens
import qualified Amazonka.Data as Data
import Amazonka.IoTDeviceAdvisor.Types.Status
import Amazonka.IoTDeviceAdvisor.Types.TestCaseScenario
import qualified Amazonka.Prelude as Prelude

-- | Provides the test case run.
--
-- /See:/ 'newTestCaseRun' smart constructor.
data TestCaseRun = TestCaseRun'
  { -- | Provides test case run end time.
    TestCaseRun -> Maybe POSIX
endTime :: Prelude.Maybe Data.POSIX,
    -- | Provides test case run failure result.
    TestCaseRun -> Maybe Text
failure :: Prelude.Maybe Prelude.Text,
    -- | 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 Data.POSIX,
    -- | Provides the test case run status. Status is one of the following:
    --
    -- -   @PASS@: Test passed.
    --
    -- -   @FAIL@: Test failed.
    --
    -- -   @PENDING@: Test has not started running but is scheduled.
    --
    -- -   @RUNNING@: Test is running.
    --
    -- -   @STOPPING@: Test is performing cleanup steps. You will see this
    --     status only if you stop a suite run.
    --
    -- -   @STOPPED@ Test is stopped. You will see this status only if you stop
    --     a suite run.
    --
    -- -   @PASS_WITH_WARNINGS@: Test passed with warnings.
    --
    -- -   @ERORR@: Test faced an error when running due to an internal issue.
    TestCaseRun -> Maybe Status
status :: Prelude.Maybe Status,
    -- | Provides the test case run definition ID.
    TestCaseRun -> Maybe Text
testCaseDefinitionId :: Prelude.Maybe Prelude.Text,
    -- | Provides the test case run definition name.
    TestCaseRun -> Maybe Text
testCaseDefinitionName :: Prelude.Maybe Prelude.Text,
    -- | Provides the test case run ID.
    TestCaseRun -> Maybe Text
testCaseRunId :: Prelude.Maybe Prelude.Text,
    -- | Provides the test scenarios for the test case run.
    TestCaseRun -> Maybe [TestCaseScenario]
testScenarios :: Prelude.Maybe [TestCaseScenario],
    -- | Provides test case run warnings.
    TestCaseRun -> Maybe Text
warnings :: Prelude.Maybe Prelude.Text
  }
  deriving (TestCaseRun -> TestCaseRun -> Bool
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]
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
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. 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:
--
-- 'endTime', 'testCaseRun_endTime' - Provides test case run end time.
--
-- 'failure', 'testCaseRun_failure' - Provides test case run failure result.
--
-- 'logUrl', 'testCaseRun_logUrl' - Provides test case run log URL.
--
-- 'startTime', 'testCaseRun_startTime' - Provides test case run start time.
--
-- 'status', 'testCaseRun_status' - Provides the test case run status. Status is one of the following:
--
-- -   @PASS@: Test passed.
--
-- -   @FAIL@: Test failed.
--
-- -   @PENDING@: Test has not started running but is scheduled.
--
-- -   @RUNNING@: Test is running.
--
-- -   @STOPPING@: Test is performing cleanup steps. You will see this
--     status only if you stop a suite run.
--
-- -   @STOPPED@ Test is stopped. You will see this status only if you stop
--     a suite run.
--
-- -   @PASS_WITH_WARNINGS@: Test passed with warnings.
--
-- -   @ERORR@: Test faced an error when running due to an internal issue.
--
-- 'testCaseDefinitionId', 'testCaseRun_testCaseDefinitionId' - Provides the test case run definition ID.
--
-- 'testCaseDefinitionName', 'testCaseRun_testCaseDefinitionName' - Provides the test case run definition name.
--
-- 'testCaseRunId', 'testCaseRun_testCaseRunId' - Provides the test case run ID.
--
-- 'testScenarios', 'testCaseRun_testScenarios' - Provides the test scenarios for the test case run.
--
-- 'warnings', 'testCaseRun_warnings' - Provides test case run warnings.
newTestCaseRun ::
  TestCaseRun
newTestCaseRun :: TestCaseRun
newTestCaseRun =
  TestCaseRun'
    { $sel:endTime:TestCaseRun' :: Maybe POSIX
endTime = forall a. Maybe a
Prelude.Nothing,
      $sel:failure:TestCaseRun' :: Maybe Text
failure = forall a. Maybe a
Prelude.Nothing,
      $sel:logUrl:TestCaseRun' :: Maybe Text
logUrl = forall a. Maybe a
Prelude.Nothing,
      $sel:startTime:TestCaseRun' :: Maybe POSIX
startTime = forall a. Maybe a
Prelude.Nothing,
      $sel:status:TestCaseRun' :: Maybe Status
status = forall a. Maybe a
Prelude.Nothing,
      $sel:testCaseDefinitionId:TestCaseRun' :: Maybe Text
testCaseDefinitionId = forall a. Maybe a
Prelude.Nothing,
      $sel:testCaseDefinitionName:TestCaseRun' :: Maybe Text
testCaseDefinitionName = forall a. Maybe a
Prelude.Nothing,
      $sel:testCaseRunId:TestCaseRun' :: Maybe Text
testCaseRunId = forall a. Maybe a
Prelude.Nothing,
      $sel:testScenarios:TestCaseRun' :: Maybe [TestCaseScenario]
testScenarios = forall a. Maybe a
Prelude.Nothing,
      $sel:warnings:TestCaseRun' :: Maybe Text
warnings = forall a. Maybe a
Prelude.Nothing
    }

-- | Provides test case run end time.
testCaseRun_endTime :: Lens.Lens' TestCaseRun (Prelude.Maybe Prelude.UTCTime)
testCaseRun_endTime :: Lens' TestCaseRun (Maybe UTCTime)
testCaseRun_endTime = 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) forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. 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 forall (a :: Format). Iso' (Time a) UTCTime
Data._Time

-- | Provides test case run failure result.
testCaseRun_failure :: Lens.Lens' TestCaseRun (Prelude.Maybe Prelude.Text)
testCaseRun_failure :: Lens' TestCaseRun (Maybe Text)
testCaseRun_failure = 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 log URL.
testCaseRun_logUrl :: Lens.Lens' TestCaseRun (Prelude.Maybe Prelude.Text)
testCaseRun_logUrl :: Lens' TestCaseRun (Maybe Text)
testCaseRun_logUrl = 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 :: Lens' TestCaseRun (Maybe UTCTime)
testCaseRun_startTime = 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) forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. 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 forall (a :: Format). Iso' (Time a) UTCTime
Data._Time

-- | Provides the test case run status. Status is one of the following:
--
-- -   @PASS@: Test passed.
--
-- -   @FAIL@: Test failed.
--
-- -   @PENDING@: Test has not started running but is scheduled.
--
-- -   @RUNNING@: Test is running.
--
-- -   @STOPPING@: Test is performing cleanup steps. You will see this
--     status only if you stop a suite run.
--
-- -   @STOPPED@ Test is stopped. You will see this status only if you stop
--     a suite run.
--
-- -   @PASS_WITH_WARNINGS@: Test passed with warnings.
--
-- -   @ERORR@: Test faced an error when running due to an internal issue.
testCaseRun_status :: Lens.Lens' TestCaseRun (Prelude.Maybe Status)
testCaseRun_status :: Lens' TestCaseRun (Maybe Status)
testCaseRun_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 the test case run definition ID.
testCaseRun_testCaseDefinitionId :: Lens.Lens' TestCaseRun (Prelude.Maybe Prelude.Text)
testCaseRun_testCaseDefinitionId :: Lens' TestCaseRun (Maybe Text)
testCaseRun_testCaseDefinitionId = 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 the test case run definition name.
testCaseRun_testCaseDefinitionName :: Lens.Lens' TestCaseRun (Prelude.Maybe Prelude.Text)
testCaseRun_testCaseDefinitionName :: Lens' TestCaseRun (Maybe Text)
testCaseRun_testCaseDefinitionName = 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)

-- | Provides the test case run ID.
testCaseRun_testCaseRunId :: Lens.Lens' TestCaseRun (Prelude.Maybe Prelude.Text)
testCaseRun_testCaseRunId :: Lens' TestCaseRun (Maybe Text)
testCaseRun_testCaseRunId = 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 the test scenarios for the test case run.
testCaseRun_testScenarios :: Lens.Lens' TestCaseRun (Prelude.Maybe [TestCaseScenario])
testCaseRun_testScenarios :: Lens' TestCaseRun (Maybe [TestCaseScenario])
testCaseRun_testScenarios = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\TestCaseRun' {Maybe [TestCaseScenario]
testScenarios :: Maybe [TestCaseScenario]
$sel:testScenarios:TestCaseRun' :: TestCaseRun -> Maybe [TestCaseScenario]
testScenarios} -> Maybe [TestCaseScenario]
testScenarios) (\s :: TestCaseRun
s@TestCaseRun' {} Maybe [TestCaseScenario]
a -> TestCaseRun
s {$sel:testScenarios:TestCaseRun' :: Maybe [TestCaseScenario]
testScenarios = Maybe [TestCaseScenario]
a} :: TestCaseRun) forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. 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 forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced

-- | Provides test case run warnings.
testCaseRun_warnings :: Lens.Lens' TestCaseRun (Prelude.Maybe Prelude.Text)
testCaseRun_warnings :: Lens' TestCaseRun (Maybe Text)
testCaseRun_warnings = 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)

instance Data.FromJSON TestCaseRun where
  parseJSON :: Value -> Parser TestCaseRun
parseJSON =
    forall a. String -> (Object -> Parser a) -> Value -> Parser a
Data.withObject
      String
"TestCaseRun"
      ( \Object
x ->
          Maybe POSIX
-> Maybe Text
-> Maybe Text
-> Maybe POSIX
-> Maybe Status
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe [TestCaseScenario]
-> Maybe Text
-> TestCaseRun
TestCaseRun'
            forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"endTime")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"failure")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"logUrl")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"startTime")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"status")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"testCaseDefinitionId")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"testCaseDefinitionName")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"testCaseRunId")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"testScenarios" forall a. Parser (Maybe a) -> a -> Parser a
Data..!= forall a. Monoid a => a
Prelude.mempty)
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"warnings")
      )

instance Prelude.Hashable TestCaseRun where
  hashWithSalt :: Int -> TestCaseRun -> Int
hashWithSalt Int
_salt TestCaseRun' {Maybe [TestCaseScenario]
Maybe Text
Maybe POSIX
Maybe Status
warnings :: Maybe Text
testScenarios :: Maybe [TestCaseScenario]
testCaseRunId :: Maybe Text
testCaseDefinitionName :: Maybe Text
testCaseDefinitionId :: Maybe Text
status :: Maybe Status
startTime :: Maybe POSIX
logUrl :: Maybe Text
failure :: Maybe Text
endTime :: Maybe POSIX
$sel:warnings:TestCaseRun' :: TestCaseRun -> Maybe Text
$sel:testScenarios:TestCaseRun' :: TestCaseRun -> Maybe [TestCaseScenario]
$sel:testCaseRunId:TestCaseRun' :: TestCaseRun -> Maybe Text
$sel:testCaseDefinitionName:TestCaseRun' :: TestCaseRun -> Maybe Text
$sel:testCaseDefinitionId:TestCaseRun' :: TestCaseRun -> Maybe Text
$sel:status:TestCaseRun' :: TestCaseRun -> Maybe Status
$sel:startTime:TestCaseRun' :: TestCaseRun -> Maybe POSIX
$sel:logUrl:TestCaseRun' :: TestCaseRun -> Maybe Text
$sel:failure:TestCaseRun' :: TestCaseRun -> Maybe Text
$sel:endTime:TestCaseRun' :: TestCaseRun -> Maybe POSIX
..} =
    Int
_salt
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe POSIX
endTime
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
failure
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
logUrl
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe POSIX
startTime
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Status
status
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
testCaseDefinitionId
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
testCaseDefinitionName
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
testCaseRunId
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe [TestCaseScenario]
testScenarios
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
warnings

instance Prelude.NFData TestCaseRun where
  rnf :: TestCaseRun -> ()
rnf TestCaseRun' {Maybe [TestCaseScenario]
Maybe Text
Maybe POSIX
Maybe Status
warnings :: Maybe Text
testScenarios :: Maybe [TestCaseScenario]
testCaseRunId :: Maybe Text
testCaseDefinitionName :: Maybe Text
testCaseDefinitionId :: Maybe Text
status :: Maybe Status
startTime :: Maybe POSIX
logUrl :: Maybe Text
failure :: Maybe Text
endTime :: Maybe POSIX
$sel:warnings:TestCaseRun' :: TestCaseRun -> Maybe Text
$sel:testScenarios:TestCaseRun' :: TestCaseRun -> Maybe [TestCaseScenario]
$sel:testCaseRunId:TestCaseRun' :: TestCaseRun -> Maybe Text
$sel:testCaseDefinitionName:TestCaseRun' :: TestCaseRun -> Maybe Text
$sel:testCaseDefinitionId:TestCaseRun' :: TestCaseRun -> Maybe Text
$sel:status:TestCaseRun' :: TestCaseRun -> Maybe Status
$sel:startTime:TestCaseRun' :: TestCaseRun -> Maybe POSIX
$sel:logUrl:TestCaseRun' :: TestCaseRun -> Maybe Text
$sel:failure:TestCaseRun' :: TestCaseRun -> Maybe Text
$sel:endTime:TestCaseRun' :: TestCaseRun -> Maybe POSIX
..} =
    forall a. NFData a => a -> ()
Prelude.rnf Maybe POSIX
endTime
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
failure
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
logUrl
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe POSIX
startTime
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Status
status
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
testCaseDefinitionId
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
testCaseDefinitionName
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
testCaseRunId
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe [TestCaseScenario]
testScenarios
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
warnings