{-# 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.RobOMaker.Types.SimulationJobSummary
-- 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.RobOMaker.Types.SimulationJobSummary where

import qualified Amazonka.Core as Core
import qualified Amazonka.Lens as Lens
import qualified Amazonka.Prelude as Prelude
import Amazonka.RobOMaker.Types.ComputeType
import Amazonka.RobOMaker.Types.SimulationJobStatus

-- | Summary information for a simulation job.
--
-- /See:/ 'newSimulationJobSummary' smart constructor.
data SimulationJobSummary = SimulationJobSummary'
  { -- | The status of the simulation job.
    SimulationJobSummary -> Maybe SimulationJobStatus
status :: Prelude.Maybe SimulationJobStatus,
    -- | A list of simulation job robot application names.
    SimulationJobSummary -> Maybe [Text]
robotApplicationNames :: Prelude.Maybe [Prelude.Text],
    -- | The time, in milliseconds since the epoch, when the simulation job was
    -- last updated.
    SimulationJobSummary -> Maybe POSIX
lastUpdatedAt :: Prelude.Maybe Core.POSIX,
    -- | The Amazon Resource Name (ARN) of the simulation job.
    SimulationJobSummary -> Maybe Text
arn :: Prelude.Maybe Prelude.Text,
    -- | The name of the simulation job.
    SimulationJobSummary -> Maybe Text
name :: Prelude.Maybe Prelude.Text,
    -- | A list of simulation job simulation application names.
    SimulationJobSummary -> Maybe [Text]
simulationApplicationNames :: Prelude.Maybe [Prelude.Text],
    -- | The compute type for the simulation job summary.
    SimulationJobSummary -> Maybe ComputeType
computeType :: Prelude.Maybe ComputeType,
    -- | The names of the data sources.
    SimulationJobSummary -> Maybe [Text]
dataSourceNames :: Prelude.Maybe [Prelude.Text]
  }
  deriving (SimulationJobSummary -> SimulationJobSummary -> Bool
(SimulationJobSummary -> SimulationJobSummary -> Bool)
-> (SimulationJobSummary -> SimulationJobSummary -> Bool)
-> Eq SimulationJobSummary
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: SimulationJobSummary -> SimulationJobSummary -> Bool
$c/= :: SimulationJobSummary -> SimulationJobSummary -> Bool
== :: SimulationJobSummary -> SimulationJobSummary -> Bool
$c== :: SimulationJobSummary -> SimulationJobSummary -> Bool
Prelude.Eq, ReadPrec [SimulationJobSummary]
ReadPrec SimulationJobSummary
Int -> ReadS SimulationJobSummary
ReadS [SimulationJobSummary]
(Int -> ReadS SimulationJobSummary)
-> ReadS [SimulationJobSummary]
-> ReadPrec SimulationJobSummary
-> ReadPrec [SimulationJobSummary]
-> Read SimulationJobSummary
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [SimulationJobSummary]
$creadListPrec :: ReadPrec [SimulationJobSummary]
readPrec :: ReadPrec SimulationJobSummary
$creadPrec :: ReadPrec SimulationJobSummary
readList :: ReadS [SimulationJobSummary]
$creadList :: ReadS [SimulationJobSummary]
readsPrec :: Int -> ReadS SimulationJobSummary
$creadsPrec :: Int -> ReadS SimulationJobSummary
Prelude.Read, Int -> SimulationJobSummary -> ShowS
[SimulationJobSummary] -> ShowS
SimulationJobSummary -> String
(Int -> SimulationJobSummary -> ShowS)
-> (SimulationJobSummary -> String)
-> ([SimulationJobSummary] -> ShowS)
-> Show SimulationJobSummary
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [SimulationJobSummary] -> ShowS
$cshowList :: [SimulationJobSummary] -> ShowS
show :: SimulationJobSummary -> String
$cshow :: SimulationJobSummary -> String
showsPrec :: Int -> SimulationJobSummary -> ShowS
$cshowsPrec :: Int -> SimulationJobSummary -> ShowS
Prelude.Show, (forall x. SimulationJobSummary -> Rep SimulationJobSummary x)
-> (forall x. Rep SimulationJobSummary x -> SimulationJobSummary)
-> Generic SimulationJobSummary
forall x. Rep SimulationJobSummary x -> SimulationJobSummary
forall x. SimulationJobSummary -> Rep SimulationJobSummary x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep SimulationJobSummary x -> SimulationJobSummary
$cfrom :: forall x. SimulationJobSummary -> Rep SimulationJobSummary x
Prelude.Generic)

-- |
-- Create a value of 'SimulationJobSummary' 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', 'simulationJobSummary_status' - The status of the simulation job.
--
-- 'robotApplicationNames', 'simulationJobSummary_robotApplicationNames' - A list of simulation job robot application names.
--
-- 'lastUpdatedAt', 'simulationJobSummary_lastUpdatedAt' - The time, in milliseconds since the epoch, when the simulation job was
-- last updated.
--
-- 'arn', 'simulationJobSummary_arn' - The Amazon Resource Name (ARN) of the simulation job.
--
-- 'name', 'simulationJobSummary_name' - The name of the simulation job.
--
-- 'simulationApplicationNames', 'simulationJobSummary_simulationApplicationNames' - A list of simulation job simulation application names.
--
-- 'computeType', 'simulationJobSummary_computeType' - The compute type for the simulation job summary.
--
-- 'dataSourceNames', 'simulationJobSummary_dataSourceNames' - The names of the data sources.
newSimulationJobSummary ::
  SimulationJobSummary
newSimulationJobSummary :: SimulationJobSummary
newSimulationJobSummary =
  SimulationJobSummary' :: Maybe SimulationJobStatus
-> Maybe [Text]
-> Maybe POSIX
-> Maybe Text
-> Maybe Text
-> Maybe [Text]
-> Maybe ComputeType
-> Maybe [Text]
-> SimulationJobSummary
SimulationJobSummary'
    { $sel:status:SimulationJobSummary' :: Maybe SimulationJobStatus
status = Maybe SimulationJobStatus
forall a. Maybe a
Prelude.Nothing,
      $sel:robotApplicationNames:SimulationJobSummary' :: Maybe [Text]
robotApplicationNames = Maybe [Text]
forall a. Maybe a
Prelude.Nothing,
      $sel:lastUpdatedAt:SimulationJobSummary' :: Maybe POSIX
lastUpdatedAt = Maybe POSIX
forall a. Maybe a
Prelude.Nothing,
      $sel:arn:SimulationJobSummary' :: Maybe Text
arn = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:name:SimulationJobSummary' :: Maybe Text
name = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:simulationApplicationNames:SimulationJobSummary' :: Maybe [Text]
simulationApplicationNames = Maybe [Text]
forall a. Maybe a
Prelude.Nothing,
      $sel:computeType:SimulationJobSummary' :: Maybe ComputeType
computeType = Maybe ComputeType
forall a. Maybe a
Prelude.Nothing,
      $sel:dataSourceNames:SimulationJobSummary' :: Maybe [Text]
dataSourceNames = Maybe [Text]
forall a. Maybe a
Prelude.Nothing
    }

-- | The status of the simulation job.
simulationJobSummary_status :: Lens.Lens' SimulationJobSummary (Prelude.Maybe SimulationJobStatus)
simulationJobSummary_status :: (Maybe SimulationJobStatus -> f (Maybe SimulationJobStatus))
-> SimulationJobSummary -> f SimulationJobSummary
simulationJobSummary_status = (SimulationJobSummary -> Maybe SimulationJobStatus)
-> (SimulationJobSummary
    -> Maybe SimulationJobStatus -> SimulationJobSummary)
-> Lens
     SimulationJobSummary
     SimulationJobSummary
     (Maybe SimulationJobStatus)
     (Maybe SimulationJobStatus)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\SimulationJobSummary' {Maybe SimulationJobStatus
status :: Maybe SimulationJobStatus
$sel:status:SimulationJobSummary' :: SimulationJobSummary -> Maybe SimulationJobStatus
status} -> Maybe SimulationJobStatus
status) (\s :: SimulationJobSummary
s@SimulationJobSummary' {} Maybe SimulationJobStatus
a -> SimulationJobSummary
s {$sel:status:SimulationJobSummary' :: Maybe SimulationJobStatus
status = Maybe SimulationJobStatus
a} :: SimulationJobSummary)

