{-# 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.CreateSimulationApplicationVersion
-- Copyright   : (c) 2013-2021 Brendan Hay
-- License     : Mozilla Public License, v. 2.0.
-- Maintainer  : Brendan Hay <brendan.g.hay+amazonka@gmail.com>
-- Stability   : auto-generated
-- Portability : non-portable (GHC extensions)
--
-- Creates a simulation application with a specific revision id.
module Amazonka.RobOMaker.CreateSimulationApplicationVersion
  ( -- * Creating a Request
    CreateSimulationApplicationVersion (..),
    newCreateSimulationApplicationVersion,

    -- * Request Lenses
    createSimulationApplicationVersion_currentRevisionId,
    createSimulationApplicationVersion_s3Etags,
    createSimulationApplicationVersion_imageDigest,
    createSimulationApplicationVersion_application,

    -- * Destructuring the Response
    CreateSimulationApplicationVersionResponse (..),
    newCreateSimulationApplicationVersionResponse,

    -- * Response Lenses
    createSimulationApplicationVersionResponse_renderingEngine,
    createSimulationApplicationVersionResponse_lastUpdatedAt,
    createSimulationApplicationVersionResponse_arn,
    createSimulationApplicationVersionResponse_environment,
    createSimulationApplicationVersionResponse_sources,
    createSimulationApplicationVersionResponse_name,
    createSimulationApplicationVersionResponse_version,
    createSimulationApplicationVersionResponse_simulationSoftwareSuite,
    createSimulationApplicationVersionResponse_robotSoftwareSuite,
    createSimulationApplicationVersionResponse_revisionId,
    createSimulationApplicationVersionResponse_httpStatus,
  )
where

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

-- | /See:/ 'newCreateSimulationApplicationVersion' smart constructor.
data CreateSimulationApplicationVersion = CreateSimulationApplicationVersion'
  { -- | The current revision id for the simulation application. If you provide a
    -- value and it matches the latest revision ID, a new version will be
    -- created.
    CreateSimulationApplicationVersion -> Maybe Text
currentRevisionId :: Prelude.Maybe Prelude.Text,
    -- | The Amazon S3 eTag identifier for the zip file bundle that you use to
    -- create the simulation application.
    CreateSimulationApplicationVersion -> Maybe [Text]
s3Etags :: Prelude.Maybe [Prelude.Text],
    -- | The SHA256 digest used to identify the Docker image URI used to created
    -- the simulation application.
    CreateSimulationApplicationVersion -> Maybe Text
imageDigest :: Prelude.Maybe Prelude.Text,
    -- | The application information for the simulation application.
    CreateSimulationApplicationVersion -> Text
application :: Prelude.Text
  }
  deriving (CreateSimulationApplicationVersion
-> CreateSimulationApplicationVersion -> Bool
(CreateSimulationApplicationVersion
 -> CreateSimulationApplicationVersion -> Bool)
-> (CreateSimulationApplicationVersion
    -> CreateSimulationApplicationVersion -> Bool)
-> Eq CreateSimulationApplicationVersion
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: CreateSimulationApplicationVersion
-> CreateSimulationApplicationVersion -> Bool
$c/= :: CreateSimulationApplicationVersion
-> CreateSimulationApplicationVersion -> Bool
== :: CreateSimulationApplicationVersion
-> CreateSimulationApplicationVersion -> Bool
$c== :: CreateSimulationApplicationVersion
-> CreateSimulationApplicationVersion -> Bool
Prelude.Eq, ReadPrec [CreateSimulationApplicationVersion]
ReadPrec CreateSimulationApplicationVersion
Int -> ReadS CreateSimulationApplicationVersion
ReadS [CreateSimulationApplicationVersion]
(Int -> ReadS CreateSimulationApplicationVersion)
-> ReadS [CreateSimulationApplicationVersion]
-> ReadPrec CreateSimulationApplicationVersion
-> ReadPrec [CreateSimulationApplicationVersion]
-> Read CreateSimulationApplicationVersion
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [CreateSimulationApplicationVersion]
$creadListPrec :: ReadPrec [CreateSimulationApplicationVersion]
readPrec :: ReadPrec CreateSimulationApplicationVersion
$creadPrec :: ReadPrec CreateSimulationApplicationVersion
readList :: ReadS [CreateSimulationApplicationVersion]
$creadList :: ReadS [CreateSimulationApplicationVersion]
readsPrec :: Int -> ReadS CreateSimulationApplicationVersion
$creadsPrec :: Int -> ReadS CreateSimulationApplicationVersion
Prelude.Read, Int -> CreateSimulationApplicationVersion -> ShowS
[CreateSimulationApplicationVersion] -> ShowS
CreateSimulationApplicationVersion -> String
(Int -> CreateSimulationApplicationVersion -> ShowS)
-> (CreateSimulationApplicationVersion -> String)
-> ([CreateSimulationApplicationVersion] -> ShowS)
-> Show CreateSimulationApplicationVersion
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [CreateSimulationApplicationVersion] -> ShowS
$cshowList :: [CreateSimulationApplicationVersion] -> ShowS
show :: CreateSimulationApplicationVersion -> String
$cshow :: CreateSimulationApplicationVersion -> String
showsPrec :: Int -> CreateSimulationApplicationVersion -> ShowS
$cshowsPrec :: Int -> CreateSimulationApplicationVersion -> ShowS
Prelude.Show, (forall x.
 CreateSimulationApplicationVersion
 -> Rep CreateSimulationApplicationVersion x)
-> (forall x.
    Rep CreateSimulationApplicationVersion x
    -> CreateSimulationApplicationVersion)
-> Generic CreateSimulationApplicationVersion
forall x.
Rep CreateSimulationApplicationVersion x
-> CreateSimulationApplicationVersion
forall x.
CreateSimulationApplicationVersion
-> Rep CreateSimulationApplicationVersion x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep CreateSimulationApplicationVersion x
-> CreateSimulationApplicationVersion
$cfrom :: forall x.
CreateSimulationApplicationVersion
-> Rep CreateSimulationApplicationVersion x
Prelude.Generic)

-- |
-- Create a value of 'CreateSimulationApplicationVersion' 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', 'createSimulationApplicationVersion_currentRevisionId' - The current revision id for the simulation application. If you provide a
-- value and it matches the latest revision ID, a new version will be
-- created.
--
-- 's3Etags', 'createSimulationApplicationVersion_s3Etags' - The Amazon S3 eTag identifier for the zip file bundle that you use to
-- create the simulation application.
--
-- 'imageDigest', 'createSimulationApplicationVersion_imageDigest' - The SHA256 digest used to identify the Docker image URI used to created
-- the simulation application.
--
-- 'application', 'createSimulationApplicationVersion_application' - The application information for the simulation application.
newCreateSimulationApplicationVersion ::
  -- | 'application'
  Prelude.Text ->
  CreateSimulationApplicationVersion
newCreateSimulationApplicationVersion :: Text -> CreateSimulationApplicationVersion
newCreateSimulationApplicationVersion Text
pApplication_ =
  CreateSimulationApplicationVersion' :: Maybe Text
-> Maybe [Text]
-> Maybe Text
-> Text
-> CreateSimulationApplicationVersion
CreateSimulationApplicationVersion'
    { $sel:currentRevisionId:CreateSimulationApplicationVersion' :: Maybe Text
currentRevisionId =
        Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:s3Etags:CreateSimulationApplicationVersion' :: Maybe [Text]
s3Etags = Maybe [Text]
forall a. Maybe a
Prelude.Nothing,
      $sel:imageDigest:CreateSimulationApplicationVersion' :: Maybe Text
imageDigest = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:application:CreateSimulationApplicationVersion' :: Text
application = Text
pApplication_
    }

-- | The current revision id for the simulation application. If you provide a
-- value and it matches the latest revision ID, a new version will be
-- created.
createSimulationApplicationVersion_currentRevisionId :: Lens.Lens' CreateSimulationApplicationVersion (Prelude.Maybe Prelude.Text)
createSimulationApplicationVersion_currentRevisionId :: (Maybe Text -> f (Maybe Text))
-> CreateSimulationApplicationVersion
-> f CreateSimulationApplicationVersion
createSimulationApplicationVersion_currentRevisionId = (CreateSimulationApplicationVersion -> Maybe Text)
-> (CreateSimulationApplicationVersion
    -> Maybe Text -> CreateSimulationApplicationVersion)
-> Lens
     CreateSimulationApplicationVersion
     CreateSimulationApplicationVersion
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateSimulationApplicationVersion' {Maybe Text
currentRevisionId :: Maybe Text
$sel:currentRevisionId:CreateSimulationApplicationVersion' :: CreateSimulationApplicationVersion -> Maybe Text
currentRevisionId} -> Maybe Text
currentRevisionId) (\s :: CreateSimulationApplicationVersion
s@CreateSimulationApplicationVersion' {} Maybe Text
a -> CreateSimulationApplicationVersion
s {$sel:currentRevisionId:CreateSimulationApplicationVersion' :: Maybe Text
currentRevisionId = Maybe Text
a} :: CreateSimulationApplicationVersion)

