{-# 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.LookoutEquipment.StopInferenceScheduler
-- 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 inference scheduler.
module Amazonka.LookoutEquipment.StopInferenceScheduler
  ( -- * Creating a Request
    StopInferenceScheduler (..),
    newStopInferenceScheduler,

    -- * Request Lenses
    stopInferenceScheduler_inferenceSchedulerName,

    -- * Destructuring the Response
    StopInferenceSchedulerResponse (..),
    newStopInferenceSchedulerResponse,

    -- * Response Lenses
    stopInferenceSchedulerResponse_status,
    stopInferenceSchedulerResponse_modelArn,
    stopInferenceSchedulerResponse_modelName,
    stopInferenceSchedulerResponse_inferenceSchedulerArn,
    stopInferenceSchedulerResponse_inferenceSchedulerName,
    stopInferenceSchedulerResponse_httpStatus,
  )
where

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

-- | /See:/ 'newStopInferenceScheduler' smart constructor.
data StopInferenceScheduler = StopInferenceScheduler'
  { -- | The name of the inference scheduler to be stopped.
    StopInferenceScheduler -> Text
inferenceSchedulerName :: Prelude.Text
  }
  deriving (StopInferenceScheduler -> StopInferenceScheduler -> Bool
(StopInferenceScheduler -> StopInferenceScheduler -> Bool)
-> (StopInferenceScheduler -> StopInferenceScheduler -> Bool)
-> Eq StopInferenceScheduler
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: StopInferenceScheduler -> StopInferenceScheduler -> Bool
$c/= :: StopInferenceScheduler -> StopInferenceScheduler -> Bool
== :: StopInferenceScheduler -> StopInferenceScheduler -> Bool
$c== :: StopInferenceScheduler -> StopInferenceScheduler -> Bool
Prelude.Eq, ReadPrec [StopInferenceScheduler]
ReadPrec StopInferenceScheduler
Int -> ReadS StopInferenceScheduler
ReadS [StopInferenceScheduler]
(Int -> ReadS StopInferenceScheduler)
-> ReadS [StopInferenceScheduler]
-> ReadPrec StopInferenceScheduler
-> ReadPrec [StopInferenceScheduler]
-> Read StopInferenceScheduler
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [StopInferenceScheduler]
$creadListPrec :: ReadPrec [StopInferenceScheduler]
readPrec :: ReadPrec StopInferenceScheduler
$creadPrec :: ReadPrec StopInferenceScheduler
readList :: ReadS [StopInferenceScheduler]
$creadList :: ReadS [StopInferenceScheduler]
readsPrec :: Int -> ReadS StopInferenceScheduler
$creadsPrec :: Int -> ReadS StopInferenceScheduler
Prelude.Read, Int -> StopInferenceScheduler -> ShowS
[StopInferenceScheduler] -> ShowS
StopInferenceScheduler -> String
(Int -> StopInferenceScheduler -> ShowS)
-> (StopInferenceScheduler -> String)
-> ([StopInferenceScheduler] -> ShowS)
-> Show StopInferenceScheduler
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [StopInferenceScheduler] -> ShowS
$cshowList :: [StopInferenceScheduler] -> ShowS
show :: StopInferenceScheduler -> String
$cshow :: StopInferenceScheduler -> String
showsPrec :: Int -> StopInferenceScheduler -> ShowS
$cshowsPrec :: Int -> StopInferenceScheduler -> ShowS
Prelude.Show, (forall x. StopInferenceScheduler -> Rep StopInferenceScheduler x)
-> (forall x.
    Rep StopInferenceScheduler x -> StopInferenceScheduler)
-> Generic StopInferenceScheduler
forall x. Rep StopInferenceScheduler x -> StopInferenceScheduler
forall x. StopInferenceScheduler -> Rep StopInferenceScheduler x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep StopInferenceScheduler x -> StopInferenceScheduler
$cfrom :: forall x. StopInferenceScheduler -> Rep StopInferenceScheduler x
Prelude.Generic)

-- |
-- Create a value of 'StopInferenceScheduler' 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:
--
-- 'inferenceSchedulerName', 'stopInferenceScheduler_inferenceSchedulerName' - The name of the inference scheduler to be stopped.
newStopInferenceScheduler ::
  -- | 'inferenceSchedulerName'
  Prelude.Text ->
  StopInferenceScheduler
newStopInferenceScheduler :: Text -> StopInferenceScheduler
newStopInferenceScheduler Text
pInferenceSchedulerName_ =
  StopInferenceScheduler' :: Text -> StopInferenceScheduler
StopInferenceScheduler'
    { $sel:inferenceSchedulerName:StopInferenceScheduler' :: Text
inferenceSchedulerName =
        Text
pInferenceSchedulerName_
    }

-- | The name of the inference scheduler to be stopped.
stopInferenceScheduler_inferenceSchedulerName :: Lens.Lens' StopInferenceScheduler Prelude.Text
stopInferenceScheduler_inferenceSchedulerName :: (Text -> f Text)
-> StopInferenceScheduler -> f StopInferenceScheduler
stopInferenceScheduler_inferenceSchedulerName = (StopInferenceScheduler -> Text)
-> (StopInferenceScheduler -> Text -> StopInferenceScheduler)
-> Lens StopInferenceScheduler StopInferenceScheduler Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\StopInferenceScheduler' {Text
inferenceSchedulerName :: Text
$sel:inferenceSchedulerName:StopInferenceScheduler' :: StopInferenceScheduler -> Text
inferenceSchedulerName} -> Text
inferenceSchedulerName) (\s :: StopInferenceScheduler
s@StopInferenceScheduler' {} Text
a -> StopInferenceScheduler
s {$sel:inferenceSchedulerName:StopInferenceScheduler' :: Text
inferenceSchedulerName = Text
a} :: StopInferenceScheduler)

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

