{-# 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.CustomerProfiles.ListProfileObjects
(
ListProfileObjects (..),
newListProfileObjects,
listProfileObjects_objectFilter,
listProfileObjects_nextToken,
listProfileObjects_maxResults,
listProfileObjects_domainName,
listProfileObjects_objectTypeName,
listProfileObjects_profileId,
ListProfileObjectsResponse (..),
newListProfileObjectsResponse,
listProfileObjectsResponse_items,
listProfileObjectsResponse_nextToken,
listProfileObjectsResponse_httpStatus,
)
where
import qualified Amazonka.Core as Core
import Amazonka.CustomerProfiles.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 ListProfileObjects = ListProfileObjects'
{
ListProfileObjects -> Maybe ObjectFilter
objectFilter :: Prelude.Maybe ObjectFilter,
ListProfileObjects -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
ListProfileObjects -> Maybe Natural
maxResults :: Prelude.Maybe Prelude.Natural,
ListProfileObjects -> Text
domainName :: Prelude.Text,
ListProfileObjects -> Text
objectTypeName :: Prelude.Text,
ListProfileObjects -> Text
profileId :: Prelude.Text
}
deriving (ListProfileObjects -> ListProfileObjects -> Bool
(ListProfileObjects -> ListProfileObjects -> Bool)
-> (ListProfileObjects -> ListProfileObjects -> Bool)
-> Eq ListProfileObjects
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ListProfileObjects -> ListProfileObjects -> Bool
$c/= :: ListProfileObjects -> ListProfileObjects -> Bool
== :: ListProfileObjects -> ListProfileObjects -> Bool
$c== :: ListProfileObjects -> ListProfileObjects -> Bool
Prelude.Eq, ReadPrec [ListProfileObjects]
ReadPrec ListProfileObjects
Int -> ReadS ListProfileObjects
ReadS [ListProfileObjects]
(Int -> ReadS ListProfileObjects)
-> ReadS [ListProfileObjects]
-> ReadPrec ListProfileObjects
-> ReadPrec [ListProfileObjects]
-> Read ListProfileObjects
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ListProfileObjects]
$creadListPrec :: ReadPrec [ListProfileObjects]
readPrec :: ReadPrec ListProfileObjects
$creadPrec :: ReadPrec ListProfileObjects
readList :: ReadS [ListProfileObjects]
$creadList :: ReadS [ListProfileObjects]
readsPrec :: Int -> ReadS ListProfileObjects
$creadsPrec :: Int -> ReadS ListProfileObjects
Prelude.Read, Int -> ListProfileObjects -> ShowS
[ListProfileObjects] -> ShowS
ListProfileObjects -> String
(Int -> ListProfileObjects -> ShowS)
-> (ListProfileObjects -> String)
-> ([ListProfileObjects] -> ShowS)
-> Show ListProfileObjects
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ListProfileObjects] -> ShowS
$cshowList :: [ListProfileObjects] -> ShowS
show :: ListProfileObjects -> String
$cshow :: ListProfileObjects -> String
showsPrec :: Int -> ListProfileObjects -> ShowS
$cshowsPrec :: Int -> ListProfileObjects -> ShowS
Prelude.Show, (forall x. ListProfileObjects -> Rep ListProfileObjects x)
-> (forall x. Rep ListProfileObjects x -> ListProfileObjects)
-> Generic ListProfileObjects
forall x. Rep ListProfileObjects x -> ListProfileObjects
forall x. ListProfileObjects -> Rep ListProfileObjects x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep ListProfileObjects x -> ListProfileObjects
$cfrom :: forall x. ListProfileObjects -> Rep ListProfileObjects x
Prelude.Generic)
newListProfileObjects ::
Prelude.Text ->
Prelude.Text ->
Prelude.Text ->
ListProfileObjects
newListProfileObjects :: Text -> Text -> Text -> ListProfileObjects
newListProfileObjects
Text
pDomainName_
Text
pObjectTypeName_
Text
pProfileId_ =
ListProfileObjects' :: Maybe ObjectFilter
-> Maybe Text
-> Maybe Natural
-> Text
-> Text
-> Text
-> ListProfileObjects
ListProfileObjects'
{ $sel:objectFilter:ListProfileObjects' :: Maybe ObjectFilter
objectFilter = Maybe ObjectFilter
forall a. Maybe a
Prelude.Nothing,
$sel:nextToken:ListProfileObjects' :: Maybe Text
nextToken = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:maxResults:ListProfileObjects' :: Maybe Natural
maxResults = Maybe Natural
forall a. Maybe a
Prelude.Nothing,
$sel:domainName:ListProfileObjects' :: Text
domainName = Text
pDomainName_,
$sel:objectTypeName:ListProfileObjects' :: Text
objectTypeName = Text
pObjectTypeName_,
$sel:profileId:ListProfileObjects' :: Text
profileId = Text
pProfileId_
}
listProfileObjects_objectFilter :: Lens.Lens' ListProfileObjects (Prelude.Maybe ObjectFilter)
listProfileObjects_objectFilter :: (Maybe ObjectFilter -> f (Maybe ObjectFilter))
-> ListProfileObjects -> f ListProfileObjects
listProfileObjects_objectFilter = (ListProfileObjects -> Maybe ObjectFilter)
-> (ListProfileObjects -> Maybe ObjectFilter -> ListProfileObjects)
-> Lens
ListProfileObjects
ListProfileObjects
(Maybe ObjectFilter)
(Maybe ObjectFilter)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListProfileObjects' {Maybe ObjectFilter
objectFilter :: Maybe ObjectFilter
$sel:objectFilter:ListProfileObjects' :: ListProfileObjects -> Maybe ObjectFilter
objectFilter} -> Maybe ObjectFilter
objectFilter) (\s :: ListProfileObjects
s@ListProfileObjects' {} Maybe ObjectFilter
a -> ListProfileObjects
s {$sel:objectFilter:ListProfileObjects' :: Maybe ObjectFilter
objectFilter = Maybe ObjectFilter
a} :: ListProfileObjects)
listProfileObjects_nextToken :: Lens.Lens' ListProfileObjects (Prelude.Maybe Prelude.Text)
listProfileObjects_nextToken :: (Maybe Text -> f (Maybe Text))
-> ListProfileObjects -> f ListProfileObjects
listProfileObjects_nextToken = (ListProfileObjects -> Maybe Text)
-> (ListProfileObjects -> Maybe Text -> ListProfileObjects)
-> Lens
ListProfileObjects ListProfileObjects (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListProfileObjects' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:ListProfileObjects' :: ListProfileObjects -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: ListProfileObjects
s@ListProfileObjects' {} Maybe Text
a -> ListProfileObjects
s {$sel:nextToken:ListProfileObjects' :: Maybe Text
nextToken = Maybe Text
a} :: ListProfileObjects)
listProfileObjects_maxResults :: Lens.Lens' ListProfileObjects (Prelude.Maybe Prelude.Natural)
listProfileObjects_maxResults :: (Maybe Natural -> f (Maybe Natural))
-> ListProfileObjects -> f ListProfileObjects
listProfileObjects_maxResults = (ListProfileObjects -> Maybe Natural)
-> (ListProfileObjects -> Maybe Natural -> ListProfileObjects)
-> Lens
ListProfileObjects
ListProfileObjects
(Maybe Natural)
(Maybe Natural)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListProfileObjects' {Maybe Natural
maxResults :: Maybe Natural
$sel:maxResults:ListProfileObjects' :: ListProfileObjects -> Maybe Natural
maxResults} -> Maybe Natural
maxResults) (\s :: ListProfileObjects
s@ListProfileObjects' {} Maybe Natural
a -> ListProfileObjects
s {$sel:maxResults:ListProfileObjects' :: Maybe Natural
maxResults = Maybe Natural
a} :: ListProfileObjects)
listProfileObjects_domainName :: Lens.Lens' ListProfileObjects Prelude.Text
listProfileObjects_domainName :: (Text -> f Text) -> ListProfileObjects -> f ListProfileObjects
listProfileObjects_domainName = (ListProfileObjects -> Text)
-> (ListProfileObjects -> Text -> ListProfileObjects)
-> Lens ListProfileObjects ListProfileObjects Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListProfileObjects' {Text
domainName :: Text
$sel:domainName:ListProfileObjects' :: ListProfileObjects -> Text
domainName} -> Text
domainName) (\s :: ListProfileObjects
s@ListProfileObjects' {} Text
a -> ListProfileObjects
s {$sel:domainName:ListProfileObjects' :: Text
domainName = Text
a} :: ListProfileObjects)
listProfileObjects_objectTypeName :: Lens.Lens' ListProfileObjects Prelude.Text
listProfileObjects_objectTypeName :: (Text -> f Text) -> ListProfileObjects -> f ListProfileObjects
listProfileObjects_objectTypeName = (ListProfileObjects -> Text)
-> (ListProfileObjects -> Text -> ListProfileObjects)
-> Lens ListProfileObjects ListProfileObjects Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListProfileObjects' {Text
objectTypeName :: Text
$sel:objectTypeName:ListProfileObjects' :: ListProfileObjects -> Text
objectTypeName} -> Text
objectTypeName) (\s :: ListProfileObjects
s@ListProfileObjects' {} Text
a -> ListProfileObjects
s {$sel:objectTypeName:ListProfileObjects' :: Text
objectTypeName = Text
a} :: ListProfileObjects)
listProfileObjects_profileId :: Lens.Lens' ListProfileObjects Prelude.Text
listProfileObjects_profileId :: (Text -> f Text) -> ListProfileObjects -> f ListProfileObjects
listProfileObjects_profileId = (ListProfileObjects -> Text)
-> (ListProfileObjects -> Text -> ListProfileObjects)
-> Lens ListProfileObjects ListProfileObjects Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListProfileObjects' {Text
profileId :: Text
$sel:profileId:ListProfileObjects' :: ListProfileObjects -> Text
profileId} -> Text
profileId) (\s :: ListProfileObjects
s@ListProfileObjects' {} Text
a -> ListProfileObjects
s {$sel:profileId:ListProfileObjects' :: Text
profileId = Text
a} :: ListProfileObjects)
instance Core.AWSRequest ListProfileObjects where
type
AWSResponse ListProfileObjects =
ListProfileObjectsResponse
request :: ListProfileObjects -> Request ListProfileObjects
request = Service -> ListProfileObjects -> Request ListProfileObjects
forall a. (ToRequest a, ToJSON a) => Service -> a -> Request a
Request.postJSON Service
defaultService
response :: Logger
-> Service
-> Proxy ListProfileObjects
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse ListProfileObjects)))
response =
(Int
-> ResponseHeaders
-> Object
-> Either String (AWSResponse ListProfileObjects))
-> Logger
-> Service
-> Proxy ListProfileObjects
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse ListProfileObjects)))
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 [ListProfileObjectsItem]
-> Maybe Text -> Int -> ListProfileObjectsResponse
ListProfileObjectsResponse'
(Maybe [ListProfileObjectsItem]
-> Maybe Text -> Int -> ListProfileObjectsResponse)
-> Either String (Maybe [ListProfileObjectsItem])
-> Either String (Maybe Text -> Int -> ListProfileObjectsResponse)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x Object
-> Text -> Either String (Maybe (Maybe [ListProfileObjectsItem]))
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"Items" Either String (Maybe (Maybe [ListProfileObjectsItem]))
-> Maybe [ListProfileObjectsItem]
-> Either String (Maybe [ListProfileObjectsItem])
forall (f :: * -> *) a. Functor f => f (Maybe a) -> a -> f a
Core..!@ Maybe [ListProfileObjectsItem]
forall a. Monoid a => a
Prelude.mempty)
Either String (Maybe Text -> Int -> ListProfileObjectsResponse)
-> Either String (Maybe Text)
-> Either String (Int -> ListProfileObjectsResponse)
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 -> ListProfileObjectsResponse)
-> Either String Int -> Either String ListProfileObjectsResponse
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 ListProfileObjects
instance Prelude.NFData ListProfileObjects
instance Core.ToHeaders ListProfileObjects where
toHeaders :: ListProfileObjects -> ResponseHeaders
toHeaders =
ResponseHeaders -> ListProfileObjects -> ResponseHeaders
forall a b. a -> b -> a
Prelude.const
( [ResponseHeaders] -> ResponseHeaders
forall a. Monoid a => [a] -> a
Prelude.mconcat
[ 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 ListProfileObjects where
toJSON :: ListProfileObjects -> Value
toJSON ListProfileObjects' {Maybe Natural
Maybe Text
Maybe ObjectFilter
Text
profileId :: Text
objectTypeName :: Text
domainName :: Text
maxResults :: Maybe Natural
nextToken :: Maybe Text
objectFilter :: Maybe ObjectFilter
$sel:profileId:ListProfileObjects' :: ListProfileObjects -> Text
$sel:objectTypeName:ListProfileObjects' :: ListProfileObjects -> Text
$sel:domainName:ListProfileObjects' :: ListProfileObjects -> Text
$sel:maxResults:ListProfileObjects' :: ListProfileObjects -> Maybe Natural
$sel:nextToken:ListProfileObjects' :: ListProfileObjects -> Maybe Text
$sel:objectFilter:ListProfileObjects' :: ListProfileObjects -> Maybe ObjectFilter
..} =
[Pair] -> Value
Core.object
( [Maybe Pair] -> [Pair]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[ (Text
"ObjectFilter" Text -> ObjectFilter -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=) (ObjectFilter -> Pair) -> Maybe ObjectFilter -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe ObjectFilter
objectFilter,
Pair -> Maybe Pair
forall a. a -> Maybe a
Prelude.Just
(Text
"ObjectTypeName" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= Text
objectTypeName),
Pair -> Maybe Pair
forall a. a -> Maybe a
Prelude.Just (Text
"ProfileId" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= Text
profileId)
]
)
instance Core.ToPath ListProfileObjects where
toPath :: ListProfileObjects -> ByteString
toPath ListProfileObjects' {Maybe Natural
Maybe Text
Maybe ObjectFilter
Text
profileId :: Text
objectTypeName :: Text
domainName :: Text
maxResults :: Maybe Natural
nextToken :: Maybe Text
objectFilter :: Maybe ObjectFilter
$sel:profileId:ListProfileObjects' :: ListProfileObjects -> Text
$sel:objectTypeName:ListProfileObjects' :: ListProfileObjects -> Text
$sel:domainName:ListProfileObjects' :: ListProfileObjects -> Text
$sel:maxResults:ListProfileObjects' :: ListProfileObjects -> Maybe Natural
$sel:nextToken:ListProfileObjects' :: ListProfileObjects -> Maybe Text
$sel:objectFilter:ListProfileObjects' :: ListProfileObjects -> Maybe ObjectFilter
..} =
[ByteString] -> ByteString
forall a. Monoid a => [a] -> a
Prelude.mconcat
[ ByteString
"/domains/",
Text -> ByteString
forall a. ToByteString a => a -> ByteString
Core.toBS Text
domainName,
ByteString
"/profiles/objects"
]
instance Core.ToQuery ListProfileObjects where
toQuery :: ListProfileObjects -> QueryString
toQuery ListProfileObjects' {Maybe Natural
Maybe Text
Maybe ObjectFilter
Text
profileId :: Text
objectTypeName :: Text
domainName :: Text
maxResults :: Maybe Natural
nextToken :: Maybe Text
objectFilter :: Maybe ObjectFilter
$sel:profileId:ListProfileObjects' :: ListProfileObjects -> Text
$sel:objectTypeName:ListProfileObjects' :: ListProfileObjects -> Text
$sel:domainName:ListProfileObjects' :: ListProfileObjects -> Text
$sel:maxResults:ListProfileObjects' :: ListProfileObjects -> Maybe Natural
$sel:nextToken:ListProfileObjects' :: ListProfileObjects -> Maybe Text
$sel:objectFilter:ListProfileObjects' :: ListProfileObjects -> Maybe ObjectFilter
..} =
[QueryString] -> QueryString
forall a. Monoid a => [a] -> a
Prelude.mconcat
[ ByteString
"next-token" ByteString -> Maybe Text -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Maybe Text
nextToken,
ByteString
"max-results" ByteString -> Maybe Natural -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Maybe Natural
maxResults
]
data ListProfileObjectsResponse = ListProfileObjectsResponse'
{
ListProfileObjectsResponse -> Maybe [ListProfileObjectsItem]
items :: Prelude.Maybe [ListProfileObjectsItem],
ListProfileObjectsResponse -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
ListProfileObjectsResponse -> Int
httpStatus :: Prelude.Int
}
deriving (ListProfileObjectsResponse -> ListProfileObjectsResponse -> Bool
(ListProfileObjectsResponse -> ListProfileObjectsResponse -> Bool)
-> (ListProfileObjectsResponse
-> ListProfileObjectsResponse -> Bool)
-> Eq ListProfileObjectsResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ListProfileObjectsResponse -> ListProfileObjectsResponse -> Bool
$c/= :: ListProfileObjectsResponse -> ListProfileObjectsResponse -> Bool
== :: ListProfileObjectsResponse -> ListProfileObjectsResponse -> Bool
$c== :: ListProfileObjectsResponse -> ListProfileObjectsResponse -> Bool
Prelude.Eq, ReadPrec [ListProfileObjectsResponse]
ReadPrec ListProfileObjectsResponse
Int -> ReadS ListProfileObjectsResponse
ReadS [ListProfileObjectsResponse]
(Int -> ReadS ListProfileObjectsResponse)
-> ReadS [ListProfileObjectsResponse]
-> ReadPrec ListProfileObjectsResponse
-> ReadPrec [ListProfileObjectsResponse]
-> Read ListProfileObjectsResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ListProfileObjectsResponse]
$creadListPrec :: ReadPrec [ListProfileObjectsResponse]
readPrec :: ReadPrec ListProfileObjectsResponse
$creadPrec :: ReadPrec ListProfileObjectsResponse
readList :: ReadS [ListProfileObjectsResponse]
$creadList :: ReadS [ListProfileObjectsResponse]
readsPrec :: Int -> ReadS ListProfileObjectsResponse
$creadsPrec :: Int -> ReadS ListProfileObjectsResponse
Prelude.Read, Int -> ListProfileObjectsResponse -> ShowS
[ListProfileObjectsResponse] -> ShowS
ListProfileObjectsResponse -> String
(Int -> ListProfileObjectsResponse -> ShowS)
-> (ListProfileObjectsResponse -> String)
-> ([ListProfileObjectsResponse] -> ShowS)
-> Show ListProfileObjectsResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ListProfileObjectsResponse] -> ShowS
$cshowList :: [ListProfileObjectsResponse] -> ShowS
show :: ListProfileObjectsResponse -> String
$cshow :: ListProfileObjectsResponse -> String
showsPrec :: Int -> ListProfileObjectsResponse -> ShowS
$cshowsPrec :: Int -> ListProfileObjectsResponse -> ShowS
Prelude.Show, (forall x.
ListProfileObjectsResponse -> Rep ListProfileObjectsResponse x)
-> (forall x.
Rep ListProfileObjectsResponse x -> ListProfileObjectsResponse)
-> Generic ListProfileObjectsResponse
forall x.
Rep ListProfileObjectsResponse x -> ListProfileObjectsResponse
forall x.
ListProfileObjectsResponse -> Rep ListProfileObjectsResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep ListProfileObjectsResponse x -> ListProfileObjectsResponse
$cfrom :: forall x.
ListProfileObjectsResponse -> Rep ListProfileObjectsResponse x
Prelude.Generic)
newListProfileObjectsResponse ::
Prelude.Int ->
ListProfileObjectsResponse
newListProfileObjectsResponse :: Int -> ListProfileObjectsResponse
newListProfileObjectsResponse Int
pHttpStatus_ =
ListProfileObjectsResponse' :: Maybe [ListProfileObjectsItem]
-> Maybe Text -> Int -> ListProfileObjectsResponse
ListProfileObjectsResponse'
{ $sel:items:ListProfileObjectsResponse' :: Maybe [ListProfileObjectsItem]
items =
Maybe [ListProfileObjectsItem]
forall a. Maybe a
Prelude.Nothing,
$sel:nextToken:ListProfileObjectsResponse' :: Maybe Text
nextToken = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:httpStatus:ListProfileObjectsResponse' :: Int
httpStatus = Int
pHttpStatus_
}
listProfileObjectsResponse_items :: Lens.Lens' ListProfileObjectsResponse (Prelude.Maybe [ListProfileObjectsItem])
listProfileObjectsResponse_items :: (Maybe [ListProfileObjectsItem]
-> f (Maybe [ListProfileObjectsItem]))
-> ListProfileObjectsResponse -> f ListProfileObjectsResponse
listProfileObjectsResponse_items = (ListProfileObjectsResponse -> Maybe [ListProfileObjectsItem])
-> (ListProfileObjectsResponse
-> Maybe [ListProfileObjectsItem] -> ListProfileObjectsResponse)
-> Lens
ListProfileObjectsResponse
ListProfileObjectsResponse
(Maybe [ListProfileObjectsItem])
(Maybe [ListProfileObjectsItem])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListProfileObjectsResponse' {Maybe [ListProfileObjectsItem]
items :: Maybe [ListProfileObjectsItem]
$sel:items:ListProfileObjectsResponse' :: ListProfileObjectsResponse -> Maybe [ListProfileObjectsItem]
items} -> Maybe [ListProfileObjectsItem]
items) (\s :: ListProfileObjectsResponse
s@ListProfileObjectsResponse' {} Maybe [ListProfileObjectsItem]
a -> ListProfileObjectsResponse
s {$sel:items:ListProfileObjectsResponse' :: Maybe [ListProfileObjectsItem]
items = Maybe [ListProfileObjectsItem]
a} :: ListProfileObjectsResponse) ((Maybe [ListProfileObjectsItem]
-> f (Maybe [ListProfileObjectsItem]))
-> ListProfileObjectsResponse -> f ListProfileObjectsResponse)
-> ((Maybe [ListProfileObjectsItem]
-> f (Maybe [ListProfileObjectsItem]))
-> Maybe [ListProfileObjectsItem]
-> f (Maybe [ListProfileObjectsItem]))
-> (Maybe [ListProfileObjectsItem]
-> f (Maybe [ListProfileObjectsItem]))
-> ListProfileObjectsResponse
-> f ListProfileObjectsResponse
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso
[ListProfileObjectsItem]
[ListProfileObjectsItem]
[ListProfileObjectsItem]
[ListProfileObjectsItem]
-> Iso
(Maybe [ListProfileObjectsItem])
(Maybe [ListProfileObjectsItem])
(Maybe [ListProfileObjectsItem])
(Maybe [ListProfileObjectsItem])
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
[ListProfileObjectsItem]
[ListProfileObjectsItem]
[ListProfileObjectsItem]
[ListProfileObjectsItem]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
listProfileObjectsResponse_nextToken :: Lens.Lens' ListProfileObjectsResponse (Prelude.Maybe Prelude.Text)
listProfileObjectsResponse_nextToken :: (Maybe Text -> f (Maybe Text))
-> ListProfileObjectsResponse -> f ListProfileObjectsResponse
listProfileObjectsResponse_nextToken = (ListProfileObjectsResponse -> Maybe Text)
-> (ListProfileObjectsResponse
-> Maybe Text -> ListProfileObjectsResponse)
-> Lens
ListProfileObjectsResponse
ListProfileObjectsResponse
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListProfileObjectsResponse' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:ListProfileObjectsResponse' :: ListProfileObjectsResponse -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: ListProfileObjectsResponse
s@ListProfileObjectsResponse' {} Maybe Text
a -> ListProfileObjectsResponse
s {$sel:nextToken:ListProfileObjectsResponse' :: Maybe Text
nextToken = Maybe Text
a} :: ListProfileObjectsResponse)
listProfileObjectsResponse_httpStatus :: Lens.Lens' ListProfileObjectsResponse Prelude.Int
listProfileObjectsResponse_httpStatus :: (Int -> f Int)
-> ListProfileObjectsResponse -> f ListProfileObjectsResponse
listProfileObjectsResponse_httpStatus = (ListProfileObjectsResponse -> Int)
-> (ListProfileObjectsResponse
-> Int -> ListProfileObjectsResponse)
-> Lens
ListProfileObjectsResponse ListProfileObjectsResponse Int Int
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListProfileObjectsResponse' {Int
httpStatus :: Int
$sel:httpStatus:ListProfileObjectsResponse' :: ListProfileObjectsResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: ListProfileObjectsResponse
s@ListProfileObjectsResponse' {} Int
a -> ListProfileObjectsResponse
s {$sel:httpStatus:ListProfileObjectsResponse' :: Int
httpStatus = Int
a} :: ListProfileObjectsResponse)
instance Prelude.NFData ListProfileObjectsResponse