{-# 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-2023 Brendan Hay
-- License     : Mozilla Public License, v. 2.0.
-- Maintainer  : Brendan Hay
-- Stability   : auto-generated
-- Portability : non-portable (GHC extensions)
--
-- Creates a simulation application.
module Amazonka.RobOMaker.CreateSimulationApplication
  ( -- * Creating a Request
    CreateSimulationApplication (..),
    newCreateSimulationApplication,

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

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

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

import qualified Amazonka.Core as Core
import qualified Amazonka.Core.Lens.Internal as Lens
import qualified Amazonka.Data as Data
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 object that contains the Docker image URI used to create your
    -- simulation application.
    CreateSimulationApplication -> Maybe Environment
environment :: Prelude.Maybe Environment,
    -- | The rendering engine for the simulation application.
    CreateSimulationApplication -> Maybe RenderingEngine
renderingEngine :: Prelude.Maybe RenderingEngine,
    -- | 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
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]
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
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.
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:
--
-- 'environment', 'createSimulationApplication_environment' - The object that contains the Docker image URI used to create your
-- simulation application.
--
-- 'renderingEngine', 'createSimulationApplication_renderingEngine' - The rendering engine for the 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'
      { $sel:environment:CreateSimulationApplication' :: Maybe Environment
environment =
          forall a. Maybe a
Prelude.Nothing,
        $sel:renderingEngine:CreateSimulationApplication' :: Maybe RenderingEngine
renderingEngine = forall a. Maybe a
Prelude.Nothing,
        $sel:sources:CreateSimulationApplication' :: Maybe [SourceConfig]
sources = forall a. Maybe a
Prelude.Nothing,
        $sel:tags:CreateSimulationApplication' :: Maybe (HashMap Text Text)
tags = 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 object that contains the Docker image URI used to create your
-- simulation application.
createSimulationApplication_environment :: Lens.Lens' CreateSimulationApplication (Prelude.Maybe Environment)
createSimulationApplication_environment :: Lens' CreateSimulationApplication (Maybe Environment)
createSimulationApplication_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 rendering engine for the simulation application.
createSimulationApplication_renderingEngine :: Lens.Lens' CreateSimulationApplication (Prelude.Maybe RenderingEngine)
createSimulationApplication_renderingEngine :: Lens' CreateSimulationApplication (Maybe RenderingEngine)
createSimulationApplication_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 sources of the simulation application.
createSimulationApplication_sources :: Lens.Lens' CreateSimulationApplication (Prelude.Maybe [SourceConfig])
createSimulationApplication_sources :: Lens' CreateSimulationApplication (Maybe [SourceConfig])
createSimulationApplication_sources = 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) forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. forall (f :: * -> *) (g :: * -> *) s t a b.
(Functor f, Functor g) =>
AnIso s t a b -> Iso (f s) (g t) (f a) (g b)
Lens.mapping forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced

-- | 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 :: Lens' CreateSimulationApplication (Maybe (HashMap Text Text))
createSimulationApplication_tags = 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) forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. forall (f :: * -> *) (g :: * -> *) s t a b.
(Functor f, Functor g) =>
AnIso s t a b -> Iso (f s) (g t) (f a) (g b)
Lens.mapping forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced

-- | The name of the simulation application.
createSimulationApplication_name :: Lens.Lens' CreateSimulationApplication Prelude.Text
createSimulationApplication_name :: Lens' CreateSimulationApplication Text
createSimulationApplication_name = 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 :: Lens' CreateSimulationApplication SimulationSoftwareSuite
createSimulationApplication_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 :: Lens' CreateSimulationApplication RobotSoftwareSuite
createSimulationApplication_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 :: (Service -> Service)
-> CreateSimulationApplication
-> Request CreateSimulationApplication
request Service -> Service
overrides =
    forall a. (ToRequest a, ToJSON a) => Service -> a -> Request a
Request.postJSON (Service -> Service
overrides Service
defaultService)
  response :: forall (m :: * -> *).
MonadResource m =>
(ByteStringLazy -> IO ByteStringLazy)
-> Service
-> Proxy CreateSimulationApplication
-> ClientResponse ClientBody
-> m (Either
        Error (ClientResponse (AWSResponse CreateSimulationApplication)))
