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

    -- * Request Lenses
    updateSimulationApplication_currentRevisionId,
    updateSimulationApplication_environment,
    updateSimulationApplication_renderingEngine,
    updateSimulationApplication_sources,
    updateSimulationApplication_application,
    updateSimulationApplication_simulationSoftwareSuite,
    updateSimulationApplication_robotSoftwareSuite,

    -- * Destructuring the Response
    UpdateSimulationApplicationResponse (..),
    newUpdateSimulationApplicationResponse,

    -- * Response Lenses
    updateSimulationApplicationResponse_arn,
    updateSimulationApplicationResponse_environment,
    updateSimulationApplicationResponse_lastUpdatedAt,
    updateSimulationApplicationResponse_name,
    updateSimulationApplicationResponse_renderingEngine,
    updateSimulationApplicationResponse_revisionId,
    updateSimulationApplicationResponse_robotSoftwareSuite,
    updateSimulationApplicationResponse_simulationSoftwareSuite,
    updateSimulationApplicationResponse_sources,
    updateSimulationApplicationResponse_version,
    updateSimulationApplicationResponse_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:/ 'newUpdateSimulationApplication' smart constructor.
data UpdateSimulationApplication = UpdateSimulationApplication'
  { -- | The revision id for the robot application.
    UpdateSimulationApplication -> Maybe Text
currentRevisionId :: Prelude.Maybe Prelude.Text,
    -- | The object that contains the Docker image URI for your simulation
    -- application.
    UpdateSimulationApplication -> Maybe Environment
environment :: Prelude.Maybe Environment,
    -- | The rendering engine for the simulation application.
    UpdateSimulationApplication -> Maybe RenderingEngine
renderingEngine :: Prelude.Maybe RenderingEngine,
    -- | The sources of the simulation application.
    UpdateSimulationApplication -> Maybe [SourceConfig]
sources :: Prelude.Maybe [SourceConfig],
    -- | The application information for the simulation application.
    UpdateSimulationApplication -> Text
application :: Prelude.Text,
    -- | The simulation software suite used by the simulation application.
    UpdateSimulationApplication -> SimulationSoftwareSuite
simulationSoftwareSuite :: SimulationSoftwareSuite,
    -- | Information about the robot software suite (ROS distribution).
    UpdateSimulationApplication -> RobotSoftwareSuite
robotSoftwareSuite :: RobotSoftwareSuite
  }
  deriving (UpdateSimulationApplication -> UpdateSimulationApplication -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: UpdateSimulationApplication -> UpdateSimulationApplication -> Bool
$c/= :: UpdateSimulationApplication -> UpdateSimulationApplication -> Bool
== :: UpdateSimulationApplication -> UpdateSimulationApplication -> Bool
$c== :: UpdateSimulationApplication -> UpdateSimulationApplication -> Bool
Prelude.Eq, ReadPrec [UpdateSimulationApplication]
ReadPrec UpdateSimulationApplication
Int -> ReadS UpdateSimulationApplication
ReadS [UpdateSimulationApplication]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [UpdateSimulationApplication]
$creadListPrec :: ReadPrec [UpdateSimulationApplication]
readPrec :: ReadPrec UpdateSimulationApplication
$creadPrec :: ReadPrec UpdateSimulationApplication
readList :: ReadS [UpdateSimulationApplication]
$creadList :: ReadS [UpdateSimulationApplication]
readsPrec :: Int -> ReadS UpdateSimulationApplication
$creadsPrec :: Int -> ReadS UpdateSimulationApplication
Prelude.Read, Int -> UpdateSimulationApplication -> ShowS
[UpdateSimulationApplication] -> ShowS
UpdateSimulationApplication -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [UpdateSimulationApplication] -> ShowS
$cshowList :: [UpdateSimulationApplication] -> ShowS
show :: UpdateSimulationApplication -> String
$cshow :: UpdateSimulationApplication -> String
showsPrec :: Int -> UpdateSimulationApplication -> ShowS
$cshowsPrec :: Int -> UpdateSimulationApplication -> ShowS
Prelude.Show, forall x.
Rep UpdateSimulationApplication x -> UpdateSimulationApplication
forall x.
UpdateSimulationApplication -> Rep UpdateSimulationApplication x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep UpdateSimulationApplication x -> UpdateSimulationApplication
$cfrom :: forall x.
UpdateSimulationApplication -> Rep UpdateSimulationApplication x
Prelude.Generic)

