{-# 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.CreateRobotApplicationVersion
-- 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 version of a robot application.
module Amazonka.RobOMaker.CreateRobotApplicationVersion
  ( -- * Creating a Request
    CreateRobotApplicationVersion (..),
    newCreateRobotApplicationVersion,

    -- * Request Lenses
    createRobotApplicationVersion_currentRevisionId,
    createRobotApplicationVersion_s3Etags,
    createRobotApplicationVersion_imageDigest,
    createRobotApplicationVersion_application,

    -- * Destructuring the Response
    CreateRobotApplicationVersionResponse (..),
    newCreateRobotApplicationVersionResponse,

    -- * Response Lenses
    createRobotApplicationVersionResponse_lastUpdatedAt,
    createRobotApplicationVersionResponse_arn,
    createRobotApplicationVersionResponse_environment,
    createRobotApplicationVersionResponse_sources,
    createRobotApplicationVersionResponse_name,
    createRobotApplicationVersionResponse_version,
    createRobotApplicationVersionResponse_robotSoftwareSuite,
    createRobotApplicationVersionResponse_revisionId,
    createRobotApplicationVersionResponse_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:/ 'newCreateRobotApplicationVersion' smart constructor.
data CreateRobotApplicationVersion = CreateRobotApplicationVersion'
  { -- | The current revision id for the robot application. If you provide a
    -- value and it matches the latest revision ID, a new version will be
    -- created.
    CreateRobotApplicationVersion -> Maybe Text
currentRevisionId :: Prelude.Maybe Prelude.Text,
    -- | The Amazon S3 identifier for the zip file bundle that you use for your
    -- robot application.
    CreateRobotApplicationVersion -> Maybe [Text]
s3Etags :: Prelude.Maybe [Prelude.Text],
    -- | A SHA256 identifier for the Docker image that you use for your robot
    -- application.
    CreateRobotApplicationVersion -> Maybe Text
imageDigest :: Prelude.Maybe Prelude.Text,
    -- | The application information for the robot application.
    CreateRobotApplicationVersion -> Text
application :: Prelude.Text
  }
  deriving (CreateRobotApplicationVersion
-> CreateRobotApplicationVersion -> Bool
(CreateRobotApplicationVersion
 -> CreateRobotApplicationVersion -> Bool)
-> (CreateRobotApplicationVersion
    -> CreateRobotApplicationVersion -> Bool)
-> Eq CreateRobotApplicationVersion
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: CreateRobotApplicationVersion
-> CreateRobotApplicationVersion -> Bool
$c/= :: CreateRobotApplicationVersion
-> CreateRobotApplicationVersion -> Bool
== :: CreateRobotApplicationVersion
-> CreateRobotApplicationVersion -> Bool
$c== :: CreateRobotApplicationVersion
-> CreateRobotApplicationVersion -> Bool
Prelude.Eq, ReadPrec [CreateRobotApplicationVersion]
ReadPrec CreateRobotApplicationVersion
Int -> ReadS CreateRobotApplicationVersion
ReadS [CreateRobotApplicationVersion]
(Int -> ReadS CreateRobotApplicationVersion)
-> ReadS [CreateRobotApplicationVersion]
-> ReadPrec CreateRobotApplicationVersion
-> ReadPrec [CreateRobotApplicationVersion]
-> Read CreateRobotApplicationVersion
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [CreateRobotApplicationVersion]
$creadListPrec :: ReadPrec [CreateRobotApplicationVersion]
readPrec :: ReadPrec CreateRobotApplicationVersion
$creadPrec :: ReadPrec CreateRobotApplicationVersion
readList :: ReadS [CreateRobotApplicationVersion]
$creadList :: ReadS [CreateRobotApplicationVersion]
readsPrec :: Int -> ReadS CreateRobotApplicationVersion
$creadsPrec :: Int -> ReadS CreateRobotApplicationVersion
Prelude.Read, Int -> CreateRobotApplicationVersion -> ShowS
[CreateRobotApplicationVersion] -> ShowS
CreateRobotApplicationVersion -> String
(Int -> CreateRobotApplicationVersion -> ShowS)
-> (CreateRobotApplicationVersion -> String)
-> ([CreateRobotApplicationVersion] -> ShowS)
-> Show CreateRobotApplicationVersion
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [CreateRobotApplicationVersion] -> ShowS
$cshowList :: [CreateRobotApplicationVersion] -> ShowS
show :: CreateRobotApplicationVersion -> String
$cshow :: CreateRobotApplicationVersion -> String
showsPrec :: Int -> CreateRobotApplicationVersion -> ShowS
$cshowsPrec :: Int -> CreateRobotApplicationVersion -> ShowS
Prelude.Show, (forall x.
 CreateRobotApplicationVersion
 -> Rep CreateRobotApplicationVersion x)
-> (forall x.
    Rep CreateRobotApplicationVersion x
    -> CreateRobotApplicationVersion)
-> Generic CreateRobotApplicationVersion
forall x.
Rep CreateRobotApplicationVersion x
-> CreateRobotApplicationVersion
forall x.
CreateRobotApplicationVersion
-> Rep CreateRobotApplicationVersion x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep CreateRobotApplicationVersion x
-> CreateRobotApplicationVersion
$cfrom :: forall x.
CreateRobotApplicationVersion
-> Rep CreateRobotApplicationVersion x
Prelude.Generic)

-- |
-- Create a value of 'CreateRobotApplicationVersion' 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', 'createRobotApplicationVersion_currentRevisionId' - The current revision id for the robot application. If you provide a
-- value and it matches the latest revision ID, a new version will be
-- created.
--
-- 's3Etags', 'createRobotApplicationVersion_s3Etags' - The Amazon S3 identifier for the zip file bundle that you use for your
-- robot application.
--
-- 'imageDigest', 'createRobotApplicationVersion_imageDigest' - A SHA256 identifier for the Docker image that you use for your robot
-- application.
--
-- 'application', 'createRobotApplicationVersion_application' - The application information for the robot application.
newCreateRobotApplicationVersion ::
  -- | 'application'
  Prelude.Text ->
  CreateRobotApplicationVersion
newCreateRobotApplicationVersion :: Text -> CreateRobotApplicationVersion
newCreateRobotApplicationVersion Text
pApplication_ =
  CreateRobotApplicationVersion' :: Maybe Text
-> Maybe [Text]
-> Maybe Text
-> Text
-> CreateRobotApplicationVersion
CreateRobotApplicationVersion'
    { $sel:currentRevisionId:CreateRobotApplicationVersion' :: Maybe Text
currentRevisionId =
        Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:s3Etags:CreateRobotApplicationVersion' :: Maybe [Text]
s3Etags = Maybe [Text]
forall a. Maybe a
Prelude.Nothing,
      $sel:imageDigest:CreateRobotApplicationVersion' :: Maybe Text
imageDigest = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:application:CreateRobotApplicationVersion' :: Text
application = Text
pApplication_
    }

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

-- | The Amazon S3 identifier for the zip file bundle that you use for your
-- robot application.
createRobotApplicationVersion_s3Etags :: Lens.Lens' CreateRobotApplicationVersion (Prelude.Maybe [Prelude.Text])
createRobotApplicationVersion_s3Etags :: (Maybe [Text] -> f (Maybe [Text]))
-> CreateRobotApplicationVersion -> f CreateRobotApplicationVersion
createRobotApplicationVersion_s3Etags = (CreateRobotApplicationVersion -> Maybe [Text])
-> (CreateRobotApplicationVersion
    -> Maybe [Text] -> CreateRobotApplicationVersion)
-> Lens
     CreateRobotApplicationVersion
     CreateRobotApplicationVersion
     (Maybe [Text])
     (Maybe [Text])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateRobotApplicationVersion' {Maybe [Text]
s3Etags :: Maybe [Text]
$sel:s3Etags:CreateRobotApplicationVersion' :: CreateRobotApplicationVersion -> Maybe [Text]
s3Etags} -> Maybe [Text]
s3Etags) (\s :: CreateRobotApplicationVersion
s@CreateRobotApplicationVersion' {} Maybe [Text]
a -> CreateRobotApplicationVersion
s {$sel:s3Etags:CreateRobotApplicationVersion' :: Maybe [Text]
s3Etags = Maybe [Text]
a} :: CreateRobotApplicationVersion) ((Maybe [Text] -> f (Maybe [Text]))
 -> CreateRobotApplicationVersion
 -> f CreateRobotApplicationVersion)
