{-# 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.Glue.UpdateClassifier
-- 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)
--
-- Modifies an existing classifier (a @GrokClassifier@, an @XMLClassifier@,
-- a @JsonClassifier@, or a @CsvClassifier@, depending on which field is
-- present).
module Amazonka.Glue.UpdateClassifier
  ( -- * Creating a Request
    UpdateClassifier (..),
    newUpdateClassifier,

    -- * Request Lenses
    updateClassifier_grokClassifier,
    updateClassifier_xMLClassifier,
    updateClassifier_csvClassifier,
    updateClassifier_jsonClassifier,

    -- * Destructuring the Response
    UpdateClassifierResponse (..),
    newUpdateClassifierResponse,

    -- * Response Lenses
    updateClassifierResponse_httpStatus,
  )
where

import qualified Amazonka.Core as Core
import Amazonka.Glue.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:/ 'newUpdateClassifier' smart constructor.
data UpdateClassifier = UpdateClassifier'
  { -- | A @GrokClassifier@ object with updated fields.
    UpdateClassifier -> Maybe UpdateGrokClassifierRequest
grokClassifier :: Prelude.Maybe UpdateGrokClassifierRequest,
    -- | An @XMLClassifier@ object with updated fields.
    UpdateClassifier -> Maybe UpdateXMLClassifierRequest
xMLClassifier :: Prelude.Maybe UpdateXMLClassifierRequest,
    -- | A @CsvClassifier@ object with updated fields.
    UpdateClassifier -> Maybe UpdateCsvClassifierRequest
csvClassifier :: Prelude.Maybe UpdateCsvClassifierRequest,
    -- | A @JsonClassifier@ object with updated fields.
    UpdateClassifier -> Maybe UpdateJsonClassifierRequest
jsonClassifier :: Prelude.Maybe UpdateJsonClassifierRequest
  }
  deriving (UpdateClassifier -> UpdateClassifier -> Bool
(UpdateClassifier -> UpdateClassifier -> Bool)
-> (UpdateClassifier -> UpdateClassifier -> Bool)
-> Eq UpdateClassifier
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: UpdateClassifier -> UpdateClassifier -> Bool
$c/= :: UpdateClassifier -> UpdateClassifier -> Bool
== :: UpdateClassifier -> UpdateClassifier -> Bool
$c== :: UpdateClassifier -> UpdateClassifier -> Bool
Prelude.Eq, ReadPrec [UpdateClassifier]
ReadPrec UpdateClassifier
Int -> ReadS UpdateClassifier
ReadS [UpdateClassifier]
(Int -> ReadS UpdateClassifier)
-> ReadS [UpdateClassifier]
-> ReadPrec UpdateClassifier
-> ReadPrec [UpdateClassifier]
-> Read UpdateClassifier
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [UpdateClassifier]
$creadListPrec :: ReadPrec [UpdateClassifier]
readPrec :: ReadPrec UpdateClassifier
$creadPrec :: ReadPrec UpdateClassifier
readList :: ReadS [UpdateClassifier]
$creadList :: ReadS [UpdateClassifier]
readsPrec :: Int -> ReadS UpdateClassifier
$creadsPrec :: Int -> ReadS UpdateClassifier
Prelude.Read, Int -> UpdateClassifier -> ShowS
[UpdateClassifier] -> ShowS
UpdateClassifier -> String
(Int -> UpdateClassifier -> ShowS)
-> (UpdateClassifier -> String)
-> ([UpdateClassifier] -> ShowS)
-> Show UpdateClassifier
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [UpdateClassifier] -> ShowS
$cshowList :: [UpdateClassifier] -> ShowS
show :: UpdateClassifier -> String
$cshow :: UpdateClassifier -> String
showsPrec :: Int -> UpdateClassifier -> ShowS
$cshowsPrec :: Int -> UpdateClassifier -> ShowS
Prelude.Show, (forall x. UpdateClassifier -> Rep UpdateClassifier x)
-> (forall x. Rep UpdateClassifier x -> UpdateClassifier)
-> Generic UpdateClassifier
forall x. Rep UpdateClassifier x -> UpdateClassifier
forall x. UpdateClassifier -> Rep UpdateClassifier x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep UpdateClassifier x -> UpdateClassifier
$cfrom :: forall x. UpdateClassifier -> Rep UpdateClassifier x
Prelude.Generic)