-- |
-- Create a value of 'UpdateSimulationApplication' 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:
--
-- 'currentRevisionId', 'updateSimulationApplication_currentRevisionId' - The revision id for the robot application.
--
-- 'environment', 'updateSimulationApplication_environment' - The object that contains the Docker image URI for your simulation
-- application.
--
-- 'renderingEngine', 'updateSimulationApplication_renderingEngine' - The rendering engine for the simulation application.
--
-- 'sources', 'updateSimulationApplication_sources' - The sources of the simulation application.
--
-- 'application', 'updateSimulationApplication_application' - The application information for the simulation application.
--
-- 'simulationSoftwareSuite', 'updateSimulationApplication_simulationSoftwareSuite' - The simulation software suite used by the simulation application.
--
-- 'robotSoftwareSuite', 'updateSimulationApplication_robotSoftwareSuite' - Information about the robot software suite (ROS distribution).
newUpdateSimulationApplication ::
  -- | 'application'
  Prelude.Text ->
  -- | 'simulationSoftwareSuite'
  SimulationSoftwareSuite ->
  -- | 'robotSoftwareSuite'
  RobotSoftwareSuite ->
  UpdateSimulationApplication
newUpdateSimulationApplication :: Text
-> SimulationSoftwareSuite
-> RobotSoftwareSuite
-> UpdateSimulationApplication
newUpdateSimulationApplication
  Text
pApplication_
  SimulationSoftwareSuite
pSimulationSoftwareSuite_
  RobotSoftwareSuite
pRobotSoftwareSuite_ =
    UpdateSimulationApplication'
      { $sel:currentRevisionId:UpdateSimulationApplication' :: Maybe Text
currentRevisionId =
          forall a. Maybe a
Prelude.Nothing,
        $sel:environment:UpdateSimulationApplication' :: Maybe Environment
environment = forall a. Maybe a
Prelude.Nothing,
        $sel:renderingEngine:UpdateSimulationApplication' :: Maybe RenderingEngine
renderingEngine = forall a. Maybe a
Prelude.Nothing,
        $sel:sources:UpdateSimulationApplication' :: Maybe [SourceConfig]
sources = forall a. Maybe a
Prelude.Nothing,
        $sel:application:UpdateSimulationApplication' :: Text
application = Text
pApplication_,
        $sel:simulationSoftwareSuite:UpdateSimulationApplication' :: SimulationSoftwareSuite
simulationSoftwareSuite =
          SimulationSoftwareSuite
pSimulationSoftwareSuite_,
        $sel:robotSoftwareSuite:UpdateSimulationApplication' :: RobotSoftwareSuite
robotSoftwareSuite = RobotSoftwareSuite
pRobotSoftwareSuite_
      }

-- | The revision id for the robot application.
updateSimulationApplication_currentRevisionId :: Lens.Lens' UpdateSimulationApplication (Prelude.Maybe Prelude.Text)
updateSimulationApplication_currentRevisionId :: Lens' UpdateSimulationApplication (Maybe Text)
updateSimulationApplication_currentRevisionId = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateSimulationApplication' {Maybe Text
currentRevisionId :: Maybe Text
$sel:currentRevisionId:UpdateSimulationApplication' :: UpdateSimulationApplication -> Maybe Text
currentRevisionId} -> Maybe Text
currentRevisionId) (\s :: UpdateSimulationApplication
s@UpdateSimulationApplication' {} Maybe Text
a -> UpdateSimulationApplication
s {$sel:currentRevisionId:UpdateSimulationApplication' :: Maybe Text
currentRevisionId = Maybe Text
a} :: UpdateSimulationApplication)

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

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

-- | The sources of the simulation application.
updateSimulationApplication_sources :: Lens.Lens' UpdateSimulationApplication (Prelude.Maybe [SourceConfig])
updateSimulationApplication_sources :: Lens' UpdateSimulationApplication (Maybe [SourceConfig])
updateSimulationApplication_sources = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateSimulationApplication' {Maybe [SourceConfig]
sources :: Maybe [SourceConfig]
$sel:sources:UpdateSimulationApplication' :: UpdateSimulationApplication -> Maybe [SourceConfig]
sources} -> Maybe [SourceConfig]
sources) (\s :: UpdateSimulationApplication
s@UpdateSimulationApplication' {} Maybe [SourceConfig]
a -> UpdateSimulationApplication
s {$sel:sources:UpdateSimulationApplication' :: Maybe [SourceConfig]
sources = Maybe [SourceConfig]
a} :: UpdateSimulationApplication) 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 application information for the simulation application.
updateSimulationApplication_application :: Lens.Lens' UpdateSimulationApplication Prelude.Text
updateSimulationApplication_application :: Lens' UpdateSimulationApplication Text
updateSimulationApplication_application = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateSimulationApplication' {Text
application :: Text
$sel:application:UpdateSimulationApplication' :: UpdateSimulationApplication -> Text
application} -> Text
application) (\s :: UpdateSimulationApplication
s@UpdateSimulationApplication' {} Text
a -> UpdateSimulationApplication
s {$sel:application:UpdateSimulationApplication' :: Text
application = Text
a} :: UpdateSimulationApplication)

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

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

