{-# 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.SageMakerA2IRuntime.ListHumanLoops
(
ListHumanLoops (..),
newListHumanLoops,
listHumanLoops_creationTimeAfter,
listHumanLoops_creationTimeBefore,
listHumanLoops_maxResults,
listHumanLoops_nextToken,
listHumanLoops_sortOrder,
listHumanLoops_flowDefinitionArn,
ListHumanLoopsResponse (..),
newListHumanLoopsResponse,
listHumanLoopsResponse_nextToken,
listHumanLoopsResponse_httpStatus,
listHumanLoopsResponse_humanLoopSummaries,
)
where
import qualified Amazonka.Core as Core
import qualified Amazonka.Core.Lens.Internal as Lens
import qualified Amazonka.Data as Data
import qualified Amazonka.Prelude as Prelude
import qualified Amazonka.Request as Request
import qualified Amazonka.Response as Response
import Amazonka.SageMakerA2IRuntime.Types
data ListHumanLoops = ListHumanLoops'
{
ListHumanLoops -> Maybe ISO8601
creationTimeAfter :: Prelude.Maybe Data.ISO8601,
ListHumanLoops -> Maybe ISO8601
creationTimeBefore :: Prelude.Maybe Data.ISO8601,
ListHumanLoops -> Maybe Natural
maxResults :: Prelude.Maybe Prelude.Natural,
ListHumanLoops -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
ListHumanLoops -> Maybe SortOrder
sortOrder :: Prelude.Maybe SortOrder,
ListHumanLoops -> Text
flowDefinitionArn :: Prelude.Text
}
deriving (ListHumanLoops -> ListHumanLoops -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ListHumanLoops -> ListHumanLoops -> Bool
$c/= :: ListHumanLoops -> ListHumanLoops -> Bool
== :: ListHumanLoops -> ListHumanLoops -> Bool
$c== :: ListHumanLoops -> ListHumanLoops -> Bool
Prelude.Eq, ReadPrec [ListHumanLoops]
ReadPrec ListHumanLoops
Int -> ReadS ListHumanLoops
ReadS [ListHumanLoops]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ListHumanLoops]
$creadListPrec :: ReadPrec [ListHumanLoops]
readPrec :: ReadPrec ListHumanLoops
$creadPrec :: ReadPrec ListHumanLoops
readList :: ReadS [ListHumanLoops]
$creadList :: ReadS [ListHumanLoops]
readsPrec :: Int -> ReadS ListHumanLoops
$creadsPrec :: Int -> ReadS ListHumanLoops
Prelude.Read, Int -> ListHumanLoops -> ShowS
[ListHumanLoops] -> ShowS
ListHumanLoops -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ListHumanLoops] -> ShowS
$cshowList :: [ListHumanLoops] -> ShowS
show :: ListHumanLoops -> String
$cshow :: ListHumanLoops -> String
showsPrec :: Int -> ListHumanLoops -> ShowS
$cshowsPrec :: Int -> ListHumanLoops -> ShowS
Prelude.Show, forall x. Rep ListHumanLoops x -> ListHumanLoops
forall x. ListHumanLoops -> Rep ListHumanLoops x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep ListHumanLoops x -> ListHumanLoops
$cfrom :: forall x. ListHumanLoops -> Rep ListHumanLoops x
Prelude.Generic)
newListHumanLoops ::
Prelude.Text ->
ListHumanLoops
newListHumanLoops :: Text -> ListHumanLoops
newListHumanLoops Text
pFlowDefinitionArn_ =
ListHumanLoops'
{ $sel:creationTimeAfter:ListHumanLoops' :: Maybe ISO8601
creationTimeAfter =
forall a. Maybe a
Prelude.Nothing,
$sel:creationTimeBefore:ListHumanLoops' :: Maybe ISO8601
creationTimeBefore = forall a. Maybe a
Prelude.Nothing,
$sel:maxResults:ListHumanLoops' :: Maybe Natural
maxResults = forall a. Maybe a
Prelude.Nothing,
$sel:nextToken:ListHumanLoops' :: Maybe Text
nextToken = forall a. Maybe a
Prelude.Nothing,
$sel:sortOrder:ListHumanLoops' :: Maybe SortOrder
sortOrder = forall a. Maybe a
Prelude.Nothing,
$sel:flowDefinitionArn:ListHumanLoops' :: Text
flowDefinitionArn = Text
pFlowDefinitionArn_
}
listHumanLoops_creationTimeAfter :: Lens.Lens' ListHumanLoops (Prelude.Maybe Prelude.UTCTime)
listHumanLoops_creationTimeAfter :: Lens' ListHumanLoops (Maybe UTCTime)
listHumanLoops_creationTimeAfter = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListHumanLoops' {Maybe ISO8601
creationTimeAfter :: Maybe ISO8601
$sel:creationTimeAfter:ListHumanLoops' :: ListHumanLoops -> Maybe ISO8601
creationTimeAfter} -> Maybe ISO8601
creationTimeAfter) (\s :: ListHumanLoops
s@ListHumanLoops' {} Maybe ISO8601
a -> ListHumanLoops
s {$sel:creationTimeAfter:ListHumanLoops' :: Maybe ISO8601
creationTimeAfter = Maybe ISO8601
a} :: ListHumanLoops) 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 (a :: Format). Iso' (Time a) UTCTime
Data._Time
listHumanLoops_creationTimeBefore :: Lens.Lens' ListHumanLoops (Prelude.Maybe Prelude.UTCTime)
listHumanLoops_creationTimeBefore :: Lens' ListHumanLoops (Maybe UTCTime)
listHumanLoops_creationTimeBefore = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListHumanLoops' {Maybe ISO8601
creationTimeBefore :: Maybe ISO8601
$sel:creationTimeBefore:ListHumanLoops' :: ListHumanLoops -> Maybe ISO8601
creationTimeBefore} -> Maybe ISO8601
creationTimeBefore) (\s :: ListHumanLoops
s@ListHumanLoops' {} Maybe ISO8601
a -> ListHumanLoops
s {$sel:creationTimeBefore:ListHumanLoops' :: Maybe ISO8601
creationTimeBefore = Maybe ISO8601
a} :: ListHumanLoops) 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 (a :: Format). Iso' (Time a) UTCTime
Data._Time
listHumanLoops_maxResults :: Lens.Lens' ListHumanLoops (Prelude.Maybe Prelude.Natural)
listHumanLoops_maxResults :: Lens' ListHumanLoops (Maybe Natural)
listHumanLoops_maxResults = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListHumanLoops' {Maybe Natural
maxResults :: Maybe Natural
$sel:maxResults:ListHumanLoops' :: ListHumanLoops -> Maybe Natural
maxResults} -> Maybe Natural
maxResults) (\s :: ListHumanLoops
s@ListHumanLoops' {} Maybe Natural
a -> ListHumanLoops
s {$sel:maxResults:ListHumanLoops' :: Maybe Natural
maxResults = Maybe Natural
a} :: ListHumanLoops)
listHumanLoops_nextToken :: Lens.Lens' ListHumanLoops (Prelude.Maybe Prelude.Text)
listHumanLoops_nextToken :: Lens' ListHumanLoops (Maybe Text)
listHumanLoops_nextToken = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListHumanLoops' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:ListHumanLoops' :: ListHumanLoops -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: ListHumanLoops
s@ListHumanLoops' {} Maybe Text
a -> ListHumanLoops
s {$sel:nextToken:ListHumanLoops' :: Maybe Text
nextToken = Maybe Text
a} :: ListHumanLoops)
listHumanLoops_sortOrder :: Lens.Lens' ListHumanLoops (Prelude.Maybe SortOrder)
listHumanLoops_sortOrder :: Lens' ListHumanLoops (Maybe SortOrder)
listHumanLoops_sortOrder = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListHumanLoops' {Maybe SortOrder
sortOrder :: Maybe SortOrder
$sel:sortOrder:ListHumanLoops' :: ListHumanLoops -> Maybe SortOrder
sortOrder} -> Maybe SortOrder
sortOrder) (\s :: ListHumanLoops
s@ListHumanLoops' {} Maybe SortOrder
a -> ListHumanLoops
s {$sel:sortOrder:ListHumanLoops' :: Maybe SortOrder
sortOrder = Maybe SortOrder
a} :: ListHumanLoops)
listHumanLoops_flowDefinitionArn :: Lens.Lens' ListHumanLoops Prelude.Text
listHumanLoops_flowDefinitionArn :: Lens' ListHumanLoops Text
listHumanLoops_flowDefinitionArn = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListHumanLoops' {Text
flowDefinitionArn :: Text
$sel:flowDefinitionArn:ListHumanLoops' :: ListHumanLoops -> Text
flowDefinitionArn} -> Text
flowDefinitionArn) (\s :: ListHumanLoops
s@ListHumanLoops' {} Text
a -> ListHumanLoops
s {$sel:flowDefinitionArn:ListHumanLoops' :: Text
flowDefinitionArn = Text
a} :: ListHumanLoops)
instance Core.AWSPager ListHumanLoops where
page :: ListHumanLoops
-> AWSResponse ListHumanLoops -> Maybe ListHumanLoops
page ListHumanLoops
rq AWSResponse ListHumanLoops
rs
| forall a. AWSTruncated a => a -> Bool
Core.stop
( AWSResponse ListHumanLoops
rs
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? Lens' ListHumanLoopsResponse (Maybe Text)
listHumanLoopsResponse_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 ListHumanLoops
rs
forall s a. s -> Getting a s a -> a
Lens.^. Lens' ListHumanLoopsResponse [HumanLoopSummary]
listHumanLoopsResponse_humanLoopSummaries
) =
forall a. Maybe a
Prelude.Nothing
| Bool
Prelude.otherwise =
forall a. a -> Maybe a
Prelude.Just
forall a b. (a -> b) -> a -> b
Prelude.$ ListHumanLoops
rq
forall a b. a -> (a -> b) -> b
Prelude.& Lens' ListHumanLoops (Maybe Text)
listHumanLoops_nextToken
forall s t a b. ASetter s t a b -> b -> s -> t
Lens..~ AWSResponse ListHumanLoops
rs
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? Lens' ListHumanLoopsResponse (Maybe Text)
listHumanLoopsResponse_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 ListHumanLoops where
type
AWSResponse ListHumanLoops =
ListHumanLoopsResponse
request :: (Service -> Service) -> ListHumanLoops -> Request ListHumanLoops
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 ListHumanLoops
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse ListHumanLoops)))
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 -> Int -> [HumanLoopSummary] -> ListHumanLoopsResponse
ListHumanLoopsResponse'
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.<*> (forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure (forall a. Enum a => a -> Int
Prelude.fromEnum Int
s))
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
"HumanLoopSummaries"
forall (f :: * -> *) a. Functor f => f (Maybe a) -> a -> f a
Core..!@ forall a. Monoid a => a
Prelude.mempty
)
)
instance Prelude.Hashable ListHumanLoops where
hashWithSalt :: Int -> ListHumanLoops -> Int
hashWithSalt Int
_salt ListHumanLoops' {Maybe Natural
Maybe Text
Maybe ISO8601
Maybe SortOrder
Text
flowDefinitionArn :: Text
sortOrder :: Maybe SortOrder
nextToken :: Maybe Text
maxResults :: Maybe Natural
creationTimeBefore :: Maybe ISO8601
creationTimeAfter :: Maybe ISO8601
$sel:flowDefinitionArn:ListHumanLoops' :: ListHumanLoops -> Text
$sel:sortOrder:ListHumanLoops' :: ListHumanLoops -> Maybe SortOrder
$sel:nextToken:ListHumanLoops' :: ListHumanLoops -> Maybe Text
$sel:maxResults:ListHumanLoops' :: ListHumanLoops -> Maybe Natural
$sel:creationTimeBefore:ListHumanLoops' :: ListHumanLoops -> Maybe ISO8601
$sel:creationTimeAfter:ListHumanLoops' :: ListHumanLoops -> Maybe ISO8601
..} =
Int
_salt
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe ISO8601
creationTimeAfter
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe ISO8601
creationTimeBefore
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 SortOrder
sortOrder
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Text
flowDefinitionArn
instance Prelude.NFData ListHumanLoops where
rnf :: ListHumanLoops -> ()
rnf ListHumanLoops' {Maybe Natural
Maybe Text
Maybe ISO8601
Maybe SortOrder
Text
flowDefinitionArn :: Text
sortOrder :: Maybe SortOrder
nextToken :: Maybe Text
maxResults :: Maybe Natural
creationTimeBefore :: Maybe ISO8601
creationTimeAfter :: Maybe ISO8601
$sel:flowDefinitionArn:ListHumanLoops' :: ListHumanLoops -> Text
$sel:sortOrder:ListHumanLoops' :: ListHumanLoops -> Maybe SortOrder
$sel:nextToken:ListHumanLoops' :: ListHumanLoops -> Maybe Text
$sel:maxResults:ListHumanLoops' :: ListHumanLoops -> Maybe Natural
$sel:creationTimeBefore:ListHumanLoops' :: ListHumanLoops -> Maybe ISO8601
$sel:creationTimeAfter:ListHumanLoops' :: ListHumanLoops -> Maybe ISO8601
..} =
forall a. NFData a => a -> ()
Prelude.rnf Maybe ISO8601
creationTimeAfter
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe ISO8601
creationTimeBefore
seq :: forall a b. a -> b -> b
`Prelude.seq` 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 SortOrder
sortOrder
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Text
flowDefinitionArn
instance Data.ToHeaders ListHumanLoops where
toHeaders :: ListHumanLoops -> ResponseHeaders
toHeaders = forall a b. a -> b -> a
Prelude.const forall a. Monoid a => a
Prelude.mempty
instance Data.ToPath ListHumanLoops where
toPath :: ListHumanLoops -> ByteString
toPath = forall a b. a -> b -> a
Prelude.const ByteString
"/human-loops"
instance Data.ToQuery ListHumanLoops where
toQuery :: ListHumanLoops -> QueryString
toQuery ListHumanLoops' {Maybe Natural
Maybe Text
Maybe ISO8601
Maybe SortOrder
Text
flowDefinitionArn :: Text
sortOrder :: Maybe SortOrder
nextToken :: Maybe Text
maxResults :: Maybe Natural
creationTimeBefore :: Maybe ISO8601
creationTimeAfter :: Maybe ISO8601
$sel:flowDefinitionArn:ListHumanLoops' :: ListHumanLoops -> Text
$sel:sortOrder:ListHumanLoops' :: ListHumanLoops -> Maybe SortOrder
$sel:nextToken:ListHumanLoops' :: ListHumanLoops -> Maybe Text
$sel:maxResults:ListHumanLoops' :: ListHumanLoops -> Maybe Natural
$sel:creationTimeBefore:ListHumanLoops' :: ListHumanLoops -> Maybe ISO8601
$sel:creationTimeAfter:ListHumanLoops' :: ListHumanLoops -> Maybe ISO8601
..} =
forall a. Monoid a => [a] -> a
Prelude.mconcat
[ ByteString
"CreationTimeAfter" forall a. ToQuery a => ByteString -> a -> QueryString
Data.=: Maybe ISO8601
creationTimeAfter,
ByteString
"CreationTimeBefore" forall a. ToQuery a => ByteString -> a -> QueryString
Data.=: Maybe ISO8601
creationTimeBefore,
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
"SortOrder" forall a. ToQuery a => ByteString -> a -> QueryString
Data.=: Maybe SortOrder
sortOrder,
ByteString
"FlowDefinitionArn" forall a. ToQuery a => ByteString -> a -> QueryString
Data.=: Text
flowDefinitionArn
]
data ListHumanLoopsResponse = ListHumanLoopsResponse'
{
ListHumanLoopsResponse -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
ListHumanLoopsResponse -> Int
httpStatus :: Prelude.Int,
ListHumanLoopsResponse -> [HumanLoopSummary]
humanLoopSummaries :: [HumanLoopSummary]
}
deriving (ListHumanLoopsResponse -> ListHumanLoopsResponse -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ListHumanLoopsResponse -> ListHumanLoopsResponse -> Bool
$c/= :: ListHumanLoopsResponse -> ListHumanLoopsResponse -> Bool
== :: ListHumanLoopsResponse -> ListHumanLoopsResponse -> Bool
$c== :: ListHumanLoopsResponse -> ListHumanLoopsResponse -> Bool
Prelude.Eq, ReadPrec [ListHumanLoopsResponse]
ReadPrec ListHumanLoopsResponse
Int -> ReadS ListHumanLoopsResponse
ReadS [ListHumanLoopsResponse]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ListHumanLoopsResponse]
$creadListPrec :: ReadPrec [ListHumanLoopsResponse]
readPrec :: ReadPrec ListHumanLoopsResponse
$creadPrec :: ReadPrec ListHumanLoopsResponse
readList :: ReadS [ListHumanLoopsResponse]
$creadList :: ReadS [ListHumanLoopsResponse]
readsPrec :: Int -> ReadS ListHumanLoopsResponse
$creadsPrec :: Int -> ReadS ListHumanLoopsResponse
Prelude.Read, Int -> ListHumanLoopsResponse -> ShowS
[ListHumanLoopsResponse] -> ShowS
ListHumanLoopsResponse -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ListHumanLoopsResponse] -> ShowS
$cshowList :: [ListHumanLoopsResponse] -> ShowS
show :: ListHumanLoopsResponse -> String
$cshow :: ListHumanLoopsResponse -> String
showsPrec :: Int -> ListHumanLoopsResponse -> ShowS
$cshowsPrec :: Int -> ListHumanLoopsResponse -> ShowS
Prelude.Show, forall x. Rep ListHumanLoopsResponse x -> ListHumanLoopsResponse
forall x. ListHumanLoopsResponse -> Rep ListHumanLoopsResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep ListHumanLoopsResponse x -> ListHumanLoopsResponse
$cfrom :: forall x. ListHumanLoopsResponse -> Rep ListHumanLoopsResponse x
Prelude.Generic)
newListHumanLoopsResponse ::
Prelude.Int ->
ListHumanLoopsResponse
newListHumanLoopsResponse :: Int -> ListHumanLoopsResponse
newListHumanLoopsResponse Int
pHttpStatus_ =
ListHumanLoopsResponse'
{ $sel:nextToken:ListHumanLoopsResponse' :: Maybe Text
nextToken =
forall a. Maybe a
Prelude.Nothing,
$sel:httpStatus:ListHumanLoopsResponse' :: Int
httpStatus = Int
pHttpStatus_,
$sel:humanLoopSummaries:ListHumanLoopsResponse' :: [HumanLoopSummary]
humanLoopSummaries = forall a. Monoid a => a
Prelude.mempty
}
listHumanLoopsResponse_nextToken :: Lens.Lens' ListHumanLoopsResponse (Prelude.Maybe Prelude.Text)
listHumanLoopsResponse_nextToken :: Lens' ListHumanLoopsResponse (Maybe Text)
listHumanLoopsResponse_nextToken = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListHumanLoopsResponse' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:ListHumanLoopsResponse' :: ListHumanLoopsResponse -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: ListHumanLoopsResponse
s@ListHumanLoopsResponse' {} Maybe Text
a -> ListHumanLoopsResponse
s {$sel:nextToken:ListHumanLoopsResponse' :: Maybe Text
nextToken = Maybe Text
a} :: ListHumanLoopsResponse)
listHumanLoopsResponse_httpStatus :: Lens.Lens' ListHumanLoopsResponse Prelude.Int
listHumanLoopsResponse_httpStatus :: Lens' ListHumanLoopsResponse Int
listHumanLoopsResponse_httpStatus = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListHumanLoopsResponse' {Int
httpStatus :: Int
$sel:httpStatus:ListHumanLoopsResponse' :: ListHumanLoopsResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: ListHumanLoopsResponse
s@ListHumanLoopsResponse' {} Int
a -> ListHumanLoopsResponse
s {$sel:httpStatus:ListHumanLoopsResponse' :: Int
httpStatus = Int
a} :: ListHumanLoopsResponse)
listHumanLoopsResponse_humanLoopSummaries :: Lens.Lens' ListHumanLoopsResponse [HumanLoopSummary]
listHumanLoopsResponse_humanLoopSummaries :: Lens' ListHumanLoopsResponse [HumanLoopSummary]
listHumanLoopsResponse_humanLoopSummaries = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListHumanLoopsResponse' {[HumanLoopSummary]
humanLoopSummaries :: [HumanLoopSummary]
$sel:humanLoopSummaries:ListHumanLoopsResponse' :: ListHumanLoopsResponse -> [HumanLoopSummary]
humanLoopSummaries} -> [HumanLoopSummary]
humanLoopSummaries) (\s :: ListHumanLoopsResponse
s@ListHumanLoopsResponse' {} [HumanLoopSummary]
a -> ListHumanLoopsResponse
s {$sel:humanLoopSummaries:ListHumanLoopsResponse' :: [HumanLoopSummary]
humanLoopSummaries = [HumanLoopSummary]
a} :: ListHumanLoopsResponse) forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
instance Prelude.NFData ListHumanLoopsResponse where
rnf :: ListHumanLoopsResponse -> ()
rnf ListHumanLoopsResponse' {Int
[HumanLoopSummary]
Maybe Text
humanLoopSummaries :: [HumanLoopSummary]
httpStatus :: Int
nextToken :: Maybe Text
$sel:humanLoopSummaries:ListHumanLoopsResponse' :: ListHumanLoopsResponse -> [HumanLoopSummary]
$sel:httpStatus:ListHumanLoopsResponse' :: ListHumanLoopsResponse -> Int
$sel:nextToken:ListHumanLoopsResponse' :: ListHumanLoopsResponse -> 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 Int
httpStatus
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf [HumanLoopSummary]
humanLoopSummaries