{-# 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.ListInferenceSchedulers
-- 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)
--
-- Retrieves a list of all inference schedulers currently available for
-- your account.
module Amazonka.LookoutEquipment.ListInferenceSchedulers
  ( -- * Creating a Request
    ListInferenceSchedulers (..),
    newListInferenceSchedulers,

    -- * Request Lenses
    listInferenceSchedulers_modelName,
    listInferenceSchedulers_nextToken,
    listInferenceSchedulers_inferenceSchedulerNameBeginsWith,
    listInferenceSchedulers_maxResults,

    -- * Destructuring the Response
    ListInferenceSchedulersResponse (..),
    newListInferenceSchedulersResponse,

    -- * Response Lenses
    listInferenceSchedulersResponse_inferenceSchedulerSummaries,
    listInferenceSchedulersResponse_nextToken,
    listInferenceSchedulersResponse_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:/ 'newListInferenceSchedulers' smart constructor.
data ListInferenceSchedulers = ListInferenceSchedulers'
  { -- | The name of the ML model used by the inference scheduler to be listed.
    ListInferenceSchedulers -> Maybe Text
modelName :: Prelude.Maybe Prelude.Text,
    -- | An opaque pagination token indicating where to continue the listing of
    -- inference schedulers.
    ListInferenceSchedulers -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
    -- | The beginning of the name of the inference schedulers to be listed.
    ListInferenceSchedulers -> Maybe Text
inferenceSchedulerNameBeginsWith :: Prelude.Maybe Prelude.Text,
    -- | Specifies the maximum number of inference schedulers to list.
    ListInferenceSchedulers -> Maybe Natural
maxResults :: Prelude.Maybe Prelude.Natural
  }
  deriving (ListInferenceSchedulers -> ListInferenceSchedulers -> Bool
(ListInferenceSchedulers -> ListInferenceSchedulers -> Bool)
-> (ListInferenceSchedulers -> ListInferenceSchedulers -> Bool)
-> Eq ListInferenceSchedulers
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ListInferenceSchedulers -> ListInferenceSchedulers -> Bool
$c/= :: ListInferenceSchedulers -> ListInferenceSchedulers -> Bool
== :: ListInferenceSchedulers -> ListInferenceSchedulers -> Bool
$c== :: ListInferenceSchedulers -> ListInferenceSchedulers -> Bool
Prelude.Eq, ReadPrec [ListInferenceSchedulers]
ReadPrec ListInferenceSchedulers
Int -> ReadS ListInferenceSchedulers
ReadS [ListInferenceSchedulers]
(Int -> ReadS ListInferenceSchedulers)
-> ReadS [ListInferenceSchedulers]
-> ReadPrec ListInferenceSchedulers
-> ReadPrec [ListInferenceSchedulers]
-> Read ListInferenceSchedulers
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ListInferenceSchedulers]
$creadListPrec :: ReadPrec [ListInferenceSchedulers]
readPrec :: ReadPrec ListInferenceSchedulers
$creadPrec :: ReadPrec ListInferenceSchedulers
readList :: ReadS [ListInferenceSchedulers]
$creadList :: ReadS [ListInferenceSchedulers]
readsPrec :: Int -> ReadS ListInferenceSchedulers
$creadsPrec :: Int -> ReadS ListInferenceSchedulers
Prelude.Read, Int -> ListInferenceSchedulers -> ShowS
[ListInferenceSchedulers] -> ShowS
ListInferenceSchedulers -> String
(Int -> ListInferenceSchedulers -> ShowS)
-> (ListInferenceSchedulers -> String)
-> ([ListInferenceSchedulers] -> ShowS)
-> Show ListInferenceSchedulers
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ListInferenceSchedulers] -> ShowS
$cshowList :: [ListInferenceSchedulers] -> ShowS
show :: ListInferenceSchedulers -> String
$cshow :: ListInferenceSchedulers -> String
showsPrec :: Int -> ListInferenceSchedulers -> ShowS
$cshowsPrec :: Int -> ListInferenceSchedulers -> ShowS
Prelude.Show, (forall x.
 ListInferenceSchedulers -> Rep ListInferenceSchedulers x)
