{-# 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.ListReceivedLicenses
(
ListReceivedLicenses (..),
newListReceivedLicenses,
listReceivedLicenses_filters,
listReceivedLicenses_nextToken,
listReceivedLicenses_licenseArns,
listReceivedLicenses_maxResults,
ListReceivedLicensesResponse (..),
newListReceivedLicensesResponse,
listReceivedLicensesResponse_nextToken,
listReceivedLicensesResponse_licenses,
listReceivedLicensesResponse_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 ListReceivedLicenses = ListReceivedLicenses'
{
ListReceivedLicenses -> Maybe [Filter]
filters :: Prelude.Maybe [Filter],
ListReceivedLicenses -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
ListReceivedLicenses -> Maybe [Text]
licenseArns :: Prelude.Maybe [Prelude.Text],
ListReceivedLicenses -> Maybe Natural
maxResults :: Prelude.Maybe Prelude.Natural
}
deriving (ListReceivedLicenses -> ListReceivedLicenses -> Bool
(ListReceivedLicenses -> ListReceivedLicenses -> Bool)
-> (ListReceivedLicenses -> ListReceivedLicenses -> Bool)
-> Eq ListReceivedLicenses
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ListReceivedLicenses -> ListReceivedLicenses -> Bool
$c/= :: ListReceivedLicenses -> ListReceivedLicenses -> Bool
== :: ListReceivedLicenses -> ListReceivedLicenses -> Bool
$c== :: ListReceivedLicenses -> ListReceivedLicenses -> Bool
Prelude.Eq, ReadPrec [ListReceivedLicenses]
ReadPrec ListReceivedLicenses
Int -> ReadS ListReceivedLicenses
ReadS [ListReceivedLicenses]
(Int -> ReadS ListReceivedLicenses)
-> ReadS [ListReceivedLicenses]
-> ReadPrec ListReceivedLicenses
-> ReadPrec [ListReceivedLicenses]
-> Read ListReceivedLicenses
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ListReceivedLicenses]
$creadListPrec :: ReadPrec [ListReceivedLicenses]
readPrec :: ReadPrec ListReceivedLicenses
$creadPrec :: ReadPrec ListReceivedLicenses
readList :: ReadS [ListReceivedLicenses]
$creadList :: ReadS [ListReceivedLicenses]
readsPrec :: Int -> ReadS ListReceivedLicenses
$creadsPrec :: Int -> ReadS ListReceivedLicenses
Prelude.Read, Int -> ListReceivedLicenses -> ShowS
[ListReceivedLicenses] -> ShowS
ListReceivedLicenses -> String
(Int -> ListReceivedLicenses -> ShowS)
-> (ListReceivedLicenses -> String)
-> ([ListReceivedLicenses] -> ShowS)
-> Show ListReceivedLicenses
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ListReceivedLicenses] -> ShowS
$cshowList :: [ListReceivedLicenses] -> ShowS
show :: ListReceivedLicenses -> String
$cshow :: ListReceivedLicenses -> String
showsPrec :: Int -> ListReceivedLicenses -> ShowS
$cshowsPrec :: Int -> ListReceivedLicenses -> ShowS
Prelude.Show, (forall x. ListReceivedLicenses -> Rep ListReceivedLicenses x)
-> (forall x. Rep ListReceivedLicenses x -> ListReceivedLicenses)
-> Generic ListReceivedLicenses
forall x. Rep ListReceivedLicenses x -> ListReceivedLicenses
forall x. ListReceivedLicenses -> Rep ListReceivedLicenses x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep ListReceivedLicenses x -> ListReceivedLicenses
$cfrom :: forall x. ListReceivedLicenses -> Rep ListReceivedLicenses x
Prelude.Generic)
newListReceivedLicenses ::
ListReceivedLicenses
newListReceivedLicenses :: ListReceivedLicenses
newListReceivedLicenses =
ListReceivedLicenses' :: Maybe [Filter]
-> Maybe Text
-> Maybe [Text]
-> Maybe Natural
-> ListReceivedLicenses
ListReceivedLicenses'
{ $sel:filters:ListReceivedLicenses' :: Maybe [Filter]
filters = Maybe [Filter]
forall a. Maybe a
Prelude.Nothing,
$sel:nextToken:ListReceivedLicenses' :: Maybe Text
nextToken = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:licenseArns:ListReceivedLicenses' :: Maybe [Text]
licenseArns = Maybe [Text]
forall a. Maybe a
Prelude.Nothing,
$sel:maxResults:ListReceivedLicenses' :: Maybe Natural
maxResults = Maybe Natural
forall a. Maybe a
Prelude.Nothing
}
listReceivedLicenses_filters :: Lens.Lens' ListReceivedLicenses (Prelude.Maybe [Filter])
listReceivedLicenses_filters :: (Maybe [Filter] -> f (Maybe [Filter]))
-> ListReceivedLicenses -> f ListReceivedLicenses
listReceivedLicenses_filters = (ListReceivedLicenses -> Maybe [Filter])
-> (ListReceivedLicenses -> Maybe [Filter] -> ListReceivedLicenses)
-> Lens
ListReceivedLicenses
ListReceivedLicenses
(Maybe [Filter])
(Maybe [Filter])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListReceivedLicenses' {Maybe [Filter]
filters :: Maybe [Filter]
$sel:filters:ListReceivedLicenses' :: ListReceivedLicenses -> Maybe [Filter]
filters} -> Maybe [Filter]
filters) (\s :: ListReceivedLicenses
s@ListReceivedLicenses' {} Maybe [Filter]
a -> ListReceivedLicenses
s {$sel:filters:ListReceivedLicenses' :: Maybe [Filter]
filters = Maybe [Filter]
a} :: ListReceivedLicenses) ((Maybe [Filter] -> f (Maybe [Filter]))
-> ListReceivedLicenses -> f ListReceivedLicenses)
-> ((Maybe [Filter] -> f (Maybe [Filter]))
-> Maybe [Filter] -> f (Maybe [Filter]))
-> (Maybe [Filter] -> f (Maybe [Filter]))
-> ListReceivedLicenses
-> f ListReceivedLicenses
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
listReceivedLicenses_nextToken :: Lens.Lens' ListReceivedLicenses (Prelude.Maybe Prelude.Text)
listReceivedLicenses_nextToken :: (Maybe Text -> f (Maybe Text))
-> ListReceivedLicenses -> f ListReceivedLicenses
listReceivedLicenses_nextToken = (ListReceivedLicenses -> Maybe Text)
-> (ListReceivedLicenses -> Maybe Text -> ListReceivedLicenses)
-> Lens
ListReceivedLicenses ListReceivedLicenses (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListReceivedLicenses' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:ListReceivedLicenses' :: ListReceivedLicenses -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: ListReceivedLicenses
s@ListReceivedLicenses' {} Maybe Text
a -> ListReceivedLicenses
s {$sel:nextToken:ListReceivedLicenses' :: Maybe Text
nextToken = Maybe Text
a} :: ListReceivedLicenses)
listReceivedLicenses_licenseArns :: Lens.Lens' ListReceivedLicenses (Prelude.Maybe [Prelude.Text])
listReceivedLicenses_licenseArns :: (Maybe [Text] -> f (Maybe [Text]))
-> ListReceivedLicenses -> f ListReceivedLicenses
listReceivedLicenses_licenseArns = (ListReceivedLicenses -> Maybe [Text])
-> (ListReceivedLicenses -> Maybe [Text] -> ListReceivedLicenses)
-> Lens
ListReceivedLicenses
ListReceivedLicenses
(Maybe [Text])
(Maybe [Text])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListReceivedLicenses' {Maybe [Text]
licenseArns :: Maybe [Text]
$sel:licenseArns:ListReceivedLicenses' :: ListReceivedLicenses -> Maybe [Text]
licenseArns} -> Maybe [Text]
licenseArns) (\s :: ListReceivedLicenses
s@ListReceivedLicenses' {} Maybe [Text]
a -> ListReceivedLicenses
s {$sel:licenseArns:ListReceivedLicenses' :: Maybe [Text]
licenseArns = Maybe [Text]
a} :: ListReceivedLicenses) ((Maybe [Text] -> f (Maybe [Text]))
-> ListReceivedLicenses -> f ListReceivedLicenses)
-> ((Maybe [Text] -> f (Maybe [Text]))
-> Maybe [Text] -> f (Maybe [Text]))
-> (Maybe [Text] -> f (Maybe [Text]))
-> ListReceivedLicenses
-> f ListReceivedLicenses
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
listReceivedLicenses_maxResults :: Lens.Lens' ListReceivedLicenses (Prelude.Maybe Prelude.Natural)
listReceivedLicenses_maxResults :: (Maybe Natural -> f (Maybe Natural))
-> ListReceivedLicenses -> f ListReceivedLicenses
listReceivedLicenses_maxResults = (ListReceivedLicenses -> Maybe Natural)
-> (ListReceivedLicenses -> Maybe Natural -> ListReceivedLicenses)
-> Lens
ListReceivedLicenses
ListReceivedLicenses
(Maybe Natural)
(Maybe Natural)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListReceivedLicenses' {Maybe Natural
maxResults :: Maybe Natural
$sel:maxResults:ListReceivedLicenses' :: ListReceivedLicenses -> Maybe Natural
maxResults} -> Maybe Natural
maxResults) (\s :: ListReceivedLicenses
s@ListReceivedLicenses' {} Maybe Natural
a -> ListReceivedLicenses
s {$sel:maxResults:ListReceivedLicenses' :: Maybe Natural
maxResults = Maybe Natural
a} :: ListReceivedLicenses)
instance Core.AWSRequest ListReceivedLicenses where
type
AWSResponse ListReceivedLicenses =
ListReceivedLicensesResponse
request :: ListReceivedLicenses -> Request ListReceivedLicenses
request = Service -> ListReceivedLicenses -> Request ListReceivedLicenses
forall a. (ToRequest a, ToJSON a) => Service -> a -> Request a
Request.postJSON Service
defaultService
response :: Logger
-> Service
-> Proxy ListReceivedLicenses
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse ListReceivedLicenses)))
response =
(Int
-> ResponseHeaders
-> Object
-> Either String (AWSResponse ListReceivedLicenses))
-> Logger
-> Service
-> Proxy ListReceivedLicenses
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse ListReceivedLicenses)))
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 [GrantedLicense] -> Int -> ListReceivedLicensesResponse
ListReceivedLicensesResponse'
(Maybe Text
-> Maybe [GrantedLicense] -> Int -> ListReceivedLicensesResponse)
-> Either String (Maybe Text)
-> Either
String
(Maybe [GrantedLicense] -> Int -> ListReceivedLicensesResponse)
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 [GrantedLicense] -> Int -> ListReceivedLicensesResponse)
-> Either String (Maybe [GrantedLicense])
-> Either String (Int -> ListReceivedLicensesResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe (Maybe [GrantedLicense]))
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"Licenses" Either String (Maybe (Maybe [GrantedLicense]))
-> Maybe [GrantedLicense] -> Either String (Maybe [GrantedLicense])
forall (f :: * -> *) a. Functor f => f (Maybe a) -> a -> f a
Core..!@ Maybe [GrantedLicense]
forall a. Monoid a => a
Prelude.mempty)
Either String (Int -> ListReceivedLicensesResponse)
-> Either String Int -> Either String ListReceivedLicensesResponse
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 ListReceivedLicenses
instance Prelude.NFData ListReceivedLicenses
instance Core.ToHeaders ListReceivedLicenses where
toHeaders :: ListReceivedLicenses -> ResponseHeaders
toHeaders =
ResponseHeaders -> ListReceivedLicenses -> 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.ListReceivedLicenses" ::
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 ListReceivedLicenses where
toJSON :: ListReceivedLicenses -> Value
toJSON ListReceivedLicenses' {Maybe Natural
Maybe [Text]
Maybe [Filter]
Maybe Text
maxResults :: Maybe Natural
licenseArns :: Maybe [Text]
nextToken :: Maybe Text
filters :: Maybe [Filter]
$sel:maxResults:ListReceivedLicenses' :: ListReceivedLicenses -> Maybe Natural
$sel:licenseArns:ListReceivedLicenses' :: ListReceivedLicenses -> Maybe [Text]
$sel:nextToken:ListReceivedLicenses' :: ListReceivedLicenses -> Maybe Text
$sel:filters:ListReceivedLicenses' :: ListReceivedLicenses -> 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
"LicenseArns" 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]
licenseArns,
(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 ListReceivedLicenses where
toPath :: ListReceivedLicenses -> ByteString
toPath = ByteString -> ListReceivedLicenses -> ByteString
forall a b. a -> b -> a
Prelude.const ByteString
"/"
instance Core.ToQuery ListReceivedLicenses where
toQuery :: ListReceivedLicenses -> QueryString
toQuery = QueryString -> ListReceivedLicenses -> QueryString
forall a b. a -> b -> a
Prelude.const QueryString
forall a. Monoid a => a
Prelude.mempty
data ListReceivedLicensesResponse = ListReceivedLicensesResponse'
{
ListReceivedLicensesResponse -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
ListReceivedLicensesResponse -> Maybe [GrantedLicense]
licenses :: Prelude.Maybe [GrantedLicense],
ListReceivedLicensesResponse -> Int
httpStatus :: Prelude.Int
}
deriving (ListReceivedLicensesResponse
-> ListReceivedLicensesResponse -> Bool
(ListReceivedLicensesResponse
-> ListReceivedLicensesResponse -> Bool)
-> (ListReceivedLicensesResponse
-> ListReceivedLicensesResponse -> Bool)
-> Eq ListReceivedLicensesResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ListReceivedLicensesResponse
-> ListReceivedLicensesResponse -> Bool
$c/= :: ListReceivedLicensesResponse
-> ListReceivedLicensesResponse -> Bool
== :: ListReceivedLicensesResponse
-> ListReceivedLicensesResponse -> Bool
$c== :: ListReceivedLicensesResponse
-> ListReceivedLicensesResponse -> Bool
Prelude.Eq, ReadPrec [ListReceivedLicensesResponse]
ReadPrec ListReceivedLicensesResponse
Int -> ReadS ListReceivedLicensesResponse
ReadS [ListReceivedLicensesResponse]
(Int -> ReadS ListReceivedLicensesResponse)
-> ReadS [ListReceivedLicensesResponse]
-> ReadPrec ListReceivedLicensesResponse
-> ReadPrec [ListReceivedLicensesResponse]
-> Read ListReceivedLicensesResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ListReceivedLicensesResponse]
$creadListPrec :: ReadPrec [ListReceivedLicensesResponse]
readPrec :: ReadPrec ListReceivedLicensesResponse
$creadPrec :: ReadPrec ListReceivedLicensesResponse
readList :: ReadS [ListReceivedLicensesResponse]
$creadList :: ReadS [ListReceivedLicensesResponse]
readsPrec :: Int -> ReadS ListReceivedLicensesResponse
$creadsPrec :: Int -> ReadS ListReceivedLicensesResponse
Prelude.Read, Int -> ListReceivedLicensesResponse -> ShowS
[ListReceivedLicensesResponse] -> ShowS
ListReceivedLicensesResponse -> String
(Int -> ListReceivedLicensesResponse -> ShowS)
-> (ListReceivedLicensesResponse -> String)
-> ([ListReceivedLicensesResponse] -> ShowS)
-> Show ListReceivedLicensesResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ListReceivedLicensesResponse] -> ShowS
$cshowList :: [ListReceivedLicensesResponse] -> ShowS
show :: ListReceivedLicensesResponse -> String
$cshow :: ListReceivedLicensesResponse -> String
showsPrec :: Int -> ListReceivedLicensesResponse -> ShowS
$cshowsPrec :: Int -> ListReceivedLicensesResponse -> ShowS
Prelude.Show, (forall x.
ListReceivedLicensesResponse -> Rep ListReceivedLicensesResponse x)
-> (forall x.
Rep ListReceivedLicensesResponse x -> ListReceivedLicensesResponse)
-> Generic ListReceivedLicensesResponse
forall x.
Rep ListReceivedLicensesResponse x -> ListReceivedLicensesResponse
forall x.
ListReceivedLicensesResponse -> Rep ListReceivedLicensesResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep ListReceivedLicensesResponse x -> ListReceivedLicensesResponse
$cfrom :: forall x.
ListReceivedLicensesResponse -> Rep ListReceivedLicensesResponse x
Prelude.Generic)
newListReceivedLicensesResponse ::
Prelude.Int ->
ListReceivedLicensesResponse
newListReceivedLicensesResponse :: Int -> ListReceivedLicensesResponse
newListReceivedLicensesResponse Int
pHttpStatus_ =
ListReceivedLicensesResponse' :: Maybe Text
-> Maybe [GrantedLicense] -> Int -> ListReceivedLicensesResponse
ListReceivedLicensesResponse'
{ $sel:nextToken:ListReceivedLicensesResponse' :: Maybe Text
nextToken =
Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:licenses:ListReceivedLicensesResponse' :: Maybe [GrantedLicense]
licenses = Maybe [GrantedLicense]
forall a. Maybe a
Prelude.Nothing,
$sel:httpStatus:ListReceivedLicensesResponse' :: Int
httpStatus = Int
pHttpStatus_
}
listReceivedLicensesResponse_nextToken :: Lens.Lens' ListReceivedLicensesResponse (Prelude.Maybe Prelude.Text)
listReceivedLicensesResponse_nextToken :: (Maybe Text -> f (Maybe Text))
-> ListReceivedLicensesResponse -> f ListReceivedLicensesResponse
listReceivedLicensesResponse_nextToken = (ListReceivedLicensesResponse -> Maybe Text)
-> (ListReceivedLicensesResponse
-> Maybe Text -> ListReceivedLicensesResponse)
-> Lens
ListReceivedLicensesResponse
ListReceivedLicensesResponse
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListReceivedLicensesResponse' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:ListReceivedLicensesResponse' :: ListReceivedLicensesResponse -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: ListReceivedLicensesResponse
s@ListReceivedLicensesResponse' {} Maybe Text
a -> ListReceivedLicensesResponse
s {$sel:nextToken:ListReceivedLicensesResponse' :: Maybe Text
nextToken = Maybe Text
a} :: ListReceivedLicensesResponse)
listReceivedLicensesResponse_licenses :: Lens.Lens' ListReceivedLicensesResponse (Prelude.Maybe [GrantedLicense])
listReceivedLicensesResponse_licenses :: (Maybe [GrantedLicense] -> f (Maybe [GrantedLicense]))
-> ListReceivedLicensesResponse -> f ListReceivedLicensesResponse
listReceivedLicensesResponse_licenses = (ListReceivedLicensesResponse -> Maybe [GrantedLicense])
-> (ListReceivedLicensesResponse
-> Maybe [GrantedLicense] -> ListReceivedLicensesResponse)
-> Lens
ListReceivedLicensesResponse
ListReceivedLicensesResponse
(Maybe [GrantedLicense])
(Maybe [GrantedLicense])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListReceivedLicensesResponse' {Maybe [GrantedLicense]
licenses :: Maybe [GrantedLicense]
$sel:licenses:ListReceivedLicensesResponse' :: ListReceivedLicensesResponse -> Maybe [GrantedLicense]
licenses} -> Maybe [GrantedLicense]
licenses) (\s :: ListReceivedLicensesResponse
s@ListReceivedLicensesResponse' {} Maybe [GrantedLicense]
a -> ListReceivedLicensesResponse
s {$sel:licenses:ListReceivedLicensesResponse' :: Maybe [GrantedLicense]
licenses = Maybe [GrantedLicense]
a} :: ListReceivedLicensesResponse) ((Maybe [GrantedLicense] -> f (Maybe [GrantedLicense]))
-> ListReceivedLicensesResponse -> f ListReceivedLicensesResponse)
-> ((Maybe [GrantedLicense] -> f (Maybe [GrantedLicense]))
-> Maybe [GrantedLicense] -> f (Maybe [GrantedLicense]))
-> (Maybe [GrantedLicense] -> f (Maybe [GrantedLicense]))
-> ListReceivedLicensesResponse
-> f ListReceivedLicensesResponse
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso
[GrantedLicense] [GrantedLicense] [GrantedLicense] [GrantedLicense]
-> Iso
(Maybe [GrantedLicense])
(Maybe [GrantedLicense])
(Maybe [GrantedLicense])
(Maybe [GrantedLicense])
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
[GrantedLicense] [GrantedLicense] [GrantedLicense] [GrantedLicense]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
listReceivedLicensesResponse_httpStatus :: Lens.Lens' ListReceivedLicensesResponse Prelude.Int
listReceivedLicensesResponse_httpStatus :: (Int -> f Int)
-> ListReceivedLicensesResponse -> f ListReceivedLicensesResponse
listReceivedLicensesResponse_httpStatus = (ListReceivedLicensesResponse -> Int)
-> (ListReceivedLicensesResponse
-> Int -> ListReceivedLicensesResponse)
-> Lens
ListReceivedLicensesResponse ListReceivedLicensesResponse Int Int
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListReceivedLicensesResponse' {Int
httpStatus :: Int
$sel:httpStatus:ListReceivedLicensesResponse' :: ListReceivedLicensesResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: ListReceivedLicensesResponse
s@ListReceivedLicensesResponse' {} Int
a -> ListReceivedLicensesResponse
s {$sel:httpStatus:ListReceivedLicensesResponse' :: Int
httpStatus = Int
a} :: ListReceivedLicensesResponse)
instance Prelude.NFData ListReceivedLicensesResponse