{-# 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.Comprehend.StopPiiEntitiesDetectionJob
-- 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)
--
-- Stops a PII entities detection job in progress.
module Amazonka.Comprehend.StopPiiEntitiesDetectionJob
  ( -- * Creating a Request
    StopPiiEntitiesDetectionJob (..),
    newStopPiiEntitiesDetectionJob,

    -- * Request Lenses
    stopPiiEntitiesDetectionJob_jobId,

    -- * Destructuring the Response
    StopPiiEntitiesDetectionJobResponse (..),
    newStopPiiEntitiesDetectionJobResponse,

    -- * Response Lenses
    stopPiiEntitiesDetectionJobResponse_jobId,
    stopPiiEntitiesDetectionJobResponse_jobStatus,
    stopPiiEntitiesDetectionJobResponse_httpStatus,
  )
where

import Amazonka.Comprehend.Types
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

-- | /See:/ 'newStopPiiEntitiesDetectionJob' smart constructor.
data StopPiiEntitiesDetectionJob = StopPiiEntitiesDetectionJob'
  { -- | The identifier of the PII entities detection job to stop.
    StopPiiEntitiesDetectionJob -> Text
jobId :: Prelude.Text
  }
  deriving (StopPiiEntitiesDetectionJob -> StopPiiEntitiesDetectionJob -> Bool
(StopPiiEntitiesDetectionJob
 -> StopPiiEntitiesDetectionJob -> Bool)
-> (StopPiiEntitiesDetectionJob
    -> StopPiiEntitiesDetectionJob -> Bool)
-> Eq StopPiiEntitiesDetectionJob
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: StopPiiEntitiesDetectionJob -> StopPiiEntitiesDetectionJob -> Bool
$c/= :: StopPiiEntitiesDetectionJob -> StopPiiEntitiesDetectionJob -> Bool
== :: StopPiiEntitiesDetectionJob -> StopPiiEntitiesDetectionJob -> Bool
$c== :: StopPiiEntitiesDetectionJob -> StopPiiEntitiesDetectionJob -> Bool
Prelude.Eq, ReadPrec [StopPiiEntitiesDetectionJob]
ReadPrec StopPiiEntitiesDetectionJob
Int -> ReadS StopPiiEntitiesDetectionJob
ReadS [StopPiiEntitiesDetectionJob]
(Int -> ReadS StopPiiEntitiesDetectionJob)
-> ReadS [StopPiiEntitiesDetectionJob]
-> ReadPrec StopPiiEntitiesDetectionJob
-> ReadPrec [StopPiiEntitiesDetectionJob]
-> Read StopPiiEntitiesDetectionJob
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [StopPiiEntitiesDetectionJob]
$creadListPrec :: ReadPrec [StopPiiEntitiesDetectionJob]
readPrec :: ReadPrec StopPiiEntitiesDetectionJob
$creadPrec :: ReadPrec StopPiiEntitiesDetectionJob
readList :: ReadS [StopPiiEntitiesDetectionJob]
$creadList :: ReadS [StopPiiEntitiesDetectionJob]
readsPrec :: Int -> ReadS StopPiiEntitiesDetectionJob
$creadsPrec :: Int -> ReadS StopPiiEntitiesDetectionJob
Prelude.Read, Int -> StopPiiEntitiesDetectionJob -> ShowS
[StopPiiEntitiesDetectionJob] -> ShowS
StopPiiEntitiesDetectionJob -> String
(Int -> StopPiiEntitiesDetectionJob -> ShowS)
-> (StopPiiEntitiesDetectionJob -> String)
-> ([StopPiiEntitiesDetectionJob] -> ShowS)
-> Show StopPiiEntitiesDetectionJob
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [StopPiiEntitiesDetectionJob] -> ShowS
$cshowList :: [StopPiiEntitiesDetectionJob] -> ShowS
show :: StopPiiEntitiesDetectionJob -> String
$cshow :: StopPiiEntitiesDetectionJob -> String
showsPrec :: Int -> StopPiiEntitiesDetectionJob -> ShowS
$cshowsPrec :: Int -> StopPiiEntitiesDetectionJob -> ShowS
Prelude.Show, (forall x.
 StopPiiEntitiesDetectionJob -> Rep StopPiiEntitiesDetectionJob x)
-> (forall x.
    Rep StopPiiEntitiesDetectionJob x -> StopPiiEntitiesDetectionJob)
-> Generic StopPiiEntitiesDetectionJob
forall x.
Rep StopPiiEntitiesDetectionJob x -> StopPiiEntitiesDetectionJob
forall x.
StopPiiEntitiesDetectionJob -> Rep StopPiiEntitiesDetectionJob x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep StopPiiEntitiesDetectionJob x -> StopPiiEntitiesDetectionJob
$cfrom :: forall x.
StopPiiEntitiesDetectionJob -> Rep StopPiiEntitiesDetectionJob x
Prelude.Generic)

