{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DuplicateRecordFields #-}
{-# LANGUAGE NamedFieldPuns #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_GHC -fno-warn-unused-binds #-}
{-# 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.CreateSimulationApplication
-- 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)
--
-- Creates a simulation application.
module Amazonka.RobOMaker.CreateSimulationApplication
  ( -- * Creating a Request
    CreateSimulationApplication (..),
    newCreateSimulationApplication,

    -- * Request Lenses
    createSimulationApplication_renderingEngine,
    createSimulationApplication_environment,
    createSimulationApplication_sources,
    createSimulationApplication_tags,
    createSimulationApplication_name,
    createSimulationApplication_simulationSoftwareSuite,
    createSimulationApplication_robotSoftwareSuite,

    -- * Destructuring the Response
    CreateSimulationApplicationResponse (..),
    newCreateSimulationApplicationResponse,

    -- * Response Lenses
    createSimulationApplicationResponse_renderingEngine,
    createSimulationApplicationResponse_lastUpdatedAt,
    createSimulationApplicationResponse_arn,
    createSimulationApplicationResponse_environment,
    createSimulationApplicationResponse_sources,
    createSimulationApplicationResponse_name,
    createSimulationApplicationResponse_version,
    createSimulationApplicationResponse_simulationSoftwareSuite,
    createSimulationApplicationResponse_robotSoftwareSuite,
    createSimulationApplicationResponse_revisionId,
    createSimulationApplicationResponse_tags,
    createSimulationApplicationResponse_httpStatus,
  )
where

import qualified Amazonka.Core as Core
import qualified Amazonka.Lens as Lens
import qualified Amazonka.Prelude as Prelude
import qualified Amazonka.Request as Request
import qualified Amazonka.Response as Response
import Amazonka.RobOMaker.Types

-- | /See:/ 'newCreateSimulationApplication' smart constructor.
data CreateSimulationApplication = CreateSimulationApplication'
  { -- | The rendering engine for the simulation application.
    CreateSimulationApplication -> Maybe RenderingEngine
renderingEngine :: Prelude.Maybe RenderingEngine,
    -- | The object that contains the Docker image URI used to create your
    -- simulation application.
    CreateSimulationApplication -> Maybe Environment
environment :: Prelude.Maybe Environment,
    -- | The sources of the simulation application.
    CreateSimulationApplication -> Maybe [SourceConfig]
sources :: Prelude.Maybe [SourceConfig],
    -- | A map that contains tag keys and tag values that are attached to the
    -- simulation application.
    CreateSimulationApplication -> Maybe (HashMap Text Text)
tags :: Prelude.Maybe (Prelude.HashMap Prelude.Text Prelude.Text),
    -- | The name of the simulation application.
    CreateSimulationApplication -> Text
name :: Prelude.Text,
    -- | The simulation software suite used by the simulation application.
    CreateSimulationApplication -> SimulationSoftwareSuite
simulationSoftwareSuite :: SimulationSoftwareSuite,
    -- | The robot software suite (ROS distribution) used by the simulation
    -- application.
    CreateSimulationApplication -> RobotSoftwareSuite
robotSoftwareSuite :: RobotSoftwareSuite
  }
  deriving (CreateSimulationApplication -> CreateSimulationApplication -> Bool
(CreateSimulationApplication
 -> CreateSimulationApplication -> Bool)
-> (CreateSimulationApplication
    -> CreateSimulationApplication -> Bool)
-> Eq CreateSimulationApplication
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: CreateSimulationApplication -> CreateSimulationApplication -> Bool
$c/= :: CreateSimulationApplication -> CreateSimulationApplication -> Bool
== :: CreateSimulationApplication -> CreateSimulationApplication -> Bool
$c== :: CreateSimulationApplication -> CreateSimulationApplication -> Bool
Prelude.Eq, ReadPrec [CreateSimulationApplication]
ReadPrec CreateSimulationApplication
Int -> ReadS CreateSimulationApplication
ReadS [CreateSimulationApplication]
(Int -> ReadS CreateSimulationApplication)
-> ReadS [CreateSimulationApplication]
-> ReadPrec CreateSimulationApplication
-> ReadPrec [CreateSimulationApplication]
-> Read CreateSimulationApplication
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [CreateSimulationApplication]
$creadListPrec :: ReadPrec [CreateSimulationApplication]
readPrec :: ReadPrec CreateSimulationApplication
$creadPrec :: ReadPrec CreateSimulationApplication
readList :: ReadS [CreateSimulationApplication]
$creadList :: ReadS [CreateSimulationApplication]
readsPrec :: Int -> ReadS CreateSimulationApplication
$creadsPrec :: Int -> ReadS CreateSimulationApplication
Prelude.Read, Int -> CreateSimulationApplication -> ShowS
[CreateSimulationApplication] -> ShowS
CreateSimulationApplication -> String
(Int -> CreateSimulationApplication -> ShowS)
-> (CreateSimulationApplication -> String)
-> ([CreateSimulationApplication] -> ShowS)
-> Show CreateSimulationApplication
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [CreateSimulationApplication] -> ShowS
$cshowList :: [CreateSimulationApplication] -> ShowS
show :: CreateSimulationApplication -> String
$cshow :: CreateSimulationApplication -> String
showsPrec :: Int -> CreateSimulationApplication -> ShowS
$cshowsPrec :: Int -> CreateSimulationApplication -> ShowS
Prelude.Show, (forall x.
 CreateSimulationApplication -> Rep CreateSimulationApplication x)
-> (forall x.
    Rep CreateSimulationApplication x -> CreateSimulationApplication)
-> Generic CreateSimulationApplication
forall x.
Rep CreateSimulationApplication x -> CreateSimulationApplication
forall x.
CreateSimulationApplication -> Rep CreateSimulationApplication x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep CreateSimulationApplication x -> CreateSimulationApplication
$cfrom :: forall x.
CreateSimulationApplication -> Rep CreateSimulationApplication x
Prelude.Generic)

-- |
-- Create a value of 'CreateSimulationApplication' 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:
--
-- 'renderingEngine', 'createSimulationApplication_renderingEngine' - The rendering engine for the simulation application.
--
-- 'environment', 'createSimulationApplication_environment' - The object that contains the Docker image URI used to create your
-- simulation application.
--
-- 'sources', 'createSimulationApplication_sources' - The sources of the simulation application.
--
-- 'tags', 'createSimulationApplication_tags' - A map that contains tag keys and tag values that are attached to the
-- simulation application.
--
-- 'name', 'createSimulationApplication_name' - The name of the simulation application.
--
-- 'simulationSoftwareSuite', 'createSimulationApplication_simulationSoftwareSuite' - The simulation software suite used by the simulation application.
--
-- 'robotSoftwareSuite', 'createSimulationApplication_robotSoftwareSuite' - The robot software suite (ROS distribution) used by the simulation
-- application.
newCreateSimulationApplication ::
  -- | 'name'
  Prelude.Text ->
  -- | 'simulationSoftwareSuite'
  SimulationSoftwareSuite ->
  -- | 'robotSoftwareSuite'
  RobotSoftwareSuite ->
  CreateSimulationApplication
newCreateSimulationApplication :: Text
-> SimulationSoftwareSuite
-> RobotSoftwareSuite
-> CreateSimulationApplication
newCreateSimulationApplication
  Text
pName_
  SimulationSoftwareSuite
pSimulationSoftwareSuite_
  RobotSoftwareSuite
pRobotSoftwareSuite_ =
    CreateSimulationApplication' :: Maybe RenderingEngine
-> Maybe Environment
-> Maybe [SourceConfig]
-> Maybe (HashMap Text Text)
-> Text
-> SimulationSoftwareSuite
-> RobotSoftwareSuite
-> CreateSimulationApplication
CreateSimulationApplication'
      { $sel:renderingEngine:CreateSimulationApplication' :: Maybe RenderingEngine
renderingEngine =
          Maybe RenderingEngine
forall a. Maybe a
Prelude.Nothing,
        $sel:environment:CreateSimulationApplication' :: Maybe Environment
environment = Maybe Environment
forall a. Maybe a
Prelude.Nothing,
        $sel:sources:CreateSimulationApplication' :: Maybe [SourceConfig]
sources = Maybe [SourceConfig]
forall a. Maybe a
Prelude.Nothing,
        $sel:tags:CreateSimulationApplication' :: Maybe (HashMap Text Text)
tags = Maybe (HashMap Text Text)
forall a. Maybe a
Prelude.Nothing,
        $sel:name:CreateSimulationApplication' :: Text
name = Text
pName_,
        $sel:simulationSoftwareSuite:CreateSimulationApplication' :: SimulationSoftwareSuite
simulationSoftwareSuite =
          SimulationSoftwareSuite
pSimulationSoftwareSuite_,
        $sel:robotSoftwareSuite:CreateSimulationApplication' :: RobotSoftwareSuite
robotSoftwareSuite = RobotSoftwareSuite
pRobotSoftwareSuite_
      }

-- | The rendering engine for the simulation application.
createSimulationApplication_renderingEngine :: Lens.Lens' CreateSimulationApplication (Prelude.Maybe RenderingEngine)
createSimulationApplication_renderingEngine :: (Maybe RenderingEngine -> f (Maybe RenderingEngine))
-> CreateSimulationApplication -> f CreateSimulationApplication
createSimulationApplication_renderingEngine = (CreateSimulationApplication -> Maybe RenderingEngine)
-> (CreateSimulationApplication
    -> Maybe RenderingEngine -> CreateSimulationApplication)
-> Lens
     CreateSimulationApplication
     CreateSimulationApplication
     (Maybe RenderingEngine)
     (Maybe RenderingEngine)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateSimulationApplication' {Maybe RenderingEngine
renderingEngine :: Maybe RenderingEngine
$sel:renderingEngine:CreateSimulationApplication' :: CreateSimulationApplication -> Maybe RenderingEngine
renderingEngine} -> Maybe RenderingEngine
renderingEngine) (\s :: CreateSimulationApplication
s@CreateSimulationApplication' {} Maybe RenderingEngine
a -> CreateSimulationApplication
s {$sel:renderingEngine:CreateSimulationApplication' :: Maybe RenderingEngine
renderingEngine = Maybe RenderingEngine
a} :: CreateSimulationApplication)