-> ((Maybe [Text] -> f (Maybe [Text]))
    -> Maybe [Text] -> f (Maybe [Text]))
-> (Maybe [Text] -> f (Maybe [Text]))
-> CreateRobotApplicationVersion
-> f CreateRobotApplicationVersion
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

-- | A SHA256 identifier for the Docker image that you use for your robot
-- application.
createRobotApplicationVersion_imageDigest :: Lens.Lens' CreateRobotApplicationVersion (Prelude.Maybe Prelude.Text)
createRobotApplicationVersion_imageDigest :: (Maybe Text -> f (Maybe Text))
-> CreateRobotApplicationVersion -> f CreateRobotApplicationVersion
createRobotApplicationVersion_imageDigest = (CreateRobotApplicationVersion -> Maybe Text)
-> (CreateRobotApplicationVersion
    -> Maybe Text -> CreateRobotApplicationVersion)
-> Lens
     CreateRobotApplicationVersion
     CreateRobotApplicationVersion
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateRobotApplicationVersion' {Maybe Text
imageDigest :: Maybe Text
$sel:imageDigest:CreateRobotApplicationVersion' :: CreateRobotApplicationVersion -> Maybe Text
imageDigest} -> Maybe Text
imageDigest) (\s :: CreateRobotApplicationVersion
s@CreateRobotApplicationVersion' {} Maybe Text
a -> CreateRobotApplicationVersion
s {$sel:imageDigest:CreateRobotApplicationVersion' :: Maybe Text
imageDigest = Maybe Text
a} :: CreateRobotApplicationVersion)

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

