{-# 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.FraudDetector.DescribeModelVersions
(
DescribeModelVersions (..),
newDescribeModelVersions,
describeModelVersions_modelType,
describeModelVersions_modelId,
describeModelVersions_nextToken,
describeModelVersions_modelVersionNumber,
describeModelVersions_maxResults,
DescribeModelVersionsResponse (..),
newDescribeModelVersionsResponse,
describeModelVersionsResponse_nextToken,
describeModelVersionsResponse_modelVersionDetails,
describeModelVersionsResponse_httpStatus,
)
where
import qualified Amazonka.Core as Core
import Amazonka.FraudDetector.Types
import qualified Amazonka.Lens as Lens
import qualified Amazonka.Prelude as Prelude
import qualified Amazonka.Request as Request
import qualified Amazonka.Response as Response
data DescribeModelVersions = DescribeModelVersions'
{
DescribeModelVersions -> Maybe ModelTypeEnum
modelType :: Prelude.Maybe ModelTypeEnum,
DescribeModelVersions -> Maybe Text
modelId :: Prelude.Maybe Prelude.Text,
DescribeModelVersions -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
DescribeModelVersions -> Maybe Text
modelVersionNumber :: Prelude.Maybe Prelude.Text,
DescribeModelVersions -> Maybe Natural
maxResults :: Prelude.Maybe Prelude.Natural
}
deriving (DescribeModelVersions -> DescribeModelVersions -> Bool
(DescribeModelVersions -> DescribeModelVersions -> Bool)
-> (DescribeModelVersions -> DescribeModelVersions -> Bool)
-> Eq DescribeModelVersions
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: DescribeModelVersions -> DescribeModelVersions -> Bool
$c/= :: DescribeModelVersions -> DescribeModelVersions -> Bool
== :: DescribeModelVersions -> DescribeModelVersions -> Bool
$c== :: DescribeModelVersions -> DescribeModelVersions -> Bool
Prelude.Eq, ReadPrec [DescribeModelVersions]
ReadPrec DescribeModelVersions
Int -> ReadS DescribeModelVersions
ReadS [DescribeModelVersions]
(Int -> ReadS DescribeModelVersions)
-> ReadS [DescribeModelVersions]
-> ReadPrec DescribeModelVersions
-> ReadPrec [DescribeModelVersions]
-> Read DescribeModelVersions
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [DescribeModelVersions]
$creadListPrec :: ReadPrec [DescribeModelVersions]
readPrec :: ReadPrec DescribeModelVersions
$creadPrec :: ReadPrec DescribeModelVersions
readList :: ReadS [DescribeModelVersions]
$creadList :: ReadS [DescribeModelVersions]
readsPrec :: Int -> ReadS DescribeModelVersions
$creadsPrec :: Int -> ReadS DescribeModelVersions
Prelude.Read, Int -> DescribeModelVersions -> ShowS
[DescribeModelVersions] -> ShowS
DescribeModelVersions -> String
(Int -> DescribeModelVersions -> ShowS)
-> (DescribeModelVersions -> String)
-> ([DescribeModelVersions] -> ShowS)
-> Show DescribeModelVersions
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [DescribeModelVersions] -> ShowS
$cshowList :: [DescribeModelVersions] -> ShowS
show :: DescribeModelVersions -> String
$cshow :: DescribeModelVersions -> String
showsPrec :: Int -> DescribeModelVersions -> ShowS
$cshowsPrec :: Int -> DescribeModelVersions -> ShowS
Prelude.Show, (forall x. DescribeModelVersions -> Rep DescribeModelVersions x)
-> (forall x. Rep DescribeModelVersions x -> DescribeModelVersions)
-> Generic DescribeModelVersions
forall x. Rep DescribeModelVersions x -> DescribeModelVersions
forall x. DescribeModelVersions -> Rep DescribeModelVersions x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep DescribeModelVersions x -> DescribeModelVersions
$cfrom :: forall x. DescribeModelVersions -> Rep DescribeModelVersions x
Prelude.Generic)
newDescribeModelVersions ::
DescribeModelVersions
newDescribeModelVersions :: DescribeModelVersions
newDescribeModelVersions =
DescribeModelVersions' :: Maybe ModelTypeEnum
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Natural
-> DescribeModelVersions
DescribeModelVersions'
{ $sel:modelType:DescribeModelVersions' :: Maybe ModelTypeEnum
modelType = Maybe ModelTypeEnum
forall a. Maybe a
Prelude.Nothing,
$sel:modelId:DescribeModelVersions' :: Maybe Text
modelId = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:nextToken:DescribeModelVersions' :: Maybe Text
nextToken = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:modelVersionNumber:DescribeModelVersions' :: Maybe Text
modelVersionNumber = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:maxResults:DescribeModelVersions' :: Maybe Natural
maxResults = Maybe Natural
forall a. Maybe a
Prelude.Nothing
}
describeModelVersions_modelType :: Lens.Lens' DescribeModelVersions (Prelude.Maybe ModelTypeEnum)
describeModelVersions_modelType :: (Maybe ModelTypeEnum -> f (Maybe ModelTypeEnum))
-> DescribeModelVersions -> f DescribeModelVersions
describeModelVersions_modelType = (DescribeModelVersions -> Maybe ModelTypeEnum)
-> (DescribeModelVersions
-> Maybe ModelTypeEnum -> DescribeModelVersions)
-> Lens
DescribeModelVersions
DescribeModelVersions
(Maybe ModelTypeEnum)
(Maybe ModelTypeEnum)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeModelVersions' {Maybe ModelTypeEnum
modelType :: Maybe ModelTypeEnum
$sel:modelType:DescribeModelVersions' :: DescribeModelVersions -> Maybe ModelTypeEnum
modelType} -> Maybe ModelTypeEnum
modelType) (\s :: DescribeModelVersions
s@DescribeModelVersions' {} Maybe ModelTypeEnum
a -> DescribeModelVersions
s {$sel:modelType:DescribeModelVersions' :: Maybe ModelTypeEnum
modelType = Maybe ModelTypeEnum
a} :: DescribeModelVersions)
describeModelVersions_modelId :: Lens.Lens' DescribeModelVersions (Prelude.Maybe Prelude.Text)
describeModelVersions_modelId :: (Maybe Text -> f (Maybe Text))
-> DescribeModelVersions -> f DescribeModelVersions
describeModelVersions_modelId = (DescribeModelVersions -> Maybe Text)
-> (DescribeModelVersions -> Maybe Text -> DescribeModelVersions)
-> Lens
DescribeModelVersions
DescribeModelVersions
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeModelVersions' {Maybe Text
modelId :: Maybe Text
$sel:modelId:DescribeModelVersions' :: DescribeModelVersions -> Maybe Text
modelId} -> Maybe Text
modelId) (\s :: DescribeModelVersions
s@DescribeModelVersions' {} Maybe Text
a -> DescribeModelVersions
s {$sel:modelId:DescribeModelVersions' :: Maybe Text
modelId = Maybe Text
a} :: DescribeModelVersions)
describeModelVersions_nextToken :: Lens.Lens' DescribeModelVersions (Prelude.Maybe Prelude.Text)
describeModelVersions_nextToken :: (Maybe Text -> f (Maybe Text))
-> DescribeModelVersions -> f DescribeModelVersions
describeModelVersions_nextToken = (DescribeModelVersions -> Maybe Text)
-> (DescribeModelVersions -> Maybe Text -> DescribeModelVersions)
-> Lens
DescribeModelVersions
DescribeModelVersions
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeModelVersions' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:DescribeModelVersions' :: DescribeModelVersions -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: DescribeModelVersions
s@DescribeModelVersions' {} Maybe Text
a -> DescribeModelVersions
s {$sel:nextToken:DescribeModelVersions' :: Maybe Text
nextToken = Maybe Text
a} :: DescribeModelVersions)
describeModelVersions_modelVersionNumber :: Lens.Lens' DescribeModelVersions (Prelude.Maybe Prelude.Text)
describeModelVersions_modelVersionNumber :: (Maybe Text -> f (Maybe Text))
-> DescribeModelVersions -> f DescribeModelVersions
describeModelVersions_modelVersionNumber = (DescribeModelVersions -> Maybe Text)
-> (DescribeModelVersions -> Maybe Text -> DescribeModelVersions)
-> Lens
DescribeModelVersions
DescribeModelVersions
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeModelVersions' {Maybe Text
modelVersionNumber :: Maybe Text
$sel:modelVersionNumber:DescribeModelVersions' :: DescribeModelVersions -> Maybe Text
modelVersionNumber} -> Maybe Text
modelVersionNumber) (\s :: DescribeModelVersions
s@DescribeModelVersions' {} Maybe Text
a -> DescribeModelVersions
s {$sel:modelVersionNumber:DescribeModelVersions' :: Maybe Text
modelVersionNumber = Maybe Text
a} :: DescribeModelVersions)
describeModelVersions_maxResults :: Lens.Lens' DescribeModelVersions (Prelude.Maybe Prelude.Natural)
describeModelVersions_maxResults :: (Maybe Natural -> f (Maybe Natural))
-> DescribeModelVersions -> f DescribeModelVersions
describeModelVersions_maxResults = (DescribeModelVersions -> Maybe Natural)
-> (DescribeModelVersions
-> Maybe Natural -> DescribeModelVersions)
-> Lens
DescribeModelVersions
DescribeModelVersions
(Maybe Natural)
(Maybe Natural)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeModelVersions' {Maybe Natural
maxResults :: Maybe Natural
$sel:maxResults:DescribeModelVersions' :: DescribeModelVersions -> Maybe Natural
maxResults} -> Maybe Natural
maxResults) (\s :: DescribeModelVersions
s@DescribeModelVersions' {} Maybe Natural
a -> DescribeModelVersions
s {$sel:maxResults:DescribeModelVersions' :: Maybe Natural
maxResults = Maybe Natural
a} :: DescribeModelVersions)
instance Core.AWSRequest DescribeModelVersions where
type
AWSResponse DescribeModelVersions =
DescribeModelVersionsResponse
request :: DescribeModelVersions -> Request DescribeModelVersions
request = Service -> DescribeModelVersions -> Request DescribeModelVersions
forall a. (ToRequest a, ToJSON a) => Service -> a -> Request a
Request.postJSON Service
defaultService
response :: Logger
-> Service
-> Proxy DescribeModelVersions
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse DescribeModelVersions)))
response =
(Int
-> ResponseHeaders
-> Object
-> Either String (AWSResponse DescribeModelVersions))
-> Logger
-> Service
-> Proxy DescribeModelVersions
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse DescribeModelVersions)))
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 [ModelVersionDetail]
-> Int
-> DescribeModelVersionsResponse
DescribeModelVersionsResponse'
(Maybe Text
-> Maybe [ModelVersionDetail]
-> Int
-> DescribeModelVersionsResponse)
-> Either String (Maybe Text)
-> Either
String
(Maybe [ModelVersionDetail]
-> Int -> DescribeModelVersionsResponse)
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 [ModelVersionDetail]
-> Int -> DescribeModelVersionsResponse)
-> Either String (Maybe [ModelVersionDetail])
-> Either String (Int -> DescribeModelVersionsResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ( Object
x Object
-> Text -> Either String (Maybe (Maybe [ModelVersionDetail]))
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"modelVersionDetails"
Either String (Maybe (Maybe [ModelVersionDetail]))
-> Maybe [ModelVersionDetail]
-> Either String (Maybe [ModelVersionDetail])
forall (f :: * -> *) a. Functor f => f (Maybe a) -> a -> f a
Core..!@ Maybe [ModelVersionDetail]
forall a. Monoid a => a
Prelude.mempty
)
Either String (Int -> DescribeModelVersionsResponse)
-> Either String Int -> Either String DescribeModelVersionsResponse
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 DescribeModelVersions
instance Prelude.NFData DescribeModelVersions
instance Core.ToHeaders DescribeModelVersions where
toHeaders :: DescribeModelVersions -> ResponseHeaders
toHeaders =
ResponseHeaders -> DescribeModelVersions -> 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
"AWSHawksNestServiceFacade.DescribeModelVersions" ::
Prelude.ByteString
),
HeaderName
"Content-Type"
HeaderName -> ByteString -> ResponseHeaders
forall a. ToHeader a => HeaderName -> a -> ResponseHeaders
Core.=# ( ByteString
"application/x-amz-json-1.1" ::
Prelude.ByteString
)
]
)
instance Core.ToJSON DescribeModelVersions where
toJSON :: DescribeModelVersions -> Value
toJSON DescribeModelVersions' {Maybe Natural
Maybe Text
Maybe ModelTypeEnum
maxResults :: Maybe Natural
modelVersionNumber :: Maybe Text
nextToken :: Maybe Text
modelId :: Maybe Text
modelType :: Maybe ModelTypeEnum
$sel:maxResults:DescribeModelVersions' :: DescribeModelVersions -> Maybe Natural
$sel:modelVersionNumber:DescribeModelVersions' :: DescribeModelVersions -> Maybe Text
$sel:nextToken:DescribeModelVersions' :: DescribeModelVersions -> Maybe Text
$sel:modelId:DescribeModelVersions' :: DescribeModelVersions -> Maybe Text
$sel:modelType:DescribeModelVersions' :: DescribeModelVersions -> Maybe ModelTypeEnum
..} =
[Pair] -> Value
Core.object
( [Maybe Pair] -> [Pair]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[ (Text
"modelType" Text -> ModelTypeEnum -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=) (ModelTypeEnum -> Pair) -> Maybe ModelTypeEnum -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe ModelTypeEnum
modelType,
(Text
"modelId" 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
modelId,
(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
"modelVersionNumber" 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
modelVersionNumber,
(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 DescribeModelVersions where
toPath :: DescribeModelVersions -> ByteString
toPath = ByteString -> DescribeModelVersions -> ByteString
forall a b. a -> b -> a
Prelude.const ByteString
"/"
instance Core.ToQuery DescribeModelVersions where
toQuery :: DescribeModelVersions -> QueryString
toQuery = QueryString -> DescribeModelVersions -> QueryString
forall a b. a -> b -> a
Prelude.const QueryString
forall a. Monoid a => a
Prelude.mempty
data DescribeModelVersionsResponse = DescribeModelVersionsResponse'
{
DescribeModelVersionsResponse -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
DescribeModelVersionsResponse -> Maybe [ModelVersionDetail]
modelVersionDetails :: Prelude.Maybe [ModelVersionDetail],
DescribeModelVersionsResponse -> Int
httpStatus :: Prelude.Int
}
deriving (DescribeModelVersionsResponse
-> DescribeModelVersionsResponse -> Bool
(DescribeModelVersionsResponse
-> DescribeModelVersionsResponse -> Bool)
-> (DescribeModelVersionsResponse
-> DescribeModelVersionsResponse -> Bool)
-> Eq DescribeModelVersionsResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: DescribeModelVersionsResponse
-> DescribeModelVersionsResponse -> Bool
$c/= :: DescribeModelVersionsResponse
-> DescribeModelVersionsResponse -> Bool
== :: DescribeModelVersionsResponse
-> DescribeModelVersionsResponse -> Bool
$c== :: DescribeModelVersionsResponse
-> DescribeModelVersionsResponse -> Bool
Prelude.Eq, ReadPrec [DescribeModelVersionsResponse]
ReadPrec DescribeModelVersionsResponse
Int -> ReadS DescribeModelVersionsResponse
ReadS [DescribeModelVersionsResponse]
(Int -> ReadS DescribeModelVersionsResponse)
-> ReadS [DescribeModelVersionsResponse]
-> ReadPrec DescribeModelVersionsResponse
-> ReadPrec [DescribeModelVersionsResponse]
-> Read DescribeModelVersionsResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [DescribeModelVersionsResponse]
$creadListPrec :: ReadPrec [DescribeModelVersionsResponse]
readPrec :: ReadPrec DescribeModelVersionsResponse
$creadPrec :: ReadPrec DescribeModelVersionsResponse
readList :: ReadS [DescribeModelVersionsResponse]
$creadList :: ReadS [DescribeModelVersionsResponse]
readsPrec :: Int -> ReadS DescribeModelVersionsResponse
$creadsPrec :: Int -> ReadS DescribeModelVersionsResponse
Prelude.Read, Int -> DescribeModelVersionsResponse -> ShowS
[DescribeModelVersionsResponse] -> ShowS
DescribeModelVersionsResponse -> String
(Int -> DescribeModelVersionsResponse -> ShowS)
-> (DescribeModelVersionsResponse -> String)
-> ([DescribeModelVersionsResponse] -> ShowS)
-> Show DescribeModelVersionsResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [DescribeModelVersionsResponse] -> ShowS
$cshowList :: [DescribeModelVersionsResponse] -> ShowS
show :: DescribeModelVersionsResponse -> String
$cshow :: DescribeModelVersionsResponse -> String
showsPrec :: Int -> DescribeModelVersionsResponse -> ShowS
$cshowsPrec :: Int -> DescribeModelVersionsResponse -> ShowS
Prelude.Show, (forall x.
DescribeModelVersionsResponse
-> Rep DescribeModelVersionsResponse x)
-> (forall x.
Rep DescribeModelVersionsResponse x
-> DescribeModelVersionsResponse)
-> Generic DescribeModelVersionsResponse
forall x.
Rep DescribeModelVersionsResponse x
-> DescribeModelVersionsResponse
forall x.
DescribeModelVersionsResponse
-> Rep DescribeModelVersionsResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep DescribeModelVersionsResponse x
-> DescribeModelVersionsResponse
$cfrom :: forall x.
DescribeModelVersionsResponse
-> Rep DescribeModelVersionsResponse x
Prelude.Generic)
newDescribeModelVersionsResponse ::
Prelude.Int ->
DescribeModelVersionsResponse
newDescribeModelVersionsResponse :: Int -> DescribeModelVersionsResponse
newDescribeModelVersionsResponse Int
pHttpStatus_ =
DescribeModelVersionsResponse' :: Maybe Text
-> Maybe [ModelVersionDetail]
-> Int
-> DescribeModelVersionsResponse
DescribeModelVersionsResponse'
{ $sel:nextToken:DescribeModelVersionsResponse' :: Maybe Text
nextToken =
Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:modelVersionDetails:DescribeModelVersionsResponse' :: Maybe [ModelVersionDetail]
modelVersionDetails = Maybe [ModelVersionDetail]
forall a. Maybe a
Prelude.Nothing,
$sel:httpStatus:DescribeModelVersionsResponse' :: Int
httpStatus = Int
pHttpStatus_
}
describeModelVersionsResponse_nextToken :: Lens.Lens' DescribeModelVersionsResponse (Prelude.Maybe Prelude.Text)
describeModelVersionsResponse_nextToken :: (Maybe Text -> f (Maybe Text))
-> DescribeModelVersionsResponse -> f DescribeModelVersionsResponse
describeModelVersionsResponse_nextToken = (DescribeModelVersionsResponse -> Maybe Text)
-> (DescribeModelVersionsResponse
-> Maybe Text -> DescribeModelVersionsResponse)
-> Lens
DescribeModelVersionsResponse
DescribeModelVersionsResponse
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeModelVersionsResponse' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:DescribeModelVersionsResponse' :: DescribeModelVersionsResponse -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: DescribeModelVersionsResponse
s@DescribeModelVersionsResponse' {} Maybe Text
a -> DescribeModelVersionsResponse
s {$sel:nextToken:DescribeModelVersionsResponse' :: Maybe Text
nextToken = Maybe Text
a} :: DescribeModelVersionsResponse)
describeModelVersionsResponse_modelVersionDetails :: Lens.Lens' DescribeModelVersionsResponse (Prelude.Maybe [ModelVersionDetail])
describeModelVersionsResponse_modelVersionDetails :: (Maybe [ModelVersionDetail] -> f (Maybe [ModelVersionDetail]))
-> DescribeModelVersionsResponse -> f DescribeModelVersionsResponse
describeModelVersionsResponse_modelVersionDetails = (DescribeModelVersionsResponse -> Maybe [ModelVersionDetail])
-> (DescribeModelVersionsResponse
-> Maybe [ModelVersionDetail] -> DescribeModelVersionsResponse)
-> Lens
DescribeModelVersionsResponse
DescribeModelVersionsResponse
(Maybe [ModelVersionDetail])
(Maybe [ModelVersionDetail])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeModelVersionsResponse' {Maybe [ModelVersionDetail]
modelVersionDetails :: Maybe [ModelVersionDetail]
$sel:modelVersionDetails:DescribeModelVersionsResponse' :: DescribeModelVersionsResponse -> Maybe [ModelVersionDetail]
modelVersionDetails} -> Maybe [ModelVersionDetail]
modelVersionDetails) (\s :: DescribeModelVersionsResponse
s@DescribeModelVersionsResponse' {} Maybe [ModelVersionDetail]
a -> DescribeModelVersionsResponse
s {$sel:modelVersionDetails:DescribeModelVersionsResponse' :: Maybe [ModelVersionDetail]
modelVersionDetails = Maybe [ModelVersionDetail]
a} :: DescribeModelVersionsResponse) ((Maybe [ModelVersionDetail] -> f (Maybe [ModelVersionDetail]))
-> DescribeModelVersionsResponse
-> f DescribeModelVersionsResponse)
-> ((Maybe [ModelVersionDetail] -> f (Maybe [ModelVersionDetail]))
-> Maybe [ModelVersionDetail] -> f (Maybe [ModelVersionDetail]))
-> (Maybe [ModelVersionDetail] -> f (Maybe [ModelVersionDetail]))
-> DescribeModelVersionsResponse
-> f DescribeModelVersionsResponse
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso
[ModelVersionDetail]
[ModelVersionDetail]
[ModelVersionDetail]
[ModelVersionDetail]
-> Iso
(Maybe [ModelVersionDetail])
(Maybe [ModelVersionDetail])
(Maybe [ModelVersionDetail])
(Maybe [ModelVersionDetail])
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
[ModelVersionDetail]
[ModelVersionDetail]
[ModelVersionDetail]
[ModelVersionDetail]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
describeModelVersionsResponse_httpStatus :: Lens.Lens' DescribeModelVersionsResponse Prelude.Int
describeModelVersionsResponse_httpStatus :: (Int -> f Int)
-> DescribeModelVersionsResponse -> f DescribeModelVersionsResponse
describeModelVersionsResponse_httpStatus = (DescribeModelVersionsResponse -> Int)
-> (DescribeModelVersionsResponse
-> Int -> DescribeModelVersionsResponse)
-> Lens
DescribeModelVersionsResponse DescribeModelVersionsResponse Int Int
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeModelVersionsResponse' {Int
httpStatus :: Int
$sel:httpStatus:DescribeModelVersionsResponse' :: DescribeModelVersionsResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: DescribeModelVersionsResponse
s@DescribeModelVersionsResponse' {} Int
a -> DescribeModelVersionsResponse
s {$sel:httpStatus:DescribeModelVersionsResponse' :: Int
httpStatus = Int
a} :: DescribeModelVersionsResponse)
instance Prelude.NFData DescribeModelVersionsResponse