{-# 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.Kafka.UpdateBrokerType
-- 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 EC2 instance type.
module Amazonka.Kafka.UpdateBrokerType
  ( -- * Creating a Request
    UpdateBrokerType (..),
    newUpdateBrokerType,

    -- * Request Lenses
    updateBrokerType_clusterArn,
    updateBrokerType_currentVersion,
    updateBrokerType_targetInstanceType,

    -- * Destructuring the Response
    UpdateBrokerTypeResponse (..),
    newUpdateBrokerTypeResponse,

    -- * Response Lenses
    updateBrokerTypeResponse_clusterArn,
    updateBrokerTypeResponse_clusterOperationArn,
    updateBrokerTypeResponse_httpStatus,
  )
where

import qualified Amazonka.Core as Core
import Amazonka.Kafka.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

-- | /See:/ 'newUpdateBrokerType' smart constructor.
data UpdateBrokerType = UpdateBrokerType'
  { -- | The Amazon Resource Name (ARN) that uniquely identifies the cluster.
    UpdateBrokerType -> Text
clusterArn :: Prelude.Text,
    -- | The cluster version that you want to change. After this operation
    -- completes successfully, the cluster will have a new version.
    UpdateBrokerType -> Text
currentVersion :: Prelude.Text,
    -- | The Amazon MSK broker type that you want all of the brokers in this
    -- cluster to be.
    UpdateBrokerType -> Text
targetInstanceType :: Prelude.Text
  }
  deriving (UpdateBrokerType -> UpdateBrokerType -> Bool
(UpdateBrokerType -> UpdateBrokerType -> Bool)
-> (UpdateBrokerType -> UpdateBrokerType -> Bool)
-> Eq UpdateBrokerType
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: UpdateBrokerType -> UpdateBrokerType -> Bool
$c/= :: UpdateBrokerType -> UpdateBrokerType -> Bool
== :: UpdateBrokerType -> UpdateBrokerType -> Bool
$c== :: UpdateBrokerType -> UpdateBrokerType -> Bool
Prelude.Eq, ReadPrec [UpdateBrokerType]
ReadPrec UpdateBrokerType
Int -> ReadS UpdateBrokerType
ReadS [UpdateBrokerType]
(Int -> ReadS UpdateBrokerType)
-> ReadS [UpdateBrokerType]
-> ReadPrec UpdateBrokerType
-> ReadPrec [UpdateBrokerType]
-> Read UpdateBrokerType
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [UpdateBrokerType]
$creadListPrec :: ReadPrec [UpdateBrokerType]
readPrec :: ReadPrec UpdateBrokerType
$creadPrec :: ReadPrec UpdateBrokerType
readList :: ReadS [UpdateBrokerType]
$creadList :: ReadS [UpdateBrokerType]
readsPrec :: Int -> ReadS UpdateBrokerType
$creadsPrec :: Int -> ReadS UpdateBrokerType
Prelude.Read, Int -> UpdateBrokerType -> ShowS
[UpdateBrokerType] -> ShowS
UpdateBrokerType -> String
(Int -> UpdateBrokerType -> ShowS)
-> (UpdateBrokerType -> String)
-> ([UpdateBrokerType] -> ShowS)
-> Show UpdateBrokerType
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [UpdateBrokerType] -> ShowS
$cshowList :: [UpdateBrokerType] -> ShowS
show :: UpdateBrokerType -> String
$cshow :: UpdateBrokerType -> String
showsPrec :: Int -> UpdateBrokerType -> ShowS
$cshowsPrec :: Int -> UpdateBrokerType -> ShowS
Prelude.Show, (forall x. UpdateBrokerType -> Rep UpdateBrokerType x)
-> (forall x. Rep UpdateBrokerType x -> UpdateBrokerType)
-> Generic UpdateBrokerType
forall x. Rep UpdateBrokerType x -> UpdateBrokerType
forall x. UpdateBrokerType -> Rep UpdateBrokerType x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep UpdateBrokerType x -> UpdateBrokerType
$cfrom :: forall x. UpdateBrokerType -> Rep UpdateBrokerType x
Prelude.Generic)

-- |
-- Create a value of 'UpdateBrokerType' 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:
--
-- 'clusterArn', 'updateBrokerType_clusterArn' - The Amazon Resource Name (ARN) that uniquely identifies the cluster.
--
-- 'currentVersion', 'updateBrokerType_currentVersion' - The cluster version that you want to change. After this operation
-- completes successfully, the cluster will have a new version.
--
-- 'targetInstanceType', 'updateBrokerType_targetInstanceType' - The Amazon MSK broker type that you want all of the brokers in this
-- cluster to be.
newUpdateBrokerType ::
  -- | 'clusterArn'
  Prelude.Text ->
  -- | 'currentVersion'
  Prelude.Text ->
  -- | 'targetInstanceType'
  Prelude.Text ->
  UpdateBrokerType
newUpdateBrokerType :: Text -> Text -> Text -> UpdateBrokerType
newUpdateBrokerType
  Text
pClusterArn_
  Text
pCurrentVersion_
  Text
pTargetInstanceType_ =
    UpdateBrokerType' :: Text -> Text -> Text -> UpdateBrokerType
UpdateBrokerType'
      { $sel:clusterArn:UpdateBrokerType' :: Text
clusterArn = Text
pClusterArn_,
        $sel:currentVersion:UpdateBrokerType' :: Text
currentVersion = Text
pCurrentVersion_,
        $sel:targetInstanceType:UpdateBrokerType' :: Text
targetInstanceType = Text
pTargetInstanceType_
      }

-- | The Amazon Resource Name (ARN) that uniquely identifies the cluster.
updateBrokerType_clusterArn :: Lens.Lens' UpdateBrokerType Prelude.Text
updateBrokerType_clusterArn :: (Text -> f Text) -> UpdateBrokerType -> f UpdateBrokerType
updateBrokerType_clusterArn = (UpdateBrokerType -> Text)
-> (UpdateBrokerType -> Text -> UpdateBrokerType)
-> Lens UpdateBrokerType UpdateBrokerType Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateBrokerType' {Text
clusterArn :: Text
$sel:clusterArn:UpdateBrokerType' :: UpdateBrokerType -> Text
clusterArn} -> Text
clusterArn) (\s :: UpdateBrokerType
s@UpdateBrokerType' {} Text
a -> UpdateBrokerType
s {$sel:clusterArn:UpdateBrokerType' :: Text
clusterArn = Text
a} :: UpdateBrokerType)