-> (forall x.
    Rep ListInferenceSchedulers x -> ListInferenceSchedulers)
-> Generic ListInferenceSchedulers
forall x. Rep ListInferenceSchedulers x -> ListInferenceSchedulers
forall x. ListInferenceSchedulers -> Rep ListInferenceSchedulers x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep ListInferenceSchedulers x -> ListInferenceSchedulers
$cfrom :: forall x. ListInferenceSchedulers -> Rep ListInferenceSchedulers x
Prelude.Generic)

-- |
-- Create a value of 'ListInferenceSchedulers' 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:
--
-- 'modelName', 'listInferenceSchedulers_modelName' - The name of the ML model used by the inference scheduler to be listed.
--
-- 'nextToken', 'listInferenceSchedulers_nextToken' - An opaque pagination token indicating where to continue the listing of
-- inference schedulers.
--
-- 'inferenceSchedulerNameBeginsWith', 'listInferenceSchedulers_inferenceSchedulerNameBeginsWith' - The beginning of the name of the inference schedulers to be listed.
--
-- 'maxResults', 'listInferenceSchedulers_maxResults' - Specifies the maximum number of inference schedulers to list.
newListInferenceSchedulers ::
  ListInferenceSchedulers
newListInferenceSchedulers :: ListInferenceSchedulers
newListInferenceSchedulers =
  ListInferenceSchedulers' :: Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Natural
-> ListInferenceSchedulers
ListInferenceSchedulers'
    { $sel:modelName:ListInferenceSchedulers' :: Maybe Text
modelName =
        Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:nextToken:ListInferenceSchedulers' :: Maybe Text
nextToken = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:inferenceSchedulerNameBeginsWith:ListInferenceSchedulers' :: Maybe Text
inferenceSchedulerNameBeginsWith = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:maxResults:ListInferenceSchedulers' :: Maybe Natural
maxResults = Maybe Natural
forall a. Maybe a
Prelude.Nothing
    }

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

-- | An opaque pagination token indicating where to continue the listing of
-- inference schedulers.
listInferenceSchedulers_nextToken :: Lens.Lens' ListInferenceSchedulers (Prelude.Maybe Prelude.Text)
listInferenceSchedulers_nextToken :: (Maybe Text -> f (Maybe Text))
-> ListInferenceSchedulers -> f ListInferenceSchedulers
listInferenceSchedulers_nextToken = (ListInferenceSchedulers -> Maybe Text)
-> (ListInferenceSchedulers
    -> Maybe Text -> ListInferenceSchedulers)
-> Lens
     ListInferenceSchedulers
     ListInferenceSchedulers
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListInferenceSchedulers' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:ListInferenceSchedulers' :: ListInferenceSchedulers -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: ListInferenceSchedulers
s@ListInferenceSchedulers' {} Maybe Text
a -> ListInferenceSchedulers
s {$sel:nextToken:ListInferenceSchedulers' :: Maybe Text
nextToken = Maybe Text
a} :: ListInferenceSchedulers)

-- | The beginning of the name of the inference schedulers to be listed.
listInferenceSchedulers_inferenceSchedulerNameBeginsWith :: Lens.Lens' ListInferenceSchedulers (Prelude.Maybe Prelude.Text)
listInferenceSchedulers_inferenceSchedulerNameBeginsWith :: (Maybe Text -> f (Maybe Text))
-> ListInferenceSchedulers -> f ListInferenceSchedulers
listInferenceSchedulers_inferenceSchedulerNameBeginsWith = (ListInferenceSchedulers -> Maybe Text)
-> (ListInferenceSchedulers
    -> Maybe Text -> ListInferenceSchedulers)