-- | A list of simulation job robot application names.
simulationJobSummary_robotApplicationNames :: Lens.Lens' SimulationJobSummary (Prelude.Maybe [Prelude.Text])
simulationJobSummary_robotApplicationNames :: (Maybe [Text] -> f (Maybe [Text]))
-> SimulationJobSummary -> f SimulationJobSummary
simulationJobSummary_robotApplicationNames = (SimulationJobSummary -> Maybe [Text])
-> (SimulationJobSummary -> Maybe [Text] -> SimulationJobSummary)
-> Lens
     SimulationJobSummary
     SimulationJobSummary
     (Maybe [Text])
     (Maybe [Text])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\SimulationJobSummary' {Maybe [Text]
robotApplicationNames :: Maybe [Text]
$sel:robotApplicationNames:SimulationJobSummary' :: SimulationJobSummary -> Maybe [Text]
robotApplicationNames} -> Maybe [Text]
robotApplicationNames) (\s :: SimulationJobSummary
s@SimulationJobSummary' {} Maybe [Text]
a -> SimulationJobSummary
s {$sel:robotApplicationNames:SimulationJobSummary' :: Maybe [Text]
robotApplicationNames = Maybe [Text]
a} :: SimulationJobSummary) ((Maybe [Text] -> f (Maybe [Text]))
 -> SimulationJobSummary -> f SimulationJobSummary)