instance
  Core.AWSRequest
    CreateRobotApplicationVersion
  where
  type
    AWSResponse CreateRobotApplicationVersion =
      CreateRobotApplicationVersionResponse
  request :: CreateRobotApplicationVersion
-> Request CreateRobotApplicationVersion
request = Service
-> CreateRobotApplicationVersion
-> Request CreateRobotApplicationVersion
forall a. (ToRequest a, ToJSON a) => Service -> a -> Request a
Request.postJSON Service
defaultService
  response :: Logger
-> Service
-> Proxy CreateRobotApplicationVersion
-> ClientResponse ClientBody
-> m (Either
        Error (ClientResponse (AWSResponse CreateRobotApplicationVersion)))
response =
    (Int
 -> ResponseHeaders
 -> Object
 -> Either String (AWSResponse CreateRobotApplicationVersion))
-> Logger
-> Service
-> Proxy CreateRobotApplicationVersion
-> ClientResponse ClientBody
-> m (Either
        Error (ClientResponse (AWSResponse CreateRobotApplicationVersion)))
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 POSIX
-> Maybe Text
-> Maybe Environment
-> Maybe [Source]
-> Maybe Text
-> Maybe Text
-> Maybe RobotSoftwareSuite
-> Maybe Text
-> Int
-> CreateRobotApplicationVersionResponse
CreateRobotApplicationVersionResponse'
            (Maybe POSIX
 -> Maybe Text
 -> Maybe Environment
 -> Maybe [Source]
 -> Maybe Text
 -> Maybe Text
 -> Maybe RobotSoftwareSuite
 -> Maybe Text
 -> Int
 -> CreateRobotApplicationVersionResponse)
-> Either String (Maybe POSIX)
-> Either
     String
     (Maybe Text
      -> Maybe Environment
      -> Maybe [Source]
      -> Maybe Text
      -> Maybe Text
      -> Maybe RobotSoftwareSuite
      -> Maybe Text
      -> Int
      -> CreateRobotApplicationVersionResponse)
forall (f :: * -> *) a b. Functor 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 RobotSoftwareSuite
   -> Maybe Text
   -> Int
   -> CreateRobotApplicationVersionResponse)
-> Either String (Maybe Text)
-> Either
     String
     (Maybe Environment
      -> Maybe [Source]
      -> Maybe Text
      -> Maybe Text
      -> Maybe RobotSoftwareSuite
      -> Maybe Text
      -> Int
      -> CreateRobotApplicationVersionResponse)
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 RobotSoftwareSuite
   -> Maybe Text
   -> Int
   -> CreateRobotApplicationVersionResponse)
-> Either String (Maybe Environment)
-> Either
     String
     (Maybe [Source]
      -> Maybe Text
      -> Maybe Text
      -> Maybe RobotSoftwareSuite
      -> Maybe Text
      -> Int
      -> CreateRobotApplicationVersionResponse)
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 RobotSoftwareSuite
   -> Maybe Text
   -> Int
   -> CreateRobotApplicationVersionResponse)
-> Either String (Maybe [Source])
-> Either
     String
     (Maybe Text
      -> Maybe Text
      -> Maybe RobotSoftwareSuite
      -> Maybe Text
      -> Int
      -> CreateRobotApplicationVersionResponse)
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 RobotSoftwareSuite
   -> Maybe Text
   -> Int
   -> CreateRobotApplicationVersionResponse)