-- |
-- Create a value of 'StopPiiEntitiesDetectionJob' 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:
--
-- 'jobId', 'stopPiiEntitiesDetectionJob_jobId' - The identifier of the PII entities detection job to stop.
newStopPiiEntitiesDetectionJob ::
  -- | 'jobId'
  Prelude.Text ->
  StopPiiEntitiesDetectionJob
newStopPiiEntitiesDetectionJob :: Text -> StopPiiEntitiesDetectionJob
newStopPiiEntitiesDetectionJob Text
pJobId_ =
  StopPiiEntitiesDetectionJob' :: Text -> StopPiiEntitiesDetectionJob
StopPiiEntitiesDetectionJob' {$sel:jobId:StopPiiEntitiesDetectionJob' :: Text
jobId = Text
pJobId_}

-- | The identifier of the PII entities detection job to stop.
stopPiiEntitiesDetectionJob_jobId :: Lens.Lens' StopPiiEntitiesDetectionJob Prelude.Text
stopPiiEntitiesDetectionJob_jobId :: (Text -> f Text)
-> StopPiiEntitiesDetectionJob -> f StopPiiEntitiesDetectionJob
stopPiiEntitiesDetectionJob_jobId = (StopPiiEntitiesDetectionJob -> Text)
-> (StopPiiEntitiesDetectionJob
    -> Text -> StopPiiEntitiesDetectionJob)
-> Lens
     StopPiiEntitiesDetectionJob StopPiiEntitiesDetectionJob Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\StopPiiEntitiesDetectionJob' {Text
jobId :: Text
$sel:jobId:StopPiiEntitiesDetectionJob' :: StopPiiEntitiesDetectionJob -> Text
jobId} -> Text
jobId) (\s :: StopPiiEntitiesDetectionJob
s@StopPiiEntitiesDetectionJob' {} Text
a -> StopPiiEntitiesDetectionJob
s {$sel:jobId:StopPiiEntitiesDetectionJob' :: Text
jobId = Text
a} :: StopPiiEntitiesDetectionJob)

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

instance Prelude.NFData StopPiiEntitiesDetectionJob

instance Core.ToHeaders StopPiiEntitiesDetectionJob where
  toHeaders :: StopPiiEntitiesDetectionJob -> ResponseHeaders
toHeaders =
    ResponseHeaders -> StopPiiEntitiesDetectionJob -> 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
"Comprehend_20171127.StopPiiEntitiesDetectionJob" ::
                          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 StopPiiEntitiesDetectionJob where
  toJSON :: StopPiiEntitiesDetectionJob -> Value
toJSON StopPiiEntitiesDetectionJob' {Text
jobId :: Text
$sel:jobId:StopPiiEntitiesDetectionJob' :: StopPiiEntitiesDetectionJob -> 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
"JobId" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= Text
jobId)]
      )

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

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

