{-# 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 #-}
module Amazonka.LookoutEquipment.ListInferenceSchedulers
(
ListInferenceSchedulers (..),
newListInferenceSchedulers,
listInferenceSchedulers_modelName,
listInferenceSchedulers_nextToken,
listInferenceSchedulers_inferenceSchedulerNameBeginsWith,
listInferenceSchedulers_maxResults,
ListInferenceSchedulersResponse (..),
newListInferenceSchedulersResponse,
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
data ListInferenceSchedulers = ListInferenceSchedulers'
{
ListInferenceSchedulers -> Maybe Text
modelName :: Prelude.Maybe Prelude.Text,
ListInferenceSchedulers -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
ListInferenceSchedulers -> Maybe Text
inferenceSchedulerNameBeginsWith :: Prelude.Maybe Prelude.Text,
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)
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
}
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)
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)
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)
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
data ListInferenceSchedulersResponse = ListInferenceSchedulersResponse'
{
ListInferenceSchedulersResponse
-> Maybe [InferenceSchedulerSummary]
inferenceSchedulerSummaries :: Prelude.Maybe [InferenceSchedulerSummary],
ListInferenceSchedulersResponse -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
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)
newListInferenceSchedulersResponse ::
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_
}
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
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)
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