-- | The object that contains the Docker image URI used to create your
-- simulation application.
createSimulationApplication_environment :: Lens.Lens' CreateSimulationApplication (Prelude.Maybe Environment)
createSimulationApplication_environment :: (Maybe Environment -> f (Maybe Environment))
-> CreateSimulationApplication -> f CreateSimulationApplication
createSimulationApplication_environment = (CreateSimulationApplication -> Maybe Environment)
-> (CreateSimulationApplication
    -> Maybe Environment -> CreateSimulationApplication)
-> Lens
     CreateSimulationApplication
     CreateSimulationApplication
     (Maybe Environment)
     (Maybe Environment)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateSimulationApplication' {Maybe Environment
environment :: Maybe Environment
$sel:environment:CreateSimulationApplication' :: CreateSimulationApplication -> Maybe Environment
environment} -> Maybe Environment
environment) (\s :: CreateSimulationApplication
s@CreateSimulationApplication' {} Maybe Environment
a -> CreateSimulationApplication
s {$sel:environment:CreateSimulationApplication' :: Maybe Environment
environment = Maybe Environment
a} :: CreateSimulationApplication)

-- | The sources of the simulation application.
createSimulationApplication_sources :: Lens.Lens' CreateSimulationApplication (Prelude.Maybe [SourceConfig])
createSimulationApplication_sources :: (Maybe [SourceConfig] -> f (Maybe [SourceConfig]))
-> CreateSimulationApplication -> f CreateSimulationApplication
createSimulationApplication_sources = (CreateSimulationApplication -> Maybe [SourceConfig])
-> (CreateSimulationApplication
    -> Maybe [SourceConfig] -> CreateSimulationApplication)
-> Lens
     CreateSimulationApplication
     CreateSimulationApplication
     (Maybe [SourceConfig])
     (Maybe [SourceConfig])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateSimulationApplication' {Maybe [SourceConfig]
sources :: Maybe [SourceConfig]
$sel:sources:CreateSimulationApplication' :: CreateSimulationApplication -> Maybe [SourceConfig]
sources} -> Maybe [SourceConfig]
sources) (\s :: CreateSimulationApplication
s@CreateSimulationApplication' {} Maybe [SourceConfig]
a -> CreateSimulationApplication
s {$sel:sources:CreateSimulationApplication' :: Maybe [SourceConfig]
sources = Maybe [SourceConfig]
a} :: CreateSimulationApplication) ((Maybe [SourceConfig] -> f (Maybe [SourceConfig]))
 -> CreateSimulationApplication -> f CreateSimulationApplication)
-> ((Maybe [SourceConfig] -> f (Maybe [SourceConfig]))
    -> Maybe [SourceConfig] -> f (Maybe [SourceConfig]))
-> (Maybe [SourceConfig] -> f (Maybe [SourceConfig]))
-> CreateSimulationApplication
-> f CreateSimulationApplication
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso [SourceConfig] [SourceConfig] [SourceConfig] [SourceConfig]
-> Iso
     (Maybe [SourceConfig])
     (Maybe [SourceConfig])
     (Maybe [SourceConfig])
     (Maybe [SourceConfig])
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 [SourceConfig] [SourceConfig] [SourceConfig] [SourceConfig]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced

-- | A map that contains tag keys and tag values that are attached to the
-- simulation application.
createSimulationApplication_tags :: Lens.Lens' CreateSimulationApplication (Prelude.Maybe (Prelude.HashMap Prelude.Text Prelude.Text))
createSimulationApplication_tags :: (Maybe (HashMap Text Text) -> f (Maybe (HashMap Text Text)))
-> CreateSimulationApplication -> f CreateSimulationApplication
createSimulationApplication_tags = (CreateSimulationApplication -> Maybe (HashMap Text Text))
-> (CreateSimulationApplication
    -> Maybe (HashMap Text Text) -> CreateSimulationApplication)