-- | /See:/ 'newStopPiiEntitiesDetectionJobResponse' smart constructor.
data StopPiiEntitiesDetectionJobResponse = StopPiiEntitiesDetectionJobResponse'
  { -- | The identifier of the PII entities detection job to stop.
    StopPiiEntitiesDetectionJobResponse -> Maybe Text
jobId :: Prelude.Maybe Prelude.Text,
    -- | The status of the PII entities detection job.
    StopPiiEntitiesDetectionJobResponse -> Maybe JobStatus
jobStatus :: Prelude.Maybe JobStatus,
    -- | The response's http status code.
    StopPiiEntitiesDetectionJobResponse -> Int
httpStatus :: Prelude.Int
  }
  deriving (StopPiiEntitiesDetectionJobResponse
-> StopPiiEntitiesDetectionJobResponse -> Bool
(StopPiiEntitiesDetectionJobResponse
 -> StopPiiEntitiesDetectionJobResponse -> Bool)
-> (StopPiiEntitiesDetectionJobResponse
    -> StopPiiEntitiesDetectionJobResponse -> Bool)
-> Eq StopPiiEntitiesDetectionJobResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: StopPiiEntitiesDetectionJobResponse
-> StopPiiEntitiesDetectionJobResponse -> Bool
$c/= :: StopPiiEntitiesDetectionJobResponse
-> StopPiiEntitiesDetectionJobResponse -> Bool
== :: StopPiiEntitiesDetectionJobResponse
-> StopPiiEntitiesDetectionJobResponse -> Bool
$c== :: StopPiiEntitiesDetectionJobResponse
-> StopPiiEntitiesDetectionJobResponse -> Bool
Prelude.Eq, ReadPrec [StopPiiEntitiesDetectionJobResponse]
ReadPrec StopPiiEntitiesDetectionJobResponse
Int -> ReadS StopPiiEntitiesDetectionJobResponse
ReadS [StopPiiEntitiesDetectionJobResponse]
(Int -> ReadS StopPiiEntitiesDetectionJobResponse)
-> ReadS [StopPiiEntitiesDetectionJobResponse]
-> ReadPrec StopPiiEntitiesDetectionJobResponse
-> ReadPrec [StopPiiEntitiesDetectionJobResponse]
-> Read StopPiiEntitiesDetectionJobResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [StopPiiEntitiesDetectionJobResponse]
$creadListPrec :: ReadPrec [StopPiiEntitiesDetectionJobResponse]
readPrec :: ReadPrec StopPiiEntitiesDetectionJobResponse
$creadPrec :: ReadPrec StopPiiEntitiesDetectionJobResponse
readList :: ReadS [StopPiiEntitiesDetectionJobResponse]
$creadList :: ReadS [StopPiiEntitiesDetectionJobResponse]
readsPrec :: Int -> ReadS StopPiiEntitiesDetectionJobResponse
$creadsPrec :: Int -> ReadS StopPiiEntitiesDetectionJobResponse
Prelude.Read, Int -> StopPiiEntitiesDetectionJobResponse -> ShowS
[StopPiiEntitiesDetectionJobResponse] -> ShowS
StopPiiEntitiesDetectionJobResponse -> String
(Int -> StopPiiEntitiesDetectionJobResponse -> ShowS)
-> (StopPiiEntitiesDetectionJobResponse -> String)
-> ([StopPiiEntitiesDetectionJobResponse] -> ShowS)
-> Show StopPiiEntitiesDetectionJobResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [StopPiiEntitiesDetectionJobResponse] -> ShowS
$cshowList :: [StopPiiEntitiesDetectionJobResponse] -> ShowS
show :: StopPiiEntitiesDetectionJobResponse -> String
$cshow :: StopPiiEntitiesDetectionJobResponse -> String
showsPrec :: Int -> StopPiiEntitiesDetectionJobResponse -> ShowS
$cshowsPrec :: Int -> StopPiiEntitiesDetectionJobResponse -> ShowS
Prelude.Show, (forall x.
 StopPiiEntitiesDetectionJobResponse
 -> Rep StopPiiEntitiesDetectionJobResponse x)
-> (forall x.
    Rep StopPiiEntitiesDetectionJobResponse x
    -> StopPiiEntitiesDetectionJobResponse)
-> Generic StopPiiEntitiesDetectionJobResponse
forall x.
Rep StopPiiEntitiesDetectionJobResponse x
-> StopPiiEntitiesDetectionJobResponse
forall x.
StopPiiEntitiesDetectionJobResponse
-> Rep StopPiiEntitiesDetectionJobResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep StopPiiEntitiesDetectionJobResponse x
-> StopPiiEntitiesDetectionJobResponse
$cfrom :: forall x.
StopPiiEntitiesDetectionJobResponse
-> Rep StopPiiEntitiesDetectionJobResponse x
Prelude.Generic)

-- |
-- Create a value of 'StopPiiEntitiesDetectionJobResponse' 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:
--
-- 'jobId', 'stopPiiEntitiesDetectionJobResponse_jobId' - The identifier of the PII entities detection job to stop.
--
-- 'jobStatus', 'stopPiiEntitiesDetectionJobResponse_jobStatus' - The status of the PII entities detection job.
--
-- 'httpStatus', 'stopPiiEntitiesDetectionJobResponse_httpStatus' - The response's http status code.
newStopPiiEntitiesDetectionJobResponse ::
  -- | 'httpStatus'
  Prelude.Int ->
  StopPiiEntitiesDetectionJobResponse