-- | The Amazon S3 eTag identifier for the zip file bundle that you use to
-- create the simulation application.
createSimulationApplicationVersion_s3Etags :: Lens.Lens' CreateSimulationApplicationVersion (Prelude.Maybe [Prelude.Text])
createSimulationApplicationVersion_s3Etags :: (Maybe [Text] -> f (Maybe [Text]))
-> CreateSimulationApplicationVersion
-> f CreateSimulationApplicationVersion
createSimulationApplicationVersion_s3Etags = (CreateSimulationApplicationVersion -> Maybe [Text])
-> (CreateSimulationApplicationVersion
    -> Maybe [Text] -> CreateSimulationApplicationVersion)
-> Lens
     CreateSimulationApplicationVersion
     CreateSimulationApplicationVersion
     (Maybe [Text])
     (Maybe [Text])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateSimulationApplicationVersion' {Maybe [Text]
s3Etags :: Maybe [Text]
$sel:s3Etags:CreateSimulationApplicationVersion' :: CreateSimulationApplicationVersion -> Maybe [Text]
s3Etags} -> Maybe [Text]
s3Etags) (\s :: CreateSimulationApplicationVersion
s@CreateSimulationApplicationVersion' {} Maybe [Text]
a -> CreateSimulationApplicationVersion
s {$sel:s3Etags:CreateSimulationApplicationVersion' :: Maybe [Text]
s3Etags = Maybe [Text]
a} :: CreateSimulationApplicationVersion) ((Maybe [Text] -> f (Maybe [Text]))
 -> CreateSimulationApplicationVersion
 -> f CreateSimulationApplicationVersion)
