{-# 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.ElasticSearch.StartElasticsearchServiceSoftwareUpdate
-- 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)
--
-- Schedules a service software update for an Amazon ES domain.
module Amazonka.ElasticSearch.StartElasticsearchServiceSoftwareUpdate
  ( -- * Creating a Request
    StartElasticsearchServiceSoftwareUpdate (..),
    newStartElasticsearchServiceSoftwareUpdate,

    -- * Request Lenses
    startElasticsearchServiceSoftwareUpdate_domainName,

    -- * Destructuring the Response
    StartElasticsearchServiceSoftwareUpdateResponse (..),
    newStartElasticsearchServiceSoftwareUpdateResponse,

    -- * Response Lenses
    startElasticsearchServiceSoftwareUpdateResponse_serviceSoftwareOptions,
    startElasticsearchServiceSoftwareUpdateResponse_httpStatus,
  )
where

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

-- | Container for the parameters to the
-- @StartElasticsearchServiceSoftwareUpdate@ operation. Specifies the name
-- of the Elasticsearch domain that you wish to schedule a service software
-- update on.
--
-- /See:/ 'newStartElasticsearchServiceSoftwareUpdate' smart constructor.
data StartElasticsearchServiceSoftwareUpdate = StartElasticsearchServiceSoftwareUpdate'
  { -- | The name of the domain that you want to update to the latest service
    -- software.
    StartElasticsearchServiceSoftwareUpdate -> Text
domainName :: Prelude.Text
  }
  deriving (StartElasticsearchServiceSoftwareUpdate
-> StartElasticsearchServiceSoftwareUpdate -> Bool
(StartElasticsearchServiceSoftwareUpdate
 -> StartElasticsearchServiceSoftwareUpdate -> Bool)
-> (StartElasticsearchServiceSoftwareUpdate
    -> StartElasticsearchServiceSoftwareUpdate -> Bool)
-> Eq StartElasticsearchServiceSoftwareUpdate
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: StartElasticsearchServiceSoftwareUpdate
-> StartElasticsearchServiceSoftwareUpdate -> Bool
$c/= :: StartElasticsearchServiceSoftwareUpdate
-> StartElasticsearchServiceSoftwareUpdate -> Bool
== :: StartElasticsearchServiceSoftwareUpdate
-> StartElasticsearchServiceSoftwareUpdate -> Bool
$c== :: StartElasticsearchServiceSoftwareUpdate
-> StartElasticsearchServiceSoftwareUpdate -> Bool
Prelude.Eq, ReadPrec [StartElasticsearchServiceSoftwareUpdate]
ReadPrec StartElasticsearchServiceSoftwareUpdate
Int -> ReadS StartElasticsearchServiceSoftwareUpdate
ReadS [StartElasticsearchServiceSoftwareUpdate]
(Int -> ReadS StartElasticsearchServiceSoftwareUpdate)
-> ReadS [StartElasticsearchServiceSoftwareUpdate]
-> ReadPrec StartElasticsearchServiceSoftwareUpdate
-> ReadPrec [StartElasticsearchServiceSoftwareUpdate]
-> Read StartElasticsearchServiceSoftwareUpdate
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [StartElasticsearchServiceSoftwareUpdate]
$creadListPrec :: ReadPrec [StartElasticsearchServiceSoftwareUpdate]
readPrec :: ReadPrec StartElasticsearchServiceSoftwareUpdate
$creadPrec :: ReadPrec StartElasticsearchServiceSoftwareUpdate
readList :: ReadS [StartElasticsearchServiceSoftwareUpdate]
$creadList :: ReadS [StartElasticsearchServiceSoftwareUpdate]
readsPrec :: Int -> ReadS StartElasticsearchServiceSoftwareUpdate
$creadsPrec :: Int -> ReadS StartElasticsearchServiceSoftwareUpdate
Prelude.Read, Int -> StartElasticsearchServiceSoftwareUpdate -> ShowS
[StartElasticsearchServiceSoftwareUpdate] -> ShowS
StartElasticsearchServiceSoftwareUpdate -> String
(Int -> StartElasticsearchServiceSoftwareUpdate -> ShowS)
-> (StartElasticsearchServiceSoftwareUpdate -> String)
-> ([StartElasticsearchServiceSoftwareUpdate] -> ShowS)
-> Show StartElasticsearchServiceSoftwareUpdate
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [StartElasticsearchServiceSoftwareUpdate] -> ShowS
$cshowList :: [StartElasticsearchServiceSoftwareUpdate] -> ShowS
show :: StartElasticsearchServiceSoftwareUpdate -> String
$cshow :: StartElasticsearchServiceSoftwareUpdate -> String
showsPrec :: Int -> StartElasticsearchServiceSoftwareUpdate -> ShowS
$cshowsPrec :: Int -> StartElasticsearchServiceSoftwareUpdate -> ShowS
Prelude.Show, (forall x.
 StartElasticsearchServiceSoftwareUpdate
 -> Rep StartElasticsearchServiceSoftwareUpdate x)
-> (forall x.
    Rep StartElasticsearchServiceSoftwareUpdate x
    -> StartElasticsearchServiceSoftwareUpdate)
-> Generic StartElasticsearchServiceSoftwareUpdate
forall x.
Rep StartElasticsearchServiceSoftwareUpdate x
-> StartElasticsearchServiceSoftwareUpdate
forall x.
StartElasticsearchServiceSoftwareUpdate
-> Rep StartElasticsearchServiceSoftwareUpdate x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep StartElasticsearchServiceSoftwareUpdate x
-> StartElasticsearchServiceSoftwareUpdate
$cfrom :: forall x.
StartElasticsearchServiceSoftwareUpdate
-> Rep StartElasticsearchServiceSoftwareUpdate x
Prelude.Generic)