-- | The cluster version that you want to change. After this operation
-- completes successfully, the cluster will have a new version.
updateBrokerType_currentVersion :: Lens.Lens' UpdateBrokerType Prelude.Text
updateBrokerType_currentVersion :: (Text -> f Text) -> UpdateBrokerType -> f UpdateBrokerType
updateBrokerType_currentVersion = (UpdateBrokerType -> Text)
-> (UpdateBrokerType -> Text -> UpdateBrokerType)
-> Lens UpdateBrokerType UpdateBrokerType Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateBrokerType' {Text
currentVersion :: Text
$sel:currentVersion:UpdateBrokerType' :: UpdateBrokerType -> Text
currentVersion} -> Text
currentVersion) (\s :: UpdateBrokerType
s@UpdateBrokerType' {} Text
a -> UpdateBrokerType
s {$sel:currentVersion:UpdateBrokerType' :: Text
currentVersion = Text
a} :: UpdateBrokerType)

-- | The Amazon MSK broker type that you want all of the brokers in this
-- cluster to be.
updateBrokerType_targetInstanceType :: Lens.Lens' UpdateBrokerType Prelude.Text
updateBrokerType_targetInstanceType :: (Text -> f Text) -> UpdateBrokerType -> f UpdateBrokerType
updateBrokerType_targetInstanceType = (UpdateBrokerType -> Text)
-> (UpdateBrokerType -> Text -> UpdateBrokerType)
-> Lens UpdateBrokerType UpdateBrokerType Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateBrokerType' {Text
targetInstanceType :: Text
$sel:targetInstanceType:UpdateBrokerType' :: UpdateBrokerType -> Text
targetInstanceType} -> Text
targetInstanceType) (\s :: UpdateBrokerType
s@UpdateBrokerType' {} Text
a -> UpdateBrokerType
s {$sel:targetInstanceType:UpdateBrokerType' :: Text
targetInstanceType = Text
a} :: UpdateBrokerType)