-> ((Maybe [Text] -> f (Maybe [Text]))
    -> Maybe [Text] -> f (Maybe [Text]))
-> (Maybe [Text] -> f (Maybe [Text]))
-> CreateSimulationApplicationVersion
-> f CreateSimulationApplicationVersion
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso [Text] [Text] [Text] [Text]
-> Iso (Maybe [Text]) (Maybe [Text]) (Maybe [Text]) (Maybe [Text])
forall (f :: * -> *) (g :: * -> *) s t a b.
(Functor f, Functor g) =>
AnIso s t a b -> Iso (f s) (g t) (f a) (g b)
Lens.mapping AnIso [Text] [Text] [Text] [Text]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced

-- | The SHA256 digest used to identify the Docker image URI used to created
-- the simulation application.
createSimulationApplicationVersion_imageDigest :: Lens.Lens' CreateSimulationApplicationVersion (Prelude.Maybe Prelude.Text)
createSimulationApplicationVersion_imageDigest :: (Maybe Text -> f (Maybe Text))
-> CreateSimulationApplicationVersion
-> f CreateSimulationApplicationVersion
createSimulationApplicationVersion_imageDigest = (CreateSimulationApplicationVersion -> Maybe Text)
-> (CreateSimulationApplicationVersion
    -> Maybe Text -> CreateSimulationApplicationVersion)
-> Lens
     CreateSimulationApplicationVersion
     CreateSimulationApplicationVersion
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateSimulationApplicationVersion' {Maybe Text
imageDigest :: Maybe Text
$sel:imageDigest:CreateSimulationApplicationVersion' :: CreateSimulationApplicationVersion -> Maybe Text
imageDigest} -> Maybe Text
imageDigest) (\s :: CreateSimulationApplicationVersion
s@CreateSimulationApplicationVersion' {} Maybe Text
a -> CreateSimulationApplicationVersion
s {$sel:imageDigest:CreateSimulationApplicationVersion' :: Maybe Text
imageDigest = Maybe Text
a} :: CreateSimulationApplicationVersion)