-- |
-- Create a value of 'StartElasticsearchServiceSoftwareUpdate' 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:
--
-- 'domainName', 'startElasticsearchServiceSoftwareUpdate_domainName' - The name of the domain that you want to update to the latest service
-- software.
newStartElasticsearchServiceSoftwareUpdate ::
  -- | 'domainName'
  Prelude.Text ->
  StartElasticsearchServiceSoftwareUpdate
newStartElasticsearchServiceSoftwareUpdate :: Text -> StartElasticsearchServiceSoftwareUpdate
newStartElasticsearchServiceSoftwareUpdate
  Text
pDomainName_ =
    StartElasticsearchServiceSoftwareUpdate' :: Text -> StartElasticsearchServiceSoftwareUpdate
StartElasticsearchServiceSoftwareUpdate'
      { $sel:domainName:StartElasticsearchServiceSoftwareUpdate' :: Text
domainName =
          Text
pDomainName_
      }

-- | The name of the domain that you want to update to the latest service
-- software.
startElasticsearchServiceSoftwareUpdate_domainName :: Lens.Lens' StartElasticsearchServiceSoftwareUpdate Prelude.Text
startElasticsearchServiceSoftwareUpdate_domainName :: (Text -> f Text)
-> StartElasticsearchServiceSoftwareUpdate
-> f StartElasticsearchServiceSoftwareUpdate
startElasticsearchServiceSoftwareUpdate_domainName = (StartElasticsearchServiceSoftwareUpdate -> Text)
-> (StartElasticsearchServiceSoftwareUpdate
    -> Text -> StartElasticsearchServiceSoftwareUpdate)
-> Lens
     StartElasticsearchServiceSoftwareUpdate
     StartElasticsearchServiceSoftwareUpdate
     Text
     Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\StartElasticsearchServiceSoftwareUpdate' {Text
domainName :: Text
$sel:domainName:StartElasticsearchServiceSoftwareUpdate' :: StartElasticsearchServiceSoftwareUpdate -> Text
domainName} -> Text
domainName) (\s :: StartElasticsearchServiceSoftwareUpdate
s@StartElasticsearchServiceSoftwareUpdate' {} Text
a -> StartElasticsearchServiceSoftwareUpdate
s {$sel:domainName:StartElasticsearchServiceSoftwareUpdate' :: Text
domainName = Text
a} :: StartElasticsearchServiceSoftwareUpdate)

instance
  Core.AWSRequest
    StartElasticsearchServiceSoftwareUpdate
  where
  type
    AWSResponse
      StartElasticsearchServiceSoftwareUpdate =
      StartElasticsearchServiceSoftwareUpdateResponse
  request :: StartElasticsearchServiceSoftwareUpdate