-> Lens
     CreateSimulationApplication
     CreateSimulationApplication
     (Maybe (HashMap Text Text))
     (Maybe (HashMap Text Text))
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateSimulationApplication' {Maybe (HashMap Text Text)
tags :: Maybe (HashMap Text Text)
$sel:tags:CreateSimulationApplication' :: CreateSimulationApplication -> Maybe (HashMap Text Text)
tags} -> Maybe (HashMap Text Text)
tags) (\s :: CreateSimulationApplication
s@CreateSimulationApplication' {} Maybe (HashMap Text Text)
a -> CreateSimulationApplication
s {$sel:tags:CreateSimulationApplication' :: Maybe (HashMap Text Text)
tags = Maybe (HashMap Text Text)
a} :: CreateSimulationApplication) ((Maybe (HashMap Text Text) -> f (Maybe (HashMap Text Text)))
 -> CreateSimulationApplication -> f CreateSimulationApplication)
-> ((Maybe (HashMap Text Text) -> f (Maybe (HashMap Text Text)))
    -> Maybe (HashMap Text Text) -> f (Maybe (HashMap Text Text)))
-> (Maybe (HashMap Text Text) -> f (Maybe (HashMap Text Text)))
-> CreateSimulationApplication
-> f CreateSimulationApplication
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso
  (HashMap Text Text)
  (HashMap Text Text)
  (HashMap Text Text)
  (HashMap Text Text)
-> Iso
     (Maybe (HashMap Text Text))
     (Maybe (HashMap Text Text))
     (Maybe (HashMap Text Text))
     (Maybe (HashMap Text 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
  (HashMap Text Text)
  (HashMap Text Text)
  (HashMap Text Text)
  (HashMap Text Text)
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced

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

-- | The simulation software suite used by the simulation application.
createSimulationApplication_simulationSoftwareSuite :: Lens.Lens' CreateSimulationApplication SimulationSoftwareSuite
createSimulationApplication_simulationSoftwareSuite :: (SimulationSoftwareSuite -> f SimulationSoftwareSuite)
-> CreateSimulationApplication -> f CreateSimulationApplication
createSimulationApplication_simulationSoftwareSuite = (CreateSimulationApplication -> SimulationSoftwareSuite)
-> (CreateSimulationApplication
    -> SimulationSoftwareSuite -> CreateSimulationApplication)
-> Lens
     CreateSimulationApplication
     CreateSimulationApplication
     SimulationSoftwareSuite
     SimulationSoftwareSuite
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateSimulationApplication' {SimulationSoftwareSuite
simulationSoftwareSuite :: SimulationSoftwareSuite
$sel:simulationSoftwareSuite:CreateSimulationApplication' :: CreateSimulationApplication -> SimulationSoftwareSuite
simulationSoftwareSuite} -> SimulationSoftwareSuite
simulationSoftwareSuite) (\s :: CreateSimulationApplication
s@CreateSimulationApplication' {} SimulationSoftwareSuite
a -> CreateSimulationApplication
s {$sel:simulationSoftwareSuite:CreateSimulationApplication' :: SimulationSoftwareSuite
simulationSoftwareSuite = SimulationSoftwareSuite
a} :: CreateSimulationApplication)

-- | The robot software suite (ROS distribution) used by the simulation
-- application.
createSimulationApplication_robotSoftwareSuite :: Lens.Lens' CreateSimulationApplication RobotSoftwareSuite
createSimulationApplication_robotSoftwareSuite :: (RobotSoftwareSuite -> f RobotSoftwareSuite)
-> CreateSimulationApplication -> f CreateSimulationApplication
createSimulationApplication_robotSoftwareSuite = (CreateSimulationApplication -> RobotSoftwareSuite)
-> (CreateSimulationApplication
    -> RobotSoftwareSuite -> CreateSimulationApplication)
-> Lens
     CreateSimulationApplication
     CreateSimulationApplication
     RobotSoftwareSuite
     RobotSoftwareSuite
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateSimulationApplication' {RobotSoftwareSuite
robotSoftwareSuite :: RobotSoftwareSuite
$sel:robotSoftwareSuite:CreateSimulationApplication' :: CreateSimulationApplication -> RobotSoftwareSuite
robotSoftwareSuite} -> RobotSoftwareSuite
robotSoftwareSuite) (\s :: CreateSimulationApplication
s@CreateSimulationApplication' {} RobotSoftwareSuite
a -> CreateSimulationApplication
s {$sel:robotSoftwareSuite:CreateSimulationApplication' :: RobotSoftwareSuite
robotSoftwareSuite = RobotSoftwareSuite
a} :: CreateSimulationApplication)

instance Core.AWSRequest CreateSimulationApplication where
  type
    AWSResponse CreateSimulationApplication =
      CreateSimulationApplicationResponse
  request :: CreateSimulationApplication -> Request CreateSimulationApplication
request = Service
-> CreateSimulationApplication
-> Request CreateSimulationApplication
forall a. (ToRequest a, ToJSON a) => Service -> a -> Request a
Request.postJSON Service
defaultService
  response :: Logger
-> Service
-> Proxy CreateSimulationApplication
-> ClientResponse ClientBody
-> m (Either
        Error (ClientResponse (AWSResponse CreateSimulationApplication)))
response =
    (Int
 -> ResponseHeaders
 -> Object
 -> Either String (AWSResponse CreateSimulationApplication))
-> Logger
-> Service
-> Proxy CreateSimulationApplication
-> ClientResponse ClientBody
-> m (Either
        Error (ClientResponse (AWSResponse CreateSimulationApplication)))
forall (m :: * -> *) a.
MonadResource m =>
(Int -> ResponseHeaders -> Object -> Either String (AWSResponse a))
-> Logger
-> Service
-> Proxy a
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse a)))
Response.receiveJSON
      ( \Int
s ResponseHeaders
h Object
x ->
          Maybe RenderingEngine
-> Maybe POSIX
-> Maybe Text
-> Maybe Environment
-> Maybe [Source]
-> Maybe Text
-> Maybe Text
-> Maybe SimulationSoftwareSuite
-> Maybe RobotSoftwareSuite
-> Maybe Text
-> Maybe (HashMap Text Text)
-> Int
-> CreateSimulationApplicationResponse
CreateSimulationApplicationResponse'
            (Maybe RenderingEngine
 -> Maybe POSIX
 -> Maybe Text
 -> Maybe Environment
 -> Maybe [Source]
 -> Maybe Text
 -> Maybe Text
 -> Maybe SimulationSoftwareSuite
 -> Maybe RobotSoftwareSuite
 -> Maybe Text
 -> Maybe (HashMap Text Text)
 -> Int
 -> CreateSimulationApplicationResponse)
-> Either String (Maybe RenderingEngine)
-> Either
     String
     (Maybe POSIX
      -> Maybe Text
      -> Maybe Environment
      -> Maybe [Source]
      -> Maybe Text
      -> Maybe Text
      -> Maybe SimulationSoftwareSuite
      -> Maybe RobotSoftwareSuite
      -> Maybe Text
      -> Maybe (HashMap Text Text)
      -> Int
      -> CreateSimulationApplicationResponse)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x Object -> Text -> Either String (Maybe RenderingEngine)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"renderingEngine")
            Either
  String
  (Maybe POSIX
   -> Maybe Text
   -> Maybe Environment
   -> Maybe [Source]
   -> Maybe Text
   -> Maybe Text
   -> Maybe SimulationSoftwareSuite
   -> Maybe RobotSoftwareSuite
   -> Maybe Text
   -> Maybe (HashMap Text Text)
   -> Int
   -> CreateSimulationApplicationResponse)