-- | The application information for the simulation application.
createSimulationApplicationVersion_application :: Lens.Lens' CreateSimulationApplicationVersion Prelude.Text
createSimulationApplicationVersion_application :: (Text -> f Text)
-> CreateSimulationApplicationVersion
-> f CreateSimulationApplicationVersion
createSimulationApplicationVersion_application = (CreateSimulationApplicationVersion -> Text)
-> (CreateSimulationApplicationVersion
    -> Text -> CreateSimulationApplicationVersion)
-> Lens
     CreateSimulationApplicationVersion
     CreateSimulationApplicationVersion
     Text
     Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateSimulationApplicationVersion' {Text
application :: Text
$sel:application:CreateSimulationApplicationVersion' :: CreateSimulationApplicationVersion -> Text
application} -> Text
application) (\s :: CreateSimulationApplicationVersion
s@CreateSimulationApplicationVersion' {} Text
a -> CreateSimulationApplicationVersion
s {$sel:application:CreateSimulationApplicationVersion' :: Text
application = Text
a} :: CreateSimulationApplicationVersion)

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

instance
  Prelude.Hashable
    CreateSimulationApplicationVersion

instance
  Prelude.NFData
    CreateSimulationApplicationVersion

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

instance
  Core.ToJSON
    CreateSimulationApplicationVersion
  where
  toJSON :: CreateSimulationApplicationVersion -> Value
toJSON CreateSimulationApplicationVersion' {Maybe [Text]
Maybe Text
Text
application :: Text
imageDigest :: Maybe Text
s3Etags :: Maybe [Text]
currentRevisionId :: Maybe Text
$sel:application:CreateSimulationApplicationVersion' :: CreateSimulationApplicationVersion -> Text
$sel:imageDigest:CreateSimulationApplicationVersion' :: CreateSimulationApplicationVersion -> Maybe Text
$sel:s3Etags:CreateSimulationApplicationVersion' :: CreateSimulationApplicationVersion -> Maybe [Text]
$sel:currentRevisionId:CreateSimulationApplicationVersion' :: CreateSimulationApplicationVersion -> Maybe Text
..} =
    [Pair] -> Value
Core.object
      ( [Maybe Pair] -> [Pair]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
          [ (Text
"currentRevisionId" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=)
              (Text -> Pair) -> Maybe Text -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Text
currentRevisionId,
            (Text
"s3Etags" Text -> [Text] -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=) ([Text] -> Pair) -> Maybe [Text] -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe [Text]
s3Etags,
            (Text
"imageDigest" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=) (Text -> Pair) -> Maybe Text -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Text
imageDigest,
            Pair -> Maybe Pair
forall a. a -> Maybe a
Prelude.Just (Text
"application" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= Text
application)
          ]
      )

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

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

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

-- |
-- Create a value of 'CreateSimulationApplicationVersionResponse' with all optional fields omitted.
--
-- Use <https://hackage.haskell.org/package/generic-lens generic-lens> or <https://hackage.haskell.org/package/optics optics> to modify other optional fields.
--
-- The following record fields are available, with the corresponding lenses provided
-- for backwards compatibility:
--
-- 'renderingEngine', 'createSimulationApplicationVersionResponse_renderingEngine' - The rendering engine for the simulation application.
--
-- 'lastUpdatedAt', 'createSimulationApplicationVersionResponse_lastUpdatedAt' - The time, in milliseconds since the epoch, when the simulation
-- application was last updated.
--
-- 'arn', 'createSimulationApplicationVersionResponse_arn' - The Amazon Resource Name (ARN) of the simulation application.
--
-- 'environment', 'createSimulationApplicationVersionResponse_environment' - The object that contains the Docker image URI used to create the
-- simulation application.
--
-- 'sources', 'createSimulationApplicationVersionResponse_sources' - The sources of the simulation application.
--
-- 'name', 'createSimulationApplicationVersionResponse_name' - The name of the simulation application.
--
-- 'version', 'createSimulationApplicationVersionResponse_version' - The version of the simulation application.
--
-- 'simulationSoftwareSuite', 'createSimulationApplicationVersionResponse_simulationSoftwareSuite' - The simulation software suite used by the simulation application.
--
-- 'robotSoftwareSuite', 'createSimulationApplicationVersionResponse_robotSoftwareSuite' - Information about the robot software suite (ROS distribution).
--
-- 'revisionId', 'createSimulationApplicationVersionResponse_revisionId' - The revision ID of the simulation application.
--
-- 'httpStatus', 'createSimulationApplicationVersionResponse_httpStatus' - The response's http status code.
newCreateSimulationApplicationVersionResponse ::
  -- | 'httpStatus'
  Prelude.Int ->
  CreateSimulationApplicationVersionResponse