-> ((Maybe [Text] -> f (Maybe [Text]))
    -> Maybe [Text] -> f (Maybe [Text]))
-> (Maybe [Text] -> f (Maybe [Text]))
-> SimulationJobSummary
-> f SimulationJobSummary
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso [Text] [Text] [Text] [Text]
-> Iso (Maybe [Text]) (Maybe [Text]) (Maybe [Text]) (Maybe [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 [Text] [Text] [Text] [Text]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced

-- | The time, in milliseconds since the epoch, when the simulation job was
-- last updated.
simulationJobSummary_lastUpdatedAt :: Lens.Lens' SimulationJobSummary (Prelude.Maybe Prelude.UTCTime)
simulationJobSummary_lastUpdatedAt :: (Maybe UTCTime -> f (Maybe UTCTime))
-> SimulationJobSummary -> f SimulationJobSummary
simulationJobSummary_lastUpdatedAt = (SimulationJobSummary -> Maybe POSIX)
-> (SimulationJobSummary -> Maybe POSIX -> SimulationJobSummary)
-> Lens
     SimulationJobSummary
     SimulationJobSummary
     (Maybe POSIX)
     (Maybe POSIX)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\SimulationJobSummary' {Maybe POSIX
lastUpdatedAt :: Maybe POSIX
$sel:lastUpdatedAt:SimulationJobSummary' :: SimulationJobSummary -> Maybe POSIX
lastUpdatedAt} -> Maybe POSIX
lastUpdatedAt) (\s :: SimulationJobSummary
s@SimulationJobSummary' {} Maybe POSIX
a -> SimulationJobSummary
s {$sel:lastUpdatedAt:SimulationJobSummary' :: Maybe POSIX
lastUpdatedAt = Maybe POSIX
a} :: SimulationJobSummary) ((Maybe POSIX -> f (Maybe POSIX))
 -> SimulationJobSummary -> f SimulationJobSummary)
-> ((Maybe UTCTime -> f (Maybe UTCTime))
    -> Maybe POSIX -> f (Maybe POSIX))