-> Either String (Maybe Text)
-> Either
     String
     (Maybe Text
      -> Maybe RobotSoftwareSuite
      -> Maybe Text
      -> Int
      -> CreateRobotApplicationVersionResponse)
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 RobotSoftwareSuite
   -> Maybe Text
   -> Int
   -> CreateRobotApplicationVersionResponse)
-> Either String (Maybe Text)
-> Either
     String
     (Maybe RobotSoftwareSuite
      -> Maybe Text -> Int -> CreateRobotApplicationVersionResponse)
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 RobotSoftwareSuite
   -> Maybe Text -> Int -> CreateRobotApplicationVersionResponse)
-> Either String (Maybe RobotSoftwareSuite)
-> Either
     String (Maybe Text -> Int -> CreateRobotApplicationVersionResponse)
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 -> CreateRobotApplicationVersionResponse)
-> Either String (Maybe Text)
-> Either String (Int -> CreateRobotApplicationVersionResponse)
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 -> CreateRobotApplicationVersionResponse)
-> Either String Int
-> Either String CreateRobotApplicationVersionResponse
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
    CreateRobotApplicationVersion

instance Prelude.NFData CreateRobotApplicationVersion

instance Core.ToHeaders CreateRobotApplicationVersion where
  toHeaders :: CreateRobotApplicationVersion -> ResponseHeaders
toHeaders =
    ResponseHeaders -> CreateRobotApplicationVersion -> 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 CreateRobotApplicationVersion where
  toJSON :: CreateRobotApplicationVersion -> Value
toJSON CreateRobotApplicationVersion' {Maybe [Text]
Maybe Text
Text
application :: Text
imageDigest :: Maybe Text
s3Etags :: Maybe [Text]
currentRevisionId :: Maybe Text
$sel:application:CreateRobotApplicationVersion' :: CreateRobotApplicationVersion -> Text
$sel:imageDigest:CreateRobotApplicationVersion' :: CreateRobotApplicationVersion -> Maybe Text
$sel:s3Etags:CreateRobotApplicationVersion' :: CreateRobotApplicationVersion -> Maybe [Text]
$sel:currentRevisionId:CreateRobotApplicationVersion' :: CreateRobotApplicationVersion -> 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 CreateRobotApplicationVersion where
  toPath :: CreateRobotApplicationVersion -> ByteString
toPath =
    ByteString -> CreateRobotApplicationVersion -> ByteString
forall a b. a -> b -> a
Prelude.const ByteString
"/createRobotApplicationVersion"

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

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

-- |
-- Create a value of 'CreateRobotApplicationVersionResponse' 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:
--
-- 'lastUpdatedAt', 'createRobotApplicationVersionResponse_lastUpdatedAt' - The time, in milliseconds since the epoch, when the robot application
-- was last updated.
--
-- 'arn', 'createRobotApplicationVersionResponse_arn' - The Amazon Resource Name (ARN) of the robot application.
--
-- 'environment', 'createRobotApplicationVersionResponse_environment' - The object that contains the Docker image URI used to create your robot
-- application.
--
-- 'sources', 'createRobotApplicationVersionResponse_sources' - The sources of the robot application.
--
-- 'name', 'createRobotApplicationVersionResponse_name' - The name of the robot application.
--
-- 'version', 'createRobotApplicationVersionResponse_version' - The version of the robot application.
--
-- 'robotSoftwareSuite', 'createRobotApplicationVersionResponse_robotSoftwareSuite' - The robot software suite (ROS distribution) used by the robot
-- application.
--
-- 'revisionId', 'createRobotApplicationVersionResponse_revisionId' - The revision id of the robot application.
--
-- 'httpStatus', 'createRobotApplicationVersionResponse_httpStatus' - The response's http status code.
newCreateRobotApplicationVersionResponse ::
  -- | 'httpStatus'
  Prelude.Int ->
  CreateRobotApplicationVersionResponse
newCreateRobotApplicationVersionResponse :: Int -> CreateRobotApplicationVersionResponse
newCreateRobotApplicationVersionResponse Int
pHttpStatus_ =
  CreateRobotApplicationVersionResponse' :: Maybe POSIX
