{-# 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.LicenseManager.ListReceivedGrants
(
ListReceivedGrants (..),
newListReceivedGrants,
listReceivedGrants_filters,
listReceivedGrants_nextToken,
listReceivedGrants_grantArns,
listReceivedGrants_maxResults,
ListReceivedGrantsResponse (..),
newListReceivedGrantsResponse,
listReceivedGrantsResponse_grants,
listReceivedGrantsResponse_nextToken,
listReceivedGrantsResponse_httpStatus,
)
where
import qualified Amazonka.Core as Core
import qualified Amazonka.Lens as Lens
import Amazonka.LicenseManager.Types
import qualified Amazonka.Prelude as Prelude
import qualified Amazonka.Request as Request
import qualified Amazonka.Response as Response
data ListReceivedGrants = ListReceivedGrants'
{
ListReceivedGrants -> Maybe [Filter]
filters :: Prelude.Maybe [Filter],
ListReceivedGrants -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
ListReceivedGrants -> Maybe [Text]
grantArns :: Prelude.Maybe [Prelude.Text],
ListReceivedGrants -> Maybe Natural
maxResults :: Prelude.Maybe Prelude.Natural
}
deriving (ListReceivedGrants -> ListReceivedGrants -> Bool
(ListReceivedGrants -> ListReceivedGrants -> Bool)
-> (ListReceivedGrants -> ListReceivedGrants -> Bool)
-> Eq ListReceivedGrants
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ListReceivedGrants -> ListReceivedGrants -> Bool
$c/= :: ListReceivedGrants -> ListReceivedGrants -> Bool
== :: ListReceivedGrants -> ListReceivedGrants -> Bool
$c== :: ListReceivedGrants -> ListReceivedGrants -> Bool
Prelude.Eq, ReadPrec [ListReceivedGrants]
ReadPrec ListReceivedGrants
Int -> ReadS ListReceivedGrants
ReadS [ListReceivedGrants]
(Int -> ReadS ListReceivedGrants)
-> ReadS [ListReceivedGrants]
-> ReadPrec ListReceivedGrants
-> ReadPrec [ListReceivedGrants]
-> Read ListReceivedGrants
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ListReceivedGrants]
$creadListPrec :: ReadPrec [ListReceivedGrants]
readPrec :: ReadPrec ListReceivedGrants
$creadPrec :: ReadPrec ListReceivedGrants
readList :: ReadS [ListReceivedGrants]
$creadList :: ReadS [ListReceivedGrants]
readsPrec :: Int -> ReadS ListReceivedGrants
$creadsPrec :: Int -> ReadS ListReceivedGrants
Prelude.Read, Int -> ListReceivedGrants -> ShowS
[ListReceivedGrants] -> ShowS
ListReceivedGrants -> String
(Int -> ListReceivedGrants -> ShowS)
-> (ListReceivedGrants -> String)
-> ([ListReceivedGrants] -> ShowS)
-> Show ListReceivedGrants
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ListReceivedGrants] -> ShowS
$cshowList :: [ListReceivedGrants] -> ShowS
show :: ListReceivedGrants -> String
$cshow :: ListReceivedGrants -> String
showsPrec :: Int -> ListReceivedGrants -> ShowS
$cshowsPrec :: Int -> ListReceivedGrants -> ShowS
Prelude.Show, (forall x. ListReceivedGrants -> Rep ListReceivedGrants x)
-> (forall x. Rep ListReceivedGrants x -> ListReceivedGrants)
-> Generic ListReceivedGrants
forall x. Rep ListReceivedGrants x -> ListReceivedGrants
forall x. ListReceivedGrants -> Rep ListReceivedGrants x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep ListReceivedGrants x -> ListReceivedGrants
$cfrom :: forall x. ListReceivedGrants -> Rep ListReceivedGrants x
Prelude.Generic)
newListReceivedGrants ::
ListReceivedGrants
newListReceivedGrants :: ListReceivedGrants
newListReceivedGrants =
ListReceivedGrants' :: Maybe [Filter]
-> Maybe Text
-> Maybe [Text]
-> Maybe Natural
-> ListReceivedGrants
ListReceivedGrants'
{ $sel:filters:ListReceivedGrants' :: Maybe [Filter]
filters = Maybe [Filter]
forall a. Maybe a
Prelude.Nothing,
$sel:nextToken:ListReceivedGrants' :: Maybe Text
nextToken = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:grantArns:ListReceivedGrants' :: Maybe [Text]
grantArns = Maybe [Text]
forall a. Maybe a
Prelude.Nothing,
$sel:maxResults:ListReceivedGrants' :: Maybe Natural
maxResults = Maybe Natural
forall a. Maybe a
Prelude.Nothing
}
listReceivedGrants_filters :: Lens.Lens' ListReceivedGrants (Prelude.Maybe [Filter])
listReceivedGrants_filters :: (Maybe [Filter] -> f (Maybe [Filter]))
-> ListReceivedGrants -> f ListReceivedGrants
listReceivedGrants_filters = (ListReceivedGrants -> Maybe [Filter])
-> (ListReceivedGrants -> Maybe [Filter] -> ListReceivedGrants)
-> Lens
ListReceivedGrants
ListReceivedGrants
(Maybe [Filter])
(Maybe [Filter])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListReceivedGrants' {Maybe [Filter]
filters :: Maybe [Filter]
$sel:filters:ListReceivedGrants' :: ListReceivedGrants -> Maybe [Filter]
filters} -> Maybe [Filter]
filters) (\s :: ListReceivedGrants
s@ListReceivedGrants' {} Maybe [Filter]
a -> ListReceivedGrants
s {$sel:filters:ListReceivedGrants' :: Maybe [Filter]
filters = Maybe [Filter]
a} :: ListReceivedGrants) ((Maybe [Filter] -> f (Maybe [Filter]))
-> ListReceivedGrants -> f ListReceivedGrants)
-> ((Maybe [Filter] -> f (Maybe [Filter]))
-> Maybe [Filter] -> f (Maybe [Filter]))
-> (Maybe [Filter] -> f (Maybe [Filter]))
-> ListReceivedGrants
-> f ListReceivedGrants
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso [Filter] [Filter] [Filter] [Filter]
-> Iso
(Maybe [Filter]) (Maybe [Filter]) (Maybe [Filter]) (Maybe [Filter])
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 [Filter] [Filter] [Filter] [Filter]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
listReceivedGrants_nextToken :: Lens.Lens' ListReceivedGrants (Prelude.Maybe Prelude.Text)
listReceivedGrants_nextToken :: (Maybe Text -> f (Maybe Text))
-> ListReceivedGrants -> f ListReceivedGrants
listReceivedGrants_nextToken = (ListReceivedGrants -> Maybe Text)
-> (ListReceivedGrants -> Maybe Text -> ListReceivedGrants)
-> Lens
ListReceivedGrants ListReceivedGrants (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListReceivedGrants' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:ListReceivedGrants' :: ListReceivedGrants -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: ListReceivedGrants
s@ListReceivedGrants' {} Maybe Text
a -> ListReceivedGrants
s {$sel:nextToken:ListReceivedGrants' :: Maybe Text
nextToken = Maybe Text
a} :: ListReceivedGrants)
listReceivedGrants_grantArns :: Lens.Lens' ListReceivedGrants (Prelude.Maybe [Prelude.Text])
listReceivedGrants_grantArns :: (Maybe [Text] -> f (Maybe [Text]))
-> ListReceivedGrants -> f ListReceivedGrants
listReceivedGrants_grantArns = (ListReceivedGrants -> Maybe [Text])
-> (ListReceivedGrants -> Maybe [Text] -> ListReceivedGrants)
-> Lens
ListReceivedGrants ListReceivedGrants (Maybe [Text]) (Maybe [Text])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListReceivedGrants' {Maybe [Text]
grantArns :: Maybe [Text]
$sel:grantArns:ListReceivedGrants' :: ListReceivedGrants -> Maybe [Text]
grantArns} -> Maybe [Text]
grantArns) (\s :: ListReceivedGrants
s@ListReceivedGrants' {} Maybe [Text]
a -> ListReceivedGrants
s {$sel:grantArns:ListReceivedGrants' :: Maybe [Text]
grantArns = Maybe [Text]
a} :: ListReceivedGrants) ((Maybe [Text] -> f (Maybe [Text]))
-> ListReceivedGrants -> f ListReceivedGrants)
-> ((Maybe [Text] -> f (Maybe [Text]))
-> Maybe [Text] -> f (Maybe [Text]))
-> (Maybe [Text] -> f (Maybe [Text]))
-> ListReceivedGrants
-> f ListReceivedGrants
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso [Text] [Text] [Text] [Text]
-> Iso (Maybe [Text]) (Maybe [Text]) (Maybe [Text]) (Maybe [Text])
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 [Text] [Text] [Text] [Text]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
listReceivedGrants_maxResults :: Lens.Lens' ListReceivedGrants (Prelude.Maybe Prelude.Natural)
listReceivedGrants_maxResults :: (Maybe Natural -> f (Maybe Natural))
-> ListReceivedGrants -> f ListReceivedGrants
listReceivedGrants_maxResults = (ListReceivedGrants -> Maybe Natural)
-> (ListReceivedGrants -> Maybe Natural -> ListReceivedGrants)
-> Lens
ListReceivedGrants
ListReceivedGrants
(Maybe Natural)
(Maybe Natural)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListReceivedGrants' {Maybe Natural
maxResults :: Maybe Natural
$sel:maxResults:ListReceivedGrants' :: ListReceivedGrants -> Maybe Natural
maxResults} -> Maybe Natural
maxResults) (\s :: ListReceivedGrants
s@ListReceivedGrants' {} Maybe Natural
a -> ListReceivedGrants
s {$sel:maxResults:ListReceivedGrants' :: Maybe Natural
maxResults = Maybe Natural
a} :: ListReceivedGrants)
instance Core.AWSRequest ListReceivedGrants where
type
AWSResponse ListReceivedGrants =
ListReceivedGrantsResponse
request :: ListReceivedGrants -> Request ListReceivedGrants
request = Service -> ListReceivedGrants -> Request ListReceivedGrants
forall a. (ToRequest a, ToJSON a) => Service -> a -> Request a
Request.postJSON Service
defaultService
response :: Logger
-> Service
-> Proxy ListReceivedGrants
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse ListReceivedGrants)))
response =
(Int
-> ResponseHeaders
-> Object
-> Either String (AWSResponse ListReceivedGrants))
-> Logger
-> Service
-> Proxy ListReceivedGrants
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse ListReceivedGrants)))
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 [Grant] -> Maybe Text -> Int -> ListReceivedGrantsResponse
ListReceivedGrantsResponse'
(Maybe [Grant] -> Maybe Text -> Int -> ListReceivedGrantsResponse)
-> Either String (Maybe [Grant])
-> Either String (Maybe Text -> Int -> ListReceivedGrantsResponse)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x Object -> Text -> Either String (Maybe (Maybe [Grant]))
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"Grants" Either String (Maybe (Maybe [Grant]))
-> Maybe [Grant] -> Either String (Maybe [Grant])
forall (f :: * -> *) a. Functor f => f (Maybe a) -> a -> f a
Core..!@ Maybe [Grant]
forall a. Monoid a => a
Prelude.mempty)
Either String (Maybe Text -> Int -> ListReceivedGrantsResponse)
-> Either String (Maybe Text)
-> Either String (Int -> ListReceivedGrantsResponse)
forall (f :: * -> *) a b. Applicative f => 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 (Int -> ListReceivedGrantsResponse)
-> Either String Int -> Either String ListReceivedGrantsResponse
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 ListReceivedGrants
instance Prelude.NFData ListReceivedGrants
instance Core.ToHeaders ListReceivedGrants where
toHeaders :: ListReceivedGrants -> ResponseHeaders
toHeaders =
ResponseHeaders -> ListReceivedGrants -> 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
"AWSLicenseManager.ListReceivedGrants" ::
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 ListReceivedGrants where
toJSON :: ListReceivedGrants -> Value
toJSON ListReceivedGrants' {Maybe Natural
Maybe [Text]
Maybe [Filter]
Maybe Text
maxResults :: Maybe Natural
grantArns :: Maybe [Text]
nextToken :: Maybe Text
filters :: Maybe [Filter]
$sel:maxResults:ListReceivedGrants' :: ListReceivedGrants -> Maybe Natural
$sel:grantArns:ListReceivedGrants' :: ListReceivedGrants -> Maybe [Text]
$sel:nextToken:ListReceivedGrants' :: ListReceivedGrants -> Maybe Text
$sel:filters:ListReceivedGrants' :: ListReceivedGrants -> Maybe [Filter]
..} =
[Pair] -> Value
Core.object
( [Maybe Pair] -> [Pair]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[ (Text
"Filters" Text -> [Filter] -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=) ([Filter] -> Pair) -> Maybe [Filter] -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe [Filter]
filters,
(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
"GrantArns" 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]
grantArns,
(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 ListReceivedGrants where
toPath :: ListReceivedGrants -> ByteString
toPath = ByteString -> ListReceivedGrants -> ByteString
forall a b. a -> b -> a
Prelude.const ByteString
"/"
instance Core.ToQuery ListReceivedGrants where
toQuery :: ListReceivedGrants -> QueryString
toQuery = QueryString -> ListReceivedGrants -> QueryString
forall a b. a -> b -> a
Prelude.const QueryString
forall a. Monoid a => a
Prelude.mempty
data ListReceivedGrantsResponse = ListReceivedGrantsResponse'
{
ListReceivedGrantsResponse -> Maybe [Grant]
grants :: Prelude.Maybe [Grant],
ListReceivedGrantsResponse -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
ListReceivedGrantsResponse -> Int
httpStatus :: Prelude.Int
}
deriving (ListReceivedGrantsResponse -> ListReceivedGrantsResponse -> Bool
(ListReceivedGrantsResponse -> ListReceivedGrantsResponse -> Bool)
-> (ListReceivedGrantsResponse
-> ListReceivedGrantsResponse -> Bool)
-> Eq ListReceivedGrantsResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ListReceivedGrantsResponse -> ListReceivedGrantsResponse -> Bool
$c/= :: ListReceivedGrantsResponse -> ListReceivedGrantsResponse -> Bool
== :: ListReceivedGrantsResponse -> ListReceivedGrantsResponse -> Bool
$c== :: ListReceivedGrantsResponse -> ListReceivedGrantsResponse -> Bool
Prelude.Eq, ReadPrec [ListReceivedGrantsResponse]
ReadPrec ListReceivedGrantsResponse
Int -> ReadS ListReceivedGrantsResponse
ReadS [ListReceivedGrantsResponse]
(Int -> ReadS ListReceivedGrantsResponse)
-> ReadS [ListReceivedGrantsResponse]
-> ReadPrec ListReceivedGrantsResponse
-> ReadPrec [ListReceivedGrantsResponse]
-> Read ListReceivedGrantsResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ListReceivedGrantsResponse]
$creadListPrec :: ReadPrec [ListReceivedGrantsResponse]
readPrec :: ReadPrec ListReceivedGrantsResponse
$creadPrec :: ReadPrec ListReceivedGrantsResponse
readList :: ReadS [ListReceivedGrantsResponse]
$creadList :: ReadS [ListReceivedGrantsResponse]
readsPrec :: Int -> ReadS ListReceivedGrantsResponse
$creadsPrec :: Int -> ReadS ListReceivedGrantsResponse
Prelude.Read, Int -> ListReceivedGrantsResponse -> ShowS
[ListReceivedGrantsResponse] -> ShowS
ListReceivedGrantsResponse -> String
(Int -> ListReceivedGrantsResponse -> ShowS)
-> (ListReceivedGrantsResponse -> String)
-> ([ListReceivedGrantsResponse] -> ShowS)
-> Show ListReceivedGrantsResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ListReceivedGrantsResponse] -> ShowS
$cshowList :: [ListReceivedGrantsResponse] -> ShowS
show :: ListReceivedGrantsResponse -> String
$cshow :: ListReceivedGrantsResponse -> String
showsPrec :: Int -> ListReceivedGrantsResponse -> ShowS
$cshowsPrec :: Int -> ListReceivedGrantsResponse -> ShowS
Prelude.Show, (forall x.
ListReceivedGrantsResponse -> Rep ListReceivedGrantsResponse x)
-> (forall x.
Rep ListReceivedGrantsResponse x -> ListReceivedGrantsResponse)
-> Generic ListReceivedGrantsResponse
forall x.
Rep ListReceivedGrantsResponse x -> ListReceivedGrantsResponse
forall x.
ListReceivedGrantsResponse -> Rep ListReceivedGrantsResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep ListReceivedGrantsResponse x -> ListReceivedGrantsResponse
$cfrom :: forall x.
ListReceivedGrantsResponse -> Rep ListReceivedGrantsResponse x
Prelude.Generic)
newListReceivedGrantsResponse ::
Prelude.Int ->
ListReceivedGrantsResponse
newListReceivedGrantsResponse :: Int -> ListReceivedGrantsResponse
newListReceivedGrantsResponse Int
pHttpStatus_ =
ListReceivedGrantsResponse' :: Maybe [Grant] -> Maybe Text -> Int -> ListReceivedGrantsResponse
ListReceivedGrantsResponse'
{ $sel:grants:ListReceivedGrantsResponse' :: Maybe [Grant]
grants =
Maybe [Grant]
forall a. Maybe a
Prelude.Nothing,
$sel:nextToken:ListReceivedGrantsResponse' :: Maybe Text
nextToken = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:httpStatus:ListReceivedGrantsResponse' :: Int
httpStatus = Int
pHttpStatus_
}
listReceivedGrantsResponse_grants :: Lens.Lens' ListReceivedGrantsResponse (Prelude.Maybe [Grant])
listReceivedGrantsResponse_grants :: (Maybe [Grant] -> f (Maybe [Grant]))
-> ListReceivedGrantsResponse -> f ListReceivedGrantsResponse
listReceivedGrantsResponse_grants = (ListReceivedGrantsResponse -> Maybe [Grant])
-> (ListReceivedGrantsResponse
-> Maybe [Grant] -> ListReceivedGrantsResponse)
-> Lens
ListReceivedGrantsResponse
ListReceivedGrantsResponse
(Maybe [Grant])
(Maybe [Grant])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListReceivedGrantsResponse' {Maybe [Grant]
grants :: Maybe [Grant]
$sel:grants:ListReceivedGrantsResponse' :: ListReceivedGrantsResponse -> Maybe [Grant]
grants} -> Maybe [Grant]
grants) (\s :: ListReceivedGrantsResponse
s@ListReceivedGrantsResponse' {} Maybe [Grant]
a -> ListReceivedGrantsResponse
s {$sel:grants:ListReceivedGrantsResponse' :: Maybe [Grant]
grants = Maybe [Grant]
a} :: ListReceivedGrantsResponse) ((Maybe [Grant] -> f (Maybe [Grant]))
-> ListReceivedGrantsResponse -> f ListReceivedGrantsResponse)
-> ((Maybe [Grant] -> f (Maybe [Grant]))
-> Maybe [Grant] -> f (Maybe [Grant]))
-> (Maybe [Grant] -> f (Maybe [Grant]))
-> ListReceivedGrantsResponse
-> f ListReceivedGrantsResponse
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso [Grant] [Grant] [Grant] [Grant]
-> Iso
(Maybe [Grant]) (Maybe [Grant]) (Maybe [Grant]) (Maybe [Grant])
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 [Grant] [Grant] [Grant] [Grant]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
listReceivedGrantsResponse_nextToken :: Lens.Lens' ListReceivedGrantsResponse (Prelude.Maybe Prelude.Text)
listReceivedGrantsResponse_nextToken :: (Maybe Text -> f (Maybe Text))
-> ListReceivedGrantsResponse -> f ListReceivedGrantsResponse
listReceivedGrantsResponse_nextToken = (ListReceivedGrantsResponse -> Maybe Text)
-> (ListReceivedGrantsResponse
-> Maybe Text -> ListReceivedGrantsResponse)
-> Lens
ListReceivedGrantsResponse
ListReceivedGrantsResponse
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListReceivedGrantsResponse' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:ListReceivedGrantsResponse' :: ListReceivedGrantsResponse -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: ListReceivedGrantsResponse
s@ListReceivedGrantsResponse' {} Maybe Text
a -> ListReceivedGrantsResponse
s {$sel:nextToken:ListReceivedGrantsResponse' :: Maybe Text
nextToken = Maybe Text
a} :: ListReceivedGrantsResponse)
listReceivedGrantsResponse_httpStatus :: Lens.Lens' ListReceivedGrantsResponse Prelude.Int
listReceivedGrantsResponse_httpStatus :: (Int -> f Int)
-> ListReceivedGrantsResponse -> f ListReceivedGrantsResponse
listReceivedGrantsResponse_httpStatus = (ListReceivedGrantsResponse -> Int)
-> (ListReceivedGrantsResponse
-> Int -> ListReceivedGrantsResponse)
-> Lens
ListReceivedGrantsResponse ListReceivedGrantsResponse Int Int
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListReceivedGrantsResponse' {Int
httpStatus :: Int
$sel:httpStatus:ListReceivedGrantsResponse' :: ListReceivedGrantsResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: ListReceivedGrantsResponse
s@ListReceivedGrantsResponse' {} Int
a -> ListReceivedGrantsResponse
s {$sel:httpStatus:ListReceivedGrantsResponse' :: Int
httpStatus = Int
a} :: ListReceivedGrantsResponse)
instance Prelude.NFData ListReceivedGrantsResponse