newCreateSimulationApplicationVersionResponse :: Int -> CreateSimulationApplicationVersionResponse
newCreateSimulationApplicationVersionResponse
  Int
pHttpStatus_ =
    CreateSimulationApplicationVersionResponse' :: Maybe RenderingEngine
-> Maybe POSIX
-> Maybe Text
-> Maybe Environment
-> Maybe [Source]
-> Maybe Text
-> Maybe Text
-> Maybe SimulationSoftwareSuite
-> Maybe RobotSoftwareSuite
-> Maybe Text
-> Int
-> CreateSimulationApplicationVersionResponse
CreateSimulationApplicationVersionResponse'
      { $sel:renderingEngine:CreateSimulationApplicationVersionResponse' :: Maybe RenderingEngine
renderingEngine =
          Maybe RenderingEngine
forall a. Maybe a
Prelude.Nothing,
        $sel:lastUpdatedAt:CreateSimulationApplicationVersionResponse' :: Maybe POSIX
lastUpdatedAt = Maybe POSIX
forall a. Maybe a
Prelude.Nothing,
        $sel:arn:CreateSimulationApplicationVersionResponse' :: Maybe Text
arn = Maybe Text
forall a. Maybe a
Prelude.Nothing,
        $sel:environment:CreateSimulationApplicationVersionResponse' :: Maybe Environment
environment = Maybe Environment
forall a. Maybe a
Prelude.Nothing,
        $sel:sources:CreateSimulationApplicationVersionResponse' :: Maybe [Source]
sources = Maybe [Source]
forall a. Maybe a
Prelude.Nothing,
        $sel:name:CreateSimulationApplicationVersionResponse' :: Maybe Text
name = Maybe Text
forall a. Maybe a
Prelude.Nothing,
        $sel:version:CreateSimulationApplicationVersionResponse' :: Maybe Text
version = Maybe Text
forall a. Maybe a
Prelude.Nothing,
        $sel:simulationSoftwareSuite:CreateSimulationApplicationVersionResponse' :: Maybe SimulationSoftwareSuite
simulationSoftwareSuite =
          Maybe SimulationSoftwareSuite
forall a. Maybe a
Prelude.Nothing,
        $sel:robotSoftwareSuite:CreateSimulationApplicationVersionResponse' :: Maybe RobotSoftwareSuite
robotSoftwareSuite =
          Maybe RobotSoftwareSuite
forall a. Maybe a
Prelude.Nothing,
        $sel:revisionId:CreateSimulationApplicationVersionResponse' :: Maybe Text
revisionId = Maybe Text
forall a. Maybe a
Prelude.Nothing,
        $sel:httpStatus:CreateSimulationApplicationVersionResponse' :: Int
httpStatus = Int
pHttpStatus_
      }

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

-- | The time, in milliseconds since the epoch, when the simulation
-- application was last updated.
createSimulationApplicationVersionResponse_lastUpdatedAt :: Lens.Lens' CreateSimulationApplicationVersionResponse (Prelude.Maybe Prelude.UTCTime)
createSimulationApplicationVersionResponse_lastUpdatedAt :: (Maybe UTCTime -> f (Maybe UTCTime))
-> CreateSimulationApplicationVersionResponse
-> f CreateSimulationApplicationVersionResponse
createSimulationApplicationVersionResponse_lastUpdatedAt = (CreateSimulationApplicationVersionResponse -> Maybe POSIX)
-> (CreateSimulationApplicationVersionResponse
    -> Maybe POSIX -> CreateSimulationApplicationVersionResponse)
