{-# 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.IoT.GetBehaviorModelTrainingSummaries
(
GetBehaviorModelTrainingSummaries (..),
newGetBehaviorModelTrainingSummaries,
getBehaviorModelTrainingSummaries_maxResults,
getBehaviorModelTrainingSummaries_nextToken,
getBehaviorModelTrainingSummaries_securityProfileName,
GetBehaviorModelTrainingSummariesResponse (..),
newGetBehaviorModelTrainingSummariesResponse,
getBehaviorModelTrainingSummariesResponse_nextToken,
getBehaviorModelTrainingSummariesResponse_summaries,
getBehaviorModelTrainingSummariesResponse_httpStatus,
)
where
import qualified Amazonka.Core as Core
import qualified Amazonka.Core.Lens.Internal as Lens
import qualified Amazonka.Data as Data
import Amazonka.IoT.Types
import qualified Amazonka.Prelude as Prelude
import qualified Amazonka.Request as Request
import qualified Amazonka.Response as Response
data GetBehaviorModelTrainingSummaries = GetBehaviorModelTrainingSummaries'
{
GetBehaviorModelTrainingSummaries -> Maybe Natural
maxResults :: Prelude.Maybe Prelude.Natural,
GetBehaviorModelTrainingSummaries -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
GetBehaviorModelTrainingSummaries -> Maybe Text
securityProfileName :: Prelude.Maybe Prelude.Text
}
deriving (GetBehaviorModelTrainingSummaries
-> GetBehaviorModelTrainingSummaries -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: GetBehaviorModelTrainingSummaries
-> GetBehaviorModelTrainingSummaries -> Bool
$c/= :: GetBehaviorModelTrainingSummaries
-> GetBehaviorModelTrainingSummaries -> Bool
== :: GetBehaviorModelTrainingSummaries
-> GetBehaviorModelTrainingSummaries -> Bool
$c== :: GetBehaviorModelTrainingSummaries
-> GetBehaviorModelTrainingSummaries -> Bool
Prelude.Eq, ReadPrec [GetBehaviorModelTrainingSummaries]
ReadPrec GetBehaviorModelTrainingSummaries
Int -> ReadS GetBehaviorModelTrainingSummaries
ReadS [GetBehaviorModelTrainingSummaries]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [GetBehaviorModelTrainingSummaries]
$creadListPrec :: ReadPrec [GetBehaviorModelTrainingSummaries]
readPrec :: ReadPrec GetBehaviorModelTrainingSummaries
$creadPrec :: ReadPrec GetBehaviorModelTrainingSummaries
readList :: ReadS [GetBehaviorModelTrainingSummaries]
$creadList :: ReadS [GetBehaviorModelTrainingSummaries]
readsPrec :: Int -> ReadS GetBehaviorModelTrainingSummaries
$creadsPrec :: Int -> ReadS GetBehaviorModelTrainingSummaries
Prelude.Read, Int -> GetBehaviorModelTrainingSummaries -> ShowS
[GetBehaviorModelTrainingSummaries] -> ShowS
GetBehaviorModelTrainingSummaries -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [GetBehaviorModelTrainingSummaries] -> ShowS
$cshowList :: [GetBehaviorModelTrainingSummaries] -> ShowS
show :: GetBehaviorModelTrainingSummaries -> String
$cshow :: GetBehaviorModelTrainingSummaries -> String
showsPrec :: Int -> GetBehaviorModelTrainingSummaries -> ShowS
$cshowsPrec :: Int -> GetBehaviorModelTrainingSummaries -> ShowS
Prelude.Show, forall x.
Rep GetBehaviorModelTrainingSummaries x
-> GetBehaviorModelTrainingSummaries
forall x.
GetBehaviorModelTrainingSummaries
-> Rep GetBehaviorModelTrainingSummaries x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep GetBehaviorModelTrainingSummaries x
-> GetBehaviorModelTrainingSummaries
$cfrom :: forall x.
GetBehaviorModelTrainingSummaries
-> Rep GetBehaviorModelTrainingSummaries x
Prelude.Generic)
newGetBehaviorModelTrainingSummaries ::
GetBehaviorModelTrainingSummaries
newGetBehaviorModelTrainingSummaries :: GetBehaviorModelTrainingSummaries
newGetBehaviorModelTrainingSummaries =
GetBehaviorModelTrainingSummaries'
{ $sel:maxResults:GetBehaviorModelTrainingSummaries' :: Maybe Natural
maxResults =
forall a. Maybe a
Prelude.Nothing,
$sel:nextToken:GetBehaviorModelTrainingSummaries' :: Maybe Text
nextToken = forall a. Maybe a
Prelude.Nothing,
$sel:securityProfileName:GetBehaviorModelTrainingSummaries' :: Maybe Text
securityProfileName = forall a. Maybe a
Prelude.Nothing
}
getBehaviorModelTrainingSummaries_maxResults :: Lens.Lens' GetBehaviorModelTrainingSummaries (Prelude.Maybe Prelude.Natural)
getBehaviorModelTrainingSummaries_maxResults :: Lens' GetBehaviorModelTrainingSummaries (Maybe Natural)
getBehaviorModelTrainingSummaries_maxResults = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetBehaviorModelTrainingSummaries' {Maybe Natural
maxResults :: Maybe Natural
$sel:maxResults:GetBehaviorModelTrainingSummaries' :: GetBehaviorModelTrainingSummaries -> Maybe Natural
maxResults} -> Maybe Natural
maxResults) (\s :: GetBehaviorModelTrainingSummaries
s@GetBehaviorModelTrainingSummaries' {} Maybe Natural
a -> GetBehaviorModelTrainingSummaries
s {$sel:maxResults:GetBehaviorModelTrainingSummaries' :: Maybe Natural
maxResults = Maybe Natural
a} :: GetBehaviorModelTrainingSummaries)
getBehaviorModelTrainingSummaries_nextToken :: Lens.Lens' GetBehaviorModelTrainingSummaries (Prelude.Maybe Prelude.Text)
getBehaviorModelTrainingSummaries_nextToken :: Lens' GetBehaviorModelTrainingSummaries (Maybe Text)
getBehaviorModelTrainingSummaries_nextToken = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetBehaviorModelTrainingSummaries' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:GetBehaviorModelTrainingSummaries' :: GetBehaviorModelTrainingSummaries -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: GetBehaviorModelTrainingSummaries
s@GetBehaviorModelTrainingSummaries' {} Maybe Text
a -> GetBehaviorModelTrainingSummaries
s {$sel:nextToken:GetBehaviorModelTrainingSummaries' :: Maybe Text
nextToken = Maybe Text
a} :: GetBehaviorModelTrainingSummaries)
getBehaviorModelTrainingSummaries_securityProfileName :: Lens.Lens' GetBehaviorModelTrainingSummaries (Prelude.Maybe Prelude.Text)
getBehaviorModelTrainingSummaries_securityProfileName :: Lens' GetBehaviorModelTrainingSummaries (Maybe Text)
getBehaviorModelTrainingSummaries_securityProfileName = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetBehaviorModelTrainingSummaries' {Maybe Text
securityProfileName :: Maybe Text
$sel:securityProfileName:GetBehaviorModelTrainingSummaries' :: GetBehaviorModelTrainingSummaries -> Maybe Text
securityProfileName} -> Maybe Text
securityProfileName) (\s :: GetBehaviorModelTrainingSummaries
s@GetBehaviorModelTrainingSummaries' {} Maybe Text
a -> GetBehaviorModelTrainingSummaries
s {$sel:securityProfileName:GetBehaviorModelTrainingSummaries' :: Maybe Text
securityProfileName = Maybe Text
a} :: GetBehaviorModelTrainingSummaries)
instance
Core.AWSPager
GetBehaviorModelTrainingSummaries
where
page :: GetBehaviorModelTrainingSummaries
-> AWSResponse GetBehaviorModelTrainingSummaries
-> Maybe GetBehaviorModelTrainingSummaries
page GetBehaviorModelTrainingSummaries
rq AWSResponse GetBehaviorModelTrainingSummaries
rs
| forall a. AWSTruncated a => a -> Bool
Core.stop
( AWSResponse GetBehaviorModelTrainingSummaries
rs
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? Lens' GetBehaviorModelTrainingSummariesResponse (Maybe Text)
getBehaviorModelTrainingSummariesResponse_nextToken
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. forall a b. Prism (Maybe a) (Maybe b) a b
Lens._Just
) =
forall a. Maybe a
Prelude.Nothing
| forall a. AWSTruncated a => a -> Bool
Core.stop
( AWSResponse GetBehaviorModelTrainingSummaries
rs
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? Lens'
GetBehaviorModelTrainingSummariesResponse
(Maybe [BehaviorModelTrainingSummary])
getBehaviorModelTrainingSummariesResponse_summaries
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. forall a b. Prism (Maybe a) (Maybe b) a b
Lens._Just
) =
forall a. Maybe a
Prelude.Nothing
| Bool
Prelude.otherwise =
forall a. a -> Maybe a
Prelude.Just
forall a b. (a -> b) -> a -> b
Prelude.$ GetBehaviorModelTrainingSummaries
rq
forall a b. a -> (a -> b) -> b
Prelude.& Lens' GetBehaviorModelTrainingSummaries (Maybe Text)
getBehaviorModelTrainingSummaries_nextToken
forall s t a b. ASetter s t a b -> b -> s -> t
Lens..~ AWSResponse GetBehaviorModelTrainingSummaries
rs
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? Lens' GetBehaviorModelTrainingSummariesResponse (Maybe Text)
getBehaviorModelTrainingSummariesResponse_nextToken
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. forall a b. Prism (Maybe a) (Maybe b) a b
Lens._Just
instance
Core.AWSRequest
GetBehaviorModelTrainingSummaries
where
type
AWSResponse GetBehaviorModelTrainingSummaries =
GetBehaviorModelTrainingSummariesResponse
request :: (Service -> Service)
-> GetBehaviorModelTrainingSummaries
-> Request GetBehaviorModelTrainingSummaries
request Service -> Service
overrides =
forall a. ToRequest a => Service -> a -> Request a
Request.get (Service -> Service
overrides Service
defaultService)
response :: forall (m :: * -> *).
MonadResource m =>
(ByteStringLazy -> IO ByteStringLazy)
-> Service
-> Proxy GetBehaviorModelTrainingSummaries
-> ClientResponse ClientBody
-> m (Either
Error
(ClientResponse (AWSResponse GetBehaviorModelTrainingSummaries)))
response =
forall (m :: * -> *) a.
MonadResource m =>
(Int -> ResponseHeaders -> Object -> Either String (AWSResponse a))
-> (ByteStringLazy -> IO ByteStringLazy)
-> Service
-> Proxy a
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse a)))
Response.receiveJSON
( \Int
s ResponseHeaders
h Object
x ->
Maybe Text
-> Maybe [BehaviorModelTrainingSummary]
-> Int
-> GetBehaviorModelTrainingSummariesResponse
GetBehaviorModelTrainingSummariesResponse'
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x forall a. FromJSON a => Object -> Key -> Either String (Maybe a)
Data..?> Key
"nextToken")
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Either String (Maybe a)
Data..?> Key
"summaries" forall (f :: * -> *) a. Functor f => f (Maybe a) -> a -> f a
Core..!@ forall a. Monoid a => a
Prelude.mempty)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure (forall a. Enum a => a -> Int
Prelude.fromEnum Int
s))
)
instance
Prelude.Hashable
GetBehaviorModelTrainingSummaries
where
hashWithSalt :: Int -> GetBehaviorModelTrainingSummaries -> Int
hashWithSalt
Int
_salt
GetBehaviorModelTrainingSummaries' {Maybe Natural
Maybe Text
securityProfileName :: Maybe Text
nextToken :: Maybe Text
maxResults :: Maybe Natural
$sel:securityProfileName:GetBehaviorModelTrainingSummaries' :: GetBehaviorModelTrainingSummaries -> Maybe Text
$sel:nextToken:GetBehaviorModelTrainingSummaries' :: GetBehaviorModelTrainingSummaries -> Maybe Text
$sel:maxResults:GetBehaviorModelTrainingSummaries' :: GetBehaviorModelTrainingSummaries -> Maybe Natural
..} =
Int
_salt
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Natural
maxResults
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
nextToken
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
securityProfileName
instance
Prelude.NFData
GetBehaviorModelTrainingSummaries
where
rnf :: GetBehaviorModelTrainingSummaries -> ()
rnf GetBehaviorModelTrainingSummaries' {Maybe Natural
Maybe Text
securityProfileName :: Maybe Text
nextToken :: Maybe Text
maxResults :: Maybe Natural
$sel:securityProfileName:GetBehaviorModelTrainingSummaries' :: GetBehaviorModelTrainingSummaries -> Maybe Text
$sel:nextToken:GetBehaviorModelTrainingSummaries' :: GetBehaviorModelTrainingSummaries -> Maybe Text
$sel:maxResults:GetBehaviorModelTrainingSummaries' :: GetBehaviorModelTrainingSummaries -> Maybe Natural
..} =
forall a. NFData a => a -> ()
Prelude.rnf Maybe Natural
maxResults
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
nextToken
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
securityProfileName
instance
Data.ToHeaders
GetBehaviorModelTrainingSummaries
where
toHeaders :: GetBehaviorModelTrainingSummaries -> ResponseHeaders
toHeaders = forall a b. a -> b -> a
Prelude.const forall a. Monoid a => a
Prelude.mempty
instance
Data.ToPath
GetBehaviorModelTrainingSummaries
where
toPath :: GetBehaviorModelTrainingSummaries -> ByteString
toPath =
forall a b. a -> b -> a
Prelude.const ByteString
"/behavior-model-training/summaries"
instance
Data.ToQuery
GetBehaviorModelTrainingSummaries
where
toQuery :: GetBehaviorModelTrainingSummaries -> QueryString
toQuery GetBehaviorModelTrainingSummaries' {Maybe Natural
Maybe Text
securityProfileName :: Maybe Text
nextToken :: Maybe Text
maxResults :: Maybe Natural
$sel:securityProfileName:GetBehaviorModelTrainingSummaries' :: GetBehaviorModelTrainingSummaries -> Maybe Text
$sel:nextToken:GetBehaviorModelTrainingSummaries' :: GetBehaviorModelTrainingSummaries -> Maybe Text
$sel:maxResults:GetBehaviorModelTrainingSummaries' :: GetBehaviorModelTrainingSummaries -> Maybe Natural
..} =
forall a. Monoid a => [a] -> a
Prelude.mconcat
[ ByteString
"maxResults" forall a. ToQuery a => ByteString -> a -> QueryString
Data.=: Maybe Natural
maxResults,
ByteString
"nextToken" forall a. ToQuery a => ByteString -> a -> QueryString
Data.=: Maybe Text
nextToken,
ByteString
"securityProfileName" forall a. ToQuery a => ByteString -> a -> QueryString
Data.=: Maybe Text
securityProfileName
]
data GetBehaviorModelTrainingSummariesResponse = GetBehaviorModelTrainingSummariesResponse'
{
GetBehaviorModelTrainingSummariesResponse -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
GetBehaviorModelTrainingSummariesResponse
-> Maybe [BehaviorModelTrainingSummary]
summaries :: Prelude.Maybe [BehaviorModelTrainingSummary],
GetBehaviorModelTrainingSummariesResponse -> Int
httpStatus :: Prelude.Int
}
deriving (GetBehaviorModelTrainingSummariesResponse
-> GetBehaviorModelTrainingSummariesResponse -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: GetBehaviorModelTrainingSummariesResponse
-> GetBehaviorModelTrainingSummariesResponse -> Bool
$c/= :: GetBehaviorModelTrainingSummariesResponse
-> GetBehaviorModelTrainingSummariesResponse -> Bool
== :: GetBehaviorModelTrainingSummariesResponse
-> GetBehaviorModelTrainingSummariesResponse -> Bool
$c== :: GetBehaviorModelTrainingSummariesResponse
-> GetBehaviorModelTrainingSummariesResponse -> Bool
Prelude.Eq, ReadPrec [GetBehaviorModelTrainingSummariesResponse]
ReadPrec GetBehaviorModelTrainingSummariesResponse
Int -> ReadS GetBehaviorModelTrainingSummariesResponse
ReadS [GetBehaviorModelTrainingSummariesResponse]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [GetBehaviorModelTrainingSummariesResponse]
$creadListPrec :: ReadPrec [GetBehaviorModelTrainingSummariesResponse]
readPrec :: ReadPrec GetBehaviorModelTrainingSummariesResponse
$creadPrec :: ReadPrec GetBehaviorModelTrainingSummariesResponse
readList :: ReadS [GetBehaviorModelTrainingSummariesResponse]
$creadList :: ReadS [GetBehaviorModelTrainingSummariesResponse]
readsPrec :: Int -> ReadS GetBehaviorModelTrainingSummariesResponse
$creadsPrec :: Int -> ReadS GetBehaviorModelTrainingSummariesResponse
Prelude.Read, Int -> GetBehaviorModelTrainingSummariesResponse -> ShowS
[GetBehaviorModelTrainingSummariesResponse] -> ShowS
GetBehaviorModelTrainingSummariesResponse -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [GetBehaviorModelTrainingSummariesResponse] -> ShowS
$cshowList :: [GetBehaviorModelTrainingSummariesResponse] -> ShowS
show :: GetBehaviorModelTrainingSummariesResponse -> String
$cshow :: GetBehaviorModelTrainingSummariesResponse -> String
showsPrec :: Int -> GetBehaviorModelTrainingSummariesResponse -> ShowS
$cshowsPrec :: Int -> GetBehaviorModelTrainingSummariesResponse -> ShowS
Prelude.Show, forall x.
Rep GetBehaviorModelTrainingSummariesResponse x
-> GetBehaviorModelTrainingSummariesResponse
forall x.
GetBehaviorModelTrainingSummariesResponse
-> Rep GetBehaviorModelTrainingSummariesResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep GetBehaviorModelTrainingSummariesResponse x
-> GetBehaviorModelTrainingSummariesResponse
$cfrom :: forall x.
GetBehaviorModelTrainingSummariesResponse
-> Rep GetBehaviorModelTrainingSummariesResponse x
Prelude.Generic)
newGetBehaviorModelTrainingSummariesResponse ::
Prelude.Int ->
GetBehaviorModelTrainingSummariesResponse
newGetBehaviorModelTrainingSummariesResponse :: Int -> GetBehaviorModelTrainingSummariesResponse
newGetBehaviorModelTrainingSummariesResponse
Int
pHttpStatus_ =
GetBehaviorModelTrainingSummariesResponse'
{ $sel:nextToken:GetBehaviorModelTrainingSummariesResponse' :: Maybe Text
nextToken =
forall a. Maybe a
Prelude.Nothing,
$sel:summaries:GetBehaviorModelTrainingSummariesResponse' :: Maybe [BehaviorModelTrainingSummary]
summaries = forall a. Maybe a
Prelude.Nothing,
$sel:httpStatus:GetBehaviorModelTrainingSummariesResponse' :: Int
httpStatus = Int
pHttpStatus_
}
getBehaviorModelTrainingSummariesResponse_nextToken :: Lens.Lens' GetBehaviorModelTrainingSummariesResponse (Prelude.Maybe Prelude.Text)
getBehaviorModelTrainingSummariesResponse_nextToken :: Lens' GetBehaviorModelTrainingSummariesResponse (Maybe Text)
getBehaviorModelTrainingSummariesResponse_nextToken = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetBehaviorModelTrainingSummariesResponse' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:GetBehaviorModelTrainingSummariesResponse' :: GetBehaviorModelTrainingSummariesResponse -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: GetBehaviorModelTrainingSummariesResponse
s@GetBehaviorModelTrainingSummariesResponse' {} Maybe Text
a -> GetBehaviorModelTrainingSummariesResponse
s {$sel:nextToken:GetBehaviorModelTrainingSummariesResponse' :: Maybe Text
nextToken = Maybe Text
a} :: GetBehaviorModelTrainingSummariesResponse)
getBehaviorModelTrainingSummariesResponse_summaries :: Lens.Lens' GetBehaviorModelTrainingSummariesResponse (Prelude.Maybe [BehaviorModelTrainingSummary])
getBehaviorModelTrainingSummariesResponse_summaries :: Lens'
GetBehaviorModelTrainingSummariesResponse
(Maybe [BehaviorModelTrainingSummary])
getBehaviorModelTrainingSummariesResponse_summaries = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetBehaviorModelTrainingSummariesResponse' {Maybe [BehaviorModelTrainingSummary]
summaries :: Maybe [BehaviorModelTrainingSummary]
$sel:summaries:GetBehaviorModelTrainingSummariesResponse' :: GetBehaviorModelTrainingSummariesResponse
-> Maybe [BehaviorModelTrainingSummary]
summaries} -> Maybe [BehaviorModelTrainingSummary]
summaries) (\s :: GetBehaviorModelTrainingSummariesResponse
s@GetBehaviorModelTrainingSummariesResponse' {} Maybe [BehaviorModelTrainingSummary]
a -> GetBehaviorModelTrainingSummariesResponse
s {$sel:summaries:GetBehaviorModelTrainingSummariesResponse' :: Maybe [BehaviorModelTrainingSummary]
summaries = Maybe [BehaviorModelTrainingSummary]
a} :: GetBehaviorModelTrainingSummariesResponse) forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. 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 forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
getBehaviorModelTrainingSummariesResponse_httpStatus :: Lens.Lens' GetBehaviorModelTrainingSummariesResponse Prelude.Int
getBehaviorModelTrainingSummariesResponse_httpStatus :: Lens' GetBehaviorModelTrainingSummariesResponse Int
getBehaviorModelTrainingSummariesResponse_httpStatus = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetBehaviorModelTrainingSummariesResponse' {Int
httpStatus :: Int
$sel:httpStatus:GetBehaviorModelTrainingSummariesResponse' :: GetBehaviorModelTrainingSummariesResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: GetBehaviorModelTrainingSummariesResponse
s@GetBehaviorModelTrainingSummariesResponse' {} Int
a -> GetBehaviorModelTrainingSummariesResponse
s {$sel:httpStatus:GetBehaviorModelTrainingSummariesResponse' :: Int
httpStatus = Int
a} :: GetBehaviorModelTrainingSummariesResponse)
instance
Prelude.NFData
GetBehaviorModelTrainingSummariesResponse
where
rnf :: GetBehaviorModelTrainingSummariesResponse -> ()
rnf GetBehaviorModelTrainingSummariesResponse' {Int
Maybe [BehaviorModelTrainingSummary]
Maybe Text
httpStatus :: Int
summaries :: Maybe [BehaviorModelTrainingSummary]
nextToken :: Maybe Text
$sel:httpStatus:GetBehaviorModelTrainingSummariesResponse' :: GetBehaviorModelTrainingSummariesResponse -> Int
$sel:summaries:GetBehaviorModelTrainingSummariesResponse' :: GetBehaviorModelTrainingSummariesResponse
-> Maybe [BehaviorModelTrainingSummary]
$sel:nextToken:GetBehaviorModelTrainingSummariesResponse' :: GetBehaviorModelTrainingSummariesResponse -> Maybe Text
..} =
forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
nextToken
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe [BehaviorModelTrainingSummary]
summaries
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Int
httpStatus