-> Lens
     ListInferenceSchedulers
     ListInferenceSchedulers
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListInferenceSchedulers' {Maybe Text
inferenceSchedulerNameBeginsWith :: Maybe Text
$sel:inferenceSchedulerNameBeginsWith:ListInferenceSchedulers' :: ListInferenceSchedulers -> Maybe Text
inferenceSchedulerNameBeginsWith} -> Maybe Text
inferenceSchedulerNameBeginsWith) (\s :: ListInferenceSchedulers
s@ListInferenceSchedulers' {} Maybe Text
a -> ListInferenceSchedulers
s {$sel:inferenceSchedulerNameBeginsWith:ListInferenceSchedulers' :: Maybe Text
inferenceSchedulerNameBeginsWith = Maybe Text
a} :: ListInferenceSchedulers)

-- | Specifies the maximum number of inference schedulers to list.
listInferenceSchedulers_maxResults :: Lens.Lens' ListInferenceSchedulers (Prelude.Maybe Prelude.Natural)
listInferenceSchedulers_maxResults :: (Maybe Natural -> f (Maybe Natural))
-> ListInferenceSchedulers -> f ListInferenceSchedulers
listInferenceSchedulers_maxResults = (ListInferenceSchedulers -> Maybe Natural)
-> (ListInferenceSchedulers
    -> Maybe Natural -> ListInferenceSchedulers)
-> Lens
     ListInferenceSchedulers
     ListInferenceSchedulers
     (Maybe Natural)
     (Maybe Natural)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListInferenceSchedulers' {Maybe Natural
maxResults :: Maybe Natural
$sel:maxResults:ListInferenceSchedulers' :: ListInferenceSchedulers -> Maybe Natural
maxResults} -> Maybe Natural
maxResults) (\s :: ListInferenceSchedulers
s@ListInferenceSchedulers' {} Maybe Natural
a -> ListInferenceSchedulers
s {$sel:maxResults:ListInferenceSchedulers' :: Maybe Natural
maxResults = Maybe Natural
a} :: ListInferenceSchedulers)

instance Core.AWSRequest ListInferenceSchedulers where
  type
    AWSResponse ListInferenceSchedulers =
      ListInferenceSchedulersResponse
  request :: ListInferenceSchedulers -> Request ListInferenceSchedulers
request = Service
-> ListInferenceSchedulers -> Request ListInferenceSchedulers
forall a. (ToRequest a, ToJSON a) => Service -> a -> Request a
Request.postJSON Service
defaultService
  response :: Logger
-> Service
-> Proxy ListInferenceSchedulers
-> ClientResponse ClientBody
-> m (Either
        Error (ClientResponse (AWSResponse ListInferenceSchedulers)))
response =
    (Int
 -> ResponseHeaders
 -> Object
 -> Either String (AWSResponse ListInferenceSchedulers))
-> Logger
-> Service
-> Proxy ListInferenceSchedulers
-> ClientResponse ClientBody
-> m (Either
        Error (ClientResponse (AWSResponse ListInferenceSchedulers)))
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 [InferenceSchedulerSummary]
-> Maybe Text -> Int -> ListInferenceSchedulersResponse
ListInferenceSchedulersResponse'
            (Maybe [InferenceSchedulerSummary]
 -> Maybe Text -> Int -> ListInferenceSchedulersResponse)
-> Either String (Maybe [InferenceSchedulerSummary])
-> Either
     String (Maybe Text -> Int -> ListInferenceSchedulersResponse)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> ( Object
x Object
-> Text
-> Either String (Maybe (Maybe [InferenceSchedulerSummary]))
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"InferenceSchedulerSummaries"
                            Either String (Maybe (Maybe [InferenceSchedulerSummary]))
-> Maybe [InferenceSchedulerSummary]
-> Either String (Maybe [InferenceSchedulerSummary])
forall (f :: * -> *) a. Functor f => f (Maybe a) -> a -> f a
Core..!@ Maybe [InferenceSchedulerSummary]
forall a. Monoid a => a
Prelude.mempty
                        )
            Either
  String (Maybe Text -> Int -> ListInferenceSchedulersResponse)
-> Either String (Maybe Text)
-> Either String (Int -> ListInferenceSchedulersResponse)
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
"NextToken")
            Either String (Int -> ListInferenceSchedulersResponse)
-> Either String Int
-> Either String ListInferenceSchedulersResponse
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 ListInferenceSchedulers