instance Prelude.NFData StopInferenceScheduler

instance Core.ToHeaders StopInferenceScheduler where
  toHeaders :: StopInferenceScheduler -> ResponseHeaders
toHeaders =
    ResponseHeaders -> StopInferenceScheduler -> 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
"AWSLookoutEquipmentFrontendService.StopInferenceScheduler" ::
                          Prelude.ByteString
                      ),
            HeaderName
"Content-Type"
              HeaderName -> ByteString -> ResponseHeaders
forall a. ToHeader a => HeaderName -> a -> ResponseHeaders
Core.=# ( ByteString
"application/x-amz-json-1.0" ::
                          Prelude.ByteString
                      )
          ]
      )

instance Core.ToJSON StopInferenceScheduler where
  toJSON :: StopInferenceScheduler -> Value
toJSON StopInferenceScheduler' {Text
inferenceSchedulerName :: Text
$sel:inferenceSchedulerName:StopInferenceScheduler' :: StopInferenceScheduler -> 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
"InferenceSchedulerName"
                  Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= Text
inferenceSchedulerName
              )
          ]
      )

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

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

-- | /See:/ 'newStopInferenceSchedulerResponse' smart constructor.
data StopInferenceSchedulerResponse = StopInferenceSchedulerResponse'
  { -- | Indicates the status of the inference scheduler.
    StopInferenceSchedulerResponse -> Maybe InferenceSchedulerStatus
status :: Prelude.Maybe InferenceSchedulerStatus,
    -- | The Amazon Resource Name (ARN) of the ML model used by the inference
    -- scheduler being stopped.
    StopInferenceSchedulerResponse -> Maybe Text
modelArn :: Prelude.Maybe Prelude.Text,
    -- | The name of the ML model used by the inference scheduler being stopped.
    StopInferenceSchedulerResponse -> Maybe Text
modelName :: Prelude.Maybe Prelude.Text,
    -- | The Amazon Resource Name (ARN) of the inference schedule being stopped.
    StopInferenceSchedulerResponse -> Maybe Text
inferenceSchedulerArn :: Prelude.Maybe Prelude.Text,
    -- | The name of the inference scheduler being stopped.
    StopInferenceSchedulerResponse -> Maybe Text
inferenceSchedulerName :: Prelude.Maybe Prelude.Text,
    -- | The response's http status code.
    StopInferenceSchedulerResponse -> Int
httpStatus :: Prelude.Int
  }
  deriving (StopInferenceSchedulerResponse
-> StopInferenceSchedulerResponse -> Bool
(StopInferenceSchedulerResponse
 -> StopInferenceSchedulerResponse -> Bool)
-> (StopInferenceSchedulerResponse
    -> StopInferenceSchedulerResponse -> Bool)
-> Eq StopInferenceSchedulerResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: StopInferenceSchedulerResponse
-> StopInferenceSchedulerResponse -> Bool
$c/= :: StopInferenceSchedulerResponse
-> StopInferenceSchedulerResponse -> Bool
== :: StopInferenceSchedulerResponse
-> StopInferenceSchedulerResponse -> Bool
$c== :: StopInferenceSchedulerResponse
-> StopInferenceSchedulerResponse -> Bool
Prelude.Eq, ReadPrec [StopInferenceSchedulerResponse]
ReadPrec StopInferenceSchedulerResponse
Int -> ReadS StopInferenceSchedulerResponse
ReadS [StopInferenceSchedulerResponse]
(Int -> ReadS StopInferenceSchedulerResponse)
-> ReadS [StopInferenceSchedulerResponse]
-> ReadPrec StopInferenceSchedulerResponse
-> ReadPrec [StopInferenceSchedulerResponse]
-> Read StopInferenceSchedulerResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [StopInferenceSchedulerResponse]
$creadListPrec :: ReadPrec [StopInferenceSchedulerResponse]
readPrec :: ReadPrec StopInferenceSchedulerResponse
$creadPrec :: ReadPrec StopInferenceSchedulerResponse
readList :: ReadS [StopInferenceSchedulerResponse]
$creadList :: ReadS [StopInferenceSchedulerResponse]
readsPrec :: Int -> ReadS StopInferenceSchedulerResponse
$creadsPrec :: Int -> ReadS StopInferenceSchedulerResponse
Prelude.Read, Int -> StopInferenceSchedulerResponse -> ShowS
[StopInferenceSchedulerResponse] -> ShowS
StopInferenceSchedulerResponse -> String
(Int -> StopInferenceSchedulerResponse -> ShowS)
-> (StopInferenceSchedulerResponse -> String)
-> ([StopInferenceSchedulerResponse] -> ShowS)
-> Show StopInferenceSchedulerResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [StopInferenceSchedulerResponse] -> ShowS
$cshowList :: [StopInferenceSchedulerResponse] -> ShowS
show :: StopInferenceSchedulerResponse -> String
$cshow :: StopInferenceSchedulerResponse -> String
showsPrec :: Int -> StopInferenceSchedulerResponse -> ShowS
$cshowsPrec :: Int -> StopInferenceSchedulerResponse -> ShowS
Prelude.Show, (forall x.
 StopInferenceSchedulerResponse
 -> Rep StopInferenceSchedulerResponse x)
-> (forall x.
    Rep StopInferenceSchedulerResponse x
    -> StopInferenceSchedulerResponse)
-> Generic StopInferenceSchedulerResponse
forall x.
Rep StopInferenceSchedulerResponse x
-> StopInferenceSchedulerResponse
forall x.
StopInferenceSchedulerResponse
-> Rep StopInferenceSchedulerResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep StopInferenceSchedulerResponse x
-> StopInferenceSchedulerResponse
$cfrom :: forall x.
StopInferenceSchedulerResponse
-> Rep StopInferenceSchedulerResponse x
Prelude.Generic)