-> Maybe Text
-> Maybe Environment
-> Maybe [Source]
-> Maybe Text
-> Maybe Text
-> Maybe RobotSoftwareSuite
-> Maybe Text
-> Int
-> CreateRobotApplicationVersionResponse
CreateRobotApplicationVersionResponse'
    { $sel:lastUpdatedAt:CreateRobotApplicationVersionResponse' :: Maybe POSIX
lastUpdatedAt =
        Maybe POSIX
forall a. Maybe a
Prelude.Nothing,
      $sel:arn:CreateRobotApplicationVersionResponse' :: Maybe Text
arn = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:environment:CreateRobotApplicationVersionResponse' :: Maybe Environment
environment = Maybe Environment
forall a. Maybe a
Prelude.Nothing,
      $sel:sources:CreateRobotApplicationVersionResponse' :: Maybe [Source]
sources = Maybe [Source]
forall a. Maybe a
Prelude.Nothing,
      $sel:name:CreateRobotApplicationVersionResponse' :: Maybe Text
name = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:version:CreateRobotApplicationVersionResponse' :: Maybe Text
version = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:robotSoftwareSuite:CreateRobotApplicationVersionResponse' :: Maybe RobotSoftwareSuite
robotSoftwareSuite = Maybe RobotSoftwareSuite
forall a. Maybe a
Prelude.Nothing,
      $sel:revisionId:CreateRobotApplicationVersionResponse' :: Maybe Text
revisionId = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:httpStatus:CreateRobotApplicationVersionResponse' :: Int
httpStatus = Int
pHttpStatus_
    }

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

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

-- | The sources of the robot application.
createRobotApplicationVersionResponse_sources :: Lens.Lens' CreateRobotApplicationVersionResponse (Prelude.Maybe [Source])
createRobotApplicationVersionResponse_sources :: (Maybe [Source] -> f (Maybe [Source]))
-> CreateRobotApplicationVersionResponse
-> f CreateRobotApplicationVersionResponse
createRobotApplicationVersionResponse_sources = (CreateRobotApplicationVersionResponse -> Maybe [Source])
-> (CreateRobotApplicationVersionResponse
    -> Maybe [Source] -> CreateRobotApplicationVersionResponse)
-> Lens
     CreateRobotApplicationVersionResponse
     CreateRobotApplicationVersionResponse
     (Maybe [Source])
     (Maybe [Source])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateRobotApplicationVersionResponse' {Maybe [Source]
sources :: Maybe [Source]
$sel:sources:CreateRobotApplicationVersionResponse' :: CreateRobotApplicationVersionResponse -> Maybe [Source]
sources} -> Maybe [Source]
sources) (\s :: CreateRobotApplicationVersionResponse
s@CreateRobotApplicationVersionResponse' {} Maybe [Source]
a -> CreateRobotApplicationVersionResponse
s {$sel:sources:CreateRobotApplicationVersionResponse' :: Maybe [Source]
sources = Maybe [Source]
a} :: CreateRobotApplicationVersionResponse) ((Maybe [Source] -> f (Maybe [Source]))
 -> CreateRobotApplicationVersionResponse
 -> f CreateRobotApplicationVersionResponse)
-> ((Maybe [Source] -> f (Maybe [Source]))
    -> Maybe [Source] -> f (Maybe [Source]))
-> (Maybe [Source] -> f (Maybe [Source]))
-> CreateRobotApplicationVersionResponse
-> f CreateRobotApplicationVersionResponse
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 robot application.
createRobotApplicationVersionResponse_name :: Lens.Lens' CreateRobotApplicationVersionResponse (Prelude.Maybe Prelude.Text)
createRobotApplicationVersionResponse_name :: (Maybe Text -> f (Maybe Text))
-> CreateRobotApplicationVersionResponse
-> f CreateRobotApplicationVersionResponse
createRobotApplicationVersionResponse_name = (CreateRobotApplicationVersionResponse -> Maybe Text)
-> (CreateRobotApplicationVersionResponse
    -> Maybe Text -> CreateRobotApplicationVersionResponse)
-> Lens
     CreateRobotApplicationVersionResponse
     CreateRobotApplicationVersionResponse
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateRobotApplicationVersionResponse' {Maybe Text
name :: Maybe Text
$sel:name:CreateRobotApplicationVersionResponse' :: CreateRobotApplicationVersionResponse -> Maybe Text
name} -> Maybe Text
name) (\s :: CreateRobotApplicationVersionResponse
s@CreateRobotApplicationVersionResponse' {} Maybe Text
a -> CreateRobotApplicationVersionResponse
s {$sel:name:CreateRobotApplicationVersionResponse' :: Maybe Text
name = Maybe Text
a} :: CreateRobotApplicationVersionResponse)

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

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

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

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

instance
  Prelude.NFData
    CreateRobotApplicationVersionResponse