{-# 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.SNS.ListPhoneNumbersOptedOut
(
ListPhoneNumbersOptedOut (..),
newListPhoneNumbersOptedOut,
listPhoneNumbersOptedOut_nextToken,
ListPhoneNumbersOptedOutResponse (..),
newListPhoneNumbersOptedOutResponse,
listPhoneNumbersOptedOutResponse_phoneNumbers,
listPhoneNumbersOptedOutResponse_nextToken,
listPhoneNumbersOptedOutResponse_httpStatus,
)
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.SNS.Types
data ListPhoneNumbersOptedOut = ListPhoneNumbersOptedOut'
{
ListPhoneNumbersOptedOut -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text
}
deriving (ListPhoneNumbersOptedOut -> ListPhoneNumbersOptedOut -> Bool
(ListPhoneNumbersOptedOut -> ListPhoneNumbersOptedOut -> Bool)
-> (ListPhoneNumbersOptedOut -> ListPhoneNumbersOptedOut -> Bool)
-> Eq ListPhoneNumbersOptedOut
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ListPhoneNumbersOptedOut -> ListPhoneNumbersOptedOut -> Bool
$c/= :: ListPhoneNumbersOptedOut -> ListPhoneNumbersOptedOut -> Bool
== :: ListPhoneNumbersOptedOut -> ListPhoneNumbersOptedOut -> Bool
$c== :: ListPhoneNumbersOptedOut -> ListPhoneNumbersOptedOut -> Bool
Prelude.Eq, ReadPrec [ListPhoneNumbersOptedOut]
ReadPrec ListPhoneNumbersOptedOut
Int -> ReadS ListPhoneNumbersOptedOut
ReadS [ListPhoneNumbersOptedOut]
(Int -> ReadS ListPhoneNumbersOptedOut)
-> ReadS [ListPhoneNumbersOptedOut]
-> ReadPrec ListPhoneNumbersOptedOut
-> ReadPrec [ListPhoneNumbersOptedOut]
-> Read ListPhoneNumbersOptedOut
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ListPhoneNumbersOptedOut]
$creadListPrec :: ReadPrec [ListPhoneNumbersOptedOut]
readPrec :: ReadPrec ListPhoneNumbersOptedOut
$creadPrec :: ReadPrec ListPhoneNumbersOptedOut
readList :: ReadS [ListPhoneNumbersOptedOut]
$creadList :: ReadS [ListPhoneNumbersOptedOut]
readsPrec :: Int -> ReadS ListPhoneNumbersOptedOut
$creadsPrec :: Int -> ReadS ListPhoneNumbersOptedOut
Prelude.Read, Int -> ListPhoneNumbersOptedOut -> ShowS
[ListPhoneNumbersOptedOut] -> ShowS
ListPhoneNumbersOptedOut -> String
(Int -> ListPhoneNumbersOptedOut -> ShowS)
-> (ListPhoneNumbersOptedOut -> String)
-> ([ListPhoneNumbersOptedOut] -> ShowS)
-> Show ListPhoneNumbersOptedOut
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ListPhoneNumbersOptedOut] -> ShowS
$cshowList :: [ListPhoneNumbersOptedOut] -> ShowS
show :: ListPhoneNumbersOptedOut -> String
$cshow :: ListPhoneNumbersOptedOut -> String
showsPrec :: Int -> ListPhoneNumbersOptedOut -> ShowS
$cshowsPrec :: Int -> ListPhoneNumbersOptedOut -> ShowS
Prelude.Show, (forall x.
ListPhoneNumbersOptedOut -> Rep ListPhoneNumbersOptedOut x)
-> (forall x.
Rep ListPhoneNumbersOptedOut x -> ListPhoneNumbersOptedOut)
-> Generic ListPhoneNumbersOptedOut
forall x.
Rep ListPhoneNumbersOptedOut x -> ListPhoneNumbersOptedOut
forall x.
ListPhoneNumbersOptedOut -> Rep ListPhoneNumbersOptedOut x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep ListPhoneNumbersOptedOut x -> ListPhoneNumbersOptedOut
$cfrom :: forall x.
ListPhoneNumbersOptedOut -> Rep ListPhoneNumbersOptedOut x
Prelude.Generic)
newListPhoneNumbersOptedOut ::
ListPhoneNumbersOptedOut
newListPhoneNumbersOptedOut :: ListPhoneNumbersOptedOut
newListPhoneNumbersOptedOut =
ListPhoneNumbersOptedOut' :: Maybe Text -> ListPhoneNumbersOptedOut
ListPhoneNumbersOptedOut'
{ $sel:nextToken:ListPhoneNumbersOptedOut' :: Maybe Text
nextToken =
Maybe Text
forall a. Maybe a
Prelude.Nothing
}
listPhoneNumbersOptedOut_nextToken :: Lens.Lens' ListPhoneNumbersOptedOut (Prelude.Maybe Prelude.Text)
listPhoneNumbersOptedOut_nextToken :: (Maybe Text -> f (Maybe Text))
-> ListPhoneNumbersOptedOut -> f ListPhoneNumbersOptedOut
listPhoneNumbersOptedOut_nextToken = (ListPhoneNumbersOptedOut -> Maybe Text)
-> (ListPhoneNumbersOptedOut
-> Maybe Text -> ListPhoneNumbersOptedOut)
-> Lens
ListPhoneNumbersOptedOut
ListPhoneNumbersOptedOut
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListPhoneNumbersOptedOut' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:ListPhoneNumbersOptedOut' :: ListPhoneNumbersOptedOut -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: ListPhoneNumbersOptedOut
s@ListPhoneNumbersOptedOut' {} Maybe Text
a -> ListPhoneNumbersOptedOut
s {$sel:nextToken:ListPhoneNumbersOptedOut' :: Maybe Text
nextToken = Maybe Text
a} :: ListPhoneNumbersOptedOut)
instance Core.AWSPager ListPhoneNumbersOptedOut where
page :: ListPhoneNumbersOptedOut
-> AWSResponse ListPhoneNumbersOptedOut
-> Maybe ListPhoneNumbersOptedOut
page ListPhoneNumbersOptedOut
rq AWSResponse ListPhoneNumbersOptedOut
rs
| Maybe Text -> Bool
forall a. AWSTruncated a => a -> Bool
Core.stop
( AWSResponse ListPhoneNumbersOptedOut
ListPhoneNumbersOptedOutResponse
rs
ListPhoneNumbersOptedOutResponse
-> Getting (First Text) ListPhoneNumbersOptedOutResponse Text
-> Maybe Text
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? (Maybe Text -> Const (First Text) (Maybe Text))
-> ListPhoneNumbersOptedOutResponse
-> Const (First Text) ListPhoneNumbersOptedOutResponse
Lens' ListPhoneNumbersOptedOutResponse (Maybe Text)
listPhoneNumbersOptedOutResponse_nextToken
((Maybe Text -> Const (First Text) (Maybe Text))
-> ListPhoneNumbersOptedOutResponse
-> Const (First Text) ListPhoneNumbersOptedOutResponse)
-> ((Text -> Const (First Text) Text)
-> Maybe Text -> Const (First Text) (Maybe Text))
-> Getting (First Text) ListPhoneNumbersOptedOutResponse 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 ListPhoneNumbersOptedOut
forall a. Maybe a
Prelude.Nothing
| Maybe [Text] -> Bool
forall a. AWSTruncated a => a -> Bool
Core.stop
( AWSResponse ListPhoneNumbersOptedOut
ListPhoneNumbersOptedOutResponse
rs
ListPhoneNumbersOptedOutResponse
-> Getting (First [Text]) ListPhoneNumbersOptedOutResponse [Text]
-> Maybe [Text]
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? (Maybe [Text] -> Const (First [Text]) (Maybe [Text]))
-> ListPhoneNumbersOptedOutResponse
-> Const (First [Text]) ListPhoneNumbersOptedOutResponse
Lens' ListPhoneNumbersOptedOutResponse (Maybe [Text])
listPhoneNumbersOptedOutResponse_phoneNumbers
((Maybe [Text] -> Const (First [Text]) (Maybe [Text]))
-> ListPhoneNumbersOptedOutResponse
-> Const (First [Text]) ListPhoneNumbersOptedOutResponse)
-> (([Text] -> Const (First [Text]) [Text])
-> Maybe [Text] -> Const (First [Text]) (Maybe [Text]))
-> Getting (First [Text]) ListPhoneNumbersOptedOutResponse [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 ListPhoneNumbersOptedOut
forall a. Maybe a
Prelude.Nothing
| Bool
Prelude.otherwise =
ListPhoneNumbersOptedOut -> Maybe ListPhoneNumbersOptedOut
forall a. a -> Maybe a
Prelude.Just (ListPhoneNumbersOptedOut -> Maybe ListPhoneNumbersOptedOut)
-> ListPhoneNumbersOptedOut -> Maybe ListPhoneNumbersOptedOut
forall a b. (a -> b) -> a -> b
Prelude.$
ListPhoneNumbersOptedOut
rq
ListPhoneNumbersOptedOut
-> (ListPhoneNumbersOptedOut -> ListPhoneNumbersOptedOut)
-> ListPhoneNumbersOptedOut
forall a b. a -> (a -> b) -> b
Prelude.& (Maybe Text -> Identity (Maybe Text))
-> ListPhoneNumbersOptedOut -> Identity ListPhoneNumbersOptedOut
Lens
ListPhoneNumbersOptedOut
ListPhoneNumbersOptedOut
(Maybe Text)
(Maybe Text)
listPhoneNumbersOptedOut_nextToken
((Maybe Text -> Identity (Maybe Text))
-> ListPhoneNumbersOptedOut -> Identity ListPhoneNumbersOptedOut)
-> Maybe Text
-> ListPhoneNumbersOptedOut
-> ListPhoneNumbersOptedOut
forall s t a b. ASetter s t a b -> b -> s -> t
Lens..~ AWSResponse ListPhoneNumbersOptedOut
ListPhoneNumbersOptedOutResponse
rs
ListPhoneNumbersOptedOutResponse
-> Getting (First Text) ListPhoneNumbersOptedOutResponse Text
-> Maybe Text
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? (Maybe Text -> Const (First Text) (Maybe Text))
-> ListPhoneNumbersOptedOutResponse
-> Const (First Text) ListPhoneNumbersOptedOutResponse
Lens' ListPhoneNumbersOptedOutResponse (Maybe Text)
listPhoneNumbersOptedOutResponse_nextToken
((Maybe Text -> Const (First Text) (Maybe Text))
-> ListPhoneNumbersOptedOutResponse
-> Const (First Text) ListPhoneNumbersOptedOutResponse)
-> ((Text -> Const (First Text) Text)
-> Maybe Text -> Const (First Text) (Maybe Text))
-> Getting (First Text) ListPhoneNumbersOptedOutResponse 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 ListPhoneNumbersOptedOut where
type
AWSResponse ListPhoneNumbersOptedOut =
ListPhoneNumbersOptedOutResponse
request :: ListPhoneNumbersOptedOut -> Request ListPhoneNumbersOptedOut
request = Service
-> ListPhoneNumbersOptedOut -> Request ListPhoneNumbersOptedOut
forall a. ToRequest a => Service -> a -> Request a
Request.postQuery Service
defaultService
response :: Logger
-> Service
-> Proxy ListPhoneNumbersOptedOut
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse ListPhoneNumbersOptedOut)))
response =
Text
-> (Int
-> ResponseHeaders
-> [Node]
-> Either String (AWSResponse ListPhoneNumbersOptedOut))
-> Logger
-> Service
-> Proxy ListPhoneNumbersOptedOut
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse ListPhoneNumbersOptedOut)))
forall (m :: * -> *) a.
MonadResource m =>
Text
-> (Int
-> ResponseHeaders -> [Node] -> Either String (AWSResponse a))
-> Logger
-> Service
-> Proxy a
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse a)))
Response.receiveXMLWrapper
Text
"ListPhoneNumbersOptedOutResult"
( \Int
s ResponseHeaders
h [Node]
x ->
Maybe [Text]
-> Maybe Text -> Int -> ListPhoneNumbersOptedOutResponse
ListPhoneNumbersOptedOutResponse'
(Maybe [Text]
-> Maybe Text -> Int -> ListPhoneNumbersOptedOutResponse)
-> Either String (Maybe [Text])
-> Either
String (Maybe Text -> Int -> ListPhoneNumbersOptedOutResponse)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> ( [Node]
x [Node] -> Text -> Either String (Maybe [Node])
forall a. FromXML a => [Node] -> Text -> Either String (Maybe a)
Core..@? Text
"phoneNumbers" Either String (Maybe [Node]) -> [Node] -> Either String [Node]
forall (f :: * -> *) a. Functor f => f (Maybe a) -> a -> f a
Core..!@ [Node]
forall a. Monoid a => a
Prelude.mempty
Either String [Node]
-> ([Node] -> Either String (Maybe [Text]))
-> Either String (Maybe [Text])
forall (m :: * -> *) a b. Monad m => m a -> (a -> m b) -> m b
Prelude.>>= ([Node] -> Either String [Text])
-> [Node] -> Either String (Maybe [Text])
forall (f :: * -> *) a b.
Applicative f =>
([a] -> f b) -> [a] -> f (Maybe b)
Core.may (Text -> [Node] -> Either String [Text]
forall a. FromXML a => Text -> [Node] -> Either String [a]
Core.parseXMLList Text
"member")
)
Either
String (Maybe Text -> Int -> ListPhoneNumbersOptedOutResponse)
-> Either String (Maybe Text)
-> Either String (Int -> ListPhoneNumbersOptedOutResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ([Node]
x [Node] -> Text -> Either String (Maybe Text)
forall a. FromXML a => [Node] -> Text -> Either String (Maybe a)
Core..@? Text
"nextToken")
Either String (Int -> ListPhoneNumbersOptedOutResponse)
-> Either String Int
-> Either String ListPhoneNumbersOptedOutResponse
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 ListPhoneNumbersOptedOut
instance Prelude.NFData ListPhoneNumbersOptedOut
instance Core.ToHeaders ListPhoneNumbersOptedOut where
toHeaders :: ListPhoneNumbersOptedOut -> ResponseHeaders
toHeaders = ResponseHeaders -> ListPhoneNumbersOptedOut -> ResponseHeaders
forall a b. a -> b -> a
Prelude.const ResponseHeaders
forall a. Monoid a => a
Prelude.mempty
instance Core.ToPath ListPhoneNumbersOptedOut where
toPath :: ListPhoneNumbersOptedOut -> ByteString
toPath = ByteString -> ListPhoneNumbersOptedOut -> ByteString
forall a b. a -> b -> a
Prelude.const ByteString
"/"
instance Core.ToQuery ListPhoneNumbersOptedOut where
toQuery :: ListPhoneNumbersOptedOut -> QueryString
toQuery ListPhoneNumbersOptedOut' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:ListPhoneNumbersOptedOut' :: ListPhoneNumbersOptedOut -> Maybe Text
..} =
[QueryString] -> QueryString
forall a. Monoid a => [a] -> a
Prelude.mconcat
[ ByteString
"Action"
ByteString -> ByteString -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: (ByteString
"ListPhoneNumbersOptedOut" :: Prelude.ByteString),
ByteString
"Version"
ByteString -> ByteString -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: (ByteString
"2010-03-31" :: Prelude.ByteString),
ByteString
"nextToken" ByteString -> Maybe Text -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Maybe Text
nextToken
]
data ListPhoneNumbersOptedOutResponse = ListPhoneNumbersOptedOutResponse'
{
ListPhoneNumbersOptedOutResponse -> Maybe [Text]
phoneNumbers :: Prelude.Maybe [Prelude.Text],
ListPhoneNumbersOptedOutResponse -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
ListPhoneNumbersOptedOutResponse -> Int
httpStatus :: Prelude.Int
}
deriving (ListPhoneNumbersOptedOutResponse
-> ListPhoneNumbersOptedOutResponse -> Bool
(ListPhoneNumbersOptedOutResponse
-> ListPhoneNumbersOptedOutResponse -> Bool)
-> (ListPhoneNumbersOptedOutResponse
-> ListPhoneNumbersOptedOutResponse -> Bool)
-> Eq ListPhoneNumbersOptedOutResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ListPhoneNumbersOptedOutResponse
-> ListPhoneNumbersOptedOutResponse -> Bool
$c/= :: ListPhoneNumbersOptedOutResponse
-> ListPhoneNumbersOptedOutResponse -> Bool
== :: ListPhoneNumbersOptedOutResponse
-> ListPhoneNumbersOptedOutResponse -> Bool
$c== :: ListPhoneNumbersOptedOutResponse
-> ListPhoneNumbersOptedOutResponse -> Bool
Prelude.Eq, ReadPrec [ListPhoneNumbersOptedOutResponse]
ReadPrec ListPhoneNumbersOptedOutResponse
Int -> ReadS ListPhoneNumbersOptedOutResponse
ReadS [ListPhoneNumbersOptedOutResponse]
(Int -> ReadS ListPhoneNumbersOptedOutResponse)
-> ReadS [ListPhoneNumbersOptedOutResponse]
-> ReadPrec ListPhoneNumbersOptedOutResponse
-> ReadPrec [ListPhoneNumbersOptedOutResponse]
-> Read ListPhoneNumbersOptedOutResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ListPhoneNumbersOptedOutResponse]
$creadListPrec :: ReadPrec [ListPhoneNumbersOptedOutResponse]
readPrec :: ReadPrec ListPhoneNumbersOptedOutResponse
$creadPrec :: ReadPrec ListPhoneNumbersOptedOutResponse
readList :: ReadS [ListPhoneNumbersOptedOutResponse]
$creadList :: ReadS [ListPhoneNumbersOptedOutResponse]
readsPrec :: Int -> ReadS ListPhoneNumbersOptedOutResponse
$creadsPrec :: Int -> ReadS ListPhoneNumbersOptedOutResponse
Prelude.Read, Int -> ListPhoneNumbersOptedOutResponse -> ShowS
[ListPhoneNumbersOptedOutResponse] -> ShowS
ListPhoneNumbersOptedOutResponse -> String
(Int -> ListPhoneNumbersOptedOutResponse -> ShowS)
-> (ListPhoneNumbersOptedOutResponse -> String)
-> ([ListPhoneNumbersOptedOutResponse] -> ShowS)
-> Show ListPhoneNumbersOptedOutResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ListPhoneNumbersOptedOutResponse] -> ShowS
$cshowList :: [ListPhoneNumbersOptedOutResponse] -> ShowS
show :: ListPhoneNumbersOptedOutResponse -> String
$cshow :: ListPhoneNumbersOptedOutResponse -> String
showsPrec :: Int -> ListPhoneNumbersOptedOutResponse -> ShowS
$cshowsPrec :: Int -> ListPhoneNumbersOptedOutResponse -> ShowS
Prelude.Show, (forall x.
ListPhoneNumbersOptedOutResponse
-> Rep ListPhoneNumbersOptedOutResponse x)
-> (forall x.
Rep ListPhoneNumbersOptedOutResponse x
-> ListPhoneNumbersOptedOutResponse)
-> Generic ListPhoneNumbersOptedOutResponse
forall x.
Rep ListPhoneNumbersOptedOutResponse x
-> ListPhoneNumbersOptedOutResponse
forall x.
ListPhoneNumbersOptedOutResponse
-> Rep ListPhoneNumbersOptedOutResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep ListPhoneNumbersOptedOutResponse x
-> ListPhoneNumbersOptedOutResponse
$cfrom :: forall x.
ListPhoneNumbersOptedOutResponse
-> Rep ListPhoneNumbersOptedOutResponse x
Prelude.Generic)
newListPhoneNumbersOptedOutResponse ::
Prelude.Int ->
ListPhoneNumbersOptedOutResponse
newListPhoneNumbersOptedOutResponse :: Int -> ListPhoneNumbersOptedOutResponse
newListPhoneNumbersOptedOutResponse Int
pHttpStatus_ =
ListPhoneNumbersOptedOutResponse' :: Maybe [Text]
-> Maybe Text -> Int -> ListPhoneNumbersOptedOutResponse
ListPhoneNumbersOptedOutResponse'
{ $sel:phoneNumbers:ListPhoneNumbersOptedOutResponse' :: Maybe [Text]
phoneNumbers =
Maybe [Text]
forall a. Maybe a
Prelude.Nothing,
$sel:nextToken:ListPhoneNumbersOptedOutResponse' :: Maybe Text
nextToken = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:httpStatus:ListPhoneNumbersOptedOutResponse' :: Int
httpStatus = Int
pHttpStatus_
}
listPhoneNumbersOptedOutResponse_phoneNumbers :: Lens.Lens' ListPhoneNumbersOptedOutResponse (Prelude.Maybe [Prelude.Text])
listPhoneNumbersOptedOutResponse_phoneNumbers :: (Maybe [Text] -> f (Maybe [Text]))
-> ListPhoneNumbersOptedOutResponse
-> f ListPhoneNumbersOptedOutResponse
listPhoneNumbersOptedOutResponse_phoneNumbers = (ListPhoneNumbersOptedOutResponse -> Maybe [Text])
-> (ListPhoneNumbersOptedOutResponse
-> Maybe [Text] -> ListPhoneNumbersOptedOutResponse)
-> Lens' ListPhoneNumbersOptedOutResponse (Maybe [Text])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListPhoneNumbersOptedOutResponse' {Maybe [Text]
phoneNumbers :: Maybe [Text]
$sel:phoneNumbers:ListPhoneNumbersOptedOutResponse' :: ListPhoneNumbersOptedOutResponse -> Maybe [Text]
phoneNumbers} -> Maybe [Text]
phoneNumbers) (\s :: ListPhoneNumbersOptedOutResponse
s@ListPhoneNumbersOptedOutResponse' {} Maybe [Text]
a -> ListPhoneNumbersOptedOutResponse
s {$sel:phoneNumbers:ListPhoneNumbersOptedOutResponse' :: Maybe [Text]
phoneNumbers = Maybe [Text]
a} :: ListPhoneNumbersOptedOutResponse) ((Maybe [Text] -> f (Maybe [Text]))
-> ListPhoneNumbersOptedOutResponse
-> f ListPhoneNumbersOptedOutResponse)
-> ((Maybe [Text] -> f (Maybe [Text]))
-> Maybe [Text] -> f (Maybe [Text]))
-> (Maybe [Text] -> f (Maybe [Text]))
-> ListPhoneNumbersOptedOutResponse
-> f ListPhoneNumbersOptedOutResponse
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
listPhoneNumbersOptedOutResponse_nextToken :: Lens.Lens' ListPhoneNumbersOptedOutResponse (Prelude.Maybe Prelude.Text)
listPhoneNumbersOptedOutResponse_nextToken :: (Maybe Text -> f (Maybe Text))
-> ListPhoneNumbersOptedOutResponse
-> f ListPhoneNumbersOptedOutResponse
listPhoneNumbersOptedOutResponse_nextToken = (ListPhoneNumbersOptedOutResponse -> Maybe Text)
-> (ListPhoneNumbersOptedOutResponse
-> Maybe Text -> ListPhoneNumbersOptedOutResponse)
-> Lens' ListPhoneNumbersOptedOutResponse (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListPhoneNumbersOptedOutResponse' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:ListPhoneNumbersOptedOutResponse' :: ListPhoneNumbersOptedOutResponse -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: ListPhoneNumbersOptedOutResponse
s@ListPhoneNumbersOptedOutResponse' {} Maybe Text
a -> ListPhoneNumbersOptedOutResponse
s {$sel:nextToken:ListPhoneNumbersOptedOutResponse' :: Maybe Text
nextToken = Maybe Text
a} :: ListPhoneNumbersOptedOutResponse)
listPhoneNumbersOptedOutResponse_httpStatus :: Lens.Lens' ListPhoneNumbersOptedOutResponse Prelude.Int
listPhoneNumbersOptedOutResponse_httpStatus :: (Int -> f Int)
-> ListPhoneNumbersOptedOutResponse
-> f ListPhoneNumbersOptedOutResponse
listPhoneNumbersOptedOutResponse_httpStatus = (ListPhoneNumbersOptedOutResponse -> Int)
-> (ListPhoneNumbersOptedOutResponse
-> Int -> ListPhoneNumbersOptedOutResponse)
-> Lens
ListPhoneNumbersOptedOutResponse
ListPhoneNumbersOptedOutResponse
Int
Int
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListPhoneNumbersOptedOutResponse' {Int
httpStatus :: Int
$sel:httpStatus:ListPhoneNumbersOptedOutResponse' :: ListPhoneNumbersOptedOutResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: ListPhoneNumbersOptedOutResponse
s@ListPhoneNumbersOptedOutResponse' {} Int
a -> ListPhoneNumbersOptedOutResponse
s {$sel:httpStatus:ListPhoneNumbersOptedOutResponse' :: Int
httpStatus = Int
a} :: ListPhoneNumbersOptedOutResponse)
instance
Prelude.NFData
ListPhoneNumbersOptedOutResponse