-> Either String (Maybe POSIX)
-> Either
     String
     (Maybe Text
      -> Maybe Environment
      -> Maybe [Source]
      -> Maybe Text
      -> Maybe Text
      -> Maybe SimulationSoftwareSuite
      -> Maybe RobotSoftwareSuite
      -> Maybe Text
      -> Maybe (HashMap Text Text)
      -> Int
      -> CreateSimulationApplicationResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe POSIX)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"lastUpdatedAt")
            Either
  String
  (Maybe Text
   -> Maybe Environment
   -> Maybe [Source]
   -> Maybe Text
   -> Maybe Text
   -> Maybe SimulationSoftwareSuite
   -> Maybe RobotSoftwareSuite
   -> Maybe Text
   -> Maybe (HashMap Text Text)
   -> Int
   -> CreateSimulationApplicationResponse)
-> Either String (Maybe Text)
-> Either
     String
     (Maybe Environment
      -> Maybe [Source]
      -> Maybe Text
      -> Maybe Text
      -> Maybe SimulationSoftwareSuite
      -> Maybe RobotSoftwareSuite
      -> Maybe Text
      -> Maybe (HashMap Text Text)
      -> Int
      -> CreateSimulationApplicationResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe Text)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"arn")
            Either
  String
  (Maybe Environment
   -> Maybe [Source]
   -> Maybe Text
   -> Maybe Text
   -> Maybe SimulationSoftwareSuite
   -> Maybe RobotSoftwareSuite
   -> Maybe Text
   -> Maybe (HashMap Text Text)
   -> Int
   -> CreateSimulationApplicationResponse)
-> Either String (Maybe Environment)
-> Either
     String
     (Maybe [Source]
      -> Maybe Text
      -> Maybe Text
      -> Maybe SimulationSoftwareSuite
      -> Maybe RobotSoftwareSuite
      -> Maybe Text
      -> Maybe (HashMap Text Text)
      -> Int
      -> CreateSimulationApplicationResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe Environment)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"environment")
            Either
  String
  (Maybe [Source]
   -> Maybe Text
   -> Maybe Text
   -> Maybe SimulationSoftwareSuite
   -> Maybe RobotSoftwareSuite
   -> Maybe Text
   -> Maybe (HashMap Text Text)
   -> Int
   -> CreateSimulationApplicationResponse)
-> Either String (Maybe [Source])
-> Either
     String
     (Maybe Text
      -> Maybe Text
      -> Maybe SimulationSoftwareSuite
      -> Maybe RobotSoftwareSuite
      -> Maybe Text
      -> Maybe (HashMap Text Text)
      -> Int
      -> CreateSimulationApplicationResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe (Maybe [Source]))
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"sources" Either String (Maybe (Maybe [Source]))
-> Maybe [Source] -> Either String (Maybe [Source])
forall (f :: * -> *) a. Functor f => f (Maybe a) -> a -> f a
Core..!@ Maybe [Source]
forall a. Monoid a => a
Prelude.mempty)
            Either
  String
  (Maybe Text
   -> Maybe Text
   -> Maybe SimulationSoftwareSuite
   -> Maybe RobotSoftwareSuite
   -> Maybe Text
   -> Maybe (HashMap Text Text)
   -> Int
   -> CreateSimulationApplicationResponse)
-> Either String (Maybe Text)
-> Either
     String
     (Maybe Text
      -> Maybe SimulationSoftwareSuite
      -> Maybe RobotSoftwareSuite
      -> Maybe Text
      -> Maybe (HashMap Text Text)
      -> Int
      -> CreateSimulationApplicationResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe Text)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"name")
            Either
  String
  (Maybe Text
   -> Maybe SimulationSoftwareSuite
   -> Maybe RobotSoftwareSuite
   -> Maybe Text
   -> Maybe (HashMap Text Text)
   -> Int
   -> CreateSimulationApplicationResponse)
-> Either String (Maybe Text)
-> Either
     String
     (Maybe SimulationSoftwareSuite
      -> Maybe RobotSoftwareSuite
      -> Maybe Text
      -> Maybe (HashMap Text Text)
      -> Int
      -> CreateSimulationApplicationResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe Text)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"version")
            Either
  String
  (Maybe SimulationSoftwareSuite
   -> Maybe RobotSoftwareSuite
   -> Maybe Text
   -> Maybe (HashMap Text Text)
   -> Int
   -> CreateSimulationApplicationResponse)
-> Either String (Maybe SimulationSoftwareSuite)
-> Either
     String
     (Maybe RobotSoftwareSuite
      -> Maybe Text
      -> Maybe (HashMap Text Text)
      -> Int
      -> CreateSimulationApplicationResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe SimulationSoftwareSuite)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"simulationSoftwareSuite")
            Either
  String
  (Maybe RobotSoftwareSuite
   -> Maybe Text
   -> Maybe (HashMap Text Text)
   -> Int
   -> CreateSimulationApplicationResponse)
-> Either String (Maybe RobotSoftwareSuite)
-> Either
     String
     (Maybe Text
      -> Maybe (HashMap Text Text)
      -> Int
      -> CreateSimulationApplicationResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe RobotSoftwareSuite)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"robotSoftwareSuite")
            Either
  String
  (Maybe Text
   -> Maybe (HashMap Text Text)
   -> Int
   -> CreateSimulationApplicationResponse)
-> Either String (Maybe Text)
-> Either
     String
     (Maybe (HashMap Text Text)
      -> Int -> CreateSimulationApplicationResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe Text)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"revisionId")
            Either
  String
  (Maybe (HashMap Text Text)
   -> Int -> CreateSimulationApplicationResponse)
-> Either String (Maybe (HashMap Text Text))
-> Either String (Int -> CreateSimulationApplicationResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe (Maybe (HashMap Text Text)))
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"tags" Either String (Maybe (Maybe (HashMap Text Text)))
-> Maybe (HashMap Text Text)
-> Either String (Maybe (HashMap Text Text))
forall (f :: * -> *) a. Functor f => f (Maybe a) -> a -> f a
Core..!@ Maybe (HashMap Text Text)
forall a. Monoid a => a
Prelude.mempty)
            Either String (Int -> CreateSimulationApplicationResponse)
-> Either String Int
-> Either String CreateSimulationApplicationResponse
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Int -> Either String Int
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure (Int -> Int
forall a. Enum a => a -> Int
Prelude.fromEnum Int
s))
      )

instance Prelude.Hashable CreateSimulationApplication

instance Prelude.NFData CreateSimulationApplication

instance Core.ToHeaders CreateSimulationApplication where
  toHeaders :: CreateSimulationApplication -> ResponseHeaders
