{-# 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.UpdateRobotApplication
-- 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)
--
-- Updates a robot application.
module Amazonka.RobOMaker.UpdateRobotApplication
  ( -- * Creating a Request
    UpdateRobotApplication (..),
    newUpdateRobotApplication,

    -- * Request Lenses
    updateRobotApplication_currentRevisionId,
    updateRobotApplication_environment,
    updateRobotApplication_sources,
    updateRobotApplication_application,
    updateRobotApplication_robotSoftwareSuite,

    -- * Destructuring the Response
    UpdateRobotApplicationResponse (..),
    newUpdateRobotApplicationResponse,

    -- * Response Lenses
    updateRobotApplicationResponse_lastUpdatedAt,
    updateRobotApplicationResponse_arn,
    updateRobotApplicationResponse_environment,
    updateRobotApplicationResponse_sources,
    updateRobotApplicationResponse_name,
    updateRobotApplicationResponse_version,
    updateRobotApplicationResponse_robotSoftwareSuite,
    updateRobotApplicationResponse_revisionId,
    updateRobotApplicationResponse_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:/ 'newUpdateRobotApplication' smart constructor.
data UpdateRobotApplication = UpdateRobotApplication'
  { -- | The revision id for the robot application.
    UpdateRobotApplication -> Maybe Text
currentRevisionId :: Prelude.Maybe Prelude.Text,
    -- | The object that contains the Docker image URI for your robot
    -- application.
    UpdateRobotApplication -> Maybe Environment
environment :: Prelude.Maybe Environment,
    -- | The sources of the robot application.
    UpdateRobotApplication -> Maybe [SourceConfig]
sources :: Prelude.Maybe [SourceConfig],
    -- | The application information for the robot application.
    UpdateRobotApplication -> Text
application :: Prelude.Text,
    -- | The robot software suite (ROS distribution) used by the robot
    -- application.
    UpdateRobotApplication -> RobotSoftwareSuite
robotSoftwareSuite :: RobotSoftwareSuite
  }
  deriving (UpdateRobotApplication -> UpdateRobotApplication -> Bool
(UpdateRobotApplication -> UpdateRobotApplication -> Bool)
-> (UpdateRobotApplication -> UpdateRobotApplication -> Bool)
-> Eq UpdateRobotApplication
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: UpdateRobotApplication -> UpdateRobotApplication -> Bool
$c/= :: UpdateRobotApplication -> UpdateRobotApplication -> Bool
== :: UpdateRobotApplication -> UpdateRobotApplication -> Bool
$c== :: UpdateRobotApplication -> UpdateRobotApplication -> Bool
Prelude.Eq, ReadPrec [UpdateRobotApplication]
ReadPrec UpdateRobotApplication
Int -> ReadS UpdateRobotApplication
ReadS [UpdateRobotApplication]
(Int -> ReadS UpdateRobotApplication)
-> ReadS [UpdateRobotApplication]
-> ReadPrec UpdateRobotApplication
-> ReadPrec [UpdateRobotApplication]
-> Read UpdateRobotApplication
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [UpdateRobotApplication]
$creadListPrec :: ReadPrec [UpdateRobotApplication]
readPrec :: ReadPrec UpdateRobotApplication
$creadPrec :: ReadPrec UpdateRobotApplication
readList :: ReadS [UpdateRobotApplication]
$creadList :: ReadS [UpdateRobotApplication]
readsPrec :: Int -> ReadS UpdateRobotApplication
$creadsPrec :: Int -> ReadS UpdateRobotApplication
Prelude.Read, Int -> UpdateRobotApplication -> ShowS
[UpdateRobotApplication] -> ShowS
UpdateRobotApplication -> String
(Int -> UpdateRobotApplication -> ShowS)
-> (UpdateRobotApplication -> String)
-> ([UpdateRobotApplication] -> ShowS)
-> Show UpdateRobotApplication
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [UpdateRobotApplication] -> ShowS
$cshowList :: [UpdateRobotApplication] -> ShowS
show :: UpdateRobotApplication -> String
$cshow :: UpdateRobotApplication -> String
showsPrec :: Int -> UpdateRobotApplication -> ShowS
$cshowsPrec :: Int -> UpdateRobotApplication -> ShowS
Prelude.Show, (forall x. UpdateRobotApplication -> Rep UpdateRobotApplication x)
-> (forall x.
    Rep UpdateRobotApplication x -> UpdateRobotApplication)
-> Generic UpdateRobotApplication
forall x. Rep UpdateRobotApplication x -> UpdateRobotApplication
forall x. UpdateRobotApplication -> Rep UpdateRobotApplication x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep UpdateRobotApplication x -> UpdateRobotApplication
$cfrom :: forall x. UpdateRobotApplication -> Rep UpdateRobotApplication x
Prelude.Generic)

-- |
-- Create a value of 'UpdateRobotApplication' 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', 'updateRobotApplication_currentRevisionId' - The revision id for the robot application.
--
-- 'environment', 'updateRobotApplication_environment' - The object that contains the Docker image URI for your robot
-- application.
--
-- 'sources', 'updateRobotApplication_sources' - The sources of the robot application.
--
-- 'application', 'updateRobotApplication_application' - The application information for the robot application.
--
-- 'robotSoftwareSuite', 'updateRobotApplication_robotSoftwareSuite' - The robot software suite (ROS distribution) used by the robot
-- application.
newUpdateRobotApplication ::
  -- | 'application'
  Prelude.Text ->
  -- | 'robotSoftwareSuite'
  RobotSoftwareSuite ->
  UpdateRobotApplication
newUpdateRobotApplication :: Text -> RobotSoftwareSuite -> UpdateRobotApplication
newUpdateRobotApplication
  Text
pApplication_
  RobotSoftwareSuite
pRobotSoftwareSuite_ =
    UpdateRobotApplication' :: Maybe Text
-> Maybe Environment
-> Maybe [SourceConfig]
-> Text
-> RobotSoftwareSuite
-> UpdateRobotApplication
UpdateRobotApplication'
      { $sel:currentRevisionId:UpdateRobotApplication' :: Maybe Text
currentRevisionId =
          Maybe Text
forall a. Maybe a
Prelude.Nothing,
        $sel:environment:UpdateRobotApplication' :: Maybe Environment
environment = Maybe Environment
forall a. Maybe a
Prelude.Nothing,
        $sel:sources:UpdateRobotApplication' :: Maybe [SourceConfig]
sources = Maybe [SourceConfig]
forall a. Maybe a
Prelude.Nothing,
        $sel:application:UpdateRobotApplication' :: Text
application = Text
pApplication_,
        $sel:robotSoftwareSuite:UpdateRobotApplication' :: RobotSoftwareSuite
robotSoftwareSuite = RobotSoftwareSuite
pRobotSoftwareSuite_
      }

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

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

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

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

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

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

instance Prelude.NFData UpdateRobotApplication

instance Core.ToHeaders UpdateRobotApplication where
  toHeaders :: UpdateRobotApplication -> ResponseHeaders
toHeaders =
    ResponseHeaders -> UpdateRobotApplication -> 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 UpdateRobotApplication where
  toJSON :: UpdateRobotApplication -> Value
toJSON UpdateRobotApplication' {Maybe [SourceConfig]
Maybe Text
Maybe Environment
Text
RobotSoftwareSuite
robotSoftwareSuite :: RobotSoftwareSuite
application :: Text
sources :: Maybe [SourceConfig]
environment :: Maybe Environment
currentRevisionId :: Maybe Text
$sel:robotSoftwareSuite:UpdateRobotApplication' :: UpdateRobotApplication -> RobotSoftwareSuite
$sel:application:UpdateRobotApplication' :: UpdateRobotApplication -> Text
$sel:sources:UpdateRobotApplication' :: UpdateRobotApplication -> Maybe [SourceConfig]
$sel:environment:UpdateRobotApplication' :: UpdateRobotApplication -> Maybe Environment
$sel:currentRevisionId:UpdateRobotApplication' :: UpdateRobotApplication -> 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
"environment" Text -> Environment -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=) (Environment -> Pair) -> Maybe Environment -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Environment
environment,
            (Text
"sources" Text -> [SourceConfig] -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=) ([SourceConfig] -> Pair) -> Maybe [SourceConfig] -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe [SourceConfig]
sources,
            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),
            Pair -> Maybe Pair