-- |
-- Create a value of 'StopInferenceSchedulerResponse' 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:
--
-- 'status', 'stopInferenceSchedulerResponse_status' - Indicates the status of the inference scheduler.
--
-- 'modelArn', 'stopInferenceSchedulerResponse_modelArn' - The Amazon Resource Name (ARN) of the ML model used by the inference
-- scheduler being stopped.
--
-- 'modelName', 'stopInferenceSchedulerResponse_modelName' - The name of the ML model used by the inference scheduler being stopped.
--
-- 'inferenceSchedulerArn', 'stopInferenceSchedulerResponse_inferenceSchedulerArn' - The Amazon Resource Name (ARN) of the inference schedule being stopped.
--
-- 'inferenceSchedulerName', 'stopInferenceSchedulerResponse_inferenceSchedulerName' - The name of the inference scheduler being stopped.
--
-- 'httpStatus', 'stopInferenceSchedulerResponse_httpStatus' - The response's http status code.
newStopInferenceSchedulerResponse ::
  -- | 'httpStatus'
  Prelude.Int ->
  StopInferenceSchedulerResponse
newStopInferenceSchedulerResponse :: Int -> StopInferenceSchedulerResponse
newStopInferenceSchedulerResponse Int
pHttpStatus_ =
  StopInferenceSchedulerResponse' :: Maybe InferenceSchedulerStatus
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Int
-> StopInferenceSchedulerResponse
StopInferenceSchedulerResponse'
    { $sel:status:StopInferenceSchedulerResponse' :: Maybe InferenceSchedulerStatus
status =
        Maybe InferenceSchedulerStatus
forall a. Maybe a
Prelude.Nothing,
      $sel:modelArn:StopInferenceSchedulerResponse' :: Maybe Text
modelArn = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:modelName:StopInferenceSchedulerResponse' :: Maybe Text
modelName = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:inferenceSchedulerArn:StopInferenceSchedulerResponse' :: Maybe Text
inferenceSchedulerArn = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:inferenceSchedulerName:StopInferenceSchedulerResponse' :: Maybe Text
inferenceSchedulerName = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:httpStatus:StopInferenceSchedulerResponse' :: Int
httpStatus = Int
pHttpStatus_
    }

