{-# 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.ListModels
(
ListModels (..),
newListModels,
listModels_status,
listModels_nextToken,
listModels_datasetNameBeginsWith,
listModels_modelNameBeginsWith,
listModels_maxResults,
ListModelsResponse (..),
newListModelsResponse,
listModelsResponse_nextToken,
listModelsResponse_modelSummaries,
listModelsResponse_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 ListModels = ListModels'
{
ListModels -> Maybe ModelStatus
status :: Prelude.Maybe ModelStatus,
ListModels -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
ListModels -> Maybe Text
datasetNameBeginsWith :: Prelude.Maybe Prelude.Text,
ListModels -> Maybe Text
modelNameBeginsWith :: Prelude.Maybe Prelude.Text,
ListModels -> Maybe Natural
maxResults :: Prelude.Maybe Prelude.Natural
}
deriving (ListModels -> ListModels -> Bool
(ListModels -> ListModels -> Bool)
-> (ListModels -> ListModels -> Bool) -> Eq ListModels
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ListModels -> ListModels -> Bool
$c/= :: ListModels -> ListModels -> Bool
== :: ListModels -> ListModels -> Bool
$c== :: ListModels -> ListModels -> Bool
Prelude.Eq, ReadPrec [ListModels]
ReadPrec ListModels
Int -> ReadS ListModels
ReadS [ListModels]
(Int -> ReadS ListModels)
-> ReadS [ListModels]
-> ReadPrec ListModels
-> ReadPrec [ListModels]
-> Read ListModels
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ListModels]
$creadListPrec :: ReadPrec [ListModels]
readPrec :: ReadPrec ListModels
$creadPrec :: ReadPrec ListModels
readList :: ReadS [ListModels]
$creadList :: ReadS [ListModels]
readsPrec :: Int -> ReadS ListModels
$creadsPrec :: Int -> ReadS ListModels
Prelude.Read, Int -> ListModels -> ShowS
[ListModels] -> ShowS
ListModels -> String
(Int -> ListModels -> ShowS)
-> (ListModels -> String)
-> ([ListModels] -> ShowS)
-> Show ListModels
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ListModels] -> ShowS
$cshowList :: [ListModels] -> ShowS
show :: ListModels -> String
$cshow :: ListModels -> String
showsPrec :: Int -> ListModels -> ShowS
$cshowsPrec :: Int -> ListModels -> ShowS
Prelude.Show, (forall x. ListModels -> Rep ListModels x)
-> (forall x. Rep ListModels x -> ListModels) -> Generic ListModels
forall x. Rep ListModels x -> ListModels
forall x. ListModels -> Rep ListModels x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep ListModels x -> ListModels
$cfrom :: forall x. ListModels -> Rep ListModels x
Prelude.Generic)
newListModels ::
ListModels
newListModels :: ListModels
newListModels =
ListModels' :: Maybe ModelStatus
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Natural
-> ListModels
ListModels'
{ $sel:status:ListModels' :: Maybe ModelStatus
status = Maybe ModelStatus
forall a. Maybe a
Prelude.Nothing,
$sel:nextToken:ListModels' :: Maybe Text
nextToken = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:datasetNameBeginsWith:ListModels' :: Maybe Text
datasetNameBeginsWith = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:modelNameBeginsWith:ListModels' :: Maybe Text
modelNameBeginsWith = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:maxResults:ListModels' :: Maybe Natural
maxResults = Maybe Natural
forall a. Maybe a
Prelude.Nothing
}
listModels_status :: Lens.Lens' ListModels (Prelude.Maybe ModelStatus)
listModels_status :: (Maybe ModelStatus -> f (Maybe ModelStatus))
-> ListModels -> f ListModels
listModels_status = (ListModels -> Maybe ModelStatus)
-> (ListModels -> Maybe ModelStatus -> ListModels)
-> Lens
ListModels ListModels (Maybe ModelStatus) (Maybe ModelStatus)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListModels' {Maybe ModelStatus
status :: Maybe ModelStatus
$sel:status:ListModels' :: ListModels -> Maybe ModelStatus
status} -> Maybe ModelStatus
status) (\s :: ListModels
s@ListModels' {} Maybe ModelStatus
a -> ListModels
s {$sel:status:ListModels' :: Maybe ModelStatus
status = Maybe ModelStatus
a} :: ListModels)
listModels_nextToken :: Lens.Lens' ListModels (Prelude.Maybe Prelude.Text)
listModels_nextToken :: (Maybe Text -> f (Maybe Text)) -> ListModels -> f ListModels
listModels_nextToken = (ListModels -> Maybe Text)
-> (ListModels -> Maybe Text -> ListModels)
-> Lens ListModels ListModels (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListModels' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:ListModels' :: ListModels -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: ListModels
s@ListModels' {} Maybe Text
a -> ListModels
s {$sel:nextToken:ListModels' :: Maybe Text
nextToken = Maybe Text
a} :: ListModels)
listModels_datasetNameBeginsWith :: Lens.Lens' ListModels (Prelude.Maybe Prelude.Text)
listModels_datasetNameBeginsWith :: (Maybe Text -> f (Maybe Text)) -> ListModels -> f ListModels
listModels_datasetNameBeginsWith = (ListModels -> Maybe Text)
-> (ListModels -> Maybe Text -> ListModels)
-> Lens ListModels ListModels (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListModels' {Maybe Text
datasetNameBeginsWith :: Maybe Text
$sel:datasetNameBeginsWith:ListModels' :: ListModels -> Maybe Text
datasetNameBeginsWith} -> Maybe Text
datasetNameBeginsWith) (\s :: ListModels
s@ListModels' {} Maybe Text
a -> ListModels
s {$sel:datasetNameBeginsWith:ListModels' :: Maybe Text
datasetNameBeginsWith = Maybe Text
a} :: ListModels)
listModels_modelNameBeginsWith :: Lens.Lens' ListModels (Prelude.Maybe Prelude.Text)
listModels_modelNameBeginsWith :: (Maybe Text -> f (Maybe Text)) -> ListModels -> f ListModels
listModels_modelNameBeginsWith = (ListModels -> Maybe Text)
-> (ListModels -> Maybe Text -> ListModels)
-> Lens ListModels ListModels (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListModels' {Maybe Text
modelNameBeginsWith :: Maybe Text
$sel:modelNameBeginsWith:ListModels' :: ListModels -> Maybe Text
modelNameBeginsWith} -> Maybe Text
modelNameBeginsWith) (\s :: ListModels
s@ListModels' {} Maybe Text
a -> ListModels
s {$sel:modelNameBeginsWith:ListModels' :: Maybe Text
modelNameBeginsWith = Maybe Text
a} :: ListModels)
listModels_maxResults :: Lens.Lens' ListModels (Prelude.Maybe Prelude.Natural)
listModels_maxResults :: (Maybe Natural -> f (Maybe Natural)) -> ListModels -> f ListModels
listModels_maxResults = (ListModels -> Maybe Natural)
-> (ListModels -> Maybe Natural -> ListModels)
-> Lens ListModels ListModels (Maybe Natural) (Maybe Natural)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListModels' {Maybe Natural
maxResults :: Maybe Natural
$sel:maxResults:ListModels' :: ListModels -> Maybe Natural
maxResults} -> Maybe Natural
maxResults) (\s :: ListModels
s@ListModels' {} Maybe Natural
a -> ListModels
s {$sel:maxResults:ListModels' :: Maybe Natural
maxResults = Maybe Natural
a} :: ListModels)
instance Core.AWSRequest ListModels where
type AWSResponse ListModels = ListModelsResponse
request :: ListModels -> Request ListModels
request = Service -> ListModels -> Request ListModels
forall a. (ToRequest a, ToJSON a) => Service -> a -> Request a
Request.postJSON Service
defaultService
response :: Logger
-> Service
-> Proxy ListModels
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse ListModels)))
response =
(Int
-> ResponseHeaders
-> Object
-> Either String (AWSResponse ListModels))
-> Logger
-> Service
-> Proxy ListModels
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse ListModels)))
forall (m :: * -> *) a.
MonadResource m =>
(Int -> ResponseHeaders -> Object -> Either String (AWSResponse a))
-> Logger
-> Service
-> Proxy a
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse a)))
Response.receiveJSON
( \Int
s ResponseHeaders
h Object
x ->
Maybe Text -> Maybe [ModelSummary] -> Int -> ListModelsResponse
ListModelsResponse'
(Maybe Text -> Maybe [ModelSummary] -> Int -> ListModelsResponse)
-> Either String (Maybe Text)
-> Either
String (Maybe [ModelSummary] -> Int -> ListModelsResponse)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x Object -> Text -> Either String (Maybe Text)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"NextToken")
Either String (Maybe [ModelSummary] -> Int -> ListModelsResponse)
-> Either String (Maybe [ModelSummary])
-> Either String (Int -> ListModelsResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe (Maybe [ModelSummary]))
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"ModelSummaries" Either String (Maybe (Maybe [ModelSummary]))
-> Maybe [ModelSummary] -> Either String (Maybe [ModelSummary])
forall (f :: * -> *) a. Functor f => f (Maybe a) -> a -> f a
Core..!@ Maybe [ModelSummary]
forall a. Monoid a => a
Prelude.mempty)
Either String (Int -> ListModelsResponse)
-> Either String Int -> Either String ListModelsResponse
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 ListModels
instance Prelude.NFData ListModels
instance Core.ToHeaders ListModels where
toHeaders :: ListModels -> ResponseHeaders
toHeaders =
ResponseHeaders -> ListModels -> 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.ListModels" ::
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 ListModels where
toJSON :: ListModels -> Value
toJSON ListModels' {Maybe Natural
Maybe Text
Maybe ModelStatus
maxResults :: Maybe Natural
modelNameBeginsWith :: Maybe Text
datasetNameBeginsWith :: Maybe Text
nextToken :: Maybe Text
status :: Maybe ModelStatus
$sel:maxResults:ListModels' :: ListModels -> Maybe Natural
$sel:modelNameBeginsWith:ListModels' :: ListModels -> Maybe Text
$sel:datasetNameBeginsWith:ListModels' :: ListModels -> Maybe Text
$sel:nextToken:ListModels' :: ListModels -> Maybe Text
$sel:status:ListModels' :: ListModels -> Maybe ModelStatus
..} =
[Pair] -> Value
Core.object
( [Maybe Pair] -> [Pair]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[ (Text
"Status" Text -> ModelStatus -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=) (ModelStatus -> Pair) -> Maybe ModelStatus -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe ModelStatus
status,
(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
"DatasetNameBeginsWith" 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
datasetNameBeginsWith,
(Text
"ModelNameBeginsWith" 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
modelNameBeginsWith,
(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 ListModels where
toPath :: ListModels -> ByteString
toPath = ByteString -> ListModels -> ByteString
forall a b. a -> b -> a
Prelude.const ByteString
"/"
instance Core.ToQuery ListModels where
toQuery :: ListModels -> QueryString
toQuery = QueryString -> ListModels -> QueryString
forall a b. a -> b -> a
Prelude.const QueryString
forall a. Monoid a => a
Prelude.mempty
data ListModelsResponse = ListModelsResponse'
{
ListModelsResponse -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
ListModelsResponse -> Maybe [ModelSummary]
modelSummaries :: Prelude.Maybe [ModelSummary],
ListModelsResponse -> Int
httpStatus :: Prelude.Int
}
deriving (ListModelsResponse -> ListModelsResponse -> Bool
(ListModelsResponse -> ListModelsResponse -> Bool)
-> (ListModelsResponse -> ListModelsResponse -> Bool)
-> Eq ListModelsResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ListModelsResponse -> ListModelsResponse -> Bool
$c/= :: ListModelsResponse -> ListModelsResponse -> Bool
== :: ListModelsResponse -> ListModelsResponse -> Bool
$c== :: ListModelsResponse -> ListModelsResponse -> Bool
Prelude.Eq, ReadPrec [ListModelsResponse]
ReadPrec ListModelsResponse
Int -> ReadS ListModelsResponse
ReadS [ListModelsResponse]
(Int -> ReadS ListModelsResponse)
-> ReadS [ListModelsResponse]
-> ReadPrec ListModelsResponse
-> ReadPrec [ListModelsResponse]
-> Read ListModelsResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ListModelsResponse]
$creadListPrec :: ReadPrec [ListModelsResponse]
readPrec :: ReadPrec ListModelsResponse
$creadPrec :: ReadPrec ListModelsResponse
readList :: ReadS [ListModelsResponse]
$creadList :: ReadS [ListModelsResponse]
readsPrec :: Int -> ReadS ListModelsResponse
$creadsPrec :: Int -> ReadS ListModelsResponse
Prelude.Read, Int -> ListModelsResponse -> ShowS
[ListModelsResponse] -> ShowS
ListModelsResponse -> String
(Int -> ListModelsResponse -> ShowS)
-> (ListModelsResponse -> String)
-> ([ListModelsResponse] -> ShowS)
-> Show ListModelsResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ListModelsResponse] -> ShowS
$cshowList :: [ListModelsResponse] -> ShowS
show :: ListModelsResponse -> String
$cshow :: ListModelsResponse -> String
showsPrec :: Int -> ListModelsResponse -> ShowS
$cshowsPrec :: Int -> ListModelsResponse -> ShowS
Prelude.Show, (forall x. ListModelsResponse -> Rep ListModelsResponse x)
-> (forall x. Rep ListModelsResponse x -> ListModelsResponse)
-> Generic ListModelsResponse
forall x. Rep ListModelsResponse x -> ListModelsResponse
forall x. ListModelsResponse -> Rep ListModelsResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep ListModelsResponse x -> ListModelsResponse
$cfrom :: forall x. ListModelsResponse -> Rep ListModelsResponse x
Prelude.Generic)
newListModelsResponse ::
Prelude.Int ->
ListModelsResponse
newListModelsResponse :: Int -> ListModelsResponse
newListModelsResponse Int
pHttpStatus_ =
ListModelsResponse' :: Maybe Text -> Maybe [ModelSummary] -> Int -> ListModelsResponse
ListModelsResponse'
{ $sel:nextToken:ListModelsResponse' :: Maybe Text
nextToken = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:modelSummaries:ListModelsResponse' :: Maybe [ModelSummary]
modelSummaries = Maybe [ModelSummary]
forall a. Maybe a
Prelude.Nothing,
$sel:httpStatus:ListModelsResponse' :: Int
httpStatus = Int
pHttpStatus_
}
listModelsResponse_nextToken :: Lens.Lens' ListModelsResponse (Prelude.Maybe Prelude.Text)
listModelsResponse_nextToken :: (Maybe Text -> f (Maybe Text))
-> ListModelsResponse -> f ListModelsResponse
listModelsResponse_nextToken = (ListModelsResponse -> Maybe Text)
-> (ListModelsResponse -> Maybe Text -> ListModelsResponse)
-> Lens
ListModelsResponse ListModelsResponse (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListModelsResponse' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:ListModelsResponse' :: ListModelsResponse -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: ListModelsResponse
s@ListModelsResponse' {} Maybe Text
a -> ListModelsResponse
s {$sel:nextToken:ListModelsResponse' :: Maybe Text
nextToken = Maybe Text
a} :: ListModelsResponse)
listModelsResponse_modelSummaries :: Lens.Lens' ListModelsResponse (Prelude.Maybe [ModelSummary])
listModelsResponse_modelSummaries :: (Maybe [ModelSummary] -> f (Maybe [ModelSummary]))
-> ListModelsResponse -> f ListModelsResponse
listModelsResponse_modelSummaries = (ListModelsResponse -> Maybe [ModelSummary])
-> (ListModelsResponse
-> Maybe [ModelSummary] -> ListModelsResponse)
-> Lens
ListModelsResponse
ListModelsResponse
(Maybe [ModelSummary])
(Maybe [ModelSummary])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListModelsResponse' {Maybe [ModelSummary]
modelSummaries :: Maybe [ModelSummary]
$sel:modelSummaries:ListModelsResponse' :: ListModelsResponse -> Maybe [ModelSummary]
modelSummaries} -> Maybe [ModelSummary]
modelSummaries) (\s :: ListModelsResponse
s@ListModelsResponse' {} Maybe [ModelSummary]
a -> ListModelsResponse
s {$sel:modelSummaries:ListModelsResponse' :: Maybe [ModelSummary]
modelSummaries = Maybe [ModelSummary]
a} :: ListModelsResponse) ((Maybe [ModelSummary] -> f (Maybe [ModelSummary]))
-> ListModelsResponse -> f ListModelsResponse)
-> ((Maybe [ModelSummary] -> f (Maybe [ModelSummary]))
-> Maybe [ModelSummary] -> f (Maybe [ModelSummary]))
-> (Maybe [ModelSummary] -> f (Maybe [ModelSummary]))
-> ListModelsResponse
-> f ListModelsResponse
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso [ModelSummary] [ModelSummary] [ModelSummary] [ModelSummary]
-> Iso
(Maybe [ModelSummary])
(Maybe [ModelSummary])
(Maybe [ModelSummary])
(Maybe [ModelSummary])
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 [ModelSummary] [ModelSummary] [ModelSummary] [ModelSummary]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
listModelsResponse_httpStatus :: Lens.Lens' ListModelsResponse Prelude.Int
listModelsResponse_httpStatus :: (Int -> f Int) -> ListModelsResponse -> f ListModelsResponse
listModelsResponse_httpStatus = (ListModelsResponse -> Int)
-> (ListModelsResponse -> Int -> ListModelsResponse)
-> Lens ListModelsResponse ListModelsResponse Int Int
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListModelsResponse' {Int
httpStatus :: Int
$sel:httpStatus:ListModelsResponse' :: ListModelsResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: ListModelsResponse
s@ListModelsResponse' {} Int
a -> ListModelsResponse
s {$sel:httpStatus:ListModelsResponse' :: Int
httpStatus = Int
a} :: ListModelsResponse)
instance Prelude.NFData ListModelsResponse