-> Lens
     CreateSimulationApplicationVersionResponse
     CreateSimulationApplicationVersionResponse
     (Maybe POSIX)
     (Maybe POSIX)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateSimulationApplicationVersionResponse' {Maybe POSIX
lastUpdatedAt :: Maybe POSIX
$sel:lastUpdatedAt:CreateSimulationApplicationVersionResponse' :: CreateSimulationApplicationVersionResponse -> Maybe POSIX
lastUpdatedAt} -> Maybe POSIX
lastUpdatedAt) (\s :: CreateSimulationApplicationVersionResponse
s@CreateSimulationApplicationVersionResponse' {} Maybe POSIX
a -> CreateSimulationApplicationVersionResponse
s {$sel:lastUpdatedAt:CreateSimulationApplicationVersionResponse' :: Maybe POSIX
lastUpdatedAt = Maybe POSIX
a} :: CreateSimulationApplicationVersionResponse) ((Maybe POSIX -> f (Maybe POSIX))
 -> CreateSimulationApplicationVersionResponse
 -> f CreateSimulationApplicationVersionResponse)
-> ((Maybe UTCTime -> f (Maybe UTCTime))
    -> Maybe POSIX -> f (Maybe POSIX))
-> (Maybe UTCTime -> f (Maybe UTCTime))
-> CreateSimulationApplicationVersionResponse
-> f CreateSimulationApplicationVersionResponse
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso POSIX POSIX UTCTime UTCTime
-> Iso (Maybe POSIX) (Maybe POSIX) (Maybe UTCTime) (Maybe UTCTime)
forall (f :: * -> *) (g :: * -> *) s t a b.
(Functor f, Functor g) =>
AnIso s t a b -> Iso (f s) (g t) (f a) (g b)
Lens.mapping AnIso POSIX POSIX UTCTime UTCTime
forall (a :: Format). Iso' (Time a) UTCTime
Core._Time

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

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

-- | The sources of the simulation application.
createSimulationApplicationVersionResponse_sources :: Lens.Lens' CreateSimulationApplicationVersionResponse (Prelude.Maybe [Source])
createSimulationApplicationVersionResponse_sources :: (Maybe [Source] -> f (Maybe [Source]))
-> CreateSimulationApplicationVersionResponse
-> f CreateSimulationApplicationVersionResponse
createSimulationApplicationVersionResponse_sources = (CreateSimulationApplicationVersionResponse -> Maybe [Source])
-> (CreateSimulationApplicationVersionResponse
    -> Maybe [Source] -> CreateSimulationApplicationVersionResponse)
-> Lens
     CreateSimulationApplicationVersionResponse
     CreateSimulationApplicationVersionResponse
     (Maybe [Source])
     (Maybe [Source])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateSimulationApplicationVersionResponse' {Maybe [Source]
sources :: Maybe [Source]
$sel:sources:CreateSimulationApplicationVersionResponse' :: CreateSimulationApplicationVersionResponse -> Maybe [Source]
sources} -> Maybe [Source]
sources) (\s :: CreateSimulationApplicationVersionResponse
s@CreateSimulationApplicationVersionResponse' {} Maybe [Source]
a -> CreateSimulationApplicationVersionResponse
s {$sel:sources:CreateSimulationApplicationVersionResponse' :: Maybe [Source]
sources = Maybe [Source]
a} :: CreateSimulationApplicationVersionResponse) ((Maybe [Source] -> f (Maybe [Source]))
 -> CreateSimulationApplicationVersionResponse
 -> f CreateSimulationApplicationVersionResponse)
-> ((Maybe [Source] -> f (Maybe [Source]))
    -> Maybe [Source] -> f (Maybe [Source]))
-> (Maybe [Source] -> f (Maybe [Source]))
-> CreateSimulationApplicationVersionResponse
-> f CreateSimulationApplicationVersionResponse
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso [Source] [Source] [Source] [Source]
-> Iso
     (Maybe [Source]) (Maybe [Source]) (Maybe [Source]) (Maybe [Source])
forall (f :: * -> *) (g :: * -> *) s t a b.
(Functor f, Functor g) =>
AnIso s t a b -> Iso (f s) (g t) (f a) (g b)
Lens.mapping AnIso [Source] [Source] [Source] [Source]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced

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

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

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

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

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

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

instance
  Prelude.NFData
    CreateSimulationApplicationVersionResponse