toHeaders =
    ResponseHeaders -> CreateSimulationApplication -> ResponseHeaders
forall a b. a -> b -> a
Prelude.const
      ( [ResponseHeaders] -> ResponseHeaders
forall a. Monoid a => [a] -> a
Prelude.mconcat
          [ HeaderName
"Content-Type"
              HeaderName -> ByteString -> ResponseHeaders
forall a. ToHeader a => HeaderName -> a -> ResponseHeaders
Core.=# ( ByteString
"application/x-amz-json-1.1" ::
                          Prelude.ByteString
                      )
          ]
      )

instance Core.ToJSON CreateSimulationApplication where
  toJSON :: CreateSimulationApplication -> Value
toJSON CreateSimulationApplication' {Maybe [SourceConfig]
Maybe (HashMap Text Text)
Maybe Environment
Maybe RenderingEngine
Text
RobotSoftwareSuite
SimulationSoftwareSuite
robotSoftwareSuite :: RobotSoftwareSuite
simulationSoftwareSuite :: SimulationSoftwareSuite
name :: Text
tags :: Maybe (HashMap Text Text)
sources :: Maybe [SourceConfig]
environment :: Maybe Environment
renderingEngine :: Maybe RenderingEngine
$sel:robotSoftwareSuite:CreateSimulationApplication' :: CreateSimulationApplication -> RobotSoftwareSuite
$sel:simulationSoftwareSuite:CreateSimulationApplication' :: CreateSimulationApplication -> SimulationSoftwareSuite
$sel:name:CreateSimulationApplication' :: CreateSimulationApplication -> Text
$sel:tags:CreateSimulationApplication' :: CreateSimulationApplication -> Maybe (HashMap Text Text)
$sel:sources:CreateSimulationApplication' :: CreateSimulationApplication -> Maybe [SourceConfig]
$sel:environment:CreateSimulationApplication' :: CreateSimulationApplication -> Maybe Environment
$sel:renderingEngine:CreateSimulationApplication' :: CreateSimulationApplication -> Maybe RenderingEngine
..} =
    [Pair] -> Value
Core.object
      ( [Maybe Pair] -> [Pair]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
          [ (Text
"renderingEngine" Text -> RenderingEngine -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=)
              (RenderingEngine -> Pair) -> Maybe RenderingEngine -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe RenderingEngine
renderingEngine,
            (Text
"environment" Text -> Environment -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=) (Environment -> Pair) -> Maybe Environment -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Environment
environment,
            (Text
"sources" Text -> [SourceConfig] -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=) ([SourceConfig] -> Pair) -> Maybe [SourceConfig] -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe [SourceConfig]
sources,
            (Text
"tags" Text -> HashMap Text Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=) (HashMap Text Text -> Pair)
-> Maybe (HashMap Text Text) -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (HashMap Text Text)
tags,
            Pair -> Maybe Pair
forall a. a -> Maybe a
Prelude.Just (Text
"name" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= Text
name),
            Pair -> Maybe Pair
forall a. a -> Maybe a
Prelude.Just
              ( Text
"simulationSoftwareSuite"
                  Text -> SimulationSoftwareSuite -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= SimulationSoftwareSuite
simulationSoftwareSuite
              ),
            Pair -> Maybe Pair
forall a. a -> Maybe a
Prelude.Just
              (Text
"robotSoftwareSuite" Text -> RobotSoftwareSuite -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= RobotSoftwareSuite
robotSoftwareSuite)
          ]
      )

instance Core.ToPath CreateSimulationApplication where
  toPath :: CreateSimulationApplication -> ByteString
toPath = ByteString -> CreateSimulationApplication -> ByteString
forall a b. a -> b -> a
Prelude.const ByteString
"/createSimulationApplication"

instance Core.ToQuery CreateSimulationApplication where
  toQuery :: CreateSimulationApplication -> QueryString
toQuery = QueryString -> CreateSimulationApplication -> QueryString
forall a b. a -> b -> a
Prelude.const QueryString
forall a. Monoid a => a
Prelude.mempty

-- | /See:/ 'newCreateSimulationApplicationResponse' smart constructor.
data CreateSimulationApplicationResponse = CreateSimulationApplicationResponse'
  { -- | The rendering engine for the simulation application.
    CreateSimulationApplicationResponse -> Maybe RenderingEngine
renderingEngine :: Prelude.Maybe RenderingEngine,
    -- | The time, in milliseconds since the epoch, when the simulation
    -- application was last updated.
    CreateSimulationApplicationResponse -> Maybe POSIX
lastUpdatedAt :: Prelude.Maybe Core.POSIX,
    -- | The Amazon Resource Name (ARN) of the simulation application.
    CreateSimulationApplicationResponse -> Maybe Text
arn :: Prelude.Maybe Prelude.Text,
    -- | The object that contains the Docker image URI that you used to create
    -- your simulation application.
    CreateSimulationApplicationResponse -> Maybe Environment
environment :: Prelude.Maybe Environment,
    -- | The sources of the simulation application.
    CreateSimulationApplicationResponse -> Maybe [Source]
sources :: Prelude.Maybe [Source],
    -- | The name of the simulation application.
    CreateSimulationApplicationResponse -> Maybe Text
name :: Prelude.Maybe Prelude.Text,
    -- | The version of the simulation application.
    CreateSimulationApplicationResponse -> Maybe Text
version :: Prelude.Maybe Prelude.Text,
    -- | The simulation software suite used by the simulation application.
    CreateSimulationApplicationResponse
-> Maybe SimulationSoftwareSuite
simulationSoftwareSuite :: Prelude.Maybe SimulationSoftwareSuite,
    -- | Information about the robot software suite (ROS distribution).
    CreateSimulationApplicationResponse -> Maybe RobotSoftwareSuite
robotSoftwareSuite :: Prelude.Maybe RobotSoftwareSuite,
    -- | The revision id of the simulation application.
    CreateSimulationApplicationResponse -> Maybe Text
revisionId :: Prelude.Maybe Prelude.Text,
    -- | The list of all tags added to the simulation application.
    CreateSimulationApplicationResponse -> Maybe (HashMap Text Text)
tags :: Prelude.Maybe (Prelude.HashMap Prelude.Text Prelude.Text),
    -- | The response's http status code.
    CreateSimulationApplicationResponse -> Int
httpStatus :: Prelude.Int
  }
  deriving (CreateSimulationApplicationResponse
-> CreateSimulationApplicationResponse -> Bool
(CreateSimulationApplicationResponse
 -> CreateSimulationApplicationResponse -> Bool)
-> (CreateSimulationApplicationResponse
    -> CreateSimulationApplicationResponse -> Bool)
-> Eq CreateSimulationApplicationResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: CreateSimulationApplicationResponse
-> CreateSimulationApplicationResponse -> Bool
$c/= :: CreateSimulationApplicationResponse
-> CreateSimulationApplicationResponse -> Bool
== :: CreateSimulationApplicationResponse
-> CreateSimulationApplicationResponse -> Bool
$c== :: CreateSimulationApplicationResponse
-> CreateSimulationApplicationResponse -> Bool
Prelude.Eq, ReadPrec [CreateSimulationApplicationResponse]
ReadPrec CreateSimulationApplicationResponse
Int -> ReadS CreateSimulationApplicationResponse
ReadS [CreateSimulationApplicationResponse]
(Int -> ReadS CreateSimulationApplicationResponse)
-> ReadS [CreateSimulationApplicationResponse]
-> ReadPrec CreateSimulationApplicationResponse
-> ReadPrec [CreateSimulationApplicationResponse]
-> Read CreateSimulationApplicationResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [CreateSimulationApplicationResponse]
$creadListPrec :: ReadPrec [CreateSimulationApplicationResponse]
readPrec :: ReadPrec CreateSimulationApplicationResponse
$creadPrec :: ReadPrec CreateSimulationApplicationResponse
readList :: ReadS [CreateSimulationApplicationResponse]
$creadList :: ReadS [CreateSimulationApplicationResponse]
readsPrec :: Int -> ReadS CreateSimulationApplicationResponse
$creadsPrec :: Int -> ReadS CreateSimulationApplicationResponse
Prelude.Read, Int -> CreateSimulationApplicationResponse -> ShowS
[CreateSimulationApplicationResponse] -> ShowS
CreateSimulationApplicationResponse -> String
(Int -> CreateSimulationApplicationResponse -> ShowS)
-> (CreateSimulationApplicationResponse -> String)
-> ([CreateSimulationApplicationResponse] -> ShowS)
-> Show CreateSimulationApplicationResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [CreateSimulationApplicationResponse] -> ShowS
$cshowList :: [CreateSimulationApplicationResponse] -> ShowS
show :: CreateSimulationApplicationResponse -> String
$cshow :: CreateSimulationApplicationResponse -> String
showsPrec :: Int -> CreateSimulationApplicationResponse -> ShowS
$cshowsPrec :: Int -> CreateSimulationApplicationResponse -> ShowS
Prelude.Show, (forall x.
 CreateSimulationApplicationResponse
 -> Rep CreateSimulationApplicationResponse x)
-> (forall x.
    Rep CreateSimulationApplicationResponse x
    -> CreateSimulationApplicationResponse)
-> Generic CreateSimulationApplicationResponse
forall x.
Rep CreateSimulationApplicationResponse x
-> CreateSimulationApplicationResponse
forall x.
CreateSimulationApplicationResponse
-> Rep CreateSimulationApplicationResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep CreateSimulationApplicationResponse x
-> CreateSimulationApplicationResponse
$cfrom :: forall x.
CreateSimulationApplicationResponse
-> Rep CreateSimulationApplicationResponse x
Prelude.Generic)