instance Core.AWSRequest UpdateBrokerType where
  type
    AWSResponse UpdateBrokerType =
      UpdateBrokerTypeResponse
  request :: UpdateBrokerType -> Request UpdateBrokerType
request = Service -> UpdateBrokerType -> Request UpdateBrokerType
forall a. (ToRequest a, ToJSON a) => Service -> a -> Request a
Request.putJSON Service
defaultService
  response :: Logger
-> Service
-> Proxy UpdateBrokerType
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse UpdateBrokerType)))
response =
    (Int
 -> ResponseHeaders
 -> Object
 -> Either String (AWSResponse UpdateBrokerType))
-> Logger
-> Service
-> Proxy UpdateBrokerType
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse UpdateBrokerType)))
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 Text -> Maybe Text -> Int -> UpdateBrokerTypeResponse
UpdateBrokerTypeResponse'
            (Maybe Text -> Maybe Text -> Int -> UpdateBrokerTypeResponse)
-> Either String (Maybe Text)
-> Either String (Maybe Text -> Int -> UpdateBrokerTypeResponse)
forall (f :: * -> *) a b. Functor 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
"clusterArn")
            Either String (Maybe Text -> Int -> UpdateBrokerTypeResponse)
-> Either String (Maybe Text)
-> Either String (Int -> UpdateBrokerTypeResponse)
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
"clusterOperationArn")
            Either String (Int -> UpdateBrokerTypeResponse)
-> Either String Int -> Either String UpdateBrokerTypeResponse
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 UpdateBrokerType

instance Prelude.NFData UpdateBrokerType

instance Core.ToHeaders UpdateBrokerType where
  toHeaders :: UpdateBrokerType -> ResponseHeaders
toHeaders =
    ResponseHeaders -> UpdateBrokerType -> 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 UpdateBrokerType where
  toJSON :: UpdateBrokerType -> Value
toJSON UpdateBrokerType' {Text
targetInstanceType :: Text
currentVersion :: Text
clusterArn :: Text
$sel:targetInstanceType:UpdateBrokerType' :: UpdateBrokerType -> Text
$sel:currentVersion:UpdateBrokerType' :: UpdateBrokerType -> Text
$sel:clusterArn:UpdateBrokerType' :: UpdateBrokerType -> 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
"currentVersion" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= Text
currentVersion),
            Pair -> Maybe Pair
forall a. a -> Maybe a
Prelude.Just
              (Text
"targetInstanceType" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= Text
targetInstanceType)
          ]
      )

instance Core.ToPath UpdateBrokerType where
  toPath :: UpdateBrokerType -> ByteString
toPath UpdateBrokerType' {Text
targetInstanceType :: Text
currentVersion :: Text
clusterArn :: Text
$sel:targetInstanceType:UpdateBrokerType' :: UpdateBrokerType -> Text
$sel:currentVersion:UpdateBrokerType' :: UpdateBrokerType -> Text
$sel:clusterArn:UpdateBrokerType' :: UpdateBrokerType -> Text
..} =
    [ByteString] -> ByteString
forall a. Monoid a => [a] -> a
Prelude.mconcat
      [ ByteString
"/v1/clusters/",
        Text -> ByteString
forall a. ToByteString a => a -> ByteString
Core.toBS Text
clusterArn,
        ByteString
"/nodes/type"
      ]

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

