{-# 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.MechanicalTurk.ListHITs
(
ListHITs (..),
newListHITs,
listHITs_nextToken,
listHITs_maxResults,
ListHITsResponse (..),
newListHITsResponse,
listHITsResponse_nextToken,
listHITsResponse_numResults,
listHITsResponse_hITs,
listHITsResponse_httpStatus,
)
where
import qualified Amazonka.Core as Core
import qualified Amazonka.Lens as Lens
import Amazonka.MechanicalTurk.Types
import qualified Amazonka.Prelude as Prelude
import qualified Amazonka.Request as Request
import qualified Amazonka.Response as Response
data ListHITs = ListHITs'
{
ListHITs -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
ListHITs -> Maybe Natural
maxResults :: Prelude.Maybe Prelude.Natural
}
deriving (ListHITs -> ListHITs -> Bool
(ListHITs -> ListHITs -> Bool)
-> (ListHITs -> ListHITs -> Bool) -> Eq ListHITs
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ListHITs -> ListHITs -> Bool
$c/= :: ListHITs -> ListHITs -> Bool
== :: ListHITs -> ListHITs -> Bool
$c== :: ListHITs -> ListHITs -> Bool
Prelude.Eq, ReadPrec [ListHITs]
ReadPrec ListHITs
Int -> ReadS ListHITs
ReadS [ListHITs]
(Int -> ReadS ListHITs)
-> ReadS [ListHITs]
-> ReadPrec ListHITs
-> ReadPrec [ListHITs]
-> Read ListHITs
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ListHITs]
$creadListPrec :: ReadPrec [ListHITs]
readPrec :: ReadPrec ListHITs
$creadPrec :: ReadPrec ListHITs
readList :: ReadS [ListHITs]
$creadList :: ReadS [ListHITs]
readsPrec :: Int -> ReadS ListHITs
$creadsPrec :: Int -> ReadS ListHITs
Prelude.Read, Int -> ListHITs -> ShowS
[ListHITs] -> ShowS
ListHITs -> String
(Int -> ListHITs -> ShowS)
-> (ListHITs -> String) -> ([ListHITs] -> ShowS) -> Show ListHITs
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ListHITs] -> ShowS
$cshowList :: [ListHITs] -> ShowS
show :: ListHITs -> String
$cshow :: ListHITs -> String
showsPrec :: Int -> ListHITs -> ShowS
$cshowsPrec :: Int -> ListHITs -> ShowS
Prelude.Show, (forall x. ListHITs -> Rep ListHITs x)
-> (forall x. Rep ListHITs x -> ListHITs) -> Generic ListHITs
forall x. Rep ListHITs x -> ListHITs
forall x. ListHITs -> Rep ListHITs x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep ListHITs x -> ListHITs
$cfrom :: forall x. ListHITs -> Rep ListHITs x
Prelude.Generic)
newListHITs ::
ListHITs
newListHITs :: ListHITs
newListHITs =
ListHITs' :: Maybe Text -> Maybe Natural -> ListHITs
ListHITs'
{ $sel:nextToken:ListHITs' :: Maybe Text
nextToken = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:maxResults:ListHITs' :: Maybe Natural
maxResults = Maybe Natural
forall a. Maybe a
Prelude.Nothing
}
listHITs_nextToken :: Lens.Lens' ListHITs (Prelude.Maybe Prelude.Text)
listHITs_nextToken :: (Maybe Text -> f (Maybe Text)) -> ListHITs -> f ListHITs
listHITs_nextToken = (ListHITs -> Maybe Text)
-> (ListHITs -> Maybe Text -> ListHITs)
-> Lens ListHITs ListHITs (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListHITs' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:ListHITs' :: ListHITs -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: ListHITs
s@ListHITs' {} Maybe Text
a -> ListHITs
s {$sel:nextToken:ListHITs' :: Maybe Text
nextToken = Maybe Text
a} :: ListHITs)
listHITs_maxResults :: Lens.Lens' ListHITs (Prelude.Maybe Prelude.Natural)
listHITs_maxResults :: (Maybe Natural -> f (Maybe Natural)) -> ListHITs -> f ListHITs
listHITs_maxResults = (ListHITs -> Maybe Natural)
-> (ListHITs -> Maybe Natural -> ListHITs)
-> Lens ListHITs ListHITs (Maybe Natural) (Maybe Natural)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListHITs' {Maybe Natural
maxResults :: Maybe Natural
$sel:maxResults:ListHITs' :: ListHITs -> Maybe Natural
maxResults} -> Maybe Natural
maxResults) (\s :: ListHITs
s@ListHITs' {} Maybe Natural
a -> ListHITs
s {$sel:maxResults:ListHITs' :: Maybe Natural
maxResults = Maybe Natural
a} :: ListHITs)
instance Core.AWSPager ListHITs where
page :: ListHITs -> AWSResponse ListHITs -> Maybe ListHITs
page ListHITs
rq AWSResponse ListHITs
rs
| Maybe Text -> Bool
forall a. AWSTruncated a => a -> Bool
Core.stop
( AWSResponse ListHITs
ListHITsResponse
rs
ListHITsResponse
-> Getting (First Text) ListHITsResponse Text -> Maybe Text
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? (Maybe Text -> Const (First Text) (Maybe Text))
-> ListHITsResponse -> Const (First Text) ListHITsResponse
Lens' ListHITsResponse (Maybe Text)
listHITsResponse_nextToken ((Maybe Text -> Const (First Text) (Maybe Text))
-> ListHITsResponse -> Const (First Text) ListHITsResponse)
-> ((Text -> Const (First Text) Text)
-> Maybe Text -> Const (First Text) (Maybe Text))
-> Getting (First Text) ListHITsResponse 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 ListHITs
forall a. Maybe a
Prelude.Nothing
| Maybe [HIT] -> Bool
forall a. AWSTruncated a => a -> Bool
Core.stop
( AWSResponse ListHITs
ListHITsResponse
rs
ListHITsResponse
-> Getting (First [HIT]) ListHITsResponse [HIT] -> Maybe [HIT]
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? (Maybe [HIT] -> Const (First [HIT]) (Maybe [HIT]))
-> ListHITsResponse -> Const (First [HIT]) ListHITsResponse
Lens' ListHITsResponse (Maybe [HIT])
listHITsResponse_hITs ((Maybe [HIT] -> Const (First [HIT]) (Maybe [HIT]))
-> ListHITsResponse -> Const (First [HIT]) ListHITsResponse)
-> (([HIT] -> Const (First [HIT]) [HIT])
-> Maybe [HIT] -> Const (First [HIT]) (Maybe [HIT]))
-> Getting (First [HIT]) ListHITsResponse [HIT]
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. ([HIT] -> Const (First [HIT]) [HIT])
-> Maybe [HIT] -> Const (First [HIT]) (Maybe [HIT])
forall a b. Prism (Maybe a) (Maybe b) a b
Lens._Just
) =
Maybe ListHITs
forall a. Maybe a
Prelude.Nothing
| Bool
Prelude.otherwise =
ListHITs -> Maybe ListHITs
forall a. a -> Maybe a
Prelude.Just (ListHITs -> Maybe ListHITs) -> ListHITs -> Maybe ListHITs
forall a b. (a -> b) -> a -> b
Prelude.$
ListHITs
rq
ListHITs -> (ListHITs -> ListHITs) -> ListHITs
forall a b. a -> (a -> b) -> b
Prelude.& (Maybe Text -> Identity (Maybe Text))
-> ListHITs -> Identity ListHITs
Lens ListHITs ListHITs (Maybe Text) (Maybe Text)
listHITs_nextToken
((Maybe Text -> Identity (Maybe Text))
-> ListHITs -> Identity ListHITs)
-> Maybe Text -> ListHITs -> ListHITs
forall s t a b. ASetter s t a b -> b -> s -> t
Lens..~ AWSResponse ListHITs
ListHITsResponse
rs
ListHITsResponse
-> Getting (First Text) ListHITsResponse Text -> Maybe Text
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? (Maybe Text -> Const (First Text) (Maybe Text))
-> ListHITsResponse -> Const (First Text) ListHITsResponse
Lens' ListHITsResponse (Maybe Text)
listHITsResponse_nextToken ((Maybe Text -> Const (First Text) (Maybe Text))
-> ListHITsResponse -> Const (First Text) ListHITsResponse)
-> ((Text -> Const (First Text) Text)
-> Maybe Text -> Const (First Text) (Maybe Text))
-> Getting (First Text) ListHITsResponse 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 ListHITs where
type AWSResponse ListHITs = ListHITsResponse
request :: ListHITs -> Request ListHITs
request = Service -> ListHITs -> Request ListHITs
forall a. (ToRequest a, ToJSON a) => Service -> a -> Request a
Request.postJSON Service
defaultService
response :: Logger
-> Service
-> Proxy ListHITs
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse ListHITs)))
response =
(Int
-> ResponseHeaders
-> Object
-> Either String (AWSResponse ListHITs))
-> Logger
-> Service
-> Proxy ListHITs
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse ListHITs)))
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 Int -> Maybe [HIT] -> Int -> ListHITsResponse
ListHITsResponse'
(Maybe Text -> Maybe Int -> Maybe [HIT] -> Int -> ListHITsResponse)
-> Either String (Maybe Text)
-> Either
String (Maybe Int -> Maybe [HIT] -> Int -> ListHITsResponse)
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 Int -> Maybe [HIT] -> Int -> ListHITsResponse)
-> Either String (Maybe Int)
-> Either String (Maybe [HIT] -> Int -> ListHITsResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe Int)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"NumResults")
Either String (Maybe [HIT] -> Int -> ListHITsResponse)
-> Either String (Maybe [HIT])
-> Either String (Int -> ListHITsResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe (Maybe [HIT]))
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"HITs" Either String (Maybe (Maybe [HIT]))
-> Maybe [HIT] -> Either String (Maybe [HIT])
forall (f :: * -> *) a. Functor f => f (Maybe a) -> a -> f a
Core..!@ Maybe [HIT]
forall a. Monoid a => a
Prelude.mempty)
Either String (Int -> ListHITsResponse)
-> Either String Int -> Either String ListHITsResponse
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 ListHITs
instance Prelude.NFData ListHITs
instance Core.ToHeaders ListHITs where
toHeaders :: ListHITs -> ResponseHeaders
toHeaders =
ResponseHeaders -> ListHITs -> 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
"MTurkRequesterServiceV20170117.ListHITs" ::
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 ListHITs where
toJSON :: ListHITs -> Value
toJSON ListHITs' {Maybe Natural
Maybe Text
maxResults :: Maybe Natural
nextToken :: Maybe Text
$sel:maxResults:ListHITs' :: ListHITs -> Maybe Natural
$sel:nextToken:ListHITs' :: ListHITs -> Maybe Text
..} =
[Pair] -> Value
Core.object
( [Maybe Pair] -> [Pair]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[ (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
"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 ListHITs where
toPath :: ListHITs -> ByteString
toPath = ByteString -> ListHITs -> ByteString
forall a b. a -> b -> a
Prelude.const ByteString
"/"
instance Core.ToQuery ListHITs where
toQuery :: ListHITs -> QueryString
toQuery = QueryString -> ListHITs -> QueryString
forall a b. a -> b -> a
Prelude.const QueryString
forall a. Monoid a => a
Prelude.mempty
data ListHITsResponse = ListHITsResponse'
{ ListHITsResponse -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
ListHITsResponse -> Maybe Int
numResults :: Prelude.Maybe Prelude.Int,
ListHITsResponse -> Maybe [HIT]
hITs :: Prelude.Maybe [HIT],
ListHITsResponse -> Int
httpStatus :: Prelude.Int
}
deriving (ListHITsResponse -> ListHITsResponse -> Bool
(ListHITsResponse -> ListHITsResponse -> Bool)
-> (ListHITsResponse -> ListHITsResponse -> Bool)
-> Eq ListHITsResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ListHITsResponse -> ListHITsResponse -> Bool
$c/= :: ListHITsResponse -> ListHITsResponse -> Bool
== :: ListHITsResponse -> ListHITsResponse -> Bool
$c== :: ListHITsResponse -> ListHITsResponse -> Bool
Prelude.Eq, ReadPrec [ListHITsResponse]
ReadPrec ListHITsResponse
Int -> ReadS ListHITsResponse
ReadS [ListHITsResponse]
(Int -> ReadS ListHITsResponse)
-> ReadS [ListHITsResponse]
-> ReadPrec ListHITsResponse
-> ReadPrec [ListHITsResponse]
-> Read ListHITsResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ListHITsResponse]
$creadListPrec :: ReadPrec [ListHITsResponse]
readPrec :: ReadPrec ListHITsResponse
$creadPrec :: ReadPrec ListHITsResponse
readList :: ReadS [ListHITsResponse]
$creadList :: ReadS [ListHITsResponse]
readsPrec :: Int -> ReadS ListHITsResponse
$creadsPrec :: Int -> ReadS ListHITsResponse
Prelude.Read, Int -> ListHITsResponse -> ShowS
[ListHITsResponse] -> ShowS
ListHITsResponse -> String
(Int -> ListHITsResponse -> ShowS)
-> (ListHITsResponse -> String)
-> ([ListHITsResponse] -> ShowS)
-> Show ListHITsResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ListHITsResponse] -> ShowS
$cshowList :: [ListHITsResponse] -> ShowS
show :: ListHITsResponse -> String
$cshow :: ListHITsResponse -> String
showsPrec :: Int -> ListHITsResponse -> ShowS
$cshowsPrec :: Int -> ListHITsResponse -> ShowS
Prelude.Show, (forall x. ListHITsResponse -> Rep ListHITsResponse x)
-> (forall x. Rep ListHITsResponse x -> ListHITsResponse)
-> Generic ListHITsResponse
forall x. Rep ListHITsResponse x -> ListHITsResponse
forall x. ListHITsResponse -> Rep ListHITsResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep ListHITsResponse x -> ListHITsResponse
$cfrom :: forall x. ListHITsResponse -> Rep ListHITsResponse x
Prelude.Generic)
newListHITsResponse ::
Prelude.Int ->
ListHITsResponse
newListHITsResponse :: Int -> ListHITsResponse
newListHITsResponse Int
pHttpStatus_ =
ListHITsResponse' :: Maybe Text -> Maybe Int -> Maybe [HIT] -> Int -> ListHITsResponse
ListHITsResponse'
{ $sel:nextToken:ListHITsResponse' :: Maybe Text
nextToken = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:numResults:ListHITsResponse' :: Maybe Int
numResults = Maybe Int
forall a. Maybe a
Prelude.Nothing,
$sel:hITs:ListHITsResponse' :: Maybe [HIT]
hITs = Maybe [HIT]
forall a. Maybe a
Prelude.Nothing,
$sel:httpStatus:ListHITsResponse' :: Int
httpStatus = Int
pHttpStatus_
}
listHITsResponse_nextToken :: Lens.Lens' ListHITsResponse (Prelude.Maybe Prelude.Text)
listHITsResponse_nextToken :: (Maybe Text -> f (Maybe Text))
-> ListHITsResponse -> f ListHITsResponse
listHITsResponse_nextToken = (ListHITsResponse -> Maybe Text)
-> (ListHITsResponse -> Maybe Text -> ListHITsResponse)
-> Lens' ListHITsResponse (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListHITsResponse' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:ListHITsResponse' :: ListHITsResponse -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: ListHITsResponse
s@ListHITsResponse' {} Maybe Text
a -> ListHITsResponse
s {$sel:nextToken:ListHITsResponse' :: Maybe Text
nextToken = Maybe Text
a} :: ListHITsResponse)
listHITsResponse_numResults :: Lens.Lens' ListHITsResponse (Prelude.Maybe Prelude.Int)
listHITsResponse_numResults :: (Maybe Int -> f (Maybe Int))
-> ListHITsResponse -> f ListHITsResponse
listHITsResponse_numResults = (ListHITsResponse -> Maybe Int)
-> (ListHITsResponse -> Maybe Int -> ListHITsResponse)
-> Lens ListHITsResponse ListHITsResponse (Maybe Int) (Maybe Int)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListHITsResponse' {Maybe Int
numResults :: Maybe Int
$sel:numResults:ListHITsResponse' :: ListHITsResponse -> Maybe Int
numResults} -> Maybe Int
numResults) (\s :: ListHITsResponse
s@ListHITsResponse' {} Maybe Int
a -> ListHITsResponse
s {$sel:numResults:ListHITsResponse' :: Maybe Int
numResults = Maybe Int
a} :: ListHITsResponse)
listHITsResponse_hITs :: Lens.Lens' ListHITsResponse (Prelude.Maybe [HIT])
listHITsResponse_hITs :: (Maybe [HIT] -> f (Maybe [HIT]))
-> ListHITsResponse -> f ListHITsResponse
listHITsResponse_hITs = (ListHITsResponse -> Maybe [HIT])
-> (ListHITsResponse -> Maybe [HIT] -> ListHITsResponse)
-> Lens' ListHITsResponse (Maybe [HIT])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListHITsResponse' {Maybe [HIT]
hITs :: Maybe [HIT]
$sel:hITs:ListHITsResponse' :: ListHITsResponse -> Maybe [HIT]
hITs} -> Maybe [HIT]
hITs) (\s :: ListHITsResponse
s@ListHITsResponse' {} Maybe [HIT]
a -> ListHITsResponse
s {$sel:hITs:ListHITsResponse' :: Maybe [HIT]
hITs = Maybe [HIT]
a} :: ListHITsResponse) ((Maybe [HIT] -> f (Maybe [HIT]))
-> ListHITsResponse -> f ListHITsResponse)
-> ((Maybe [HIT] -> f (Maybe [HIT]))
-> Maybe [HIT] -> f (Maybe [HIT]))
-> (Maybe [HIT] -> f (Maybe [HIT]))
-> ListHITsResponse
-> f ListHITsResponse
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso [HIT] [HIT] [HIT] [HIT]
-> Iso (Maybe [HIT]) (Maybe [HIT]) (Maybe [HIT]) (Maybe [HIT])
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 [HIT] [HIT] [HIT] [HIT]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
listHITsResponse_httpStatus :: Lens.Lens' ListHITsResponse Prelude.Int
listHITsResponse_httpStatus :: (Int -> f Int) -> ListHITsResponse -> f ListHITsResponse
listHITsResponse_httpStatus = (ListHITsResponse -> Int)
-> (ListHITsResponse -> Int -> ListHITsResponse)
-> Lens ListHITsResponse ListHITsResponse Int Int
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListHITsResponse' {Int
httpStatus :: Int
$sel:httpStatus:ListHITsResponse' :: ListHITsResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: ListHITsResponse
s@ListHITsResponse' {} Int
a -> ListHITsResponse
s {$sel:httpStatus:ListHITsResponse' :: Int
httpStatus = Int
a} :: ListHITsResponse)
instance Prelude.NFData ListHITsResponse