{-# 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.MachineLearning.DeleteRealtimeEndpoint
-- 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)
--
-- Deletes a real time endpoint of an @MLModel@.
module Amazonka.MachineLearning.DeleteRealtimeEndpoint
  ( -- * Creating a Request
    DeleteRealtimeEndpoint (..),
    newDeleteRealtimeEndpoint,

    -- * Request Lenses
    deleteRealtimeEndpoint_mLModelId,

    -- * Destructuring the Response
    DeleteRealtimeEndpointResponse (..),
    newDeleteRealtimeEndpointResponse,

    -- * Response Lenses
    deleteRealtimeEndpointResponse_realtimeEndpointInfo,
    deleteRealtimeEndpointResponse_mLModelId,
    deleteRealtimeEndpointResponse_httpStatus,
  )
where

import qualified Amazonka.Core as Core
import qualified Amazonka.Lens as Lens
import Amazonka.MachineLearning.Types
import qualified Amazonka.Prelude as Prelude
import qualified Amazonka.Request as Request
import qualified Amazonka.Response as Response

-- | /See:/ 'newDeleteRealtimeEndpoint' smart constructor.
data DeleteRealtimeEndpoint = DeleteRealtimeEndpoint'
  { -- | The ID assigned to the @MLModel@ during creation.
    DeleteRealtimeEndpoint -> Text
mLModelId :: Prelude.Text
  }
  deriving (DeleteRealtimeEndpoint -> DeleteRealtimeEndpoint -> Bool
(DeleteRealtimeEndpoint -> DeleteRealtimeEndpoint -> Bool)
-> (DeleteRealtimeEndpoint -> DeleteRealtimeEndpoint -> Bool)
-> Eq DeleteRealtimeEndpoint
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: DeleteRealtimeEndpoint -> DeleteRealtimeEndpoint -> Bool
$c/= :: DeleteRealtimeEndpoint -> DeleteRealtimeEndpoint -> Bool
== :: DeleteRealtimeEndpoint -> DeleteRealtimeEndpoint -> Bool
$c== :: DeleteRealtimeEndpoint -> DeleteRealtimeEndpoint -> Bool
Prelude.Eq, ReadPrec [DeleteRealtimeEndpoint]
ReadPrec DeleteRealtimeEndpoint
Int -> ReadS DeleteRealtimeEndpoint
ReadS [DeleteRealtimeEndpoint]
(Int -> ReadS DeleteRealtimeEndpoint)
-> ReadS [DeleteRealtimeEndpoint]
-> ReadPrec DeleteRealtimeEndpoint
-> ReadPrec [DeleteRealtimeEndpoint]
-> Read DeleteRealtimeEndpoint
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [DeleteRealtimeEndpoint]
$creadListPrec :: ReadPrec [DeleteRealtimeEndpoint]
readPrec :: ReadPrec DeleteRealtimeEndpoint
$creadPrec :: ReadPrec DeleteRealtimeEndpoint
readList :: ReadS [DeleteRealtimeEndpoint]
$creadList :: ReadS [DeleteRealtimeEndpoint]
readsPrec :: Int -> ReadS DeleteRealtimeEndpoint
$creadsPrec :: Int -> ReadS DeleteRealtimeEndpoint
Prelude.Read, Int -> DeleteRealtimeEndpoint -> ShowS
[DeleteRealtimeEndpoint] -> ShowS
DeleteRealtimeEndpoint -> String
(Int -> DeleteRealtimeEndpoint -> ShowS)
-> (DeleteRealtimeEndpoint -> String)
-> ([DeleteRealtimeEndpoint] -> ShowS)
-> Show DeleteRealtimeEndpoint
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [DeleteRealtimeEndpoint] -> ShowS
$cshowList :: [DeleteRealtimeEndpoint] -> ShowS
show :: DeleteRealtimeEndpoint -> String
$cshow :: DeleteRealtimeEndpoint -> String
showsPrec :: Int -> DeleteRealtimeEndpoint -> ShowS
$cshowsPrec :: Int -> DeleteRealtimeEndpoint -> ShowS
Prelude.Show, (forall x. DeleteRealtimeEndpoint -> Rep DeleteRealtimeEndpoint x)
-> (forall x.
    Rep DeleteRealtimeEndpoint x -> DeleteRealtimeEndpoint)
-> Generic DeleteRealtimeEndpoint
forall x. Rep DeleteRealtimeEndpoint x -> DeleteRealtimeEndpoint
forall x. DeleteRealtimeEndpoint -> Rep DeleteRealtimeEndpoint x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep DeleteRealtimeEndpoint x -> DeleteRealtimeEndpoint
$cfrom :: forall x. DeleteRealtimeEndpoint -> Rep DeleteRealtimeEndpoint x
Prelude.Generic)