-- | /See:/ 'newUpdateBrokerTypeResponse' smart constructor.
data UpdateBrokerTypeResponse = UpdateBrokerTypeResponse'
  { -- | The Amazon Resource Name (ARN) of the cluster.
    UpdateBrokerTypeResponse -> Maybe Text
clusterArn :: Prelude.Maybe Prelude.Text,
    -- | The Amazon Resource Name (ARN) of the cluster operation.
    UpdateBrokerTypeResponse -> Maybe Text
clusterOperationArn :: Prelude.Maybe Prelude.Text,
    -- | The response's http status code.
    UpdateBrokerTypeResponse -> Int
httpStatus :: Prelude.Int
  }
  deriving (UpdateBrokerTypeResponse -> UpdateBrokerTypeResponse -> Bool
(UpdateBrokerTypeResponse -> UpdateBrokerTypeResponse -> Bool)
-> (UpdateBrokerTypeResponse -> UpdateBrokerTypeResponse -> Bool)
-> Eq UpdateBrokerTypeResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: UpdateBrokerTypeResponse -> UpdateBrokerTypeResponse -> Bool
$c/= :: UpdateBrokerTypeResponse -> UpdateBrokerTypeResponse -> Bool
== :: UpdateBrokerTypeResponse -> UpdateBrokerTypeResponse -> Bool
$c== :: UpdateBrokerTypeResponse -> UpdateBrokerTypeResponse -> Bool
Prelude.Eq, ReadPrec [UpdateBrokerTypeResponse]
ReadPrec UpdateBrokerTypeResponse
Int -> ReadS UpdateBrokerTypeResponse
ReadS [UpdateBrokerTypeResponse]
(Int -> ReadS UpdateBrokerTypeResponse)
-> ReadS [UpdateBrokerTypeResponse]
-> ReadPrec UpdateBrokerTypeResponse
-> ReadPrec [UpdateBrokerTypeResponse]
-> Read UpdateBrokerTypeResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [UpdateBrokerTypeResponse]
$creadListPrec :: ReadPrec [UpdateBrokerTypeResponse]
readPrec :: ReadPrec UpdateBrokerTypeResponse
$creadPrec :: ReadPrec UpdateBrokerTypeResponse
readList :: ReadS [UpdateBrokerTypeResponse]
$creadList :: ReadS [UpdateBrokerTypeResponse]
readsPrec :: Int -> ReadS UpdateBrokerTypeResponse
$creadsPrec :: Int -> ReadS UpdateBrokerTypeResponse
Prelude.Read, Int -> UpdateBrokerTypeResponse -> ShowS
[UpdateBrokerTypeResponse] -> ShowS
UpdateBrokerTypeResponse -> String
(Int -> UpdateBrokerTypeResponse -> ShowS)
-> (UpdateBrokerTypeResponse -> String)
-> ([UpdateBrokerTypeResponse] -> ShowS)
-> Show UpdateBrokerTypeResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [UpdateBrokerTypeResponse] -> ShowS
$cshowList :: [UpdateBrokerTypeResponse] -> ShowS
show :: UpdateBrokerTypeResponse -> String
$cshow :: UpdateBrokerTypeResponse -> String
showsPrec :: Int -> UpdateBrokerTypeResponse -> ShowS
$cshowsPrec :: Int -> UpdateBrokerTypeResponse -> ShowS
Prelude.Show, (forall x.
 UpdateBrokerTypeResponse -> Rep UpdateBrokerTypeResponse x)
-> (forall x.
    Rep UpdateBrokerTypeResponse x -> UpdateBrokerTypeResponse)
-> Generic UpdateBrokerTypeResponse
forall x.
Rep UpdateBrokerTypeResponse x -> UpdateBrokerTypeResponse
forall x.
UpdateBrokerTypeResponse -> Rep UpdateBrokerTypeResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep UpdateBrokerTypeResponse x -> UpdateBrokerTypeResponse
$cfrom :: forall x.
UpdateBrokerTypeResponse -> Rep UpdateBrokerTypeResponse x
Prelude.Generic)

