{-# 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.RobOMaker.Types.SimulationApplicationSummary where
import qualified Amazonka.Core as Core
import qualified Amazonka.Lens as Lens
import qualified Amazonka.Prelude as Prelude
import Amazonka.RobOMaker.Types.RobotSoftwareSuite
import Amazonka.RobOMaker.Types.SimulationSoftwareSuite
data SimulationApplicationSummary = SimulationApplicationSummary'
{
SimulationApplicationSummary -> Maybe POSIX
lastUpdatedAt :: Prelude.Maybe Core.POSIX,
SimulationApplicationSummary -> Maybe Text
arn :: Prelude.Maybe Prelude.Text,
SimulationApplicationSummary -> Maybe Text
name :: Prelude.Maybe Prelude.Text,
SimulationApplicationSummary -> Maybe Text
version :: Prelude.Maybe Prelude.Text,
SimulationApplicationSummary -> Maybe SimulationSoftwareSuite
simulationSoftwareSuite :: Prelude.Maybe SimulationSoftwareSuite,
SimulationApplicationSummary -> Maybe RobotSoftwareSuite
robotSoftwareSuite :: Prelude.Maybe RobotSoftwareSuite
}
deriving (SimulationApplicationSummary
-> SimulationApplicationSummary -> Bool
(SimulationApplicationSummary
-> SimulationApplicationSummary -> Bool)
-> (SimulationApplicationSummary
-> SimulationApplicationSummary -> Bool)
-> Eq SimulationApplicationSummary
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: SimulationApplicationSummary
-> SimulationApplicationSummary -> Bool
$c/= :: SimulationApplicationSummary
-> SimulationApplicationSummary -> Bool
== :: SimulationApplicationSummary
-> SimulationApplicationSummary -> Bool
$c== :: SimulationApplicationSummary
-> SimulationApplicationSummary -> Bool
Prelude.Eq, ReadPrec [SimulationApplicationSummary]
ReadPrec SimulationApplicationSummary
Int -> ReadS SimulationApplicationSummary
ReadS [SimulationApplicationSummary]
(Int -> ReadS SimulationApplicationSummary)
-> ReadS [SimulationApplicationSummary]
-> ReadPrec SimulationApplicationSummary
-> ReadPrec [SimulationApplicationSummary]
-> Read SimulationApplicationSummary
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [SimulationApplicationSummary]
$creadListPrec :: ReadPrec [SimulationApplicationSummary]
readPrec :: ReadPrec SimulationApplicationSummary
$creadPrec :: ReadPrec SimulationApplicationSummary
readList :: ReadS [SimulationApplicationSummary]
$creadList :: ReadS [SimulationApplicationSummary]
readsPrec :: Int -> ReadS SimulationApplicationSummary
$creadsPrec :: Int -> ReadS SimulationApplicationSummary
Prelude.Read, Int -> SimulationApplicationSummary -> ShowS
[SimulationApplicationSummary] -> ShowS
SimulationApplicationSummary -> String
(Int -> SimulationApplicationSummary -> ShowS)
-> (SimulationApplicationSummary -> String)
-> ([SimulationApplicationSummary] -> ShowS)
-> Show SimulationApplicationSummary
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [SimulationApplicationSummary] -> ShowS
$cshowList :: [SimulationApplicationSummary] -> ShowS
show :: SimulationApplicationSummary -> String
$cshow :: SimulationApplicationSummary -> String
showsPrec :: Int -> SimulationApplicationSummary -> ShowS
$cshowsPrec :: Int -> SimulationApplicationSummary -> ShowS
Prelude.Show, (forall x.
SimulationApplicationSummary -> Rep SimulationApplicationSummary x)
-> (forall x.
Rep SimulationApplicationSummary x -> SimulationApplicationSummary)
-> Generic SimulationApplicationSummary
forall x.
Rep SimulationApplicationSummary x -> SimulationApplicationSummary
forall x.
SimulationApplicationSummary -> Rep SimulationApplicationSummary x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep SimulationApplicationSummary x -> SimulationApplicationSummary
$cfrom :: forall x.
SimulationApplicationSummary -> Rep SimulationApplicationSummary x
Prelude.Generic)
newSimulationApplicationSummary ::
SimulationApplicationSummary
newSimulationApplicationSummary :: SimulationApplicationSummary
newSimulationApplicationSummary =
SimulationApplicationSummary' :: Maybe POSIX
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe SimulationSoftwareSuite
-> Maybe RobotSoftwareSuite
-> SimulationApplicationSummary
SimulationApplicationSummary'
{ $sel:lastUpdatedAt:SimulationApplicationSummary' :: Maybe POSIX
lastUpdatedAt =
Maybe POSIX
forall a. Maybe a
Prelude.Nothing,
$sel:arn:SimulationApplicationSummary' :: Maybe Text
arn = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:name:SimulationApplicationSummary' :: Maybe Text
name = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:version:SimulationApplicationSummary' :: Maybe Text
version = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:simulationSoftwareSuite:SimulationApplicationSummary' :: Maybe SimulationSoftwareSuite
simulationSoftwareSuite = Maybe SimulationSoftwareSuite
forall a. Maybe a
Prelude.Nothing,
$sel:robotSoftwareSuite:SimulationApplicationSummary' :: Maybe RobotSoftwareSuite
robotSoftwareSuite = Maybe RobotSoftwareSuite
forall a. Maybe a
Prelude.Nothing
}
simulationApplicationSummary_lastUpdatedAt :: Lens.Lens' SimulationApplicationSummary (Prelude.Maybe Prelude.UTCTime)
simulationApplicationSummary_lastUpdatedAt :: (Maybe UTCTime -> f (Maybe UTCTime))
-> SimulationApplicationSummary -> f SimulationApplicationSummary
simulationApplicationSummary_lastUpdatedAt = (SimulationApplicationSummary -> Maybe POSIX)
-> (SimulationApplicationSummary
-> Maybe POSIX -> SimulationApplicationSummary)
-> Lens
SimulationApplicationSummary
SimulationApplicationSummary
(Maybe POSIX)
(Maybe POSIX)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\SimulationApplicationSummary' {Maybe POSIX
lastUpdatedAt :: Maybe POSIX
$sel:lastUpdatedAt:SimulationApplicationSummary' :: SimulationApplicationSummary -> Maybe POSIX
lastUpdatedAt} -> Maybe POSIX
lastUpdatedAt) (\s :: SimulationApplicationSummary
s@SimulationApplicationSummary' {} Maybe POSIX
a -> SimulationApplicationSummary
s {$sel:lastUpdatedAt:SimulationApplicationSummary' :: Maybe POSIX
lastUpdatedAt = Maybe POSIX
a} :: SimulationApplicationSummary) ((Maybe POSIX -> f (Maybe POSIX))
-> SimulationApplicationSummary -> f SimulationApplicationSummary)
-> ((Maybe UTCTime -> f (Maybe UTCTime))
-> Maybe POSIX -> f (Maybe POSIX))
-> (Maybe UTCTime -> f (Maybe UTCTime))
-> SimulationApplicationSummary
-> f SimulationApplicationSummary
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
simulationApplicationSummary_arn :: Lens.Lens' SimulationApplicationSummary (Prelude.Maybe Prelude.Text)
simulationApplicationSummary_arn :: (Maybe Text -> f (Maybe Text))
-> SimulationApplicationSummary -> f SimulationApplicationSummary
simulationApplicationSummary_arn = (SimulationApplicationSummary -> Maybe Text)
-> (SimulationApplicationSummary
-> Maybe Text -> SimulationApplicationSummary)
-> Lens
SimulationApplicationSummary
SimulationApplicationSummary
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\SimulationApplicationSummary' {Maybe Text
arn :: Maybe Text
$sel:arn:SimulationApplicationSummary' :: SimulationApplicationSummary -> Maybe Text
arn} -> Maybe Text
arn) (\s :: SimulationApplicationSummary
s@SimulationApplicationSummary' {} Maybe Text
a -> SimulationApplicationSummary
s {$sel:arn:SimulationApplicationSummary' :: Maybe Text
arn = Maybe Text
a} :: SimulationApplicationSummary)
simulationApplicationSummary_name :: Lens.Lens' SimulationApplicationSummary (Prelude.Maybe Prelude.Text)
simulationApplicationSummary_name :: (Maybe Text -> f (Maybe Text))
-> SimulationApplicationSummary -> f SimulationApplicationSummary
simulationApplicationSummary_name = (SimulationApplicationSummary -> Maybe Text)
-> (SimulationApplicationSummary
-> Maybe Text -> SimulationApplicationSummary)
-> Lens
SimulationApplicationSummary
SimulationApplicationSummary
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\SimulationApplicationSummary' {Maybe Text
name :: Maybe Text
$sel:name:SimulationApplicationSummary' :: SimulationApplicationSummary -> Maybe Text
name} -> Maybe Text
name) (\s :: SimulationApplicationSummary
s@SimulationApplicationSummary' {} Maybe Text
a -> SimulationApplicationSummary
s {$sel:name:SimulationApplicationSummary' :: Maybe Text
name = Maybe Text
a} :: SimulationApplicationSummary)
simulationApplicationSummary_version :: Lens.Lens' SimulationApplicationSummary (Prelude.Maybe Prelude.Text)
simulationApplicationSummary_version :: (Maybe Text -> f (Maybe Text))
-> SimulationApplicationSummary -> f SimulationApplicationSummary
simulationApplicationSummary_version = (SimulationApplicationSummary -> Maybe Text)
-> (SimulationApplicationSummary
-> Maybe Text -> SimulationApplicationSummary)
-> Lens
SimulationApplicationSummary
SimulationApplicationSummary
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\SimulationApplicationSummary' {Maybe Text
version :: Maybe Text
$sel:version:SimulationApplicationSummary' :: SimulationApplicationSummary -> Maybe Text
version} -> Maybe Text
version) (\s :: SimulationApplicationSummary
s@SimulationApplicationSummary' {} Maybe Text
a -> SimulationApplicationSummary
s {$sel:version:SimulationApplicationSummary' :: Maybe Text
version = Maybe Text
a} :: SimulationApplicationSummary)
simulationApplicationSummary_simulationSoftwareSuite :: Lens.Lens' SimulationApplicationSummary (Prelude.Maybe SimulationSoftwareSuite)
simulationApplicationSummary_simulationSoftwareSuite :: (Maybe SimulationSoftwareSuite
-> f (Maybe SimulationSoftwareSuite))
-> SimulationApplicationSummary -> f SimulationApplicationSummary
simulationApplicationSummary_simulationSoftwareSuite = (SimulationApplicationSummary -> Maybe SimulationSoftwareSuite)
-> (SimulationApplicationSummary
-> Maybe SimulationSoftwareSuite -> SimulationApplicationSummary)
-> Lens
SimulationApplicationSummary
SimulationApplicationSummary
(Maybe SimulationSoftwareSuite)
(Maybe SimulationSoftwareSuite)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\SimulationApplicationSummary' {Maybe SimulationSoftwareSuite
simulationSoftwareSuite :: Maybe SimulationSoftwareSuite
$sel:simulationSoftwareSuite:SimulationApplicationSummary' :: SimulationApplicationSummary -> Maybe SimulationSoftwareSuite
simulationSoftwareSuite} -> Maybe SimulationSoftwareSuite
simulationSoftwareSuite) (\s :: SimulationApplicationSummary
s@SimulationApplicationSummary' {} Maybe SimulationSoftwareSuite
a -> SimulationApplicationSummary
s {$sel:simulationSoftwareSuite:SimulationApplicationSummary' :: Maybe SimulationSoftwareSuite
simulationSoftwareSuite = Maybe SimulationSoftwareSuite
a} :: SimulationApplicationSummary)
simulationApplicationSummary_robotSoftwareSuite :: Lens.Lens' SimulationApplicationSummary (Prelude.Maybe RobotSoftwareSuite)
simulationApplicationSummary_robotSoftwareSuite :: (Maybe RobotSoftwareSuite -> f (Maybe RobotSoftwareSuite))
-> SimulationApplicationSummary -> f SimulationApplicationSummary
simulationApplicationSummary_robotSoftwareSuite = (SimulationApplicationSummary -> Maybe RobotSoftwareSuite)
-> (SimulationApplicationSummary
-> Maybe RobotSoftwareSuite -> SimulationApplicationSummary)
-> Lens
SimulationApplicationSummary
SimulationApplicationSummary
(Maybe RobotSoftwareSuite)
(Maybe RobotSoftwareSuite)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\SimulationApplicationSummary' {Maybe RobotSoftwareSuite
robotSoftwareSuite :: Maybe RobotSoftwareSuite
$sel:robotSoftwareSuite:SimulationApplicationSummary' :: SimulationApplicationSummary -> Maybe RobotSoftwareSuite
robotSoftwareSuite} -> Maybe RobotSoftwareSuite
robotSoftwareSuite) (\s :: SimulationApplicationSummary
s@SimulationApplicationSummary' {} Maybe RobotSoftwareSuite
a -> SimulationApplicationSummary
s {$sel:robotSoftwareSuite:SimulationApplicationSummary' :: Maybe RobotSoftwareSuite
robotSoftwareSuite = Maybe RobotSoftwareSuite
a} :: SimulationApplicationSummary)
instance Core.FromJSON SimulationApplicationSummary where
parseJSON :: Value -> Parser SimulationApplicationSummary
parseJSON =
String
-> (Object -> Parser SimulationApplicationSummary)
-> Value
-> Parser SimulationApplicationSummary
forall a. String -> (Object -> Parser a) -> Value -> Parser a
Core.withObject
String
"SimulationApplicationSummary"
( \Object
x ->
Maybe POSIX
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe SimulationSoftwareSuite
-> Maybe RobotSoftwareSuite
-> SimulationApplicationSummary
SimulationApplicationSummary'
(Maybe POSIX
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe SimulationSoftwareSuite
-> Maybe RobotSoftwareSuite
-> SimulationApplicationSummary)
-> Parser (Maybe POSIX)
-> Parser
(Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe SimulationSoftwareSuite
-> Maybe RobotSoftwareSuite
-> SimulationApplicationSummary)
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
"lastUpdatedAt")
Parser
(Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe SimulationSoftwareSuite
-> Maybe RobotSoftwareSuite
-> SimulationApplicationSummary)
-> Parser (Maybe Text)
-> Parser
(Maybe Text
-> Maybe Text
-> Maybe SimulationSoftwareSuite
-> Maybe RobotSoftwareSuite
-> SimulationApplicationSummary)
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 SimulationSoftwareSuite
-> Maybe RobotSoftwareSuite
-> SimulationApplicationSummary)
-> Parser (Maybe Text)
-> Parser
(Maybe Text
-> Maybe SimulationSoftwareSuite
-> Maybe RobotSoftwareSuite
-> SimulationApplicationSummary)
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 SimulationSoftwareSuite
-> Maybe RobotSoftwareSuite
-> SimulationApplicationSummary)
-> Parser (Maybe Text)
-> Parser
(Maybe SimulationSoftwareSuite
-> Maybe RobotSoftwareSuite -> SimulationApplicationSummary)
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
"version")
Parser
(Maybe SimulationSoftwareSuite
-> Maybe RobotSoftwareSuite -> SimulationApplicationSummary)
-> Parser (Maybe SimulationSoftwareSuite)
-> Parser
(Maybe RobotSoftwareSuite -> SimulationApplicationSummary)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe SimulationSoftwareSuite)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"simulationSoftwareSuite")
Parser (Maybe RobotSoftwareSuite -> SimulationApplicationSummary)
-> Parser (Maybe RobotSoftwareSuite)
-> Parser SimulationApplicationSummary
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe RobotSoftwareSuite)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"robotSoftwareSuite")
)
instance
Prelude.Hashable
SimulationApplicationSummary
instance Prelude.NFData SimulationApplicationSummary