forall a. a -> Maybe a
Prelude.Just
              (Text
"robotSoftwareSuite" Text -> RobotSoftwareSuite -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= RobotSoftwareSuite
robotSoftwareSuite)
          ]
      )

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

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

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

-- |
-- Create a value of 'UpdateRobotApplicationResponse' 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', 'updateRobotApplicationResponse_lastUpdatedAt' - The time, in milliseconds since the epoch, when the robot application
-- was last updated.
--
-- 'arn', 'updateRobotApplicationResponse_arn' - The Amazon Resource Name (ARN) of the updated robot application.
--
-- 'environment', 'updateRobotApplicationResponse_environment' - The object that contains the Docker image URI for your robot
-- application.
--
-- 'sources', 'updateRobotApplicationResponse_sources' - The sources of the robot application.
--
-- 'name', 'updateRobotApplicationResponse_name' - The name of the robot application.
--
-- 'version', 'updateRobotApplicationResponse_version' - The version of the robot application.
--
-- 'robotSoftwareSuite', 'updateRobotApplicationResponse_robotSoftwareSuite' - The robot software suite (ROS distribution) used by the robot
-- application.
--
-- 'revisionId', 'updateRobotApplicationResponse_revisionId' - The revision id of the robot application.
--
-- 'httpStatus', 'updateRobotApplicationResponse_httpStatus' - The response's http status code.
newUpdateRobotApplicationResponse ::
  -- | 'httpStatus'
  Prelude.Int ->
  UpdateRobotApplicationResponse