-- |
-- Create a value of 'UpdateClassifier' 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:
--
-- 'grokClassifier', 'updateClassifier_grokClassifier' - A @GrokClassifier@ object with updated fields.
--
-- 'xMLClassifier', 'updateClassifier_xMLClassifier' - An @XMLClassifier@ object with updated fields.
--
-- 'csvClassifier', 'updateClassifier_csvClassifier' - A @CsvClassifier@ object with updated fields.
--
-- 'jsonClassifier', 'updateClassifier_jsonClassifier' - A @JsonClassifier@ object with updated fields.
newUpdateClassifier ::
  UpdateClassifier
newUpdateClassifier :: UpdateClassifier
newUpdateClassifier =
  UpdateClassifier' :: Maybe UpdateGrokClassifierRequest
-> Maybe UpdateXMLClassifierRequest
-> Maybe UpdateCsvClassifierRequest
-> Maybe UpdateJsonClassifierRequest
-> UpdateClassifier
UpdateClassifier'
    { $sel:grokClassifier:UpdateClassifier' :: Maybe UpdateGrokClassifierRequest
grokClassifier = Maybe UpdateGrokClassifierRequest
forall a. Maybe a
Prelude.Nothing,
      $sel:xMLClassifier:UpdateClassifier' :: Maybe UpdateXMLClassifierRequest
xMLClassifier = Maybe UpdateXMLClassifierRequest
forall a. Maybe a
Prelude.Nothing,
      $sel:csvClassifier:UpdateClassifier' :: Maybe UpdateCsvClassifierRequest
csvClassifier = Maybe UpdateCsvClassifierRequest
forall a. Maybe a
Prelude.Nothing,
      $sel:jsonClassifier:UpdateClassifier' :: Maybe UpdateJsonClassifierRequest
jsonClassifier = Maybe UpdateJsonClassifierRequest
forall a. Maybe a
Prelude.Nothing
    }

-- | A @GrokClassifier@ object with updated fields.
updateClassifier_grokClassifier :: Lens.Lens' UpdateClassifier (Prelude.Maybe UpdateGrokClassifierRequest)
updateClassifier_grokClassifier :: (Maybe UpdateGrokClassifierRequest
 -> f (Maybe UpdateGrokClassifierRequest))
-> UpdateClassifier -> f UpdateClassifier
updateClassifier_grokClassifier = (UpdateClassifier -> Maybe UpdateGrokClassifierRequest)
-> (UpdateClassifier
    -> Maybe UpdateGrokClassifierRequest -> UpdateClassifier)
-> Lens
     UpdateClassifier
     UpdateClassifier
     (Maybe UpdateGrokClassifierRequest)
     (Maybe UpdateGrokClassifierRequest)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateClassifier' {Maybe UpdateGrokClassifierRequest
grokClassifier :: Maybe UpdateGrokClassifierRequest
$sel:grokClassifier:UpdateClassifier' :: UpdateClassifier -> Maybe UpdateGrokClassifierRequest
grokClassifier} -> Maybe UpdateGrokClassifierRequest
grokClassifier) (\s :: UpdateClassifier
s@UpdateClassifier' {} Maybe UpdateGrokClassifierRequest
a -> UpdateClassifier
s {$sel:grokClassifier:UpdateClassifier' :: Maybe UpdateGrokClassifierRequest
grokClassifier = Maybe UpdateGrokClassifierRequest
a} :: UpdateClassifier)

-- | An @XMLClassifier@ object with updated fields.
updateClassifier_xMLClassifier :: Lens.Lens' UpdateClassifier (Prelude.Maybe UpdateXMLClassifierRequest)
updateClassifier_xMLClassifier :: (Maybe UpdateXMLClassifierRequest
 -> f (Maybe UpdateXMLClassifierRequest))