-- |
-- Create a value of 'CreateSimulationApplicationResponse' 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:
--
-- 'renderingEngine', 'createSimulationApplicationResponse_renderingEngine' - The rendering engine for the simulation application.
--
-- 'lastUpdatedAt', 'createSimulationApplicationResponse_lastUpdatedAt' - The time, in milliseconds since the epoch, when the simulation
-- application was last updated.
--
-- 'arn', 'createSimulationApplicationResponse_arn' - The Amazon Resource Name (ARN) of the simulation application.
--
-- 'environment', 'createSimulationApplicationResponse_environment' - The object that contains the Docker image URI that you used to create
-- your simulation application.
--
-- 'sources', 'createSimulationApplicationResponse_sources' - The sources of the simulation application.
--
-- 'name', 'createSimulationApplicationResponse_name' - The name of the simulation application.
--
-- 'version', 'createSimulationApplicationResponse_version' - The version of the simulation application.
--
-- 'simulationSoftwareSuite', 'createSimulationApplicationResponse_simulationSoftwareSuite' - The simulation software suite used by the simulation application.
--
-- 'robotSoftwareSuite', 'createSimulationApplicationResponse_robotSoftwareSuite' - Information about the robot software suite (ROS distribution).
--
-- 'revisionId', 'createSimulationApplicationResponse_revisionId' - The revision id of the simulation application.
--
-- 'tags', 'createSimulationApplicationResponse_tags' - The list of all tags added to the simulation application.
--
-- 'httpStatus', 'createSimulationApplicationResponse_httpStatus' - The response's http status code.
newCreateSimulationApplicationResponse ::
  -- | 'httpStatus'
  Prelude.Int ->
  CreateSimulationApplicationResponse
newCreateSimulationApplicationResponse :: Int -> CreateSimulationApplicationResponse
newCreateSimulationApplicationResponse Int
pHttpStatus_ =
  CreateSimulationApplicationResponse' :: Maybe RenderingEngine
-> Maybe POSIX
-> Maybe Text
-> Maybe Environment
-> Maybe [Source]
-> Maybe Text
-> Maybe Text
-> Maybe SimulationSoftwareSuite
-> Maybe RobotSoftwareSuite
-> Maybe Text
-> Maybe (HashMap Text Text)
-> Int
-> CreateSimulationApplicationResponse
CreateSimulationApplicationResponse'
    { $sel:renderingEngine:CreateSimulationApplicationResponse' :: Maybe RenderingEngine
renderingEngine =
        Maybe RenderingEngine
forall a. Maybe a
Prelude.Nothing,
      $sel:lastUpdatedAt:CreateSimulationApplicationResponse' :: Maybe POSIX
lastUpdatedAt = Maybe POSIX
forall a. Maybe a
Prelude.Nothing,
      $sel:arn:CreateSimulationApplicationResponse' :: Maybe Text
arn = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:environment:CreateSimulationApplicationResponse' :: Maybe Environment
environment = Maybe Environment
forall a. Maybe a
Prelude.Nothing,
      $sel:sources:CreateSimulationApplicationResponse' :: Maybe [Source]
sources = Maybe [Source]
forall a. Maybe a
Prelude.Nothing,
      $sel:name:CreateSimulationApplicationResponse' :: Maybe Text
name = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:version:CreateSimulationApplicationResponse' :: Maybe Text
version = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:simulationSoftwareSuite:CreateSimulationApplicationResponse' :: Maybe SimulationSoftwareSuite
simulationSoftwareSuite =
        Maybe SimulationSoftwareSuite
forall a. Maybe a
Prelude.Nothing,
      $sel:robotSoftwareSuite:CreateSimulationApplicationResponse' :: Maybe RobotSoftwareSuite
robotSoftwareSuite = Maybe RobotSoftwareSuite
forall a. Maybe a
Prelude.Nothing,
      $sel:revisionId:CreateSimulationApplicationResponse' :: Maybe Text
revisionId = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:tags:CreateSimulationApplicationResponse' :: Maybe (HashMap Text Text)
tags = Maybe (HashMap Text Text)
forall a. Maybe a
Prelude.Nothing,
      $sel:httpStatus:CreateSimulationApplicationResponse' :: Int
httpStatus = Int
pHttpStatus_
    }

-- | The rendering engine for the simulation application.
createSimulationApplicationResponse_renderingEngine :: Lens.Lens' CreateSimulationApplicationResponse (Prelude.Maybe RenderingEngine)
createSimulationApplicationResponse_renderingEngine :: (Maybe RenderingEngine -> f (Maybe RenderingEngine))
-> CreateSimulationApplicationResponse
-> f CreateSimulationApplicationResponse
createSimulationApplicationResponse_renderingEngine = (CreateSimulationApplicationResponse -> Maybe RenderingEngine)
-> (CreateSimulationApplicationResponse
    -> Maybe RenderingEngine -> CreateSimulationApplicationResponse)
