{-# 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.CancelElasticsearchServiceSoftwareUpdate
-- 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)
--
-- Cancels a scheduled service software update for an Amazon ES domain. You
-- can only perform this operation before the @AutomatedUpdateDate@ and
-- when the @UpdateStatus@ is in the @PENDING_UPDATE@ state.
module Amazonka.ElasticSearch.CancelElasticsearchServiceSoftwareUpdate
  ( -- * Creating a Request
    CancelElasticsearchServiceSoftwareUpdate (..),
    newCancelElasticsearchServiceSoftwareUpdate,

    -- * Request Lenses
    cancelElasticsearchServiceSoftwareUpdate_domainName,

    -- * Destructuring the Response
    CancelElasticsearchServiceSoftwareUpdateResponse (..),
    newCancelElasticsearchServiceSoftwareUpdateResponse,

    -- * Response Lenses
    cancelElasticsearchServiceSoftwareUpdateResponse_serviceSoftwareOptions,
    cancelElasticsearchServiceSoftwareUpdateResponse_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
-- @CancelElasticsearchServiceSoftwareUpdate@ operation. Specifies the name
-- of the Elasticsearch domain that you wish to cancel a service software
-- update on.
--
-- /See:/ 'newCancelElasticsearchServiceSoftwareUpdate' smart constructor.
data CancelElasticsearchServiceSoftwareUpdate = CancelElasticsearchServiceSoftwareUpdate'
  { -- | The name of the domain that you want to stop the latest service software
    -- update on.
    CancelElasticsearchServiceSoftwareUpdate -> Text
domainName :: Prelude.Text
  }
  deriving (CancelElasticsearchServiceSoftwareUpdate
-> CancelElasticsearchServiceSoftwareUpdate -> Bool
(CancelElasticsearchServiceSoftwareUpdate
 -> CancelElasticsearchServiceSoftwareUpdate -> Bool)
-> (CancelElasticsearchServiceSoftwareUpdate
    -> CancelElasticsearchServiceSoftwareUpdate -> Bool)
-> Eq CancelElasticsearchServiceSoftwareUpdate
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: CancelElasticsearchServiceSoftwareUpdate
-> CancelElasticsearchServiceSoftwareUpdate -> Bool
$c/= :: CancelElasticsearchServiceSoftwareUpdate
-> CancelElasticsearchServiceSoftwareUpdate -> Bool
== :: CancelElasticsearchServiceSoftwareUpdate
-> CancelElasticsearchServiceSoftwareUpdate -> Bool
$c== :: CancelElasticsearchServiceSoftwareUpdate
-> CancelElasticsearchServiceSoftwareUpdate -> Bool
Prelude.Eq, ReadPrec [CancelElasticsearchServiceSoftwareUpdate]
ReadPrec CancelElasticsearchServiceSoftwareUpdate
Int -> ReadS CancelElasticsearchServiceSoftwareUpdate
ReadS [CancelElasticsearchServiceSoftwareUpdate]
(Int -> ReadS CancelElasticsearchServiceSoftwareUpdate)
-> ReadS [CancelElasticsearchServiceSoftwareUpdate]
-> ReadPrec CancelElasticsearchServiceSoftwareUpdate
-> ReadPrec [CancelElasticsearchServiceSoftwareUpdate]
-> Read CancelElasticsearchServiceSoftwareUpdate
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [CancelElasticsearchServiceSoftwareUpdate]
$creadListPrec :: ReadPrec [CancelElasticsearchServiceSoftwareUpdate]
readPrec :: ReadPrec CancelElasticsearchServiceSoftwareUpdate
$creadPrec :: ReadPrec CancelElasticsearchServiceSoftwareUpdate
readList :: ReadS [CancelElasticsearchServiceSoftwareUpdate]
$creadList :: ReadS [CancelElasticsearchServiceSoftwareUpdate]
readsPrec :: Int -> ReadS CancelElasticsearchServiceSoftwareUpdate
$creadsPrec :: Int -> ReadS CancelElasticsearchServiceSoftwareUpdate
Prelude.Read, Int -> CancelElasticsearchServiceSoftwareUpdate -> ShowS
[CancelElasticsearchServiceSoftwareUpdate] -> ShowS
CancelElasticsearchServiceSoftwareUpdate -> String
(Int -> CancelElasticsearchServiceSoftwareUpdate -> ShowS)
-> (CancelElasticsearchServiceSoftwareUpdate -> String)
-> ([CancelElasticsearchServiceSoftwareUpdate] -> ShowS)
-> Show CancelElasticsearchServiceSoftwareUpdate
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [CancelElasticsearchServiceSoftwareUpdate] -> ShowS
$cshowList :: [CancelElasticsearchServiceSoftwareUpdate] -> ShowS
show :: CancelElasticsearchServiceSoftwareUpdate -> String
$cshow :: CancelElasticsearchServiceSoftwareUpdate -> String
showsPrec :: Int -> CancelElasticsearchServiceSoftwareUpdate -> ShowS
$cshowsPrec :: Int -> CancelElasticsearchServiceSoftwareUpdate -> ShowS
Prelude.Show, (forall x.
 CancelElasticsearchServiceSoftwareUpdate
 -> Rep CancelElasticsearchServiceSoftwareUpdate x)
-> (forall x.
    Rep CancelElasticsearchServiceSoftwareUpdate x
    -> CancelElasticsearchServiceSoftwareUpdate)
-> Generic CancelElasticsearchServiceSoftwareUpdate
forall x.
Rep CancelElasticsearchServiceSoftwareUpdate x
-> CancelElasticsearchServiceSoftwareUpdate
forall x.
CancelElasticsearchServiceSoftwareUpdate
-> Rep CancelElasticsearchServiceSoftwareUpdate x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep CancelElasticsearchServiceSoftwareUpdate x
-> CancelElasticsearchServiceSoftwareUpdate
$cfrom :: forall x.
CancelElasticsearchServiceSoftwareUpdate
-> Rep CancelElasticsearchServiceSoftwareUpdate x
Prelude.Generic)

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

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

instance
  Core.AWSRequest
    CancelElasticsearchServiceSoftwareUpdate
  where
  type
    AWSResponse
      CancelElasticsearchServiceSoftwareUpdate =
      CancelElasticsearchServiceSoftwareUpdateResponse
  request :: CancelElasticsearchServiceSoftwareUpdate
-> Request CancelElasticsearchServiceSoftwareUpdate
request = Service
-> CancelElasticsearchServiceSoftwareUpdate
-> Request CancelElasticsearchServiceSoftwareUpdate
forall a. (ToRequest a, ToJSON a) => Service -> a -> Request a
Request.postJSON Service
defaultService
  response :: Logger
-> Service
-> Proxy CancelElasticsearchServiceSoftwareUpdate
-> ClientResponse ClientBody
-> m (Either
        Error
        (ClientResponse
           (AWSResponse CancelElasticsearchServiceSoftwareUpdate)))
response =
    (Int
 -> ResponseHeaders
 -> Object
 -> Either
      String (AWSResponse CancelElasticsearchServiceSoftwareUpdate))
-> Logger
-> Service
-> Proxy CancelElasticsearchServiceSoftwareUpdate
-> ClientResponse ClientBody
-> m (Either
        Error
        (ClientResponse
           (AWSResponse CancelElasticsearchServiceSoftwareUpdate)))
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 -> CancelElasticsearchServiceSoftwareUpdateResponse
CancelElasticsearchServiceSoftwareUpdateResponse'
            (Maybe ServiceSoftwareOptions
 -> Int -> CancelElasticsearchServiceSoftwareUpdateResponse)
-> Either String (Maybe ServiceSoftwareOptions)
-> Either
     String (Int -> CancelElasticsearchServiceSoftwareUpdateResponse)
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 -> CancelElasticsearchServiceSoftwareUpdateResponse)
-> Either String Int
-> Either String CancelElasticsearchServiceSoftwareUpdateResponse
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
    CancelElasticsearchServiceSoftwareUpdate

instance
  Prelude.NFData
    CancelElasticsearchServiceSoftwareUpdate

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

instance
  Core.ToJSON
    CancelElasticsearchServiceSoftwareUpdate
  where
  toJSON :: CancelElasticsearchServiceSoftwareUpdate -> Value
toJSON CancelElasticsearchServiceSoftwareUpdate' {Text
domainName :: Text
$sel:domainName:CancelElasticsearchServiceSoftwareUpdate' :: CancelElasticsearchServiceSoftwareUpdate -> 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
    CancelElasticsearchServiceSoftwareUpdate
  where
  toPath :: CancelElasticsearchServiceSoftwareUpdate -> ByteString
toPath =
    ByteString
-> CancelElasticsearchServiceSoftwareUpdate -> ByteString
forall a b. a -> b -> a
Prelude.const
      ByteString
"/2015-01-01/es/serviceSoftwareUpdate/cancel"

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

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

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

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

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

instance
  Prelude.NFData
    CancelElasticsearchServiceSoftwareUpdateResponse