-> (Maybe UTCTime -> f (Maybe UTCTime))
-> SimulationJobSummary
-> f SimulationJobSummary
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

-- | The Amazon Resource Name (ARN) of the simulation job.
simulationJobSummary_arn :: Lens.Lens' SimulationJobSummary (Prelude.Maybe Prelude.Text)
simulationJobSummary_arn :: (Maybe Text -> f (Maybe Text))
-> SimulationJobSummary -> f SimulationJobSummary
simulationJobSummary_arn = (SimulationJobSummary -> Maybe Text)
-> (SimulationJobSummary -> Maybe Text -> SimulationJobSummary)
-> Lens
     SimulationJobSummary SimulationJobSummary (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\SimulationJobSummary' {Maybe Text
arn :: Maybe Text
$sel:arn:SimulationJobSummary' :: SimulationJobSummary -> Maybe Text
arn} -> Maybe Text
arn) (\s :: SimulationJobSummary
s@SimulationJobSummary' {} Maybe Text
a -> SimulationJobSummary
s {$sel:arn:SimulationJobSummary' :: Maybe Text
arn = Maybe Text
a} :: SimulationJobSummary)

-- | The name of the simulation job.
simulationJobSummary_name :: Lens.Lens' SimulationJobSummary (Prelude.Maybe Prelude.Text)
simulationJobSummary_name :: (Maybe Text -> f (Maybe Text))
-> SimulationJobSummary -> f SimulationJobSummary
simulationJobSummary_name = (SimulationJobSummary -> Maybe Text)
-> (SimulationJobSummary -> Maybe Text -> SimulationJobSummary)
-> Lens
     SimulationJobSummary SimulationJobSummary (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\SimulationJobSummary' {Maybe Text
name :: Maybe Text
$sel:name:SimulationJobSummary' :: SimulationJobSummary -> Maybe Text
name} -> Maybe Text
name) (\s :: SimulationJobSummary
s@SimulationJobSummary' {} Maybe Text
a -> SimulationJobSummary
s {$sel:name:SimulationJobSummary' :: Maybe Text
name = Maybe Text
a} :: SimulationJobSummary)

-- | A list of simulation job simulation application names.
simulationJobSummary_simulationApplicationNames :: Lens.Lens' SimulationJobSummary (Prelude.Maybe [Prelude.Text])
simulationJobSummary_simulationApplicationNames :: (Maybe [Text] -> f (Maybe [Text]))
-> SimulationJobSummary -> f SimulationJobSummary
simulationJobSummary_simulationApplicationNames = (SimulationJobSummary -> Maybe [Text])
-> (SimulationJobSummary -> Maybe [Text] -> SimulationJobSummary)
-> Lens
     SimulationJobSummary
     SimulationJobSummary
     (Maybe [Text])
     (Maybe [Text])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\SimulationJobSummary' {Maybe [Text]
simulationApplicationNames :: Maybe [Text]
$sel:simulationApplicationNames:SimulationJobSummary' :: SimulationJobSummary -> Maybe [Text]
simulationApplicationNames} -> Maybe [Text]
simulationApplicationNames) (\s :: SimulationJobSummary
s@SimulationJobSummary' {} Maybe [Text]
a -> SimulationJobSummary
s {$sel:simulationApplicationNames:SimulationJobSummary' :: Maybe [Text]
simulationApplicationNames = Maybe [Text]
a} :: SimulationJobSummary) ((Maybe [Text] -> f (Maybe [Text]))
 -> SimulationJobSummary -> f SimulationJobSummary)
-> ((Maybe [Text] -> f (Maybe [Text]))
    -> Maybe [Text] -> f (Maybe [Text]))