instance Prelude.NFData ListInferenceSchedulers

instance Core.ToHeaders ListInferenceSchedulers where
  toHeaders :: ListInferenceSchedulers -> ResponseHeaders
toHeaders =
    ResponseHeaders -> ListInferenceSchedulers -> 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.ListInferenceSchedulers" ::
                          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 ListInferenceSchedulers where
  toJSON :: ListInferenceSchedulers -> Value
toJSON ListInferenceSchedulers' {Maybe Natural
Maybe Text
maxResults :: Maybe Natural
inferenceSchedulerNameBeginsWith :: Maybe Text
nextToken :: Maybe Text
modelName :: Maybe Text
$sel:maxResults:ListInferenceSchedulers' :: ListInferenceSchedulers -> Maybe Natural
$sel:inferenceSchedulerNameBeginsWith:ListInferenceSchedulers' :: ListInferenceSchedulers -> Maybe Text
$sel:nextToken:ListInferenceSchedulers' :: ListInferenceSchedulers -> Maybe Text
$sel:modelName:ListInferenceSchedulers' :: ListInferenceSchedulers -> Maybe Text
..} =
    [Pair] -> Value
Core.object
      ( [Maybe Pair] -> [Pair]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
          [ (Text
"ModelName" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=) (Text -> Pair) -> Maybe Text -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Text
modelName,
            (Text
"NextToken" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=) (Text -> Pair) -> Maybe Text -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Text
nextToken,
            (Text
"InferenceSchedulerNameBeginsWith" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=)
              (Text -> Pair) -> Maybe Text -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Text
inferenceSchedulerNameBeginsWith,
            (Text
"MaxResults" Text -> Natural -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=) (Natural -> Pair) -> Maybe Natural -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Natural
maxResults
          ]
      )

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

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

-- | /See:/ 'newListInferenceSchedulersResponse' smart constructor.
data ListInferenceSchedulersResponse = ListInferenceSchedulersResponse'
  { -- | Provides information about the specified inference scheduler, including
    -- data upload frequency, model name and ARN, and status.
    ListInferenceSchedulersResponse
-> Maybe [InferenceSchedulerSummary]
inferenceSchedulerSummaries :: Prelude.Maybe [InferenceSchedulerSummary],
    -- | An opaque pagination token indicating where to continue the listing of
    -- inference schedulers.
    ListInferenceSchedulersResponse -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
    -- | The response's http status code.
    ListInferenceSchedulersResponse -> Int
httpStatus :: Prelude.Int
  }
  deriving (ListInferenceSchedulersResponse
-> ListInferenceSchedulersResponse -> Bool
(ListInferenceSchedulersResponse
 -> ListInferenceSchedulersResponse -> Bool)
-> (ListInferenceSchedulersResponse
    -> ListInferenceSchedulersResponse -> Bool)
-> Eq ListInferenceSchedulersResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ListInferenceSchedulersResponse
-> ListInferenceSchedulersResponse -> Bool
$c/= :: ListInferenceSchedulersResponse
-> ListInferenceSchedulersResponse -> Bool
== :: ListInferenceSchedulersResponse
-> ListInferenceSchedulersResponse -> Bool
$c== :: ListInferenceSchedulersResponse
-> ListInferenceSchedulersResponse -> Bool
Prelude.Eq, ReadPrec [ListInferenceSchedulersResponse]
ReadPrec ListInferenceSchedulersResponse
Int -> ReadS ListInferenceSchedulersResponse
ReadS [ListInferenceSchedulersResponse]
(Int -> ReadS ListInferenceSchedulersResponse)
-> ReadS [ListInferenceSchedulersResponse]
-> ReadPrec ListInferenceSchedulersResponse
-> ReadPrec [ListInferenceSchedulersResponse]
-> Read ListInferenceSchedulersResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ListInferenceSchedulersResponse]
$creadListPrec :: ReadPrec [ListInferenceSchedulersResponse]
readPrec :: ReadPrec ListInferenceSchedulersResponse
$creadPrec :: ReadPrec ListInferenceSchedulersResponse
readList :: ReadS [ListInferenceSchedulersResponse]
$creadList :: ReadS [ListInferenceSchedulersResponse]
readsPrec :: Int -> ReadS ListInferenceSchedulersResponse
$creadsPrec :: Int -> ReadS ListInferenceSchedulersResponse
Prelude.Read, Int -> ListInferenceSchedulersResponse -> ShowS
[ListInferenceSchedulersResponse] -> ShowS
ListInferenceSchedulersResponse -> String
(Int -> ListInferenceSchedulersResponse -> ShowS)
-> (ListInferenceSchedulersResponse -> String)
-> ([ListInferenceSchedulersResponse] -> ShowS)
-> Show ListInferenceSchedulersResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ListInferenceSchedulersResponse] -> ShowS
$cshowList :: [ListInferenceSchedulersResponse] -> ShowS
show :: ListInferenceSchedulersResponse -> String
$cshow :: ListInferenceSchedulersResponse -> String
showsPrec :: Int -> ListInferenceSchedulersResponse -> ShowS
$cshowsPrec :: Int -> ListInferenceSchedulersResponse -> ShowS
Prelude.Show, (forall x.
 ListInferenceSchedulersResponse
 -> Rep ListInferenceSchedulersResponse x)