response =
    forall (m :: * -> *) a.
MonadResource m =>
(Int -> ResponseHeaders -> Object -> Either String (AWSResponse a))
-> (ByteStringLazy -> IO ByteStringLazy)
-> Service
-> Proxy a
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse a)))
Response.receiveJSON
      ( \Int
s ResponseHeaders
h Object
x ->
          Maybe Text
-> Maybe Environment
-> Maybe POSIX
-> Maybe Text
-> Maybe RenderingEngine
-> Maybe Text
-> Maybe RobotSoftwareSuite
-> Maybe SimulationSoftwareSuite
-> Maybe [Source]
-> Maybe (HashMap Text Text)
-> Maybe Text
-> Int
-> CreateSimulationApplicationResponse
CreateSimulationApplicationResponse'
            forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x forall a. FromJSON a => Object -> Key -> Either String (Maybe a)
Data..?> Key
"arn")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Either String (Maybe a)
Data..?> Key
"environment")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Either String (Maybe a)
Data..?> Key
"lastUpdatedAt")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Either String (Maybe a)
Data..?> Key
"name")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Either String (Maybe a)
Data..?> Key
"renderingEngine")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Either String (Maybe a)
Data..?> Key
"revisionId")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Either String (Maybe a)
Data..?> Key
"robotSoftwareSuite")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Either String (Maybe a)
Data..?> Key
"simulationSoftwareSuite")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Either String (Maybe a)
Data..?> Key
"sources" forall (f :: * -> *) a. Functor f => f (Maybe a) -> a -> f a
Core..!@ forall a. Monoid a => a
Prelude.mempty)
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Either String (Maybe a)
Data..?> Key
"tags" forall (f :: * -> *) a. Functor f => f (Maybe a) -> a -> f a
Core..!@ forall a. Monoid a => a
Prelude.mempty)
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Either String (Maybe a)
Data..?> Key
"version")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure (forall a. Enum a => a -> Int
Prelude.fromEnum Int
s))
      )

instance Prelude.Hashable CreateSimulationApplication where
  hashWithSalt :: Int -> CreateSimulationApplication -> Int
hashWithSalt Int
_salt 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]
renderingEngine :: Maybe RenderingEngine
environment :: Maybe Environment
$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:renderingEngine:CreateSimulationApplication' :: CreateSimulationApplication -> Maybe RenderingEngine
$sel:environment:CreateSimulationApplication' :: CreateSimulationApplication -> Maybe Environment
..} =
    Int
_salt
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Environment
environment
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe RenderingEngine
renderingEngine
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe [SourceConfig]
sources
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe (HashMap Text Text)
tags
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Text
name
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` SimulationSoftwareSuite
simulationSoftwareSuite
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` RobotSoftwareSuite
robotSoftwareSuite

instance Prelude.NFData CreateSimulationApplication where
  rnf :: CreateSimulationApplication -> ()
rnf 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]
renderingEngine :: Maybe RenderingEngine
environment :: Maybe Environment
$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:renderingEngine:CreateSimulationApplication' :: CreateSimulationApplication -> Maybe RenderingEngine
$sel:environment:CreateSimulationApplication' :: CreateSimulationApplication -> Maybe Environment
..} =
    forall a. NFData a => a -> ()
Prelude.rnf Maybe Environment
environment
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe RenderingEngine
renderingEngine
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe [SourceConfig]
sources
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe (HashMap Text Text)
tags
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Text
name
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf SimulationSoftwareSuite
simulationSoftwareSuite
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf RobotSoftwareSuite
robotSoftwareSuite

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

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

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

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

