{-# 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_nextToken,
getBehaviorModelTrainingSummaries_securityProfileName,
getBehaviorModelTrainingSummaries_maxResults,
GetBehaviorModelTrainingSummariesResponse (..),
newGetBehaviorModelTrainingSummariesResponse,
getBehaviorModelTrainingSummariesResponse_nextToken,
getBehaviorModelTrainingSummariesResponse_summaries,
getBehaviorModelTrainingSummariesResponse_httpStatus,
)
where
import qualified Amazonka.Core as Core
import Amazonka.IoT.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 GetBehaviorModelTrainingSummaries = GetBehaviorModelTrainingSummaries'
{
GetBehaviorModelTrainingSummaries -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
GetBehaviorModelTrainingSummaries -> Maybe Text
securityProfileName :: Prelude.Maybe Prelude.Text,
GetBehaviorModelTrainingSummaries -> Maybe Natural
maxResults :: Prelude.Maybe Prelude.Natural
}
deriving (GetBehaviorModelTrainingSummaries
-> GetBehaviorModelTrainingSummaries -> Bool
(GetBehaviorModelTrainingSummaries
-> GetBehaviorModelTrainingSummaries -> Bool)
-> (GetBehaviorModelTrainingSummaries
-> GetBehaviorModelTrainingSummaries -> Bool)
-> Eq GetBehaviorModelTrainingSummaries
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]
(Int -> ReadS GetBehaviorModelTrainingSummaries)
-> ReadS [GetBehaviorModelTrainingSummaries]
-> ReadPrec GetBehaviorModelTrainingSummaries
-> ReadPrec [GetBehaviorModelTrainingSummaries]
-> Read 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
(Int -> GetBehaviorModelTrainingSummaries -> ShowS)
-> (GetBehaviorModelTrainingSummaries -> String)
-> ([GetBehaviorModelTrainingSummaries] -> ShowS)
-> Show GetBehaviorModelTrainingSummaries
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.
GetBehaviorModelTrainingSummaries
-> Rep GetBehaviorModelTrainingSummaries x)
-> (forall x.
Rep GetBehaviorModelTrainingSummaries x
-> GetBehaviorModelTrainingSummaries)
-> Generic GetBehaviorModelTrainingSummaries
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' :: Maybe Text
-> Maybe Text -> Maybe Natural -> GetBehaviorModelTrainingSummaries
GetBehaviorModelTrainingSummaries'
{ $sel:nextToken:GetBehaviorModelTrainingSummaries' :: Maybe Text
nextToken =
Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:securityProfileName:GetBehaviorModelTrainingSummaries' :: Maybe Text
securityProfileName = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:maxResults:GetBehaviorModelTrainingSummaries' :: Maybe Natural
maxResults = Maybe Natural
forall a. Maybe a
Prelude.Nothing
}
getBehaviorModelTrainingSummaries_nextToken :: Lens.Lens' GetBehaviorModelTrainingSummaries (Prelude.Maybe Prelude.Text)
getBehaviorModelTrainingSummaries_nextToken :: (Maybe Text -> f (Maybe Text))
-> GetBehaviorModelTrainingSummaries
-> f GetBehaviorModelTrainingSummaries
getBehaviorModelTrainingSummaries_nextToken = (GetBehaviorModelTrainingSummaries -> Maybe Text)
-> (GetBehaviorModelTrainingSummaries
-> Maybe Text -> GetBehaviorModelTrainingSummaries)
-> Lens
GetBehaviorModelTrainingSummaries
GetBehaviorModelTrainingSummaries
(Maybe Text)
(Maybe Text)
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 :: (Maybe Text -> f (Maybe Text))
-> GetBehaviorModelTrainingSummaries
-> f GetBehaviorModelTrainingSummaries
getBehaviorModelTrainingSummaries_securityProfileName = (GetBehaviorModelTrainingSummaries -> Maybe Text)
-> (GetBehaviorModelTrainingSummaries
-> Maybe Text -> GetBehaviorModelTrainingSummaries)
-> Lens
GetBehaviorModelTrainingSummaries
GetBehaviorModelTrainingSummaries
(Maybe Text)
(Maybe Text)
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)
getBehaviorModelTrainingSummaries_maxResults :: Lens.Lens' GetBehaviorModelTrainingSummaries (Prelude.Maybe Prelude.Natural)
getBehaviorModelTrainingSummaries_maxResults :: (Maybe Natural -> f (Maybe Natural))
-> GetBehaviorModelTrainingSummaries
-> f GetBehaviorModelTrainingSummaries
getBehaviorModelTrainingSummaries_maxResults = (GetBehaviorModelTrainingSummaries -> Maybe Natural)
-> (GetBehaviorModelTrainingSummaries
-> Maybe Natural -> GetBehaviorModelTrainingSummaries)
-> Lens
GetBehaviorModelTrainingSummaries
GetBehaviorModelTrainingSummaries
(Maybe Natural)
(Maybe Natural)
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)
instance
Core.AWSPager
GetBehaviorModelTrainingSummaries
where
page :: GetBehaviorModelTrainingSummaries
-> AWSResponse GetBehaviorModelTrainingSummaries
-> Maybe GetBehaviorModelTrainingSummaries
page GetBehaviorModelTrainingSummaries
rq AWSResponse GetBehaviorModelTrainingSummaries
rs
| Maybe Text -> Bool
forall a. AWSTruncated a => a -> Bool
Core.stop
( AWSResponse GetBehaviorModelTrainingSummaries
GetBehaviorModelTrainingSummariesResponse
rs
GetBehaviorModelTrainingSummariesResponse
-> Getting
(First Text) GetBehaviorModelTrainingSummariesResponse Text
-> Maybe Text
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? (Maybe Text -> Const (First Text) (Maybe Text))
-> GetBehaviorModelTrainingSummariesResponse
-> Const (First Text) GetBehaviorModelTrainingSummariesResponse
Lens' GetBehaviorModelTrainingSummariesResponse (Maybe Text)
getBehaviorModelTrainingSummariesResponse_nextToken
((Maybe Text -> Const (First Text) (Maybe Text))
-> GetBehaviorModelTrainingSummariesResponse
-> Const (First Text) GetBehaviorModelTrainingSummariesResponse)
-> ((Text -> Const (First Text) Text)
-> Maybe Text -> Const (First Text) (Maybe Text))
-> Getting
(First Text) GetBehaviorModelTrainingSummariesResponse Text
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. (Text -> Const (First Text) Text)
-> Maybe Text -> Const (First Text) (Maybe Text)
forall a b. Prism (Maybe a) (Maybe b) a b
Lens._Just
) =
Maybe GetBehaviorModelTrainingSummaries
forall a. Maybe a
Prelude.Nothing
| Maybe [BehaviorModelTrainingSummary] -> Bool
forall a. AWSTruncated a => a -> Bool
Core.stop
( AWSResponse GetBehaviorModelTrainingSummaries
GetBehaviorModelTrainingSummariesResponse
rs
GetBehaviorModelTrainingSummariesResponse
-> Getting
(First [BehaviorModelTrainingSummary])
GetBehaviorModelTrainingSummariesResponse
[BehaviorModelTrainingSummary]
-> Maybe [BehaviorModelTrainingSummary]
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? (Maybe [BehaviorModelTrainingSummary]
-> Const
(First [BehaviorModelTrainingSummary])
(Maybe [BehaviorModelTrainingSummary]))
-> GetBehaviorModelTrainingSummariesResponse
-> Const
(First [BehaviorModelTrainingSummary])
GetBehaviorModelTrainingSummariesResponse
Lens'
GetBehaviorModelTrainingSummariesResponse
(Maybe [BehaviorModelTrainingSummary])
getBehaviorModelTrainingSummariesResponse_summaries
((Maybe [BehaviorModelTrainingSummary]
-> Const
(First [BehaviorModelTrainingSummary])
(Maybe [BehaviorModelTrainingSummary]))
-> GetBehaviorModelTrainingSummariesResponse
-> Const
(First [BehaviorModelTrainingSummary])
GetBehaviorModelTrainingSummariesResponse)
-> (([BehaviorModelTrainingSummary]
-> Const
(First [BehaviorModelTrainingSummary])
[BehaviorModelTrainingSummary])
-> Maybe [BehaviorModelTrainingSummary]
-> Const
(First [BehaviorModelTrainingSummary])
(Maybe [BehaviorModelTrainingSummary]))
-> Getting
(First [BehaviorModelTrainingSummary])
GetBehaviorModelTrainingSummariesResponse
[BehaviorModelTrainingSummary]
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. ([BehaviorModelTrainingSummary]
-> Const
(First [BehaviorModelTrainingSummary])
[BehaviorModelTrainingSummary])
-> Maybe [BehaviorModelTrainingSummary]
-> Const
(First [BehaviorModelTrainingSummary])
(Maybe [BehaviorModelTrainingSummary])
forall a b. Prism (Maybe a) (Maybe b) a b
Lens._Just
) =
Maybe GetBehaviorModelTrainingSummaries
forall a. Maybe a
Prelude.Nothing
| Bool
Prelude.otherwise =
GetBehaviorModelTrainingSummaries
-> Maybe GetBehaviorModelTrainingSummaries
forall a. a -> Maybe a
Prelude.Just (GetBehaviorModelTrainingSummaries
-> Maybe GetBehaviorModelTrainingSummaries)
-> GetBehaviorModelTrainingSummaries
-> Maybe GetBehaviorModelTrainingSummaries
forall a b. (a -> b) -> a -> b
Prelude.$
GetBehaviorModelTrainingSummaries
rq
GetBehaviorModelTrainingSummaries
-> (GetBehaviorModelTrainingSummaries
-> GetBehaviorModelTrainingSummaries)
-> GetBehaviorModelTrainingSummaries
forall a b. a -> (a -> b) -> b
Prelude.& (Maybe Text -> Identity (Maybe Text))
-> GetBehaviorModelTrainingSummaries
-> Identity GetBehaviorModelTrainingSummaries
Lens
GetBehaviorModelTrainingSummaries
GetBehaviorModelTrainingSummaries
(Maybe Text)
(Maybe Text)
getBehaviorModelTrainingSummaries_nextToken
((Maybe Text -> Identity (Maybe Text))
-> GetBehaviorModelTrainingSummaries
-> Identity GetBehaviorModelTrainingSummaries)
-> Maybe Text
-> GetBehaviorModelTrainingSummaries
-> GetBehaviorModelTrainingSummaries
forall s t a b. ASetter s t a b -> b -> s -> t
Lens..~ AWSResponse GetBehaviorModelTrainingSummaries
GetBehaviorModelTrainingSummariesResponse
rs
GetBehaviorModelTrainingSummariesResponse
-> Getting
(First Text) GetBehaviorModelTrainingSummariesResponse Text
-> Maybe Text
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? (Maybe Text -> Const (First Text) (Maybe Text))
-> GetBehaviorModelTrainingSummariesResponse
-> Const (First Text) GetBehaviorModelTrainingSummariesResponse
Lens' GetBehaviorModelTrainingSummariesResponse (Maybe Text)
getBehaviorModelTrainingSummariesResponse_nextToken
((Maybe Text -> Const (First Text) (Maybe Text))
-> GetBehaviorModelTrainingSummariesResponse
-> Const (First Text) GetBehaviorModelTrainingSummariesResponse)
-> ((Text -> Const (First Text) Text)
-> Maybe Text -> Const (First Text) (Maybe Text))
-> Getting
(First Text) GetBehaviorModelTrainingSummariesResponse Text
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. (Text -> Const (First Text) Text)
-> Maybe Text -> Const (First Text) (Maybe Text)
forall a b. Prism (Maybe a) (Maybe b) a b
Lens._Just
instance
Core.AWSRequest
GetBehaviorModelTrainingSummaries
where
type
AWSResponse GetBehaviorModelTrainingSummaries =
GetBehaviorModelTrainingSummariesResponse
request :: GetBehaviorModelTrainingSummaries
-> Request GetBehaviorModelTrainingSummaries
request = Service
-> GetBehaviorModelTrainingSummaries
-> Request GetBehaviorModelTrainingSummaries
forall a. ToRequest a => Service -> a -> Request a
Request.get Service
defaultService
response :: Logger
-> Service
-> Proxy GetBehaviorModelTrainingSummaries
-> ClientResponse ClientBody
-> m (Either
Error
(ClientResponse (AWSResponse GetBehaviorModelTrainingSummaries)))
response =
(Int
-> ResponseHeaders
-> Object
-> Either String (AWSResponse GetBehaviorModelTrainingSummaries))
-> Logger
-> Service
-> Proxy GetBehaviorModelTrainingSummaries
-> ClientResponse ClientBody
-> m (Either
Error
(ClientResponse (AWSResponse GetBehaviorModelTrainingSummaries)))
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 [BehaviorModelTrainingSummary]
-> Int
-> GetBehaviorModelTrainingSummariesResponse
GetBehaviorModelTrainingSummariesResponse'
(Maybe Text
-> Maybe [BehaviorModelTrainingSummary]
-> Int
-> GetBehaviorModelTrainingSummariesResponse)
-> Either String (Maybe Text)
-> Either
String
(Maybe [BehaviorModelTrainingSummary]
-> Int -> GetBehaviorModelTrainingSummariesResponse)
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 [BehaviorModelTrainingSummary]
-> Int -> GetBehaviorModelTrainingSummariesResponse)
-> Either String (Maybe [BehaviorModelTrainingSummary])
-> Either String (Int -> GetBehaviorModelTrainingSummariesResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object
-> Text
-> Either String (Maybe (Maybe [BehaviorModelTrainingSummary]))
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"summaries" Either String (Maybe (Maybe [BehaviorModelTrainingSummary]))
-> Maybe [BehaviorModelTrainingSummary]
-> Either String (Maybe [BehaviorModelTrainingSummary])
forall (f :: * -> *) a. Functor f => f (Maybe a) -> a -> f a
Core..!@ Maybe [BehaviorModelTrainingSummary]
forall a. Monoid a => a
Prelude.mempty)
Either String (Int -> GetBehaviorModelTrainingSummariesResponse)
-> Either String Int
-> Either String GetBehaviorModelTrainingSummariesResponse
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
GetBehaviorModelTrainingSummaries
instance
Prelude.NFData
GetBehaviorModelTrainingSummaries
instance
Core.ToHeaders
GetBehaviorModelTrainingSummaries
where
toHeaders :: GetBehaviorModelTrainingSummaries -> ResponseHeaders
toHeaders = ResponseHeaders
-> GetBehaviorModelTrainingSummaries -> ResponseHeaders
forall a b. a -> b -> a
Prelude.const ResponseHeaders
forall a. Monoid a => a
Prelude.mempty
instance
Core.ToPath
GetBehaviorModelTrainingSummaries
where
toPath :: GetBehaviorModelTrainingSummaries -> ByteString
toPath =
ByteString -> GetBehaviorModelTrainingSummaries -> ByteString
forall a b. a -> b -> a
Prelude.const ByteString
"/behavior-model-training/summaries"
instance
Core.ToQuery
GetBehaviorModelTrainingSummaries
where
toQuery :: GetBehaviorModelTrainingSummaries -> QueryString
toQuery GetBehaviorModelTrainingSummaries' {Maybe Natural
Maybe Text
maxResults :: Maybe Natural
securityProfileName :: Maybe Text
nextToken :: Maybe Text
$sel:maxResults:GetBehaviorModelTrainingSummaries' :: GetBehaviorModelTrainingSummaries -> Maybe Natural
$sel:securityProfileName:GetBehaviorModelTrainingSummaries' :: GetBehaviorModelTrainingSummaries -> Maybe Text
$sel:nextToken:GetBehaviorModelTrainingSummaries' :: GetBehaviorModelTrainingSummaries -> Maybe Text
..} =
[QueryString] -> QueryString
forall a. Monoid a => [a] -> a
Prelude.mconcat
[ ByteString
"nextToken" ByteString -> Maybe Text -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Maybe Text
nextToken,
ByteString
"securityProfileName" ByteString -> Maybe Text -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Maybe Text
securityProfileName,
ByteString
"maxResults" ByteString -> Maybe Natural -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Maybe Natural
maxResults
]
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
(GetBehaviorModelTrainingSummariesResponse
-> GetBehaviorModelTrainingSummariesResponse -> Bool)
-> (GetBehaviorModelTrainingSummariesResponse
-> GetBehaviorModelTrainingSummariesResponse -> Bool)
-> Eq GetBehaviorModelTrainingSummariesResponse
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]
(Int -> ReadS GetBehaviorModelTrainingSummariesResponse)
-> ReadS [GetBehaviorModelTrainingSummariesResponse]
-> ReadPrec GetBehaviorModelTrainingSummariesResponse
-> ReadPrec [GetBehaviorModelTrainingSummariesResponse]
-> Read 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
(Int -> GetBehaviorModelTrainingSummariesResponse -> ShowS)
-> (GetBehaviorModelTrainingSummariesResponse -> String)
-> ([GetBehaviorModelTrainingSummariesResponse] -> ShowS)
-> Show GetBehaviorModelTrainingSummariesResponse
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.
GetBehaviorModelTrainingSummariesResponse
-> Rep GetBehaviorModelTrainingSummariesResponse x)
-> (forall x.
Rep GetBehaviorModelTrainingSummariesResponse x
-> GetBehaviorModelTrainingSummariesResponse)
-> Generic GetBehaviorModelTrainingSummariesResponse
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' :: Maybe Text
-> Maybe [BehaviorModelTrainingSummary]
-> Int
-> GetBehaviorModelTrainingSummariesResponse
GetBehaviorModelTrainingSummariesResponse'
{ $sel:nextToken:GetBehaviorModelTrainingSummariesResponse' :: Maybe Text
nextToken =
Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:summaries:GetBehaviorModelTrainingSummariesResponse' :: Maybe [BehaviorModelTrainingSummary]
summaries = Maybe [BehaviorModelTrainingSummary]
forall a. Maybe a
Prelude.Nothing,
$sel:httpStatus:GetBehaviorModelTrainingSummariesResponse' :: Int
httpStatus = Int
pHttpStatus_
}
getBehaviorModelTrainingSummariesResponse_nextToken :: Lens.Lens' GetBehaviorModelTrainingSummariesResponse (Prelude.Maybe Prelude.Text)
getBehaviorModelTrainingSummariesResponse_nextToken :: (Maybe Text -> f (Maybe Text))
-> GetBehaviorModelTrainingSummariesResponse
-> f GetBehaviorModelTrainingSummariesResponse
getBehaviorModelTrainingSummariesResponse_nextToken = (GetBehaviorModelTrainingSummariesResponse -> Maybe Text)
-> (GetBehaviorModelTrainingSummariesResponse
-> Maybe Text -> GetBehaviorModelTrainingSummariesResponse)
-> Lens' GetBehaviorModelTrainingSummariesResponse (Maybe Text)
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 :: (Maybe [BehaviorModelTrainingSummary]
-> f (Maybe [BehaviorModelTrainingSummary]))
-> GetBehaviorModelTrainingSummariesResponse
-> f GetBehaviorModelTrainingSummariesResponse
getBehaviorModelTrainingSummariesResponse_summaries = (GetBehaviorModelTrainingSummariesResponse
-> Maybe [BehaviorModelTrainingSummary])
-> (GetBehaviorModelTrainingSummariesResponse
-> Maybe [BehaviorModelTrainingSummary]
-> GetBehaviorModelTrainingSummariesResponse)
-> Lens'
GetBehaviorModelTrainingSummariesResponse
(Maybe [BehaviorModelTrainingSummary])
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) ((Maybe [BehaviorModelTrainingSummary]
-> f (Maybe [BehaviorModelTrainingSummary]))
-> GetBehaviorModelTrainingSummariesResponse
-> f GetBehaviorModelTrainingSummariesResponse)
-> ((Maybe [BehaviorModelTrainingSummary]
-> f (Maybe [BehaviorModelTrainingSummary]))
-> Maybe [BehaviorModelTrainingSummary]
-> f (Maybe [BehaviorModelTrainingSummary]))
-> (Maybe [BehaviorModelTrainingSummary]
-> f (Maybe [BehaviorModelTrainingSummary]))
-> GetBehaviorModelTrainingSummariesResponse
-> f GetBehaviorModelTrainingSummariesResponse
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso
[BehaviorModelTrainingSummary]
[BehaviorModelTrainingSummary]
[BehaviorModelTrainingSummary]
[BehaviorModelTrainingSummary]
-> Iso
(Maybe [BehaviorModelTrainingSummary])
(Maybe [BehaviorModelTrainingSummary])
(Maybe [BehaviorModelTrainingSummary])
(Maybe [BehaviorModelTrainingSummary])
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
[BehaviorModelTrainingSummary]
[BehaviorModelTrainingSummary]
[BehaviorModelTrainingSummary]
[BehaviorModelTrainingSummary]
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 :: (Int -> f Int)
-> GetBehaviorModelTrainingSummariesResponse
-> f GetBehaviorModelTrainingSummariesResponse
getBehaviorModelTrainingSummariesResponse_httpStatus = (GetBehaviorModelTrainingSummariesResponse -> Int)
-> (GetBehaviorModelTrainingSummariesResponse
-> Int -> GetBehaviorModelTrainingSummariesResponse)
-> Lens
GetBehaviorModelTrainingSummariesResponse
GetBehaviorModelTrainingSummariesResponse
Int
Int
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