-> (forall x.
    Rep ListInferenceSchedulersResponse x
    -> ListInferenceSchedulersResponse)
-> Generic ListInferenceSchedulersResponse
forall x.
Rep ListInferenceSchedulersResponse x
-> ListInferenceSchedulersResponse
forall x.
ListInferenceSchedulersResponse
-> Rep ListInferenceSchedulersResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep ListInferenceSchedulersResponse x
-> ListInferenceSchedulersResponse
$cfrom :: forall x.
ListInferenceSchedulersResponse
-> Rep ListInferenceSchedulersResponse x
Prelude.Generic)

-- |
-- Create a value of 'ListInferenceSchedulersResponse' 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:
--
-- 'inferenceSchedulerSummaries', 'listInferenceSchedulersResponse_inferenceSchedulerSummaries' - Provides information about the specified inference scheduler, including
-- data upload frequency, model name and ARN, and status.
--
-- 'nextToken', 'listInferenceSchedulersResponse_nextToken' - An opaque pagination token indicating where to continue the listing of
-- inference schedulers.
--
-- 'httpStatus', 'listInferenceSchedulersResponse_httpStatus' - The response's http status code.
newListInferenceSchedulersResponse ::
  -- | 'httpStatus'
  Prelude.Int ->
  ListInferenceSchedulersResponse
newListInferenceSchedulersResponse :: Int -> ListInferenceSchedulersResponse
newListInferenceSchedulersResponse Int
pHttpStatus_ =
  ListInferenceSchedulersResponse' :: Maybe [InferenceSchedulerSummary]
-> Maybe Text -> Int -> ListInferenceSchedulersResponse
ListInferenceSchedulersResponse'
    { $sel:inferenceSchedulerSummaries:ListInferenceSchedulersResponse' :: Maybe [InferenceSchedulerSummary]
inferenceSchedulerSummaries =
        Maybe [InferenceSchedulerSummary]
forall a. Maybe a
Prelude.Nothing,
      $sel:nextToken:ListInferenceSchedulersResponse' :: Maybe Text
nextToken = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:httpStatus:ListInferenceSchedulersResponse' :: Int
httpStatus = Int
pHttpStatus_
    }

-- | Provides information about the specified inference scheduler, including
-- data upload frequency, model name and ARN, and status.
listInferenceSchedulersResponse_inferenceSchedulerSummaries :: Lens.Lens' ListInferenceSchedulersResponse (Prelude.Maybe [InferenceSchedulerSummary])
listInferenceSchedulersResponse_inferenceSchedulerSummaries :: (Maybe [InferenceSchedulerSummary]
 -> f (Maybe [InferenceSchedulerSummary]))
-> ListInferenceSchedulersResponse
-> f ListInferenceSchedulersResponse
listInferenceSchedulersResponse_inferenceSchedulerSummaries = (ListInferenceSchedulersResponse
 -> Maybe [InferenceSchedulerSummary])
