{-# 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.StopEntitiesDetectionJob
-- 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 an entities detection job in progress.
--
-- If the job state is @IN_PROGRESS@ the job is marked for termination and
-- put into the @STOP_REQUESTED@ state. If the job completes before it can
-- be stopped, it is put into the @COMPLETED@ state; otherwise the job is
-- stopped and put into the @STOPPED@ state.
--
-- If the job is in the @COMPLETED@ or @FAILED@ state when you call the
-- @StopDominantLanguageDetectionJob@ operation, the operation returns a
-- 400 Internal Request Exception.
--
-- When a job is stopped, any documents already processed are written to
-- the output location.
module Amazonka.Comprehend.StopEntitiesDetectionJob
  ( -- * Creating a Request
    StopEntitiesDetectionJob (..),
    newStopEntitiesDetectionJob,

    -- * Request Lenses
    stopEntitiesDetectionJob_jobId,

    -- * Destructuring the Response
    StopEntitiesDetectionJobResponse (..),
    newStopEntitiesDetectionJobResponse,

    -- * Response Lenses
    stopEntitiesDetectionJobResponse_jobId,
    stopEntitiesDetectionJobResponse_jobStatus,
    stopEntitiesDetectionJobResponse_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:/ 'newStopEntitiesDetectionJob' smart constructor.
data StopEntitiesDetectionJob = StopEntitiesDetectionJob'
  { -- | The identifier of the entities detection job to stop.
    StopEntitiesDetectionJob -> Text
jobId :: Prelude.Text
  }
  deriving (StopEntitiesDetectionJob -> StopEntitiesDetectionJob -> Bool
(StopEntitiesDetectionJob -> StopEntitiesDetectionJob -> Bool)
-> (StopEntitiesDetectionJob -> StopEntitiesDetectionJob -> Bool)
-> Eq StopEntitiesDetectionJob
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: StopEntitiesDetectionJob -> StopEntitiesDetectionJob -> Bool
$c/= :: StopEntitiesDetectionJob -> StopEntitiesDetectionJob -> Bool
== :: StopEntitiesDetectionJob -> StopEntitiesDetectionJob -> Bool
$c== :: StopEntitiesDetectionJob -> StopEntitiesDetectionJob -> Bool
Prelude.Eq, ReadPrec [StopEntitiesDetectionJob]
ReadPrec StopEntitiesDetectionJob
Int -> ReadS StopEntitiesDetectionJob
ReadS [StopEntitiesDetectionJob]
(Int -> ReadS StopEntitiesDetectionJob)
-> ReadS [StopEntitiesDetectionJob]
-> ReadPrec StopEntitiesDetectionJob
-> ReadPrec [StopEntitiesDetectionJob]
-> Read StopEntitiesDetectionJob
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [StopEntitiesDetectionJob]
$creadListPrec :: ReadPrec [StopEntitiesDetectionJob]
readPrec :: ReadPrec StopEntitiesDetectionJob
$creadPrec :: ReadPrec StopEntitiesDetectionJob
readList :: ReadS [StopEntitiesDetectionJob]
$creadList :: ReadS [StopEntitiesDetectionJob]
readsPrec :: Int -> ReadS StopEntitiesDetectionJob
$creadsPrec :: Int -> ReadS StopEntitiesDetectionJob
Prelude.Read, Int -> StopEntitiesDetectionJob -> ShowS
[StopEntitiesDetectionJob] -> ShowS
StopEntitiesDetectionJob -> String
(Int -> StopEntitiesDetectionJob -> ShowS)
-> (StopEntitiesDetectionJob -> String)
-> ([StopEntitiesDetectionJob] -> ShowS)
-> Show StopEntitiesDetectionJob
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [StopEntitiesDetectionJob] -> ShowS
$cshowList :: [StopEntitiesDetectionJob] -> ShowS
show :: StopEntitiesDetectionJob -> String
$cshow :: StopEntitiesDetectionJob -> String
showsPrec :: Int -> StopEntitiesDetectionJob -> ShowS
$cshowsPrec :: Int -> StopEntitiesDetectionJob -> ShowS
Prelude.Show, (forall x.
 StopEntitiesDetectionJob -> Rep StopEntitiesDetectionJob x)
-> (forall x.
    Rep StopEntitiesDetectionJob x -> StopEntitiesDetectionJob)
-> Generic StopEntitiesDetectionJob
forall x.
Rep StopEntitiesDetectionJob x -> StopEntitiesDetectionJob
forall x.
StopEntitiesDetectionJob -> Rep StopEntitiesDetectionJob x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep StopEntitiesDetectionJob x -> StopEntitiesDetectionJob
$cfrom :: forall x.
StopEntitiesDetectionJob -> Rep StopEntitiesDetectionJob x
Prelude.Generic)

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

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

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

instance Prelude.NFData StopEntitiesDetectionJob

instance Core.ToHeaders StopEntitiesDetectionJob where
  toHeaders :: StopEntitiesDetectionJob -> ResponseHeaders
toHeaders =
    ResponseHeaders -> StopEntitiesDetectionJob -> 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.StopEntitiesDetectionJob" ::
                          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 StopEntitiesDetectionJob where
  toJSON :: StopEntitiesDetectionJob -> Value
toJSON StopEntitiesDetectionJob' {Text
jobId :: Text
$sel:jobId:StopEntitiesDetectionJob' :: StopEntitiesDetectionJob -> 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 StopEntitiesDetectionJob where
  toPath :: StopEntitiesDetectionJob -> ByteString
toPath = ByteString -> StopEntitiesDetectionJob -> ByteString
forall a b. a -> b -> a
Prelude.const ByteString
"/"

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

-- | /See:/ 'newStopEntitiesDetectionJobResponse' smart constructor.
data StopEntitiesDetectionJobResponse = StopEntitiesDetectionJobResponse'
  { -- | The identifier of the entities detection job to stop.
    StopEntitiesDetectionJobResponse -> Maybe Text
jobId :: Prelude.Maybe Prelude.Text,
    -- | Either @STOP_REQUESTED@ if the job is currently running, or @STOPPED@ if
    -- the job was previously stopped with the @StopEntitiesDetectionJob@
    -- operation.
    StopEntitiesDetectionJobResponse -> Maybe JobStatus
jobStatus :: Prelude.Maybe JobStatus,
    -- | The response's http status code.
    StopEntitiesDetectionJobResponse -> Int
httpStatus :: Prelude.Int
  }
  deriving (StopEntitiesDetectionJobResponse
-> StopEntitiesDetectionJobResponse -> Bool
(StopEntitiesDetectionJobResponse
 -> StopEntitiesDetectionJobResponse -> Bool)
-> (StopEntitiesDetectionJobResponse
    -> StopEntitiesDetectionJobResponse -> Bool)
-> Eq StopEntitiesDetectionJobResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: StopEntitiesDetectionJobResponse
-> StopEntitiesDetectionJobResponse -> Bool
$c/= :: StopEntitiesDetectionJobResponse
-> StopEntitiesDetectionJobResponse -> Bool
== :: StopEntitiesDetectionJobResponse
-> StopEntitiesDetectionJobResponse -> Bool
$c== :: StopEntitiesDetectionJobResponse
-> StopEntitiesDetectionJobResponse -> Bool
Prelude.Eq, ReadPrec [StopEntitiesDetectionJobResponse]
ReadPrec StopEntitiesDetectionJobResponse
Int -> ReadS StopEntitiesDetectionJobResponse
ReadS [StopEntitiesDetectionJobResponse]
(Int -> ReadS StopEntitiesDetectionJobResponse)
-> ReadS [StopEntitiesDetectionJobResponse]
-> ReadPrec StopEntitiesDetectionJobResponse
-> ReadPrec [StopEntitiesDetectionJobResponse]
-> Read StopEntitiesDetectionJobResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [StopEntitiesDetectionJobResponse]
$creadListPrec :: ReadPrec [StopEntitiesDetectionJobResponse]
readPrec :: ReadPrec StopEntitiesDetectionJobResponse
$creadPrec :: ReadPrec StopEntitiesDetectionJobResponse
readList :: ReadS [StopEntitiesDetectionJobResponse]
$creadList :: ReadS [StopEntitiesDetectionJobResponse]
readsPrec :: Int -> ReadS StopEntitiesDetectionJobResponse
$creadsPrec :: Int -> ReadS StopEntitiesDetectionJobResponse
Prelude.Read, Int -> StopEntitiesDetectionJobResponse -> ShowS
[StopEntitiesDetectionJobResponse] -> ShowS
StopEntitiesDetectionJobResponse -> String
(Int -> StopEntitiesDetectionJobResponse -> ShowS)
-> (StopEntitiesDetectionJobResponse -> String)
-> ([StopEntitiesDetectionJobResponse] -> ShowS)
-> Show StopEntitiesDetectionJobResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [StopEntitiesDetectionJobResponse] -> ShowS
$cshowList :: [StopEntitiesDetectionJobResponse] -> ShowS
show :: StopEntitiesDetectionJobResponse -> String
$cshow :: StopEntitiesDetectionJobResponse -> String
showsPrec :: Int -> StopEntitiesDetectionJobResponse -> ShowS
$cshowsPrec :: Int -> StopEntitiesDetectionJobResponse -> ShowS
Prelude.Show, (forall x.
 StopEntitiesDetectionJobResponse
 -> Rep StopEntitiesDetectionJobResponse x)
-> (forall x.
    Rep StopEntitiesDetectionJobResponse x
    -> StopEntitiesDetectionJobResponse)
-> Generic StopEntitiesDetectionJobResponse
forall x.
Rep StopEntitiesDetectionJobResponse x
-> StopEntitiesDetectionJobResponse
forall x.
StopEntitiesDetectionJobResponse
-> Rep StopEntitiesDetectionJobResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep StopEntitiesDetectionJobResponse x
-> StopEntitiesDetectionJobResponse
$cfrom :: forall x.
StopEntitiesDetectionJobResponse
-> Rep StopEntitiesDetectionJobResponse x
Prelude.Generic)

-- |
-- Create a value of 'StopEntitiesDetectionJobResponse' 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', 'stopEntitiesDetectionJobResponse_jobId' - The identifier of the entities detection job to stop.
--
-- 'jobStatus', 'stopEntitiesDetectionJobResponse_jobStatus' - Either @STOP_REQUESTED@ if the job is currently running, or @STOPPED@ if
-- the job was previously stopped with the @StopEntitiesDetectionJob@
-- operation.
--
-- 'httpStatus', 'stopEntitiesDetectionJobResponse_httpStatus' - The response's http status code.
newStopEntitiesDetectionJobResponse ::
  -- | 'httpStatus'
  Prelude.Int ->
  StopEntitiesDetectionJobResponse
newStopEntitiesDetectionJobResponse :: Int -> StopEntitiesDetectionJobResponse
newStopEntitiesDetectionJobResponse Int
pHttpStatus_ =
  StopEntitiesDetectionJobResponse' :: Maybe Text
-> Maybe JobStatus -> Int -> StopEntitiesDetectionJobResponse
StopEntitiesDetectionJobResponse'
    { $sel:jobId:StopEntitiesDetectionJobResponse' :: Maybe Text
jobId =
        Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:jobStatus:StopEntitiesDetectionJobResponse' :: Maybe JobStatus
jobStatus = Maybe JobStatus
forall a. Maybe a
Prelude.Nothing,
      $sel:httpStatus:StopEntitiesDetectionJobResponse' :: Int
httpStatus = Int
pHttpStatus_
    }

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

-- | Either @STOP_REQUESTED@ if the job is currently running, or @STOPPED@ if
-- the job was previously stopped with the @StopEntitiesDetectionJob@
-- operation.
stopEntitiesDetectionJobResponse_jobStatus :: Lens.Lens' StopEntitiesDetectionJobResponse (Prelude.Maybe JobStatus)
stopEntitiesDetectionJobResponse_jobStatus :: (Maybe JobStatus -> f (Maybe JobStatus))
-> StopEntitiesDetectionJobResponse
-> f StopEntitiesDetectionJobResponse
stopEntitiesDetectionJobResponse_jobStatus = (StopEntitiesDetectionJobResponse -> Maybe JobStatus)
-> (StopEntitiesDetectionJobResponse
    -> Maybe JobStatus -> StopEntitiesDetectionJobResponse)
-> Lens
     StopEntitiesDetectionJobResponse
     StopEntitiesDetectionJobResponse
     (Maybe JobStatus)
     (Maybe JobStatus)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\StopEntitiesDetectionJobResponse' {Maybe JobStatus
jobStatus :: Maybe JobStatus
$sel:jobStatus:StopEntitiesDetectionJobResponse' :: StopEntitiesDetectionJobResponse -> Maybe JobStatus
jobStatus} -> Maybe JobStatus
jobStatus) (\s :: StopEntitiesDetectionJobResponse
s@StopEntitiesDetectionJobResponse' {} Maybe JobStatus
a -> StopEntitiesDetectionJobResponse
s {$sel:jobStatus:StopEntitiesDetectionJobResponse' :: Maybe JobStatus
jobStatus = Maybe JobStatus
a} :: StopEntitiesDetectionJobResponse)

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

instance
  Prelude.NFData
    StopEntitiesDetectionJobResponse