-- |
-- Create a value of 'DeleteRealtimeEndpoint' 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:
--
-- 'mLModelId', 'deleteRealtimeEndpoint_mLModelId' - The ID assigned to the @MLModel@ during creation.
newDeleteRealtimeEndpoint ::
  -- | 'mLModelId'
  Prelude.Text ->
  DeleteRealtimeEndpoint
newDeleteRealtimeEndpoint :: Text -> DeleteRealtimeEndpoint
newDeleteRealtimeEndpoint Text
pMLModelId_ =
  DeleteRealtimeEndpoint' :: Text -> DeleteRealtimeEndpoint
DeleteRealtimeEndpoint' {$sel:mLModelId:DeleteRealtimeEndpoint' :: Text
mLModelId = Text
pMLModelId_}

-- | The ID assigned to the @MLModel@ during creation.
deleteRealtimeEndpoint_mLModelId :: Lens.Lens' DeleteRealtimeEndpoint Prelude.Text
deleteRealtimeEndpoint_mLModelId :: (Text -> f Text)
-> DeleteRealtimeEndpoint -> f DeleteRealtimeEndpoint
deleteRealtimeEndpoint_mLModelId = (DeleteRealtimeEndpoint -> Text)
-> (DeleteRealtimeEndpoint -> Text -> DeleteRealtimeEndpoint)
-> Lens DeleteRealtimeEndpoint DeleteRealtimeEndpoint Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DeleteRealtimeEndpoint' {Text
mLModelId :: Text
$sel:mLModelId:DeleteRealtimeEndpoint' :: DeleteRealtimeEndpoint -> Text
mLModelId} -> Text
mLModelId) (\s :: DeleteRealtimeEndpoint
s@DeleteRealtimeEndpoint' {} Text
a -> DeleteRealtimeEndpoint
s {$sel:mLModelId:DeleteRealtimeEndpoint' :: Text
mLModelId = Text
a} :: DeleteRealtimeEndpoint)

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

instance Prelude.NFData DeleteRealtimeEndpoint

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

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

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