-- |
-- Create a value of 'UpdateBrokerTypeResponse' 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:
--
-- 'clusterArn', 'updateBrokerTypeResponse_clusterArn' - The Amazon Resource Name (ARN) of the cluster.
--
-- 'clusterOperationArn', 'updateBrokerTypeResponse_clusterOperationArn' - The Amazon Resource Name (ARN) of the cluster operation.
--
-- 'httpStatus', 'updateBrokerTypeResponse_httpStatus' - The response's http status code.
newUpdateBrokerTypeResponse ::
  -- | 'httpStatus'
  Prelude.Int ->
  UpdateBrokerTypeResponse
newUpdateBrokerTypeResponse :: Int -> UpdateBrokerTypeResponse
newUpdateBrokerTypeResponse Int
pHttpStatus_ =
  UpdateBrokerTypeResponse' :: Maybe Text -> Maybe Text -> Int -> UpdateBrokerTypeResponse
UpdateBrokerTypeResponse'
    { $sel:clusterArn:UpdateBrokerTypeResponse' :: Maybe Text
clusterArn =
        Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:clusterOperationArn:UpdateBrokerTypeResponse' :: Maybe Text
clusterOperationArn = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:httpStatus:UpdateBrokerTypeResponse' :: Int
httpStatus = Int
pHttpStatus_
    }

-- | The Amazon Resource Name (ARN) of the cluster.
updateBrokerTypeResponse_clusterArn :: Lens.Lens' UpdateBrokerTypeResponse (Prelude.Maybe Prelude.Text)
updateBrokerTypeResponse_clusterArn :: (Maybe Text -> f (Maybe Text))
-> UpdateBrokerTypeResponse -> f UpdateBrokerTypeResponse
updateBrokerTypeResponse_clusterArn = (UpdateBrokerTypeResponse -> Maybe Text)
-> (UpdateBrokerTypeResponse
    -> Maybe Text -> UpdateBrokerTypeResponse)
-> Lens
     UpdateBrokerTypeResponse
     UpdateBrokerTypeResponse
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateBrokerTypeResponse' {Maybe Text
clusterArn :: Maybe Text
$sel:clusterArn:UpdateBrokerTypeResponse' :: UpdateBrokerTypeResponse -> Maybe Text
clusterArn} -> Maybe Text
clusterArn) (\s :: UpdateBrokerTypeResponse
s@UpdateBrokerTypeResponse' {} Maybe Text
a -> UpdateBrokerTypeResponse
s {$sel:clusterArn:UpdateBrokerTypeResponse' :: Maybe Text
clusterArn = Maybe Text
a} :: UpdateBrokerTypeResponse)

-- | The Amazon Resource Name (ARN) of the cluster operation.
updateBrokerTypeResponse_clusterOperationArn :: Lens.Lens' UpdateBrokerTypeResponse (Prelude.Maybe Prelude.Text)
updateBrokerTypeResponse_clusterOperationArn :: (Maybe Text -> f (Maybe Text))
-> UpdateBrokerTypeResponse -> f UpdateBrokerTypeResponse
updateBrokerTypeResponse_clusterOperationArn = (UpdateBrokerTypeResponse -> Maybe Text)
-> (UpdateBrokerTypeResponse
    -> Maybe Text -> UpdateBrokerTypeResponse)
-> Lens
     UpdateBrokerTypeResponse
     UpdateBrokerTypeResponse
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateBrokerTypeResponse' {Maybe Text
clusterOperationArn :: Maybe Text
$sel:clusterOperationArn:UpdateBrokerTypeResponse' :: UpdateBrokerTypeResponse -> Maybe Text
clusterOperationArn} -> Maybe Text
clusterOperationArn) (\s :: UpdateBrokerTypeResponse
s@UpdateBrokerTypeResponse' {} Maybe Text
a -> UpdateBrokerTypeResponse
s {$sel:clusterOperationArn:UpdateBrokerTypeResponse' :: Maybe Text
clusterOperationArn = Maybe Text
a} :: UpdateBrokerTypeResponse)

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

instance Prelude.NFData UpdateBrokerTypeResponse