-- | Indicates the status of the inference scheduler.
stopInferenceSchedulerResponse_status :: Lens.Lens' StopInferenceSchedulerResponse (Prelude.Maybe InferenceSchedulerStatus)
stopInferenceSchedulerResponse_status :: (Maybe InferenceSchedulerStatus
 -> f (Maybe InferenceSchedulerStatus))
-> StopInferenceSchedulerResponse
-> f StopInferenceSchedulerResponse
stopInferenceSchedulerResponse_status = (StopInferenceSchedulerResponse -> Maybe InferenceSchedulerStatus)
-> (StopInferenceSchedulerResponse
    -> Maybe InferenceSchedulerStatus
    -> StopInferenceSchedulerResponse)
-> Lens
     StopInferenceSchedulerResponse
     StopInferenceSchedulerResponse
     (Maybe InferenceSchedulerStatus)
     (Maybe InferenceSchedulerStatus)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\StopInferenceSchedulerResponse' {Maybe InferenceSchedulerStatus
status :: Maybe InferenceSchedulerStatus
$sel:status:StopInferenceSchedulerResponse' :: StopInferenceSchedulerResponse -> Maybe InferenceSchedulerStatus
status} -> Maybe InferenceSchedulerStatus
status) (\s :: StopInferenceSchedulerResponse
s@StopInferenceSchedulerResponse' {} Maybe InferenceSchedulerStatus
a -> StopInferenceSchedulerResponse
s {$sel:status:StopInferenceSchedulerResponse' :: Maybe InferenceSchedulerStatus
status = Maybe InferenceSchedulerStatus
a} :: StopInferenceSchedulerResponse)

-- | The Amazon Resource Name (ARN) of the ML model used by the inference
-- scheduler being stopped.
stopInferenceSchedulerResponse_modelArn :: Lens.Lens' StopInferenceSchedulerResponse (Prelude.Maybe Prelude.Text)
stopInferenceSchedulerResponse_modelArn :: (Maybe Text -> f (Maybe Text))
-> StopInferenceSchedulerResponse
-> f StopInferenceSchedulerResponse
stopInferenceSchedulerResponse_modelArn = (StopInferenceSchedulerResponse -> Maybe Text)
-> (StopInferenceSchedulerResponse
    -> Maybe Text -> StopInferenceSchedulerResponse)
-> Lens
     StopInferenceSchedulerResponse
     StopInferenceSchedulerResponse
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\StopInferenceSchedulerResponse' {Maybe Text
modelArn :: Maybe Text
$sel:modelArn:StopInferenceSchedulerResponse' :: StopInferenceSchedulerResponse -> Maybe Text
modelArn} -> Maybe Text
modelArn) (\s :: StopInferenceSchedulerResponse
s@StopInferenceSchedulerResponse' {} Maybe Text
a -> StopInferenceSchedulerResponse
s {$sel:modelArn:StopInferenceSchedulerResponse' :: Maybe Text
modelArn = Maybe Text
a} :: StopInferenceSchedulerResponse)