-> Request StartElasticsearchServiceSoftwareUpdate
request = Service
-> StartElasticsearchServiceSoftwareUpdate
-> Request StartElasticsearchServiceSoftwareUpdate
forall a. (ToRequest a, ToJSON a) => Service -> a -> Request a
Request.postJSON Service
defaultService
  response :: Logger
-> Service
-> Proxy StartElasticsearchServiceSoftwareUpdate
-> ClientResponse ClientBody
-> m (Either
        Error
        (ClientResponse
           (AWSResponse StartElasticsearchServiceSoftwareUpdate)))
response =
    (Int
 -> ResponseHeaders
 -> Object
 -> Either
      String (AWSResponse StartElasticsearchServiceSoftwareUpdate))
-> Logger
-> Service
-> Proxy StartElasticsearchServiceSoftwareUpdate
-> ClientResponse ClientBody
-> m (Either
        Error
        (ClientResponse
           (AWSResponse StartElasticsearchServiceSoftwareUpdate)))
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 ServiceSoftwareOptions
-> Int -> StartElasticsearchServiceSoftwareUpdateResponse
StartElasticsearchServiceSoftwareUpdateResponse'
            (Maybe ServiceSoftwareOptions
 -> Int -> StartElasticsearchServiceSoftwareUpdateResponse)
-> Either String (Maybe ServiceSoftwareOptions)
-> Either
     String (Int -> StartElasticsearchServiceSoftwareUpdateResponse)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x Object -> Text -> Either String (Maybe ServiceSoftwareOptions)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"ServiceSoftwareOptions")
              Either
  String (Int -> StartElasticsearchServiceSoftwareUpdateResponse)
-> Either String Int
-> Either String StartElasticsearchServiceSoftwareUpdateResponse
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
    StartElasticsearchServiceSoftwareUpdate

instance
  Prelude.NFData
    StartElasticsearchServiceSoftwareUpdate

instance
  Core.ToHeaders
    StartElasticsearchServiceSoftwareUpdate
  where
  toHeaders :: StartElasticsearchServiceSoftwareUpdate -> ResponseHeaders
toHeaders = ResponseHeaders
-> StartElasticsearchServiceSoftwareUpdate -> ResponseHeaders
forall a b. a -> b -> a
Prelude.const ResponseHeaders
forall a. Monoid a => a
Prelude.mempty

instance
  Core.ToJSON
    StartElasticsearchServiceSoftwareUpdate
  where
  toJSON :: StartElasticsearchServiceSoftwareUpdate -> Value
toJSON StartElasticsearchServiceSoftwareUpdate' {Text
domainName :: Text
$sel:domainName:StartElasticsearchServiceSoftwareUpdate' :: StartElasticsearchServiceSoftwareUpdate -> Text
..} =
    [Pair] -> Value
Core.object
      ( [Maybe Pair] -> [Pair]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
          [Pair -> Maybe Pair
forall a. a -> Maybe a
Prelude.Just (Text
"DomainName" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= Text
domainName)]
      )

instance
  Core.ToPath
    StartElasticsearchServiceSoftwareUpdate
  where
  toPath :: StartElasticsearchServiceSoftwareUpdate -> ByteString
toPath =
    ByteString -> StartElasticsearchServiceSoftwareUpdate -> ByteString
forall a b. a -> b -> a
Prelude.const
      ByteString
"/2015-01-01/es/serviceSoftwareUpdate/start"

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