-- | /See:/ 'newCreateSimulationApplicationResponse' smart constructor.
data CreateSimulationApplicationResponse = CreateSimulationApplicationResponse'
  { -- | 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 time, in milliseconds since the epoch, when the simulation
    -- application was last updated.
    CreateSimulationApplicationResponse -> Maybe POSIX
lastUpdatedAt :: Prelude.Maybe Data.POSIX,
    -- | The name of the simulation application.
    CreateSimulationApplicationResponse -> Maybe Text
name :: Prelude.Maybe Prelude.Text,
    -- | The rendering engine for the simulation application.
    CreateSimulationApplicationResponse -> Maybe RenderingEngine
renderingEngine :: Prelude.Maybe RenderingEngine,
    -- | The revision id of the simulation application.
    CreateSimulationApplicationResponse -> Maybe Text
revisionId :: Prelude.Maybe Prelude.Text,
    -- | Information about the robot software suite (ROS distribution).
    CreateSimulationApplicationResponse -> Maybe RobotSoftwareSuite
robotSoftwareSuite :: Prelude.Maybe RobotSoftwareSuite,
    -- | The simulation software suite used by the simulation application.
    CreateSimulationApplicationResponse
-> Maybe SimulationSoftwareSuite
simulationSoftwareSuite :: Prelude.Maybe SimulationSoftwareSuite,
    -- | The sources of the simulation application.
    CreateSimulationApplicationResponse -> Maybe [Source]
sources :: Prelude.Maybe [Source],
    -- | 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 version of the simulation application.
    CreateSimulationApplicationResponse -> Maybe Text
version :: Prelude.Maybe Prelude.Text,
    -- | The response's http status code.
    CreateSimulationApplicationResponse -> Int
httpStatus :: Prelude.Int
  }
  deriving (CreateSimulationApplicationResponse
-> CreateSimulationApplicationResponse -> Bool
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]
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
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.
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:
--
-- '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.
--
-- 'lastUpdatedAt', 'createSimulationApplicationResponse_lastUpdatedAt' - The time, in milliseconds since the epoch, when the simulation
-- application was last updated.
--
-- 'name', 'createSimulationApplicationResponse_name' - The name of the simulation application.
--
-- 'renderingEngine', 'createSimulationApplicationResponse_renderingEngine' - The rendering engine for the simulation application.
--
-- 'revisionId', 'createSimulationApplicationResponse_revisionId' - The revision id of the simulation application.
--
-- 'robotSoftwareSuite', 'createSimulationApplicationResponse_robotSoftwareSuite' - Information about the robot software suite (ROS distribution).
--
-- 'simulationSoftwareSuite', 'createSimulationApplicationResponse_simulationSoftwareSuite' - The simulation software suite used by the simulation application.
--
-- 'sources', 'createSimulationApplicationResponse_sources' - The sources of the simulation application.
--
-- 'tags', 'createSimulationApplicationResponse_tags' - The list of all tags added to the simulation application.
--
-- 'version', 'createSimulationApplicationResponse_version' - The version of the simulation application.
--
-- 'httpStatus', 'createSimulationApplicationResponse_httpStatus' - The response's http status code.
newCreateSimulationApplicationResponse ::
  -- | 'httpStatus'
  Prelude.Int ->
  CreateSimulationApplicationResponse
newCreateSimulationApplicationResponse :: Int -> CreateSimulationApplicationResponse
newCreateSimulationApplicationResponse Int
pHttpStatus_ =
  CreateSimulationApplicationResponse'
    { $sel:arn:CreateSimulationApplicationResponse' :: Maybe Text
arn =
        forall a. Maybe a
Prelude.Nothing,
      $sel:environment:CreateSimulationApplicationResponse' :: Maybe Environment
environment = forall a. Maybe a
Prelude.Nothing,
      $sel:lastUpdatedAt:CreateSimulationApplicationResponse' :: Maybe POSIX
lastUpdatedAt = forall a. Maybe a
Prelude.Nothing,
      $sel:name:CreateSimulationApplicationResponse' :: Maybe Text
name = forall a. Maybe a
Prelude.Nothing,
      $sel:renderingEngine:CreateSimulationApplicationResponse' :: Maybe RenderingEngine
renderingEngine = forall a. Maybe a
Prelude.Nothing,
      $sel:revisionId:CreateSimulationApplicationResponse' :: Maybe Text
revisionId = forall a. Maybe a
Prelude.Nothing,
      $sel:robotSoftwareSuite:CreateSimulationApplicationResponse' :: Maybe RobotSoftwareSuite
robotSoftwareSuite = forall a. Maybe a
Prelude.Nothing,
      $sel:simulationSoftwareSuite:CreateSimulationApplicationResponse' :: Maybe SimulationSoftwareSuite
simulationSoftwareSuite =
        forall a. Maybe a
Prelude.Nothing,
      $sel:sources:CreateSimulationApplicationResponse' :: Maybe [Source]
sources = forall a. Maybe a
Prelude.Nothing,
      $sel:tags:CreateSimulationApplicationResponse' :: Maybe (HashMap Text Text)
tags = forall a. Maybe a
Prelude.Nothing,
      $sel:version:CreateSimulationApplicationResponse' :: Maybe Text
version = forall a. Maybe a
Prelude.Nothing,
      $sel:httpStatus:CreateSimulationApplicationResponse' :: Int
httpStatus = Int
pHttpStatus_
    }

