{-# 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.SSMContacts.ListPagesByContact
(
ListPagesByContact (..),
newListPagesByContact,
listPagesByContact_nextToken,
listPagesByContact_maxResults,
listPagesByContact_contactId,
ListPagesByContactResponse (..),
newListPagesByContactResponse,
listPagesByContactResponse_nextToken,
listPagesByContactResponse_httpStatus,
listPagesByContactResponse_pages,
)
where
import qualified Amazonka.Core as Core
import qualified Amazonka.Lens as Lens
import qualified Amazonka.Prelude as Prelude
import qualified Amazonka.Request as Request
import qualified Amazonka.Response as Response
import Amazonka.SSMContacts.Types
data ListPagesByContact = ListPagesByContact'
{
ListPagesByContact -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
ListPagesByContact -> Maybe Natural
maxResults :: Prelude.Maybe Prelude.Natural,
ListPagesByContact -> Text
contactId :: Prelude.Text
}
deriving (ListPagesByContact -> ListPagesByContact -> Bool
(ListPagesByContact -> ListPagesByContact -> Bool)
-> (ListPagesByContact -> ListPagesByContact -> Bool)
-> Eq ListPagesByContact
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ListPagesByContact -> ListPagesByContact -> Bool
$c/= :: ListPagesByContact -> ListPagesByContact -> Bool
== :: ListPagesByContact -> ListPagesByContact -> Bool
$c== :: ListPagesByContact -> ListPagesByContact -> Bool
Prelude.Eq, ReadPrec [ListPagesByContact]
ReadPrec ListPagesByContact
Int -> ReadS ListPagesByContact
ReadS [ListPagesByContact]
(Int -> ReadS ListPagesByContact)
-> ReadS [ListPagesByContact]
-> ReadPrec ListPagesByContact
-> ReadPrec [ListPagesByContact]
-> Read ListPagesByContact
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ListPagesByContact]
$creadListPrec :: ReadPrec [ListPagesByContact]
readPrec :: ReadPrec ListPagesByContact
$creadPrec :: ReadPrec ListPagesByContact
readList :: ReadS [ListPagesByContact]
$creadList :: ReadS [ListPagesByContact]
readsPrec :: Int -> ReadS ListPagesByContact
$creadsPrec :: Int -> ReadS ListPagesByContact
Prelude.Read, Int -> ListPagesByContact -> ShowS
[ListPagesByContact] -> ShowS
ListPagesByContact -> String
(Int -> ListPagesByContact -> ShowS)
-> (ListPagesByContact -> String)
-> ([ListPagesByContact] -> ShowS)
-> Show ListPagesByContact
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ListPagesByContact] -> ShowS
$cshowList :: [ListPagesByContact] -> ShowS
show :: ListPagesByContact -> String
$cshow :: ListPagesByContact -> String
showsPrec :: Int -> ListPagesByContact -> ShowS
$cshowsPrec :: Int -> ListPagesByContact -> ShowS
Prelude.Show, (forall x. ListPagesByContact -> Rep ListPagesByContact x)
-> (forall x. Rep ListPagesByContact x -> ListPagesByContact)
-> Generic ListPagesByContact
forall x. Rep ListPagesByContact x -> ListPagesByContact
forall x. ListPagesByContact -> Rep ListPagesByContact x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep ListPagesByContact x -> ListPagesByContact
$cfrom :: forall x. ListPagesByContact -> Rep ListPagesByContact x
Prelude.Generic)
newListPagesByContact ::
Prelude.Text ->
ListPagesByContact
newListPagesByContact :: Text -> ListPagesByContact
newListPagesByContact Text
pContactId_ =
ListPagesByContact' :: Maybe Text -> Maybe Natural -> Text -> ListPagesByContact
ListPagesByContact'
{ $sel:nextToken:ListPagesByContact' :: Maybe Text
nextToken = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:maxResults:ListPagesByContact' :: Maybe Natural
maxResults = Maybe Natural
forall a. Maybe a
Prelude.Nothing,
$sel:contactId:ListPagesByContact' :: Text
contactId = Text
pContactId_
}
listPagesByContact_nextToken :: Lens.Lens' ListPagesByContact (Prelude.Maybe Prelude.Text)
listPagesByContact_nextToken :: (Maybe Text -> f (Maybe Text))
-> ListPagesByContact -> f ListPagesByContact
listPagesByContact_nextToken = (ListPagesByContact -> Maybe Text)
-> (ListPagesByContact -> Maybe Text -> ListPagesByContact)
-> Lens
ListPagesByContact ListPagesByContact (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListPagesByContact' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:ListPagesByContact' :: ListPagesByContact -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: ListPagesByContact
s@ListPagesByContact' {} Maybe Text
a -> ListPagesByContact
s {$sel:nextToken:ListPagesByContact' :: Maybe Text
nextToken = Maybe Text
a} :: ListPagesByContact)
listPagesByContact_maxResults :: Lens.Lens' ListPagesByContact (Prelude.Maybe Prelude.Natural)
listPagesByContact_maxResults :: (Maybe Natural -> f (Maybe Natural))
-> ListPagesByContact -> f ListPagesByContact
listPagesByContact_maxResults = (ListPagesByContact -> Maybe Natural)
-> (ListPagesByContact -> Maybe Natural -> ListPagesByContact)
-> Lens
ListPagesByContact
ListPagesByContact
(Maybe Natural)
(Maybe Natural)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListPagesByContact' {Maybe Natural
maxResults :: Maybe Natural
$sel:maxResults:ListPagesByContact' :: ListPagesByContact -> Maybe Natural
maxResults} -> Maybe Natural
maxResults) (\s :: ListPagesByContact
s@ListPagesByContact' {} Maybe Natural
a -> ListPagesByContact
s {$sel:maxResults:ListPagesByContact' :: Maybe Natural
maxResults = Maybe Natural
a} :: ListPagesByContact)
listPagesByContact_contactId :: Lens.Lens' ListPagesByContact Prelude.Text
listPagesByContact_contactId :: (Text -> f Text) -> ListPagesByContact -> f ListPagesByContact
listPagesByContact_contactId = (ListPagesByContact -> Text)
-> (ListPagesByContact -> Text -> ListPagesByContact)
-> Lens ListPagesByContact ListPagesByContact Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListPagesByContact' {Text
contactId :: Text
$sel:contactId:ListPagesByContact' :: ListPagesByContact -> Text
contactId} -> Text
contactId) (\s :: ListPagesByContact
s@ListPagesByContact' {} Text
a -> ListPagesByContact
s {$sel:contactId:ListPagesByContact' :: Text
contactId = Text
a} :: ListPagesByContact)
instance Core.AWSPager ListPagesByContact where
page :: ListPagesByContact
-> AWSResponse ListPagesByContact -> Maybe ListPagesByContact
page ListPagesByContact
rq AWSResponse ListPagesByContact
rs
| Maybe Text -> Bool
forall a. AWSTruncated a => a -> Bool
Core.stop
( AWSResponse ListPagesByContact
ListPagesByContactResponse
rs
ListPagesByContactResponse
-> Getting (First Text) ListPagesByContactResponse Text
-> Maybe Text
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? (Maybe Text -> Const (First Text) (Maybe Text))
-> ListPagesByContactResponse
-> Const (First Text) ListPagesByContactResponse
Lens' ListPagesByContactResponse (Maybe Text)
listPagesByContactResponse_nextToken
((Maybe Text -> Const (First Text) (Maybe Text))
-> ListPagesByContactResponse
-> Const (First Text) ListPagesByContactResponse)
-> ((Text -> Const (First Text) Text)
-> Maybe Text -> Const (First Text) (Maybe Text))
-> Getting (First Text) ListPagesByContactResponse 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 ListPagesByContact
forall a. Maybe a
Prelude.Nothing
| [Page] -> Bool
forall a. AWSTruncated a => a -> Bool
Core.stop
(AWSResponse ListPagesByContact
ListPagesByContactResponse
rs ListPagesByContactResponse
-> Getting [Page] ListPagesByContactResponse [Page] -> [Page]
forall s a. s -> Getting a s a -> a
Lens.^. Getting [Page] ListPagesByContactResponse [Page]
Lens' ListPagesByContactResponse [Page]
listPagesByContactResponse_pages) =
Maybe ListPagesByContact
forall a. Maybe a
Prelude.Nothing
| Bool
Prelude.otherwise =
ListPagesByContact -> Maybe ListPagesByContact
forall a. a -> Maybe a
Prelude.Just (ListPagesByContact -> Maybe ListPagesByContact)
-> ListPagesByContact -> Maybe ListPagesByContact
forall a b. (a -> b) -> a -> b
Prelude.$
ListPagesByContact
rq
ListPagesByContact
-> (ListPagesByContact -> ListPagesByContact) -> ListPagesByContact
forall a b. a -> (a -> b) -> b
Prelude.& (Maybe Text -> Identity (Maybe Text))
-> ListPagesByContact -> Identity ListPagesByContact
Lens
ListPagesByContact ListPagesByContact (Maybe Text) (Maybe Text)
listPagesByContact_nextToken
((Maybe Text -> Identity (Maybe Text))
-> ListPagesByContact -> Identity ListPagesByContact)
-> Maybe Text -> ListPagesByContact -> ListPagesByContact
forall s t a b. ASetter s t a b -> b -> s -> t
Lens..~ AWSResponse ListPagesByContact
ListPagesByContactResponse
rs
ListPagesByContactResponse
-> Getting (First Text) ListPagesByContactResponse Text
-> Maybe Text
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? (Maybe Text -> Const (First Text) (Maybe Text))
-> ListPagesByContactResponse
-> Const (First Text) ListPagesByContactResponse
Lens' ListPagesByContactResponse (Maybe Text)
listPagesByContactResponse_nextToken
((Maybe Text -> Const (First Text) (Maybe Text))
-> ListPagesByContactResponse
-> Const (First Text) ListPagesByContactResponse)
-> ((Text -> Const (First Text) Text)
-> Maybe Text -> Const (First Text) (Maybe Text))
-> Getting (First Text) ListPagesByContactResponse 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 ListPagesByContact where
type
AWSResponse ListPagesByContact =
ListPagesByContactResponse
request :: ListPagesByContact -> Request ListPagesByContact
request = Service -> ListPagesByContact -> Request ListPagesByContact
forall a. (ToRequest a, ToJSON a) => Service -> a -> Request a
Request.postJSON Service
defaultService
response :: Logger
-> Service
-> Proxy ListPagesByContact
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse ListPagesByContact)))
response =
(Int
-> ResponseHeaders
-> Object
-> Either String (AWSResponse ListPagesByContact))
-> Logger
-> Service
-> Proxy ListPagesByContact
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse ListPagesByContact)))
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 -> Int -> [Page] -> ListPagesByContactResponse
ListPagesByContactResponse'
(Maybe Text -> Int -> [Page] -> ListPagesByContactResponse)
-> Either String (Maybe Text)
-> Either String (Int -> [Page] -> ListPagesByContactResponse)
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 (Int -> [Page] -> ListPagesByContactResponse)
-> Either String Int
-> Either String ([Page] -> ListPagesByContactResponse)
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))
Either String ([Page] -> ListPagesByContactResponse)
-> Either String [Page] -> Either String ListPagesByContactResponse
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe [Page])
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"Pages" Either String (Maybe [Page]) -> [Page] -> Either String [Page]
forall (f :: * -> *) a. Functor f => f (Maybe a) -> a -> f a
Core..!@ [Page]
forall a. Monoid a => a
Prelude.mempty)
)
instance Prelude.Hashable ListPagesByContact
instance Prelude.NFData ListPagesByContact
instance Core.ToHeaders ListPagesByContact where
toHeaders :: ListPagesByContact -> ResponseHeaders
toHeaders =
ResponseHeaders -> ListPagesByContact -> 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
"SSMContacts.ListPagesByContact" ::
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 ListPagesByContact where
toJSON :: ListPagesByContact -> Value
toJSON ListPagesByContact' {Maybe Natural
Maybe Text
Text
contactId :: Text
maxResults :: Maybe Natural
nextToken :: Maybe Text
$sel:contactId:ListPagesByContact' :: ListPagesByContact -> Text
$sel:maxResults:ListPagesByContact' :: ListPagesByContact -> Maybe Natural
$sel:nextToken:ListPagesByContact' :: ListPagesByContact -> 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,
Pair -> Maybe Pair
forall a. a -> Maybe a
Prelude.Just (Text
"ContactId" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= Text
contactId)
]
)
instance Core.ToPath ListPagesByContact where
toPath :: ListPagesByContact -> ByteString
toPath = ByteString -> ListPagesByContact -> ByteString
forall a b. a -> b -> a
Prelude.const ByteString
"/"
instance Core.ToQuery ListPagesByContact where
toQuery :: ListPagesByContact -> QueryString
toQuery = QueryString -> ListPagesByContact -> QueryString
forall a b. a -> b -> a
Prelude.const QueryString
forall a. Monoid a => a
Prelude.mempty
data ListPagesByContactResponse = ListPagesByContactResponse'
{
ListPagesByContactResponse -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
ListPagesByContactResponse -> Int
httpStatus :: Prelude.Int,
ListPagesByContactResponse -> [Page]
pages :: [Page]
}
deriving (ListPagesByContactResponse -> ListPagesByContactResponse -> Bool
(ListPagesByContactResponse -> ListPagesByContactResponse -> Bool)
-> (ListPagesByContactResponse
-> ListPagesByContactResponse -> Bool)
-> Eq ListPagesByContactResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ListPagesByContactResponse -> ListPagesByContactResponse -> Bool
$c/= :: ListPagesByContactResponse -> ListPagesByContactResponse -> Bool
== :: ListPagesByContactResponse -> ListPagesByContactResponse -> Bool
$c== :: ListPagesByContactResponse -> ListPagesByContactResponse -> Bool
Prelude.Eq, ReadPrec [ListPagesByContactResponse]
ReadPrec ListPagesByContactResponse
Int -> ReadS ListPagesByContactResponse
ReadS [ListPagesByContactResponse]
(Int -> ReadS ListPagesByContactResponse)
-> ReadS [ListPagesByContactResponse]
-> ReadPrec ListPagesByContactResponse
-> ReadPrec [ListPagesByContactResponse]
-> Read ListPagesByContactResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ListPagesByContactResponse]
$creadListPrec :: ReadPrec [ListPagesByContactResponse]
readPrec :: ReadPrec ListPagesByContactResponse
$creadPrec :: ReadPrec ListPagesByContactResponse
readList :: ReadS [ListPagesByContactResponse]
$creadList :: ReadS [ListPagesByContactResponse]
readsPrec :: Int -> ReadS ListPagesByContactResponse
$creadsPrec :: Int -> ReadS ListPagesByContactResponse
Prelude.Read, Int -> ListPagesByContactResponse -> ShowS
[ListPagesByContactResponse] -> ShowS
ListPagesByContactResponse -> String
(Int -> ListPagesByContactResponse -> ShowS)
-> (ListPagesByContactResponse -> String)
-> ([ListPagesByContactResponse] -> ShowS)
-> Show ListPagesByContactResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ListPagesByContactResponse] -> ShowS
$cshowList :: [ListPagesByContactResponse] -> ShowS
show :: ListPagesByContactResponse -> String
$cshow :: ListPagesByContactResponse -> String
showsPrec :: Int -> ListPagesByContactResponse -> ShowS
$cshowsPrec :: Int -> ListPagesByContactResponse -> ShowS
Prelude.Show, (forall x.
ListPagesByContactResponse -> Rep ListPagesByContactResponse x)
-> (forall x.
Rep ListPagesByContactResponse x -> ListPagesByContactResponse)
-> Generic ListPagesByContactResponse
forall x.
Rep ListPagesByContactResponse x -> ListPagesByContactResponse
forall x.
ListPagesByContactResponse -> Rep ListPagesByContactResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep ListPagesByContactResponse x -> ListPagesByContactResponse
$cfrom :: forall x.
ListPagesByContactResponse -> Rep ListPagesByContactResponse x
Prelude.Generic)
newListPagesByContactResponse ::
Prelude.Int ->
ListPagesByContactResponse
newListPagesByContactResponse :: Int -> ListPagesByContactResponse
newListPagesByContactResponse Int
pHttpStatus_ =
ListPagesByContactResponse' :: Maybe Text -> Int -> [Page] -> ListPagesByContactResponse
ListPagesByContactResponse'
{ $sel:nextToken:ListPagesByContactResponse' :: Maybe Text
nextToken =
Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:httpStatus:ListPagesByContactResponse' :: Int
httpStatus = Int
pHttpStatus_,
$sel:pages:ListPagesByContactResponse' :: [Page]
pages = [Page]
forall a. Monoid a => a
Prelude.mempty
}
listPagesByContactResponse_nextToken :: Lens.Lens' ListPagesByContactResponse (Prelude.Maybe Prelude.Text)
listPagesByContactResponse_nextToken :: (Maybe Text -> f (Maybe Text))
-> ListPagesByContactResponse -> f ListPagesByContactResponse
listPagesByContactResponse_nextToken = (ListPagesByContactResponse -> Maybe Text)
-> (ListPagesByContactResponse
-> Maybe Text -> ListPagesByContactResponse)
-> Lens' ListPagesByContactResponse (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListPagesByContactResponse' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:ListPagesByContactResponse' :: ListPagesByContactResponse -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: ListPagesByContactResponse
s@ListPagesByContactResponse' {} Maybe Text
a -> ListPagesByContactResponse
s {$sel:nextToken:ListPagesByContactResponse' :: Maybe Text
nextToken = Maybe Text
a} :: ListPagesByContactResponse)
listPagesByContactResponse_httpStatus :: Lens.Lens' ListPagesByContactResponse Prelude.Int
listPagesByContactResponse_httpStatus :: (Int -> f Int)
-> ListPagesByContactResponse -> f ListPagesByContactResponse
listPagesByContactResponse_httpStatus = (ListPagesByContactResponse -> Int)
-> (ListPagesByContactResponse
-> Int -> ListPagesByContactResponse)
-> Lens
ListPagesByContactResponse ListPagesByContactResponse Int Int
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListPagesByContactResponse' {Int
httpStatus :: Int
$sel:httpStatus:ListPagesByContactResponse' :: ListPagesByContactResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: ListPagesByContactResponse
s@ListPagesByContactResponse' {} Int
a -> ListPagesByContactResponse
s {$sel:httpStatus:ListPagesByContactResponse' :: Int
httpStatus = Int
a} :: ListPagesByContactResponse)
listPagesByContactResponse_pages :: Lens.Lens' ListPagesByContactResponse [Page]
listPagesByContactResponse_pages :: ([Page] -> f [Page])
-> ListPagesByContactResponse -> f ListPagesByContactResponse
listPagesByContactResponse_pages = (ListPagesByContactResponse -> [Page])
-> (ListPagesByContactResponse
-> [Page] -> ListPagesByContactResponse)
-> Lens' ListPagesByContactResponse [Page]
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListPagesByContactResponse' {[Page]
pages :: [Page]
$sel:pages:ListPagesByContactResponse' :: ListPagesByContactResponse -> [Page]
pages} -> [Page]
pages) (\s :: ListPagesByContactResponse
s@ListPagesByContactResponse' {} [Page]
a -> ListPagesByContactResponse
s {$sel:pages:ListPagesByContactResponse' :: [Page]
pages = [Page]
a} :: ListPagesByContactResponse) (([Page] -> f [Page])
-> ListPagesByContactResponse -> f ListPagesByContactResponse)
-> (([Page] -> f [Page]) -> [Page] -> f [Page])
-> ([Page] -> f [Page])
-> ListPagesByContactResponse
-> f ListPagesByContactResponse
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. ([Page] -> f [Page]) -> [Page] -> f [Page]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
instance Prelude.NFData ListPagesByContactResponse