-> (Maybe [Text] -> f (Maybe [Text]))
-> SimulationJobSummary
-> f SimulationJobSummary
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso [Text] [Text] [Text] [Text]
-> Iso (Maybe [Text]) (Maybe [Text]) (Maybe [Text]) (Maybe [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 [Text] [Text] [Text] [Text]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced

-- | The compute type for the simulation job summary.
simulationJobSummary_computeType :: Lens.Lens' SimulationJobSummary (Prelude.Maybe ComputeType)
simulationJobSummary_computeType :: (Maybe ComputeType -> f (Maybe ComputeType))
-> SimulationJobSummary -> f SimulationJobSummary
simulationJobSummary_computeType = (SimulationJobSummary -> Maybe ComputeType)
-> (SimulationJobSummary
    -> Maybe ComputeType -> SimulationJobSummary)
-> Lens
     SimulationJobSummary
     SimulationJobSummary
     (Maybe ComputeType)
     (Maybe ComputeType)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\SimulationJobSummary' {Maybe ComputeType
computeType :: Maybe ComputeType
$sel:computeType:SimulationJobSummary' :: SimulationJobSummary -> Maybe ComputeType
computeType} -> Maybe ComputeType
computeType) (\s :: SimulationJobSummary
s@SimulationJobSummary' {} Maybe ComputeType
a -> SimulationJobSummary
s {$sel:computeType:SimulationJobSummary' :: Maybe ComputeType
computeType = Maybe ComputeType
a} :: SimulationJobSummary)

-- | The names of the data sources.
simulationJobSummary_dataSourceNames :: Lens.Lens' SimulationJobSummary (Prelude.Maybe [Prelude.Text])
simulationJobSummary_dataSourceNames :: (Maybe [Text] -> f (Maybe [Text]))
-> SimulationJobSummary -> f SimulationJobSummary
simulationJobSummary_dataSourceNames = (SimulationJobSummary -> Maybe [Text])
-> (SimulationJobSummary -> Maybe [Text] -> SimulationJobSummary)
-> Lens
     SimulationJobSummary
     SimulationJobSummary
     (Maybe [Text])
     (Maybe [Text])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\SimulationJobSummary' {Maybe [Text]
dataSourceNames :: Maybe [Text]
$sel:dataSourceNames:SimulationJobSummary' :: SimulationJobSummary -> Maybe [Text]
dataSourceNames} -> Maybe [Text]
dataSourceNames) (\s :: SimulationJobSummary
s@SimulationJobSummary' {} Maybe [Text]
a -> SimulationJobSummary
s {$sel:dataSourceNames:SimulationJobSummary' :: Maybe [Text]
dataSourceNames = Maybe [Text]
a} :: SimulationJobSummary) ((Maybe [Text] -> f (Maybe [Text]))
 -> SimulationJobSummary -> f SimulationJobSummary)
-> ((Maybe [Text] -> f (Maybe [Text]))
    -> Maybe [Text] -> f (Maybe [Text]))