instance Core.AWSRequest UpdateSimulationApplication where
  type
    AWSResponse UpdateSimulationApplication =
      UpdateSimulationApplicationResponse
  request :: (Service -> Service)
-> UpdateSimulationApplication
-> Request UpdateSimulationApplication
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 UpdateSimulationApplication
-> ClientResponse ClientBody
-> m (Either
        Error (ClientResponse (AWSResponse UpdateSimulationApplication)))
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 Text
-> Int
-> UpdateSimulationApplicationResponse
UpdateSimulationApplicationResponse'
            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
"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 UpdateSimulationApplication where
  hashWithSalt :: Int -> UpdateSimulationApplication -> Int
hashWithSalt Int
_salt UpdateSimulationApplication' {Maybe [SourceConfig]
Maybe Text
Maybe Environment
Maybe RenderingEngine
Text
RobotSoftwareSuite
SimulationSoftwareSuite
robotSoftwareSuite :: RobotSoftwareSuite
simulationSoftwareSuite :: SimulationSoftwareSuite
application :: Text
sources :: Maybe [SourceConfig]
renderingEngine :: Maybe RenderingEngine
environment :: Maybe Environment
currentRevisionId :: Maybe Text
$sel:robotSoftwareSuite:UpdateSimulationApplication' :: UpdateSimulationApplication -> RobotSoftwareSuite
$sel:simulationSoftwareSuite:UpdateSimulationApplication' :: UpdateSimulationApplication -> SimulationSoftwareSuite
$sel:application:UpdateSimulationApplication' :: UpdateSimulationApplication -> Text
$sel:sources:UpdateSimulationApplication' :: UpdateSimulationApplication -> Maybe [SourceConfig]
$sel:renderingEngine:UpdateSimulationApplication' :: UpdateSimulationApplication -> Maybe RenderingEngine
$sel:environment:UpdateSimulationApplication' :: UpdateSimulationApplication -> Maybe Environment
$sel:currentRevisionId:UpdateSimulationApplication' :: UpdateSimulationApplication -> Maybe Text
..} =
    Int