newUpdateRobotApplicationResponse :: Int -> UpdateRobotApplicationResponse
newUpdateRobotApplicationResponse Int
pHttpStatus_ =
  UpdateRobotApplicationResponse' :: Maybe POSIX
-> Maybe Text
-> Maybe Environment
-> Maybe [Source]
-> Maybe Text
-> Maybe Text
-> Maybe RobotSoftwareSuite
-> Maybe Text
-> Int
-> UpdateRobotApplicationResponse
UpdateRobotApplicationResponse'
    { $sel:lastUpdatedAt:UpdateRobotApplicationResponse' :: Maybe POSIX
lastUpdatedAt =
        Maybe POSIX
forall a. Maybe a
Prelude.Nothing,
      $sel:arn:UpdateRobotApplicationResponse' :: Maybe Text
arn = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:environment:UpdateRobotApplicationResponse' :: Maybe Environment
environment = Maybe Environment
forall a. Maybe a
Prelude.Nothing,
      $sel:sources:UpdateRobotApplicationResponse' :: Maybe [Source]
sources = Maybe [Source]
forall a. Maybe a
Prelude.Nothing,
      $sel:name:UpdateRobotApplicationResponse' :: Maybe Text
name = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:version:UpdateRobotApplicationResponse' :: Maybe Text
version = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:robotSoftwareSuite:UpdateRobotApplicationResponse' :: Maybe RobotSoftwareSuite
robotSoftwareSuite = Maybe RobotSoftwareSuite
forall a. Maybe a
Prelude.Nothing,
      $sel:revisionId:UpdateRobotApplicationResponse' :: Maybe Text
revisionId = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:httpStatus:UpdateRobotApplicationResponse' :: Int
httpStatus = Int
pHttpStatus_
    }

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

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

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

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

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

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

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

instance
  Prelude.NFData
    UpdateRobotApplicationResponse