-- | The result of a @StartElasticsearchServiceSoftwareUpdate@ operation.
-- Contains the status of the update.
--
-- /See:/ 'newStartElasticsearchServiceSoftwareUpdateResponse' smart constructor.
data StartElasticsearchServiceSoftwareUpdateResponse = StartElasticsearchServiceSoftwareUpdateResponse'
  { -- | The current status of the Elasticsearch service software update.
    StartElasticsearchServiceSoftwareUpdateResponse
-> Maybe ServiceSoftwareOptions
serviceSoftwareOptions :: Prelude.Maybe ServiceSoftwareOptions,
    -- | The response's http status code.
    StartElasticsearchServiceSoftwareUpdateResponse -> Int
httpStatus :: Prelude.Int
  }
  deriving (StartElasticsearchServiceSoftwareUpdateResponse
-> StartElasticsearchServiceSoftwareUpdateResponse -> Bool
(StartElasticsearchServiceSoftwareUpdateResponse
 -> StartElasticsearchServiceSoftwareUpdateResponse -> Bool)
-> (StartElasticsearchServiceSoftwareUpdateResponse
    -> StartElasticsearchServiceSoftwareUpdateResponse -> Bool)
-> Eq StartElasticsearchServiceSoftwareUpdateResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: StartElasticsearchServiceSoftwareUpdateResponse
-> StartElasticsearchServiceSoftwareUpdateResponse -> Bool
$c/= :: StartElasticsearchServiceSoftwareUpdateResponse
-> StartElasticsearchServiceSoftwareUpdateResponse -> Bool
== :: StartElasticsearchServiceSoftwareUpdateResponse
-> StartElasticsearchServiceSoftwareUpdateResponse -> Bool
$c== :: StartElasticsearchServiceSoftwareUpdateResponse
-> StartElasticsearchServiceSoftwareUpdateResponse -> Bool
Prelude.Eq, ReadPrec [StartElasticsearchServiceSoftwareUpdateResponse]
ReadPrec StartElasticsearchServiceSoftwareUpdateResponse
Int -> ReadS StartElasticsearchServiceSoftwareUpdateResponse
ReadS [StartElasticsearchServiceSoftwareUpdateResponse]
(Int -> ReadS StartElasticsearchServiceSoftwareUpdateResponse)
-> ReadS [StartElasticsearchServiceSoftwareUpdateResponse]
-> ReadPrec StartElasticsearchServiceSoftwareUpdateResponse
-> ReadPrec [StartElasticsearchServiceSoftwareUpdateResponse]
-> Read StartElasticsearchServiceSoftwareUpdateResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [StartElasticsearchServiceSoftwareUpdateResponse]
$creadListPrec :: ReadPrec [StartElasticsearchServiceSoftwareUpdateResponse]
readPrec :: ReadPrec StartElasticsearchServiceSoftwareUpdateResponse
$creadPrec :: ReadPrec StartElasticsearchServiceSoftwareUpdateResponse
readList :: ReadS [StartElasticsearchServiceSoftwareUpdateResponse]
$creadList :: ReadS [StartElasticsearchServiceSoftwareUpdateResponse]
readsPrec :: Int -> ReadS StartElasticsearchServiceSoftwareUpdateResponse
$creadsPrec :: Int -> ReadS StartElasticsearchServiceSoftwareUpdateResponse
Prelude.Read, Int -> StartElasticsearchServiceSoftwareUpdateResponse -> ShowS
[StartElasticsearchServiceSoftwareUpdateResponse] -> ShowS
StartElasticsearchServiceSoftwareUpdateResponse -> String
(Int -> StartElasticsearchServiceSoftwareUpdateResponse -> ShowS)
-> (StartElasticsearchServiceSoftwareUpdateResponse -> String)
-> ([StartElasticsearchServiceSoftwareUpdateResponse] -> ShowS)
-> Show StartElasticsearchServiceSoftwareUpdateResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [StartElasticsearchServiceSoftwareUpdateResponse] -> ShowS
$cshowList :: [StartElasticsearchServiceSoftwareUpdateResponse] -> ShowS
show :: StartElasticsearchServiceSoftwareUpdateResponse -> String
$cshow :: StartElasticsearchServiceSoftwareUpdateResponse -> String
showsPrec :: Int -> StartElasticsearchServiceSoftwareUpdateResponse -> ShowS
$cshowsPrec :: Int -> StartElasticsearchServiceSoftwareUpdateResponse -> ShowS
Prelude.Show, (forall x.
 StartElasticsearchServiceSoftwareUpdateResponse
 -> Rep StartElasticsearchServiceSoftwareUpdateResponse x)
-> (forall x.
    Rep StartElasticsearchServiceSoftwareUpdateResponse x
    -> StartElasticsearchServiceSoftwareUpdateResponse)
-> Generic StartElasticsearchServiceSoftwareUpdateResponse
forall x.
Rep StartElasticsearchServiceSoftwareUpdateResponse x
-> StartElasticsearchServiceSoftwareUpdateResponse
forall x.
StartElasticsearchServiceSoftwareUpdateResponse
-> Rep StartElasticsearchServiceSoftwareUpdateResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep StartElasticsearchServiceSoftwareUpdateResponse x
-> StartElasticsearchServiceSoftwareUpdateResponse
$cfrom :: forall x.
StartElasticsearchServiceSoftwareUpdateResponse
-> Rep StartElasticsearchServiceSoftwareUpdateResponse x
Prelude.Generic)