-- | Represents the output of an @DeleteRealtimeEndpoint@ operation.
--
-- The result contains the @MLModelId@ and the endpoint information for the
-- @MLModel@.
--
-- /See:/ 'newDeleteRealtimeEndpointResponse' smart constructor.
data DeleteRealtimeEndpointResponse = DeleteRealtimeEndpointResponse'
  { -- | The endpoint information of the @MLModel@
    DeleteRealtimeEndpointResponse -> Maybe RealtimeEndpointInfo
realtimeEndpointInfo :: Prelude.Maybe RealtimeEndpointInfo,
    -- | A user-supplied ID that uniquely identifies the @MLModel@. This value
    -- should be identical to the value of the @MLModelId@ in the request.
    DeleteRealtimeEndpointResponse -> Maybe Text
mLModelId :: Prelude.Maybe Prelude.Text,
    -- | The response's http status code.
    DeleteRealtimeEndpointResponse -> Int
httpStatus :: Prelude.Int
  }
  deriving (DeleteRealtimeEndpointResponse
-> DeleteRealtimeEndpointResponse -> Bool
(DeleteRealtimeEndpointResponse
 -> DeleteRealtimeEndpointResponse -> Bool)
-> (DeleteRealtimeEndpointResponse
    -> DeleteRealtimeEndpointResponse -> Bool)
-> Eq DeleteRealtimeEndpointResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: DeleteRealtimeEndpointResponse
-> DeleteRealtimeEndpointResponse -> Bool
$c/= :: DeleteRealtimeEndpointResponse
-> DeleteRealtimeEndpointResponse -> Bool
== :: DeleteRealtimeEndpointResponse
-> DeleteRealtimeEndpointResponse -> Bool
$c== :: DeleteRealtimeEndpointResponse
-> DeleteRealtimeEndpointResponse -> Bool
Prelude.Eq, ReadPrec [DeleteRealtimeEndpointResponse]
ReadPrec DeleteRealtimeEndpointResponse
Int -> ReadS DeleteRealtimeEndpointResponse
ReadS [DeleteRealtimeEndpointResponse]
(Int -> ReadS DeleteRealtimeEndpointResponse)
-> ReadS [DeleteRealtimeEndpointResponse]
-> ReadPrec DeleteRealtimeEndpointResponse
-> ReadPrec [DeleteRealtimeEndpointResponse]
-> Read DeleteRealtimeEndpointResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [DeleteRealtimeEndpointResponse]
$creadListPrec :: ReadPrec [DeleteRealtimeEndpointResponse]
readPrec :: ReadPrec DeleteRealtimeEndpointResponse
$creadPrec :: ReadPrec DeleteRealtimeEndpointResponse
readList :: ReadS [DeleteRealtimeEndpointResponse]
$creadList :: ReadS [DeleteRealtimeEndpointResponse]
readsPrec :: Int -> ReadS DeleteRealtimeEndpointResponse
$creadsPrec :: Int -> ReadS DeleteRealtimeEndpointResponse
Prelude.Read, Int -> DeleteRealtimeEndpointResponse -> ShowS
[DeleteRealtimeEndpointResponse] -> ShowS
DeleteRealtimeEndpointResponse -> String
(Int -> DeleteRealtimeEndpointResponse -> ShowS)
-> (DeleteRealtimeEndpointResponse -> String)
-> ([DeleteRealtimeEndpointResponse] -> ShowS)
-> Show DeleteRealtimeEndpointResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [DeleteRealtimeEndpointResponse] -> ShowS
$cshowList :: [DeleteRealtimeEndpointResponse] -> ShowS
show :: DeleteRealtimeEndpointResponse -> String
$cshow :: DeleteRealtimeEndpointResponse -> String
showsPrec :: Int -> DeleteRealtimeEndpointResponse -> ShowS
$cshowsPrec :: Int -> DeleteRealtimeEndpointResponse -> ShowS
Prelude.Show, (forall x.
 DeleteRealtimeEndpointResponse
 -> Rep DeleteRealtimeEndpointResponse x)
-> (forall x.
    Rep DeleteRealtimeEndpointResponse x
    -> DeleteRealtimeEndpointResponse)
-> Generic DeleteRealtimeEndpointResponse
forall x.
Rep DeleteRealtimeEndpointResponse x
-> DeleteRealtimeEndpointResponse
forall x.
DeleteRealtimeEndpointResponse
-> Rep DeleteRealtimeEndpointResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep DeleteRealtimeEndpointResponse x
-> DeleteRealtimeEndpointResponse
$cfrom :: forall x.
DeleteRealtimeEndpointResponse
-> Rep DeleteRealtimeEndpointResponse x
Prelude.Generic)

-- |
-- Create a value of 'DeleteRealtimeEndpointResponse' 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:
--
-- 'realtimeEndpointInfo', 'deleteRealtimeEndpointResponse_realtimeEndpointInfo' - The endpoint information of the @MLModel@
--
-- 'mLModelId', 'deleteRealtimeEndpointResponse_mLModelId' - A user-supplied ID that uniquely identifies the @MLModel@. This value
-- should be identical to the value of the @MLModelId@ in the request.
--
-- 'httpStatus', 'deleteRealtimeEndpointResponse_httpStatus' - The response's http status code.
newDeleteRealtimeEndpointResponse ::
  -- | 'httpStatus'
  Prelude.Int ->
  DeleteRealtimeEndpointResponse
newDeleteRealtimeEndpointResponse :: Int -> DeleteRealtimeEndpointResponse
newDeleteRealtimeEndpointResponse Int
pHttpStatus_ =
  DeleteRealtimeEndpointResponse' :: Maybe RealtimeEndpointInfo