-- | The Amazon Resource Name (ARN) of the simulation application.
createSimulationApplicationResponse_arn :: Lens.Lens' CreateSimulationApplicationResponse (Prelude.Maybe Prelude.Text)
createSimulationApplicationResponse_arn :: Lens' CreateSimulationApplicationResponse (Maybe Text)
createSimulationApplicationResponse_arn = 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 :: Lens' CreateSimulationApplicationResponse (Maybe Environment)
createSimulationApplicationResponse_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 time, in milliseconds since the epoch, when the simulation
-- application was last updated.
createSimulationApplicationResponse_lastUpdatedAt :: Lens.Lens' CreateSimulationApplicationResponse (Prelude.Maybe Prelude.UTCTime)
createSimulationApplicationResponse_lastUpdatedAt :: Lens' CreateSimulationApplicationResponse (Maybe UTCTime)
createSimulationApplicationResponse_lastUpdatedAt = 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) forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. forall (f :: * -> *) (g :: * -> *) s t a b.
(Functor f, Functor g) =>
AnIso s t a b -> Iso (f s) (g t) (f a) (g b)
Lens.mapping forall (a :: Format). Iso' (Time a) UTCTime
Data._Time

-- | The name of the simulation application.
createSimulationApplicationResponse_name :: Lens.Lens' CreateSimulationApplicationResponse (Prelude.Maybe Prelude.Text)
createSimulationApplicationResponse_name :: Lens' CreateSimulationApplicationResponse (Maybe Text)
createSimulationApplicationResponse_name = 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 rendering engine for the simulation application.
createSimulationApplicationResponse_renderingEngine :: Lens.Lens' CreateSimulationApplicationResponse (Prelude.Maybe RenderingEngine)
createSimulationApplicationResponse_renderingEngine :: Lens' CreateSimulationApplicationResponse (Maybe RenderingEngine)
createSimulationApplicationResponse_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 revision id of the simulation application.
createSimulationApplicationResponse_revisionId :: Lens.Lens' CreateSimulationApplicationResponse (Prelude.Maybe Prelude.Text)
createSimulationApplicationResponse_revisionId :: Lens' CreateSimulationApplicationResponse (Maybe Text)
createSimulationApplicationResponse_revisionId = 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)

-- | Information about the robot software suite (ROS distribution).
createSimulationApplicationResponse_robotSoftwareSuite :: Lens.Lens' CreateSimulationApplicationResponse (Prelude.Maybe RobotSoftwareSuite)
createSimulationApplicationResponse_robotSoftwareSuite :: Lens'
  CreateSimulationApplicationResponse (Maybe RobotSoftwareSuite)
createSimulationApplicationResponse_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 simulation software suite used by the simulation application.
createSimulationApplicationResponse_simulationSoftwareSuite :: Lens.Lens' CreateSimulationApplicationResponse (Prelude.Maybe SimulationSoftwareSuite)
createSimulationApplicationResponse_simulationSoftwareSuite :: Lens'
  CreateSimulationApplicationResponse (Maybe SimulationSoftwareSuite)
createSimulationApplicationResponse_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)