-- |
-- Create a value of 'StartElasticsearchServiceSoftwareUpdateResponse' 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:
--
-- 'serviceSoftwareOptions', 'startElasticsearchServiceSoftwareUpdateResponse_serviceSoftwareOptions' - The current status of the Elasticsearch service software update.
--
-- 'httpStatus', 'startElasticsearchServiceSoftwareUpdateResponse_httpStatus' - The response's http status code.
newStartElasticsearchServiceSoftwareUpdateResponse ::
  -- | 'httpStatus'
  Prelude.Int ->
  StartElasticsearchServiceSoftwareUpdateResponse
newStartElasticsearchServiceSoftwareUpdateResponse :: Int -> StartElasticsearchServiceSoftwareUpdateResponse
newStartElasticsearchServiceSoftwareUpdateResponse
  Int
pHttpStatus_ =
    StartElasticsearchServiceSoftwareUpdateResponse' :: Maybe ServiceSoftwareOptions
-> Int -> StartElasticsearchServiceSoftwareUpdateResponse
StartElasticsearchServiceSoftwareUpdateResponse'
      { $sel:serviceSoftwareOptions:StartElasticsearchServiceSoftwareUpdateResponse' :: Maybe ServiceSoftwareOptions
serviceSoftwareOptions =
          Maybe ServiceSoftwareOptions
forall a. Maybe a
Prelude.Nothing,
        $sel:httpStatus:StartElasticsearchServiceSoftwareUpdateResponse' :: Int
httpStatus = Int
pHttpStatus_
      }

-- | The current status of the Elasticsearch service software update.
startElasticsearchServiceSoftwareUpdateResponse_serviceSoftwareOptions :: Lens.Lens' StartElasticsearchServiceSoftwareUpdateResponse (Prelude.Maybe ServiceSoftwareOptions)
startElasticsearchServiceSoftwareUpdateResponse_serviceSoftwareOptions :: (Maybe ServiceSoftwareOptions -> f (Maybe ServiceSoftwareOptions))
-> StartElasticsearchServiceSoftwareUpdateResponse
-> f StartElasticsearchServiceSoftwareUpdateResponse
startElasticsearchServiceSoftwareUpdateResponse_serviceSoftwareOptions = (StartElasticsearchServiceSoftwareUpdateResponse
 -> Maybe ServiceSoftwareOptions)
-> (StartElasticsearchServiceSoftwareUpdateResponse
    -> Maybe ServiceSoftwareOptions
    -> StartElasticsearchServiceSoftwareUpdateResponse)
-> Lens
     StartElasticsearchServiceSoftwareUpdateResponse
     StartElasticsearchServiceSoftwareUpdateResponse
     (Maybe ServiceSoftwareOptions)
     (Maybe ServiceSoftwareOptions)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\StartElasticsearchServiceSoftwareUpdateResponse' {Maybe ServiceSoftwareOptions
serviceSoftwareOptions :: Maybe ServiceSoftwareOptions
$sel:serviceSoftwareOptions:StartElasticsearchServiceSoftwareUpdateResponse' :: StartElasticsearchServiceSoftwareUpdateResponse
-> Maybe ServiceSoftwareOptions
serviceSoftwareOptions} -> Maybe ServiceSoftwareOptions
serviceSoftwareOptions) (\s :: StartElasticsearchServiceSoftwareUpdateResponse
s@StartElasticsearchServiceSoftwareUpdateResponse' {} Maybe ServiceSoftwareOptions
a -> StartElasticsearchServiceSoftwareUpdateResponse
s {$sel:serviceSoftwareOptions:StartElasticsearchServiceSoftwareUpdateResponse' :: Maybe ServiceSoftwareOptions
serviceSoftwareOptions = Maybe ServiceSoftwareOptions
a} :: StartElasticsearchServiceSoftwareUpdateResponse)

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

instance
  Prelude.NFData
    StartElasticsearchServiceSoftwareUpdateResponse