-> Lens
     CreateSimulationApplicationResponse
     CreateSimulationApplicationResponse
     (Maybe RenderingEngine)
     (Maybe RenderingEngine)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateSimulationApplicationResponse' {Maybe RenderingEngine
renderingEngine :: Maybe RenderingEngine
$sel:renderingEngine:CreateSimulationApplicationResponse' :: CreateSimulationApplicationResponse -> Maybe RenderingEngine
renderingEngine} -> Maybe RenderingEngine
renderingEngine) (\s :: CreateSimulationApplicationResponse
s@CreateSimulationApplicationResponse' {} Maybe RenderingEngine
a -> CreateSimulationApplicationResponse
s {$sel:renderingEngine:CreateSimulationApplicationResponse' :: Maybe RenderingEngine
renderingEngine = Maybe RenderingEngine
a} :: CreateSimulationApplicationResponse)

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

-- | The object that contains the Docker image URI that you used to create
-- your simulation application.
createSimulationApplicationResponse_environment :: Lens.Lens' CreateSimulationApplicationResponse (Prelude.Maybe Environment)
createSimulationApplicationResponse_environment :: (Maybe Environment -> f (Maybe Environment))
-> CreateSimulationApplicationResponse
-> f CreateSimulationApplicationResponse
createSimulationApplicationResponse_environment = (CreateSimulationApplicationResponse -> Maybe Environment)
-> (CreateSimulationApplicationResponse
    -> Maybe Environment -> CreateSimulationApplicationResponse)
-> Lens
     CreateSimulationApplicationResponse
     CreateSimulationApplicationResponse
     (Maybe Environment)
     (Maybe Environment)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateSimulationApplicationResponse' {Maybe Environment
environment :: Maybe Environment
$sel:environment:CreateSimulationApplicationResponse' :: CreateSimulationApplicationResponse -> Maybe Environment
environment} -> Maybe Environment
environment) (\s :: CreateSimulationApplicationResponse
s@CreateSimulationApplicationResponse' {} Maybe Environment
a -> CreateSimulationApplicationResponse
s {$sel:environment:CreateSimulationApplicationResponse' :: Maybe Environment
environment = Maybe Environment
a} :: CreateSimulationApplicationResponse)

-- | The sources of the simulation application.
createSimulationApplicationResponse_sources :: Lens.Lens' CreateSimulationApplicationResponse (Prelude.Maybe [Source])
createSimulationApplicationResponse_sources :: (Maybe [Source] -> f (Maybe [Source]))
-> CreateSimulationApplicationResponse
-> f CreateSimulationApplicationResponse
createSimulationApplicationResponse_sources = (CreateSimulationApplicationResponse -> Maybe [Source])
-> (CreateSimulationApplicationResponse
    -> Maybe [Source] -> CreateSimulationApplicationResponse)
-> Lens
     CreateSimulationApplicationResponse
     CreateSimulationApplicationResponse
     (Maybe [Source])
     (Maybe [Source])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateSimulationApplicationResponse' {Maybe [Source]
sources :: Maybe [Source]
$sel:sources:CreateSimulationApplicationResponse' :: CreateSimulationApplicationResponse -> Maybe [Source]
sources} -> Maybe [Source]
sources) (\s :: CreateSimulationApplicationResponse
s@CreateSimulationApplicationResponse' {} Maybe [Source]
a -> CreateSimulationApplicationResponse
s {$sel:sources:CreateSimulationApplicationResponse' :: Maybe [Source]
sources = Maybe [Source]
a} :: CreateSimulationApplicationResponse) ((Maybe [Source] -> f (Maybe [Source]))
 -> CreateSimulationApplicationResponse
 -> f CreateSimulationApplicationResponse)
-> ((Maybe [Source] -> f (Maybe [Source]))
    -> Maybe [Source] -> f (Maybe [Source]))
-> (Maybe [Source] -> f (Maybe [Source]))
-> CreateSimulationApplicationResponse
-> f CreateSimulationApplicationResponse
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso [Source] [Source] [Source] [Source]
-> Iso
     (Maybe [Source]) (Maybe [Source]) (Maybe [Source]) (Maybe [Source])
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 [Source] [Source] [Source] [Source]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced

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

-- | The version of the simulation application.
createSimulationApplicationResponse_version :: Lens.Lens' CreateSimulationApplicationResponse (Prelude.Maybe Prelude.Text)
createSimulationApplicationResponse_version :: (Maybe Text -> f (Maybe Text))
-> CreateSimulationApplicationResponse
-> f CreateSimulationApplicationResponse
createSimulationApplicationResponse_version = (CreateSimulationApplicationResponse -> Maybe Text)
-> (CreateSimulationApplicationResponse
    -> Maybe Text -> CreateSimulationApplicationResponse)
-> Lens
     CreateSimulationApplicationResponse
     CreateSimulationApplicationResponse
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateSimulationApplicationResponse' {Maybe Text
version :: Maybe Text
$sel:version:CreateSimulationApplicationResponse' :: CreateSimulationApplicationResponse -> Maybe Text
version} -> Maybe Text
version) (\s :: CreateSimulationApplicationResponse
s@CreateSimulationApplicationResponse' {} Maybe Text
a -> CreateSimulationApplicationResponse
s {$sel:version:CreateSimulationApplicationResponse' :: Maybe Text
version = Maybe Text
a} :: CreateSimulationApplicationResponse)

-- | The simulation software suite used by the simulation application.
createSimulationApplicationResponse_simulationSoftwareSuite :: Lens.Lens' CreateSimulationApplicationResponse (Prelude.Maybe SimulationSoftwareSuite)
createSimulationApplicationResponse_simulationSoftwareSuite :: (Maybe SimulationSoftwareSuite
 -> f (Maybe SimulationSoftwareSuite))
-> CreateSimulationApplicationResponse
-> f CreateSimulationApplicationResponse
createSimulationApplicationResponse_simulationSoftwareSuite = (CreateSimulationApplicationResponse
 -> Maybe SimulationSoftwareSuite)
-> (CreateSimulationApplicationResponse
    -> Maybe SimulationSoftwareSuite
    -> CreateSimulationApplicationResponse)
-> Lens
     CreateSimulationApplicationResponse
     CreateSimulationApplicationResponse
     (Maybe SimulationSoftwareSuite)
     (Maybe SimulationSoftwareSuite)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateSimulationApplicationResponse' {Maybe SimulationSoftwareSuite
simulationSoftwareSuite :: Maybe SimulationSoftwareSuite
$sel:simulationSoftwareSuite:CreateSimulationApplicationResponse' :: CreateSimulationApplicationResponse
-> Maybe SimulationSoftwareSuite
simulationSoftwareSuite} -> Maybe SimulationSoftwareSuite
simulationSoftwareSuite) (\s :: CreateSimulationApplicationResponse
s@CreateSimulationApplicationResponse' {} Maybe SimulationSoftwareSuite
a -> CreateSimulationApplicationResponse
s {$sel:simulationSoftwareSuite:CreateSimulationApplicationResponse' :: Maybe SimulationSoftwareSuite
simulationSoftwareSuite = Maybe SimulationSoftwareSuite
a} :: CreateSimulationApplicationResponse)