-> Maybe Text -> Int -> DeleteRealtimeEndpointResponse
DeleteRealtimeEndpointResponse'
    { $sel:realtimeEndpointInfo:DeleteRealtimeEndpointResponse' :: Maybe RealtimeEndpointInfo
realtimeEndpointInfo =
        Maybe RealtimeEndpointInfo
forall a. Maybe a
Prelude.Nothing,
      $sel:mLModelId:DeleteRealtimeEndpointResponse' :: Maybe Text
mLModelId = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:httpStatus:DeleteRealtimeEndpointResponse' :: Int
httpStatus = Int
pHttpStatus_
    }

-- | The endpoint information of the @MLModel@
deleteRealtimeEndpointResponse_realtimeEndpointInfo :: Lens.Lens' DeleteRealtimeEndpointResponse (Prelude.Maybe RealtimeEndpointInfo)
deleteRealtimeEndpointResponse_realtimeEndpointInfo :: (Maybe RealtimeEndpointInfo -> f (Maybe RealtimeEndpointInfo))
-> DeleteRealtimeEndpointResponse
-> f DeleteRealtimeEndpointResponse
deleteRealtimeEndpointResponse_realtimeEndpointInfo = (DeleteRealtimeEndpointResponse -> Maybe RealtimeEndpointInfo)
-> (DeleteRealtimeEndpointResponse
    -> Maybe RealtimeEndpointInfo -> DeleteRealtimeEndpointResponse)
-> Lens
     DeleteRealtimeEndpointResponse
     DeleteRealtimeEndpointResponse
     (Maybe RealtimeEndpointInfo)
     (Maybe RealtimeEndpointInfo)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DeleteRealtimeEndpointResponse' {Maybe RealtimeEndpointInfo
realtimeEndpointInfo :: Maybe RealtimeEndpointInfo
$sel:realtimeEndpointInfo:DeleteRealtimeEndpointResponse' :: DeleteRealtimeEndpointResponse -> Maybe RealtimeEndpointInfo
realtimeEndpointInfo} -> Maybe RealtimeEndpointInfo
realtimeEndpointInfo) (\s :: DeleteRealtimeEndpointResponse
s@DeleteRealtimeEndpointResponse' {} Maybe RealtimeEndpointInfo
a -> DeleteRealtimeEndpointResponse
s {$sel:realtimeEndpointInfo:DeleteRealtimeEndpointResponse' :: Maybe RealtimeEndpointInfo
realtimeEndpointInfo = Maybe RealtimeEndpointInfo
a} :: DeleteRealtimeEndpointResponse)

-- | A user-supplied ID that uniquely identifies the @MLModel@. This value
-- should be identical to the value of the @MLModelId@ in the request.
deleteRealtimeEndpointResponse_mLModelId :: Lens.Lens' DeleteRealtimeEndpointResponse (Prelude.Maybe Prelude.Text)
deleteRealtimeEndpointResponse_mLModelId :: (Maybe Text -> f (Maybe Text))
-> DeleteRealtimeEndpointResponse
-> f DeleteRealtimeEndpointResponse
deleteRealtimeEndpointResponse_mLModelId = (DeleteRealtimeEndpointResponse -> Maybe Text)
-> (DeleteRealtimeEndpointResponse
    -> Maybe Text -> DeleteRealtimeEndpointResponse)
-> Lens
     DeleteRealtimeEndpointResponse
     DeleteRealtimeEndpointResponse
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DeleteRealtimeEndpointResponse' {Maybe Text
mLModelId :: Maybe Text
$sel:mLModelId:DeleteRealtimeEndpointResponse' :: DeleteRealtimeEndpointResponse -> Maybe Text
mLModelId} -> Maybe Text
mLModelId) (\s :: DeleteRealtimeEndpointResponse
s@DeleteRealtimeEndpointResponse' {} Maybe Text
a -> DeleteRealtimeEndpointResponse
s {$sel:mLModelId:DeleteRealtimeEndpointResponse' :: Maybe Text
mLModelId = Maybe Text
a} :: DeleteRealtimeEndpointResponse)

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

instance
  Prelude.NFData
    DeleteRealtimeEndpointResponse