-> (ListInferenceSchedulersResponse
    -> Maybe [InferenceSchedulerSummary]
    -> ListInferenceSchedulersResponse)
-> Lens
     ListInferenceSchedulersResponse
     ListInferenceSchedulersResponse
     (Maybe [InferenceSchedulerSummary])
     (Maybe [InferenceSchedulerSummary])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListInferenceSchedulersResponse' {Maybe [InferenceSchedulerSummary]
inferenceSchedulerSummaries :: Maybe [InferenceSchedulerSummary]
$sel:inferenceSchedulerSummaries:ListInferenceSchedulersResponse' :: ListInferenceSchedulersResponse
-> Maybe [InferenceSchedulerSummary]
inferenceSchedulerSummaries} -> Maybe [InferenceSchedulerSummary]
inferenceSchedulerSummaries) (\s :: ListInferenceSchedulersResponse
s@ListInferenceSchedulersResponse' {} Maybe [InferenceSchedulerSummary]
a -> ListInferenceSchedulersResponse
s {$sel:inferenceSchedulerSummaries:ListInferenceSchedulersResponse' :: Maybe [InferenceSchedulerSummary]
inferenceSchedulerSummaries = Maybe [InferenceSchedulerSummary]
a} :: ListInferenceSchedulersResponse) ((Maybe [InferenceSchedulerSummary]
  -> f (Maybe [InferenceSchedulerSummary]))
 -> ListInferenceSchedulersResponse
 -> f ListInferenceSchedulersResponse)
-> ((Maybe [InferenceSchedulerSummary]
     -> f (Maybe [InferenceSchedulerSummary]))
    -> Maybe [InferenceSchedulerSummary]
    -> f (Maybe [InferenceSchedulerSummary]))
-> (Maybe [InferenceSchedulerSummary]
    -> f (Maybe [InferenceSchedulerSummary]))
-> ListInferenceSchedulersResponse
-> f ListInferenceSchedulersResponse
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso
  [InferenceSchedulerSummary]
  [InferenceSchedulerSummary]
  [InferenceSchedulerSummary]
  [InferenceSchedulerSummary]
-> Iso
     (Maybe [InferenceSchedulerSummary])
     (Maybe [InferenceSchedulerSummary])
     (Maybe [InferenceSchedulerSummary])
     (Maybe [InferenceSchedulerSummary])
forall (f :: * -> *) (g :: * -> *) s t a b.
(Functor f, Functor g) =>
AnIso s t a b -> Iso (f s) (g t) (f a) (g b)
Lens.mapping AnIso
  [InferenceSchedulerSummary]
  [InferenceSchedulerSummary]
  [InferenceSchedulerSummary]
  [InferenceSchedulerSummary]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced

-- | An opaque pagination token indicating where to continue the listing of
-- inference schedulers.
listInferenceSchedulersResponse_nextToken :: Lens.Lens' ListInferenceSchedulersResponse (Prelude.Maybe Prelude.Text)
listInferenceSchedulersResponse_nextToken :: (Maybe Text -> f (Maybe Text))
-> ListInferenceSchedulersResponse
-> f ListInferenceSchedulersResponse
listInferenceSchedulersResponse_nextToken = (ListInferenceSchedulersResponse -> Maybe Text)
-> (ListInferenceSchedulersResponse
    -> Maybe Text -> ListInferenceSchedulersResponse)
-> Lens
     ListInferenceSchedulersResponse
     ListInferenceSchedulersResponse
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListInferenceSchedulersResponse' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:ListInferenceSchedulersResponse' :: ListInferenceSchedulersResponse -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: ListInferenceSchedulersResponse
s@ListInferenceSchedulersResponse' {} Maybe Text
a -> ListInferenceSchedulersResponse
s {$sel:nextToken:ListInferenceSchedulersResponse' :: Maybe Text
nextToken = Maybe Text
a} :: ListInferenceSchedulersResponse)

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

instance
  Prelude.NFData
    ListInferenceSchedulersResponse