-- | Information about the robot software suite (ROS distribution).
createSimulationApplicationResponse_robotSoftwareSuite :: Lens.Lens' CreateSimulationApplicationResponse (Prelude.Maybe RobotSoftwareSuite)
createSimulationApplicationResponse_robotSoftwareSuite :: (Maybe RobotSoftwareSuite -> f (Maybe RobotSoftwareSuite))
-> CreateSimulationApplicationResponse
-> f CreateSimulationApplicationResponse
createSimulationApplicationResponse_robotSoftwareSuite = (CreateSimulationApplicationResponse -> Maybe RobotSoftwareSuite)
-> (CreateSimulationApplicationResponse
    -> Maybe RobotSoftwareSuite -> CreateSimulationApplicationResponse)
-> Lens
     CreateSimulationApplicationResponse
     CreateSimulationApplicationResponse
     (Maybe RobotSoftwareSuite)
     (Maybe RobotSoftwareSuite)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateSimulationApplicationResponse' {Maybe RobotSoftwareSuite
robotSoftwareSuite :: Maybe RobotSoftwareSuite
$sel:robotSoftwareSuite:CreateSimulationApplicationResponse' :: CreateSimulationApplicationResponse -> Maybe RobotSoftwareSuite
robotSoftwareSuite} -> Maybe RobotSoftwareSuite
robotSoftwareSuite) (\s :: CreateSimulationApplicationResponse
s@CreateSimulationApplicationResponse' {} Maybe RobotSoftwareSuite
a -> CreateSimulationApplicationResponse
s {$sel:robotSoftwareSuite:CreateSimulationApplicationResponse' :: Maybe RobotSoftwareSuite
robotSoftwareSuite = Maybe RobotSoftwareSuite
a} :: CreateSimulationApplicationResponse)

-- | The revision id of the simulation application.
createSimulationApplicationResponse_revisionId :: Lens.Lens' CreateSimulationApplicationResponse (Prelude.Maybe Prelude.Text)
createSimulationApplicationResponse_revisionId :: (Maybe Text -> f (Maybe Text))
-> CreateSimulationApplicationResponse
-> f CreateSimulationApplicationResponse
createSimulationApplicationResponse_revisionId = (CreateSimulationApplicationResponse -> Maybe Text)
-> (CreateSimulationApplicationResponse
    -> Maybe Text -> CreateSimulationApplicationResponse)
-> Lens
     CreateSimulationApplicationResponse
     CreateSimulationApplicationResponse
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateSimulationApplicationResponse' {Maybe Text
revisionId :: Maybe Text
$sel:revisionId:CreateSimulationApplicationResponse' :: CreateSimulationApplicationResponse -> Maybe Text
revisionId} -> Maybe Text
revisionId) (\s :: CreateSimulationApplicationResponse
s@CreateSimulationApplicationResponse' {} Maybe Text
a -> CreateSimulationApplicationResponse
s {$sel:revisionId:CreateSimulationApplicationResponse' :: Maybe Text
revisionId = Maybe Text
a} :: CreateSimulationApplicationResponse)

-- | The list of all tags added to the simulation application.
createSimulationApplicationResponse_tags :: Lens.Lens' CreateSimulationApplicationResponse (Prelude.Maybe (Prelude.HashMap Prelude.Text Prelude.Text))
createSimulationApplicationResponse_tags :: (Maybe (HashMap Text Text) -> f (Maybe (HashMap Text Text)))
-> CreateSimulationApplicationResponse
-> f CreateSimulationApplicationResponse
createSimulationApplicationResponse_tags = (CreateSimulationApplicationResponse -> Maybe (HashMap Text Text))
-> (CreateSimulationApplicationResponse
    -> Maybe (HashMap Text Text)
    -> CreateSimulationApplicationResponse)
-> Lens
     CreateSimulationApplicationResponse
     CreateSimulationApplicationResponse
     (Maybe (HashMap Text Text))
     (Maybe (HashMap Text Text))
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateSimulationApplicationResponse' {Maybe (HashMap Text Text)
tags :: Maybe (HashMap Text Text)
$sel:tags:CreateSimulationApplicationResponse' :: CreateSimulationApplicationResponse -> Maybe (HashMap Text Text)
tags} -> Maybe (HashMap Text Text)
tags) (\s :: CreateSimulationApplicationResponse
s@CreateSimulationApplicationResponse' {} Maybe (HashMap Text Text)
a -> CreateSimulationApplicationResponse
s {$sel:tags:CreateSimulationApplicationResponse' :: Maybe (HashMap Text Text)
tags = Maybe (HashMap Text Text)
a} :: CreateSimulationApplicationResponse) ((Maybe (HashMap Text Text) -> f (Maybe (HashMap Text Text)))
 -> CreateSimulationApplicationResponse
 -> f CreateSimulationApplicationResponse)
-> ((Maybe (HashMap Text Text) -> f (Maybe (HashMap Text Text)))
    -> Maybe (HashMap Text Text) -> f (Maybe (HashMap Text Text)))
-> (Maybe (HashMap Text Text) -> f (Maybe (HashMap Text Text)))
-> CreateSimulationApplicationResponse
-> f CreateSimulationApplicationResponse
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso
  (HashMap Text Text)
  (HashMap Text Text)
  (HashMap Text Text)
  (HashMap Text Text)
-> Iso
     (Maybe (HashMap Text Text))
     (Maybe (HashMap Text Text))
     (Maybe (HashMap Text Text))
     (Maybe (HashMap Text 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
  (HashMap Text Text)
  (HashMap Text Text)
  (HashMap Text Text)
  (HashMap Text Text)
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced

-- | The response's http status code.
createSimulationApplicationResponse_httpStatus :: Lens.Lens' CreateSimulationApplicationResponse Prelude.Int
createSimulationApplicationResponse_httpStatus :: (Int -> f Int)
-> CreateSimulationApplicationResponse
-> f CreateSimulationApplicationResponse
createSimulationApplicationResponse_httpStatus = (CreateSimulationApplicationResponse -> Int)
-> (CreateSimulationApplicationResponse
    -> Int -> CreateSimulationApplicationResponse)
-> Lens
     CreateSimulationApplicationResponse
     CreateSimulationApplicationResponse
     Int
     Int
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateSimulationApplicationResponse' {Int
httpStatus :: Int
$sel:httpStatus:CreateSimulationApplicationResponse' :: CreateSimulationApplicationResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: CreateSimulationApplicationResponse
s@CreateSimulationApplicationResponse' {} Int
a -> CreateSimulationApplicationResponse
s {$sel:httpStatus:CreateSimulationApplicationResponse' :: Int
httpStatus = Int
a} :: CreateSimulationApplicationResponse)

instance
  Prelude.NFData
    CreateSimulationApplicationResponse