-> (Maybe [Text] -> f (Maybe [Text]))
-> SimulationJobSummary
-> f SimulationJobSummary
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso [Text] [Text] [Text] [Text]
-> Iso (Maybe [Text]) (Maybe [Text]) (Maybe [Text]) (Maybe [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 [Text] [Text] [Text] [Text]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced

instance Core.FromJSON SimulationJobSummary where
  parseJSON :: Value -> Parser SimulationJobSummary
parseJSON =
    String
-> (Object -> Parser SimulationJobSummary)
-> Value
-> Parser SimulationJobSummary
forall a. String -> (Object -> Parser a) -> Value -> Parser a
Core.withObject
      String
"SimulationJobSummary"
      ( \Object
x ->
          Maybe SimulationJobStatus
-> Maybe [Text]
-> Maybe POSIX
-> Maybe Text
-> Maybe Text
-> Maybe [Text]
-> Maybe ComputeType
-> Maybe [Text]
-> SimulationJobSummary
SimulationJobSummary'
            (Maybe SimulationJobStatus
 -> Maybe [Text]
 -> Maybe POSIX
 -> Maybe Text
 -> Maybe Text
 -> Maybe [Text]
 -> Maybe ComputeType
 -> Maybe [Text]
 -> SimulationJobSummary)
-> Parser (Maybe SimulationJobStatus)
-> Parser
     (Maybe [Text]
      -> Maybe POSIX
      -> Maybe Text
      -> Maybe Text
      -> Maybe [Text]
      -> Maybe ComputeType
      -> Maybe [Text]
      -> SimulationJobSummary)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x Object -> Text -> Parser (Maybe SimulationJobStatus)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"status")
            Parser
  (Maybe [Text]
   -> Maybe POSIX
   -> Maybe Text
   -> Maybe Text
   -> Maybe [Text]
   -> Maybe ComputeType
   -> Maybe [Text]
   -> SimulationJobSummary)
-> Parser (Maybe [Text])
-> Parser
     (Maybe POSIX
      -> Maybe Text
      -> Maybe Text
      -> Maybe [Text]
      -> Maybe ComputeType
      -> Maybe [Text]
      -> SimulationJobSummary)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ( Object
x Object -> Text -> Parser (Maybe (Maybe [Text]))
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"robotApplicationNames"
                            Parser (Maybe (Maybe [Text]))
-> Maybe [Text] -> Parser (Maybe [Text])
forall a. Parser (Maybe a) -> a -> Parser a
Core..!= Maybe [Text]
forall a. Monoid a => a
Prelude.mempty
                        )
            Parser
  (Maybe POSIX
   -> Maybe Text
   -> Maybe Text
   -> Maybe [Text]
   -> Maybe ComputeType
   -> Maybe [Text]
   -> SimulationJobSummary)
-> Parser (Maybe POSIX)
-> Parser
     (Maybe Text
      -> Maybe Text
      -> Maybe [Text]
      -> Maybe ComputeType
      -> Maybe [Text]
      -> SimulationJobSummary)
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
"lastUpdatedAt")
            Parser
  (Maybe Text
   -> Maybe Text
   -> Maybe [Text]
   -> Maybe ComputeType
   -> Maybe [Text]
   -> SimulationJobSummary)
-> Parser (Maybe Text)
-> Parser
     (Maybe Text
      -> Maybe [Text]
      -> Maybe ComputeType
      -> Maybe [Text]
      -> SimulationJobSummary)
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
"arn")
            Parser
  (Maybe Text
   -> Maybe [Text]
   -> Maybe ComputeType
   -> Maybe [Text]
   -> SimulationJobSummary)
-> Parser (Maybe Text)
-> Parser
     (Maybe [Text]
      -> Maybe ComputeType -> Maybe [Text] -> SimulationJobSummary)
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
"name")
            Parser
  (Maybe [Text]
   -> Maybe ComputeType -> Maybe [Text] -> SimulationJobSummary)
-> Parser (Maybe [Text])
-> Parser
     (Maybe ComputeType -> Maybe [Text] -> SimulationJobSummary)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ( Object
x Object -> Text -> Parser (Maybe (Maybe [Text]))
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"simulationApplicationNames"
                            Parser (Maybe (Maybe [Text]))
-> Maybe [Text] -> Parser (Maybe [Text])
forall a. Parser (Maybe a) -> a -> Parser a
Core..!= Maybe [Text]
forall a. Monoid a => a
Prelude.mempty
                        )
            Parser (Maybe ComputeType -> Maybe [Text] -> SimulationJobSummary)
-> Parser (Maybe ComputeType)
-> Parser (Maybe [Text] -> SimulationJobSummary)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe ComputeType)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"computeType")
            Parser (Maybe [Text] -> SimulationJobSummary)
-> Parser (Maybe [Text]) -> Parser SimulationJobSummary
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ( Object
x Object -> Text -> Parser (Maybe (Maybe [Text]))
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"dataSourceNames"
                            Parser (Maybe (Maybe [Text]))
-> Maybe [Text] -> Parser (Maybe [Text])
forall a. Parser (Maybe a) -> a -> Parser a
Core..!= Maybe [Text]
forall a. Monoid a => a
Prelude.mempty
                        )
      )

instance Prelude.Hashable SimulationJobSummary

instance Prelude.NFData SimulationJobSummary