-> UpdateClassifier -> f UpdateClassifier
updateClassifier_xMLClassifier = (UpdateClassifier -> Maybe UpdateXMLClassifierRequest)
-> (UpdateClassifier
    -> Maybe UpdateXMLClassifierRequest -> UpdateClassifier)
-> Lens
     UpdateClassifier
     UpdateClassifier
     (Maybe UpdateXMLClassifierRequest)
     (Maybe UpdateXMLClassifierRequest)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateClassifier' {Maybe UpdateXMLClassifierRequest
xMLClassifier :: Maybe UpdateXMLClassifierRequest
$sel:xMLClassifier:UpdateClassifier' :: UpdateClassifier -> Maybe UpdateXMLClassifierRequest
xMLClassifier} -> Maybe UpdateXMLClassifierRequest
xMLClassifier) (\s :: UpdateClassifier
s@UpdateClassifier' {} Maybe UpdateXMLClassifierRequest
a -> UpdateClassifier
s {$sel:xMLClassifier:UpdateClassifier' :: Maybe UpdateXMLClassifierRequest
xMLClassifier = Maybe UpdateXMLClassifierRequest
a} :: UpdateClassifier)

-- | A @CsvClassifier@ object with updated fields.
updateClassifier_csvClassifier :: Lens.Lens' UpdateClassifier (Prelude.Maybe UpdateCsvClassifierRequest)
updateClassifier_csvClassifier :: (Maybe UpdateCsvClassifierRequest
 -> f (Maybe UpdateCsvClassifierRequest))
-> UpdateClassifier -> f UpdateClassifier
updateClassifier_csvClassifier = (UpdateClassifier -> Maybe UpdateCsvClassifierRequest)
-> (UpdateClassifier
    -> Maybe UpdateCsvClassifierRequest -> UpdateClassifier)
-> Lens
     UpdateClassifier
     UpdateClassifier
     (Maybe UpdateCsvClassifierRequest)
     (Maybe UpdateCsvClassifierRequest)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateClassifier' {Maybe UpdateCsvClassifierRequest
csvClassifier :: Maybe UpdateCsvClassifierRequest
$sel:csvClassifier:UpdateClassifier' :: UpdateClassifier -> Maybe UpdateCsvClassifierRequest
csvClassifier} -> Maybe UpdateCsvClassifierRequest
csvClassifier) (\s :: UpdateClassifier
s@UpdateClassifier' {} Maybe UpdateCsvClassifierRequest
a -> UpdateClassifier
s {$sel:csvClassifier:UpdateClassifier' :: Maybe UpdateCsvClassifierRequest
csvClassifier = Maybe UpdateCsvClassifierRequest
a} :: UpdateClassifier)

-- | A @JsonClassifier@ object with updated fields.
updateClassifier_jsonClassifier :: Lens.Lens' UpdateClassifier (Prelude.Maybe UpdateJsonClassifierRequest)
updateClassifier_jsonClassifier :: (Maybe UpdateJsonClassifierRequest
 -> f (Maybe UpdateJsonClassifierRequest))
-> UpdateClassifier -> f UpdateClassifier
updateClassifier_jsonClassifier = (UpdateClassifier -> Maybe UpdateJsonClassifierRequest)
-> (UpdateClassifier
    -> Maybe UpdateJsonClassifierRequest -> UpdateClassifier)
-> Lens
     UpdateClassifier
     UpdateClassifier
     (Maybe UpdateJsonClassifierRequest)
     (Maybe UpdateJsonClassifierRequest)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateClassifier' {Maybe UpdateJsonClassifierRequest
jsonClassifier :: Maybe UpdateJsonClassifierRequest
$sel:jsonClassifier:UpdateClassifier' :: UpdateClassifier -> Maybe UpdateJsonClassifierRequest
jsonClassifier} -> Maybe UpdateJsonClassifierRequest
jsonClassifier) (\s :: UpdateClassifier
s@UpdateClassifier' {} Maybe UpdateJsonClassifierRequest
a -> UpdateClassifier
s {$sel:jsonClassifier:UpdateClassifier' :: Maybe UpdateJsonClassifierRequest
jsonClassifier = Maybe UpdateJsonClassifierRequest
a} :: UpdateClassifier)