-- | The name of the ML model used by the inference scheduler being stopped.
stopInferenceSchedulerResponse_modelName :: Lens.Lens' StopInferenceSchedulerResponse (Prelude.Maybe Prelude.Text)
stopInferenceSchedulerResponse_modelName :: (Maybe Text -> f (Maybe Text))
-> StopInferenceSchedulerResponse
-> f StopInferenceSchedulerResponse
stopInferenceSchedulerResponse_modelName = (StopInferenceSchedulerResponse -> Maybe Text)
-> (StopInferenceSchedulerResponse
    -> Maybe Text -> StopInferenceSchedulerResponse)
-> Lens
     StopInferenceSchedulerResponse
     StopInferenceSchedulerResponse
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\StopInferenceSchedulerResponse' {Maybe Text
modelName :: Maybe Text
$sel:modelName:StopInferenceSchedulerResponse' :: StopInferenceSchedulerResponse -> Maybe Text
modelName} -> Maybe Text
modelName) (\s :: StopInferenceSchedulerResponse
s@StopInferenceSchedulerResponse' {} Maybe Text
a -> StopInferenceSchedulerResponse
s {$sel:modelName:StopInferenceSchedulerResponse' :: Maybe Text
modelName = Maybe Text
a} :: StopInferenceSchedulerResponse)

-- | The Amazon Resource Name (ARN) of the inference schedule being stopped.
stopInferenceSchedulerResponse_inferenceSchedulerArn :: Lens.Lens' StopInferenceSchedulerResponse (Prelude.Maybe Prelude.Text)
stopInferenceSchedulerResponse_inferenceSchedulerArn :: (Maybe Text -> f (Maybe Text))
-> StopInferenceSchedulerResponse
-> f StopInferenceSchedulerResponse
stopInferenceSchedulerResponse_inferenceSchedulerArn = (StopInferenceSchedulerResponse -> Maybe Text)
-> (StopInferenceSchedulerResponse
    -> Maybe Text -> StopInferenceSchedulerResponse)
-> Lens
     StopInferenceSchedulerResponse
     StopInferenceSchedulerResponse
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\StopInferenceSchedulerResponse' {Maybe Text
inferenceSchedulerArn :: Maybe Text
$sel:inferenceSchedulerArn:StopInferenceSchedulerResponse' :: StopInferenceSchedulerResponse -> Maybe Text
inferenceSchedulerArn} -> Maybe Text
inferenceSchedulerArn) (\s :: StopInferenceSchedulerResponse
s@StopInferenceSchedulerResponse' {} Maybe Text
a -> StopInferenceSchedulerResponse
s {$sel:inferenceSchedulerArn:StopInferenceSchedulerResponse' :: Maybe Text
inferenceSchedulerArn = Maybe Text
a} :: StopInferenceSchedulerResponse)

-- | The name of the inference scheduler being stopped.
stopInferenceSchedulerResponse_inferenceSchedulerName :: Lens.Lens' StopInferenceSchedulerResponse (Prelude.Maybe Prelude.Text)
stopInferenceSchedulerResponse_inferenceSchedulerName :: (Maybe Text -> f (Maybe Text))
-> StopInferenceSchedulerResponse
-> f StopInferenceSchedulerResponse
stopInferenceSchedulerResponse_inferenceSchedulerName = (StopInferenceSchedulerResponse -> Maybe Text)
-> (StopInferenceSchedulerResponse
    -> Maybe Text -> StopInferenceSchedulerResponse)
-> Lens
     StopInferenceSchedulerResponse
     StopInferenceSchedulerResponse
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\StopInferenceSchedulerResponse' {Maybe Text
inferenceSchedulerName :: Maybe Text
$sel:inferenceSchedulerName:StopInferenceSchedulerResponse' :: StopInferenceSchedulerResponse -> Maybe Text
inferenceSchedulerName} -> Maybe Text
inferenceSchedulerName) (\s :: StopInferenceSchedulerResponse
s@StopInferenceSchedulerResponse' {} Maybe Text
a -> StopInferenceSchedulerResponse
s {$sel:inferenceSchedulerName:StopInferenceSchedulerResponse' :: Maybe Text
inferenceSchedulerName = Maybe Text
a} :: StopInferenceSchedulerResponse)

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

instance
  Prelude.NFData
    StopInferenceSchedulerResponse