_salt
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
currentRevisionId
      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` Text
application
      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 UpdateSimulationApplication where
  rnf :: UpdateSimulationApplication -> ()
rnf UpdateSimulationApplication' {Maybe [SourceConfig]
Maybe Text
Maybe Environment
Maybe RenderingEngine
Text
RobotSoftwareSuite
SimulationSoftwareSuite
robotSoftwareSuite :: RobotSoftwareSuite
simulationSoftwareSuite :: SimulationSoftwareSuite
application :: Text
sources :: Maybe [SourceConfig]
renderingEngine :: Maybe RenderingEngine
environment :: Maybe Environment
currentRevisionId :: Maybe Text
$sel:robotSoftwareSuite:UpdateSimulationApplication' :: UpdateSimulationApplication -> RobotSoftwareSuite
$sel:simulationSoftwareSuite:UpdateSimulationApplication' :: UpdateSimulationApplication -> SimulationSoftwareSuite
$sel:application:UpdateSimulationApplication' :: UpdateSimulationApplication -> Text
$sel:sources:UpdateSimulationApplication' :: UpdateSimulationApplication -> Maybe [SourceConfig]
$sel:renderingEngine:UpdateSimulationApplication' :: UpdateSimulationApplication -> Maybe RenderingEngine
$sel:environment:UpdateSimulationApplication' :: UpdateSimulationApplication -> Maybe Environment
$sel:currentRevisionId:UpdateSimulationApplication' :: UpdateSimulationApplication -> Maybe Text
..} =
    forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
currentRevisionId
      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 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 Text
application
      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 UpdateSimulationApplication where
  toHeaders :: UpdateSimulationApplication -> 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 UpdateSimulationApplication where
  toJSON :: UpdateSimulationApplication -> Value
toJSON UpdateSimulationApplication' {Maybe [SourceConfig]
Maybe Text
Maybe Environment
Maybe RenderingEngine
Text
RobotSoftwareSuite
SimulationSoftwareSuite
robotSoftwareSuite :: RobotSoftwareSuite
simulationSoftwareSuite :: SimulationSoftwareSuite
application :: Text
sources :: Maybe [SourceConfig]
renderingEngine :: Maybe RenderingEngine
environment :: Maybe Environment
currentRevisionId :: Maybe Text
$sel:robotSoftwareSuite:UpdateSimulationApplication' :: UpdateSimulationApplication -> RobotSoftwareSuite
$sel:simulationSoftwareSuite:UpdateSimulationApplication' :: UpdateSimulationApplication -> SimulationSoftwareSuite
$sel:application:UpdateSimulationApplication' :: UpdateSimulationApplication -> Text
$sel:sources:UpdateSimulationApplication' :: UpdateSimulationApplication -> Maybe [SourceConfig]
$sel:renderingEngine:UpdateSimulationApplication' :: UpdateSimulationApplication -> Maybe RenderingEngine
$sel:environment:UpdateSimulationApplication' :: UpdateSimulationApplication -> Maybe Environment
$sel:currentRevisionId:UpdateSimulationApplication' :: UpdateSimulationApplication -> Maybe Text
..} =
    [Pair] -> Value
Data.object
      ( forall a. [Maybe a] -> [a]
Prelude.catMaybes
          [ (Key
"currentRevisionId" 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 Text
currentRevisionId,
            (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,
            forall a. a -> Maybe a
Prelude.Just (Key
"application" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..= Text
application),
            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 UpdateSimulationApplication where
  toPath :: UpdateSimulationApplication -> ByteString
toPath = forall a b. a -> b -> a
Prelude.const ByteString
"/updateSimulationApplication"

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

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

-- |
-- Create a value of 'UpdateSimulationApplicationResponse' 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', 'updateSimulationApplicationResponse_arn' - The Amazon Resource Name (ARN) of the updated simulation application.
--
-- 'environment', 'updateSimulationApplicationResponse_environment' - The object that contains the Docker image URI used for your simulation
-- application.
--
-- 'lastUpdatedAt', 'updateSimulationApplicationResponse_lastUpdatedAt' - The time, in milliseconds since the epoch, when the simulation
-- application was last updated.
--
-- 'name', 'updateSimulationApplicationResponse_name' - The name of the simulation application.
--
-- 'renderingEngine', 'updateSimulationApplicationResponse_renderingEngine' - The rendering engine for the simulation application.
--
-- 'revisionId', 'updateSimulationApplicationResponse_revisionId' - The revision id of the simulation application.
--
-- 'robotSoftwareSuite', 'updateSimulationApplicationResponse_robotSoftwareSuite' - Information about the robot software suite (ROS distribution).
--
-- 'simulationSoftwareSuite', 'updateSimulationApplicationResponse_simulationSoftwareSuite' - The simulation software suite used by the simulation application.
--
-- 'sources', 'updateSimulationApplicationResponse_sources' - The sources of the simulation application.
--
-- 'version', 'updateSimulationApplicationResponse_version' - The version of the robot application.
--
-- 'httpStatus', 'updateSimulationApplicationResponse_httpStatus' - The response's http status code.
newUpdateSimulationApplicationResponse ::
  -- | 'httpStatus'
  Prelude.Int ->
  UpdateSimulationApplicationResponse
newUpdateSimulationApplicationResponse :: Int -> UpdateSimulationApplicationResponse
newUpdateSimulationApplicationResponse Int
pHttpStatus_ =
  UpdateSimulationApplicationResponse'
    { $sel:arn:UpdateSimulationApplicationResponse' :: Maybe Text
arn =
        forall a. Maybe a
Prelude.Nothing,
      $sel:environment:UpdateSimulationApplicationResponse' :: Maybe Environment
environment = forall a. Maybe a
Prelude.Nothing,
      $sel:lastUpdatedAt:UpdateSimulationApplicationResponse' :: Maybe POSIX
lastUpdatedAt = forall a. Maybe a
Prelude.Nothing,
      $sel:name:UpdateSimulationApplicationResponse' :: Maybe Text
name = forall a. Maybe a
Prelude.Nothing,
      $sel:renderingEngine:UpdateSimulationApplicationResponse' :: Maybe RenderingEngine
renderingEngine = forall a. Maybe a
Prelude.Nothing,
      $sel:revisionId:UpdateSimulationApplicationResponse' :: Maybe Text
revisionId = forall a. Maybe a
Prelude.Nothing,
      $sel:robotSoftwareSuite:UpdateSimulationApplicationResponse' :: Maybe RobotSoftwareSuite
robotSoftwareSuite = forall a. Maybe a
Prelude.Nothing,
      $sel:simulationSoftwareSuite:UpdateSimulationApplicationResponse' :: Maybe SimulationSoftwareSuite
simulationSoftwareSuite =
        forall a. Maybe a
Prelude.Nothing,
      $sel:sources:UpdateSimulationApplicationResponse' :: Maybe [Source]
sources = forall a. Maybe a
Prelude.Nothing,
      $sel:version:UpdateSimulationApplicationResponse' :: Maybe Text
version = forall a. Maybe a
Prelude.Nothing,
      $sel:httpStatus:UpdateSimulationApplicationResponse' :: Int
httpStatus = Int
pHttpStatus_
    }

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

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

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

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

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

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

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

-- | The sources of the simulation application.
updateSimulationApplicationResponse_sources :: Lens.Lens' UpdateSimulationApplicationResponse (Prelude.Maybe [Source])
updateSimulationApplicationResponse_sources :: Lens' UpdateSimulationApplicationResponse (Maybe [Source])
updateSimulationApplicationResponse_sources = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateSimulationApplicationResponse' {Maybe [Source]
sources :: Maybe [Source]
$sel:sources:UpdateSimulationApplicationResponse' :: UpdateSimulationApplicationResponse -> Maybe [Source]
sources} -> Maybe [Source]
sources) (\s :: UpdateSimulationApplicationResponse
s@UpdateSimulationApplicationResponse' {} Maybe [Source]
a -> UpdateSimulationApplicationResponse
s {$sel:sources:UpdateSimulationApplicationResponse' :: Maybe [Source]
sources = Maybe [Source]
a} :: UpdateSimulationApplicationResponse) 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 robot application.
updateSimulationApplicationResponse_version :: Lens.Lens' UpdateSimulationApplicationResponse (Prelude.Maybe Prelude.Text)
updateSimulationApplicationResponse_version :: Lens' UpdateSimulationApplicationResponse (Maybe Text)
updateSimulationApplicationResponse_version = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateSimulationApplicationResponse' {Maybe Text
version :: Maybe Text
$sel:version:UpdateSimulationApplicationResponse' :: UpdateSimulationApplicationResponse -> Maybe Text
version} -> Maybe Text
version) (\s :: UpdateSimulationApplicationResponse
s@UpdateSimulationApplicationResponse' {} Maybe Text
a -> UpdateSimulationApplicationResponse
s {$sel:version:UpdateSimulationApplicationResponse' :: Maybe Text
version = Maybe Text
a} :: UpdateSimulationApplicationResponse)

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

instance
  Prelude.NFData
    UpdateSimulationApplicationResponse
  where
  rnf :: UpdateSimulationApplicationResponse -> ()
rnf UpdateSimulationApplicationResponse' {Int
Maybe [Source]
Maybe Text
Maybe POSIX
Maybe Environment
Maybe RenderingEngine
Maybe RobotSoftwareSuite
Maybe SimulationSoftwareSuite
httpStatus :: Int
version :: Maybe 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:UpdateSimulationApplicationResponse' :: UpdateSimulationApplicationResponse -> Int
$sel:version:UpdateSimulationApplicationResponse' :: UpdateSimulationApplicationResponse -> Maybe Text
$sel:sources:UpdateSimulationApplicationResponse' :: UpdateSimulationApplicationResponse -> Maybe [Source]
$sel:simulationSoftwareSuite:UpdateSimulationApplicationResponse' :: UpdateSimulationApplicationResponse
-> Maybe SimulationSoftwareSuite
$sel:robotSoftwareSuite:UpdateSimulationApplicationResponse' :: UpdateSimulationApplicationResponse -> Maybe RobotSoftwareSuite
$sel:revisionId:UpdateSimulationApplicationResponse' :: UpdateSimulationApplicationResponse -> Maybe Text
$sel:renderingEngine:UpdateSimulationApplicationResponse' :: UpdateSimulationApplicationResponse -> Maybe RenderingEngine
$sel:name:UpdateSimulationApplicationResponse' :: UpdateSimulationApplicationResponse -> Maybe Text
$sel:lastUpdatedAt:UpdateSimulationApplicationResponse' :: UpdateSimulationApplicationResponse -> Maybe POSIX
$sel:environment:UpdateSimulationApplicationResponse' :: UpdateSimulationApplicationResponse -> Maybe Environment
$sel:arn:UpdateSimulationApplicationResponse' :: UpdateSimulationApplicationResponse -> 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 Text
version
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Int
httpStatus