instance Core.AWSRequest UpdateClassifier where
  type
    AWSResponse UpdateClassifier =
      UpdateClassifierResponse
  request :: UpdateClassifier -> Request UpdateClassifier
request = Service -> UpdateClassifier -> Request UpdateClassifier
forall a. (ToRequest a, ToJSON a) => Service -> a -> Request a
Request.postJSON Service
defaultService
  response :: Logger
-> Service
-> Proxy UpdateClassifier
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse UpdateClassifier)))
response =
    (Int
 -> ResponseHeaders
 -> ()
 -> Either String (AWSResponse UpdateClassifier))
-> Logger
-> Service
-> Proxy UpdateClassifier
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse UpdateClassifier)))
forall (m :: * -> *) a.
MonadResource m =>
(Int -> ResponseHeaders -> () -> Either String (AWSResponse a))
-> Logger
-> Service
-> Proxy a
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse a)))
Response.receiveEmpty
      ( \Int
s ResponseHeaders
h ()
x ->
          Int -> UpdateClassifierResponse
UpdateClassifierResponse'
            (Int -> UpdateClassifierResponse)
-> Either String Int -> Either String UpdateClassifierResponse
forall (f :: * -> *) a b. Functor 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 UpdateClassifier

instance Prelude.NFData UpdateClassifier

instance Core.ToHeaders UpdateClassifier where
  toHeaders :: UpdateClassifier -> ResponseHeaders
toHeaders =
    ResponseHeaders -> UpdateClassifier -> ResponseHeaders
forall a b. a -> b -> a
Prelude.const
      ( [ResponseHeaders] -> ResponseHeaders
forall a. Monoid a => [a] -> a
Prelude.mconcat
          [ HeaderName
"X-Amz-Target"
              HeaderName -> ByteString -> ResponseHeaders
forall a. ToHeader a => HeaderName -> a -> ResponseHeaders
Core.=# (ByteString
"AWSGlue.UpdateClassifier" :: Prelude.ByteString),
            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 UpdateClassifier where
  toJSON :: UpdateClassifier -> Value
toJSON UpdateClassifier' {Maybe UpdateCsvClassifierRequest
Maybe UpdateGrokClassifierRequest
Maybe UpdateJsonClassifierRequest
Maybe UpdateXMLClassifierRequest
jsonClassifier :: Maybe UpdateJsonClassifierRequest
csvClassifier :: Maybe UpdateCsvClassifierRequest
xMLClassifier :: Maybe UpdateXMLClassifierRequest
grokClassifier :: Maybe UpdateGrokClassifierRequest
$sel:jsonClassifier:UpdateClassifier' :: UpdateClassifier -> Maybe UpdateJsonClassifierRequest
$sel:csvClassifier:UpdateClassifier' :: UpdateClassifier -> Maybe UpdateCsvClassifierRequest
$sel:xMLClassifier:UpdateClassifier' :: UpdateClassifier -> Maybe UpdateXMLClassifierRequest
$sel:grokClassifier:UpdateClassifier' :: UpdateClassifier -> Maybe UpdateGrokClassifierRequest
..} =
    [Pair] -> Value
Core.object
      ( [Maybe Pair] -> [Pair]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
          [ (Text
"GrokClassifier" Text -> UpdateGrokClassifierRequest -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=)
              (UpdateGrokClassifierRequest -> Pair)
-> Maybe UpdateGrokClassifierRequest -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe UpdateGrokClassifierRequest
grokClassifier,
            (Text
"XMLClassifier" Text -> UpdateXMLClassifierRequest -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=) (UpdateXMLClassifierRequest -> Pair)
-> Maybe UpdateXMLClassifierRequest -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe UpdateXMLClassifierRequest
xMLClassifier,
            (Text
"CsvClassifier" Text -> UpdateCsvClassifierRequest -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=) (UpdateCsvClassifierRequest -> Pair)
-> Maybe UpdateCsvClassifierRequest -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe UpdateCsvClassifierRequest
csvClassifier,
            (Text
"JsonClassifier" Text -> UpdateJsonClassifierRequest -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=)
              (UpdateJsonClassifierRequest -> Pair)
-> Maybe UpdateJsonClassifierRequest -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe UpdateJsonClassifierRequest
jsonClassifier
          ]
      )

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

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

-- | /See:/ 'newUpdateClassifierResponse' smart constructor.
data UpdateClassifierResponse = UpdateClassifierResponse'
  { -- | The response's http status code.
    UpdateClassifierResponse -> Int
httpStatus :: Prelude.Int
  }
  deriving (UpdateClassifierResponse -> UpdateClassifierResponse -> Bool
(UpdateClassifierResponse -> UpdateClassifierResponse -> Bool)
-> (UpdateClassifierResponse -> UpdateClassifierResponse -> Bool)
-> Eq UpdateClassifierResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: UpdateClassifierResponse -> UpdateClassifierResponse -> Bool
$c/= :: UpdateClassifierResponse -> UpdateClassifierResponse -> Bool
== :: UpdateClassifierResponse -> UpdateClassifierResponse -> Bool
$c== :: UpdateClassifierResponse -> UpdateClassifierResponse -> Bool
Prelude.Eq, ReadPrec [UpdateClassifierResponse]
ReadPrec UpdateClassifierResponse
Int -> ReadS UpdateClassifierResponse
ReadS [UpdateClassifierResponse]
(Int -> ReadS UpdateClassifierResponse)
-> ReadS [UpdateClassifierResponse]
-> ReadPrec UpdateClassifierResponse
-> ReadPrec [UpdateClassifierResponse]
-> Read UpdateClassifierResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [UpdateClassifierResponse]
$creadListPrec :: ReadPrec [UpdateClassifierResponse]
readPrec :: ReadPrec UpdateClassifierResponse
$creadPrec :: ReadPrec UpdateClassifierResponse
readList :: ReadS [UpdateClassifierResponse]
$creadList :: ReadS [UpdateClassifierResponse]
readsPrec :: Int -> ReadS UpdateClassifierResponse
$creadsPrec :: Int -> ReadS UpdateClassifierResponse
Prelude.Read, Int -> UpdateClassifierResponse -> ShowS
[UpdateClassifierResponse] -> ShowS
UpdateClassifierResponse -> String
(Int -> UpdateClassifierResponse -> ShowS)
-> (UpdateClassifierResponse -> String)
-> ([UpdateClassifierResponse] -> ShowS)
-> Show UpdateClassifierResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [UpdateClassifierResponse] -> ShowS
$cshowList :: [UpdateClassifierResponse] -> ShowS
show :: UpdateClassifierResponse -> String
$cshow :: UpdateClassifierResponse -> String
showsPrec :: Int -> UpdateClassifierResponse -> ShowS
$cshowsPrec :: Int -> UpdateClassifierResponse -> ShowS
Prelude.Show, (forall x.
 UpdateClassifierResponse -> Rep UpdateClassifierResponse x)
-> (forall x.
    Rep UpdateClassifierResponse x -> UpdateClassifierResponse)
-> Generic UpdateClassifierResponse
forall x.
Rep UpdateClassifierResponse x -> UpdateClassifierResponse
forall x.
UpdateClassifierResponse -> Rep UpdateClassifierResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep UpdateClassifierResponse x -> UpdateClassifierResponse
$cfrom :: forall x.
UpdateClassifierResponse -> Rep UpdateClassifierResponse x
Prelude.Generic)

-- |
-- Create a value of 'UpdateClassifierResponse' 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:
--
-- 'httpStatus', 'updateClassifierResponse_httpStatus' - The response's http status code.
newUpdateClassifierResponse ::
  -- | 'httpStatus'
  Prelude.Int ->
  UpdateClassifierResponse
newUpdateClassifierResponse :: Int -> UpdateClassifierResponse
newUpdateClassifierResponse Int
pHttpStatus_ =
  UpdateClassifierResponse' :: Int -> UpdateClassifierResponse
UpdateClassifierResponse'
    { $sel:httpStatus:UpdateClassifierResponse' :: Int
httpStatus =
        Int
pHttpStatus_
    }

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

instance Prelude.NFData UpdateClassifierResponse