-- | The sources of the simulation application.
createSimulationApplicationResponse_sources :: Lens.Lens' CreateSimulationApplicationResponse (Prelude.Maybe [Source])
createSimulationApplicationResponse_sources :: Lens' CreateSimulationApplicationResponse (Maybe [Source])
createSimulationApplicationResponse_sources = 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) forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. forall (f :: * -> *) (g :: * -> *) s t a b.
(Functor f, Functor g) =>
AnIso s t a b -> Iso (f s) (g t) (f a) (g b)
Lens.mapping forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced

-- | 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 :: Lens'
  CreateSimulationApplicationResponse (Maybe (HashMap Text Text))
createSimulationApplicationResponse_tags = 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) forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. forall (f :: * -> *) (g :: * -> *) s t a b.
(Functor f, Functor g) =>
AnIso s t a b -> Iso (f s) (g t) (f a) (g b)
Lens.mapping forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced

-- | The version of the simulation application.
createSimulationApplicationResponse_version :: Lens.Lens' CreateSimulationApplicationResponse (Prelude.Maybe Prelude.Text)
createSimulationApplicationResponse_version :: Lens' CreateSimulationApplicationResponse (Maybe Text)
createSimulationApplicationResponse_version = 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 response's http status code.
createSimulationApplicationResponse_httpStatus :: Lens.Lens' CreateSimulationApplicationResponse Prelude.Int
createSimulationApplicationResponse_httpStatus :: Lens' CreateSimulationApplicationResponse Int
createSimulationApplicationResponse_httpStatus = 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
  where
  rnf :: CreateSimulationApplicationResponse -> ()
rnf CreateSimulationApplicationResponse' {Int
Maybe [Source]
Maybe Text
Maybe (HashMap Text Text)
Maybe POSIX
Maybe Environment
Maybe RenderingEngine
Maybe RobotSoftwareSuite
Maybe SimulationSoftwareSuite
httpStatus :: Int
version :: Maybe Text
tags :: Maybe (HashMap Text Text)
sources :: Maybe [Source]
simulationSoftwareSuite :: Maybe SimulationSoftwareSuite
robotSoftwareSuite :: Maybe RobotSoftwareSuite
revisionId :: Maybe Text
renderingEngine :: Maybe RenderingEngine
name :: Maybe Text
lastUpdatedAt :: Maybe POSIX
environment :: Maybe Environment
arn :: Maybe Text
$sel:httpStatus:CreateSimulationApplicationResponse' :: CreateSimulationApplicationResponse -> Int
$sel:version:CreateSimulationApplicationResponse' :: CreateSimulationApplicationResponse -> Maybe Text
$sel:tags:CreateSimulationApplicationResponse' :: CreateSimulationApplicationResponse -> Maybe (HashMap Text Text)
$sel:sources:CreateSimulationApplicationResponse' :: CreateSimulationApplicationResponse -> Maybe [Source]
$sel:simulationSoftwareSuite:CreateSimulationApplicationResponse' :: CreateSimulationApplicationResponse
-> Maybe SimulationSoftwareSuite
$sel:robotSoftwareSuite:CreateSimulationApplicationResponse' :: CreateSimulationApplicationResponse -> Maybe RobotSoftwareSuite
$sel:revisionId:CreateSimulationApplicationResponse' :: CreateSimulationApplicationResponse -> Maybe Text
$sel:renderingEngine:CreateSimulationApplicationResponse' :: CreateSimulationApplicationResponse -> Maybe RenderingEngine
$sel:name:CreateSimulationApplicationResponse' :: CreateSimulationApplicationResponse -> Maybe Text
$sel:lastUpdatedAt:CreateSimulationApplicationResponse' :: CreateSimulationApplicationResponse -> Maybe POSIX
$sel:environment:CreateSimulationApplicationResponse' :: CreateSimulationApplicationResponse -> Maybe Environment
$sel:arn:CreateSimulationApplicationResponse' :: CreateSimulationApplicationResponse -> Maybe Text
..} =
    forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
arn
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Environment
environment
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe POSIX
lastUpdatedAt
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
name
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe RenderingEngine
renderingEngine
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
revisionId
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe RobotSoftwareSuite
robotSoftwareSuite
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe SimulationSoftwareSuite
simulationSoftwareSuite
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe [Source]
sources
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe (HashMap Text Text)
tags
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
version
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Int
httpStatus