newStopPiiEntitiesDetectionJobResponse :: Int -> StopPiiEntitiesDetectionJobResponse
newStopPiiEntitiesDetectionJobResponse Int
pHttpStatus_ =
  StopPiiEntitiesDetectionJobResponse' :: Maybe Text
-> Maybe JobStatus -> Int -> StopPiiEntitiesDetectionJobResponse
StopPiiEntitiesDetectionJobResponse'
    { $sel:jobId:StopPiiEntitiesDetectionJobResponse' :: Maybe Text
jobId =
        Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:jobStatus:StopPiiEntitiesDetectionJobResponse' :: Maybe JobStatus
jobStatus = Maybe JobStatus
forall a. Maybe a
Prelude.Nothing,
      $sel:httpStatus:StopPiiEntitiesDetectionJobResponse' :: Int
httpStatus = Int
pHttpStatus_
    }

-- | The identifier of the PII entities detection job to stop.
stopPiiEntitiesDetectionJobResponse_jobId :: Lens.Lens' StopPiiEntitiesDetectionJobResponse (Prelude.Maybe Prelude.Text)
stopPiiEntitiesDetectionJobResponse_jobId :: (Maybe Text -> f (Maybe Text))
-> StopPiiEntitiesDetectionJobResponse
-> f StopPiiEntitiesDetectionJobResponse
stopPiiEntitiesDetectionJobResponse_jobId = (StopPiiEntitiesDetectionJobResponse -> Maybe Text)
-> (StopPiiEntitiesDetectionJobResponse
    -> Maybe Text -> StopPiiEntitiesDetectionJobResponse)
-> Lens
     StopPiiEntitiesDetectionJobResponse
     StopPiiEntitiesDetectionJobResponse
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\StopPiiEntitiesDetectionJobResponse' {Maybe Text
jobId :: Maybe Text
$sel:jobId:StopPiiEntitiesDetectionJobResponse' :: StopPiiEntitiesDetectionJobResponse -> Maybe Text
jobId} -> Maybe Text
jobId) (\s :: StopPiiEntitiesDetectionJobResponse
s@StopPiiEntitiesDetectionJobResponse' {} Maybe Text
a -> StopPiiEntitiesDetectionJobResponse
s {$sel:jobId:StopPiiEntitiesDetectionJobResponse' :: Maybe Text
jobId = Maybe Text
a} :: StopPiiEntitiesDetectionJobResponse)

-- | The status of the PII entities detection job.
stopPiiEntitiesDetectionJobResponse_jobStatus :: Lens.Lens' StopPiiEntitiesDetectionJobResponse (Prelude.Maybe JobStatus)
stopPiiEntitiesDetectionJobResponse_jobStatus :: (Maybe JobStatus -> f (Maybe JobStatus))
-> StopPiiEntitiesDetectionJobResponse
-> f StopPiiEntitiesDetectionJobResponse
stopPiiEntitiesDetectionJobResponse_jobStatus = (StopPiiEntitiesDetectionJobResponse -> Maybe JobStatus)
-> (StopPiiEntitiesDetectionJobResponse
    -> Maybe JobStatus -> StopPiiEntitiesDetectionJobResponse)
-> Lens
     StopPiiEntitiesDetectionJobResponse
     StopPiiEntitiesDetectionJobResponse
     (Maybe JobStatus)
     (Maybe JobStatus)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\StopPiiEntitiesDetectionJobResponse' {Maybe JobStatus
jobStatus :: Maybe JobStatus
$sel:jobStatus:StopPiiEntitiesDetectionJobResponse' :: StopPiiEntitiesDetectionJobResponse -> Maybe JobStatus
jobStatus} -> Maybe JobStatus
jobStatus) (\s :: StopPiiEntitiesDetectionJobResponse
s@StopPiiEntitiesDetectionJobResponse' {} Maybe JobStatus
a -> StopPiiEntitiesDetectionJobResponse
s {$sel:jobStatus:StopPiiEntitiesDetectionJobResponse' :: Maybe JobStatus
jobStatus = Maybe JobStatus
a} :: StopPiiEntitiesDetectionJobResponse)

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

instance
  Prelude.NFData
    StopPiiEntitiesDetectionJobResponse