{-# 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.PinpointEmail.ListDeliverabilityTestReports
(
ListDeliverabilityTestReports (..),
newListDeliverabilityTestReports,
listDeliverabilityTestReports_nextToken,
listDeliverabilityTestReports_pageSize,
ListDeliverabilityTestReportsResponse (..),
newListDeliverabilityTestReportsResponse,
listDeliverabilityTestReportsResponse_nextToken,
listDeliverabilityTestReportsResponse_httpStatus,
listDeliverabilityTestReportsResponse_deliverabilityTestReports,
)
where
import qualified Amazonka.Core as Core
import qualified Amazonka.Lens as Lens
import Amazonka.PinpointEmail.Types
import qualified Amazonka.Prelude as Prelude
import qualified Amazonka.Request as Request
import qualified Amazonka.Response as Response
data ListDeliverabilityTestReports = ListDeliverabilityTestReports'
{
ListDeliverabilityTestReports -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
ListDeliverabilityTestReports -> Maybe Int
pageSize :: Prelude.Maybe Prelude.Int
}
deriving (ListDeliverabilityTestReports
-> ListDeliverabilityTestReports -> Bool
(ListDeliverabilityTestReports
-> ListDeliverabilityTestReports -> Bool)
-> (ListDeliverabilityTestReports
-> ListDeliverabilityTestReports -> Bool)
-> Eq ListDeliverabilityTestReports
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ListDeliverabilityTestReports
-> ListDeliverabilityTestReports -> Bool
$c/= :: ListDeliverabilityTestReports
-> ListDeliverabilityTestReports -> Bool
== :: ListDeliverabilityTestReports
-> ListDeliverabilityTestReports -> Bool
$c== :: ListDeliverabilityTestReports
-> ListDeliverabilityTestReports -> Bool
Prelude.Eq, ReadPrec [ListDeliverabilityTestReports]
ReadPrec ListDeliverabilityTestReports
Int -> ReadS ListDeliverabilityTestReports
ReadS [ListDeliverabilityTestReports]
(Int -> ReadS ListDeliverabilityTestReports)
-> ReadS [ListDeliverabilityTestReports]
-> ReadPrec ListDeliverabilityTestReports
-> ReadPrec [ListDeliverabilityTestReports]
-> Read ListDeliverabilityTestReports
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ListDeliverabilityTestReports]
$creadListPrec :: ReadPrec [ListDeliverabilityTestReports]
readPrec :: ReadPrec ListDeliverabilityTestReports
$creadPrec :: ReadPrec ListDeliverabilityTestReports
readList :: ReadS [ListDeliverabilityTestReports]
$creadList :: ReadS [ListDeliverabilityTestReports]
readsPrec :: Int -> ReadS ListDeliverabilityTestReports
$creadsPrec :: Int -> ReadS ListDeliverabilityTestReports
Prelude.Read, Int -> ListDeliverabilityTestReports -> ShowS
[ListDeliverabilityTestReports] -> ShowS
ListDeliverabilityTestReports -> String
(Int -> ListDeliverabilityTestReports -> ShowS)
-> (ListDeliverabilityTestReports -> String)
-> ([ListDeliverabilityTestReports] -> ShowS)
-> Show ListDeliverabilityTestReports
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ListDeliverabilityTestReports] -> ShowS
$cshowList :: [ListDeliverabilityTestReports] -> ShowS
show :: ListDeliverabilityTestReports -> String
$cshow :: ListDeliverabilityTestReports -> String
showsPrec :: Int -> ListDeliverabilityTestReports -> ShowS
$cshowsPrec :: Int -> ListDeliverabilityTestReports -> ShowS
Prelude.Show, (forall x.
ListDeliverabilityTestReports
-> Rep ListDeliverabilityTestReports x)
-> (forall x.
Rep ListDeliverabilityTestReports x
-> ListDeliverabilityTestReports)
-> Generic ListDeliverabilityTestReports
forall x.
Rep ListDeliverabilityTestReports x
-> ListDeliverabilityTestReports
forall x.
ListDeliverabilityTestReports
-> Rep ListDeliverabilityTestReports x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep ListDeliverabilityTestReports x
-> ListDeliverabilityTestReports
$cfrom :: forall x.
ListDeliverabilityTestReports
-> Rep ListDeliverabilityTestReports x
Prelude.Generic)
newListDeliverabilityTestReports ::
ListDeliverabilityTestReports
newListDeliverabilityTestReports :: ListDeliverabilityTestReports
newListDeliverabilityTestReports =
ListDeliverabilityTestReports' :: Maybe Text -> Maybe Int -> ListDeliverabilityTestReports
ListDeliverabilityTestReports'
{ $sel:nextToken:ListDeliverabilityTestReports' :: Maybe Text
nextToken =
Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:pageSize:ListDeliverabilityTestReports' :: Maybe Int
pageSize = Maybe Int
forall a. Maybe a
Prelude.Nothing
}
listDeliverabilityTestReports_nextToken :: Lens.Lens' ListDeliverabilityTestReports (Prelude.Maybe Prelude.Text)
listDeliverabilityTestReports_nextToken :: (Maybe Text -> f (Maybe Text))
-> ListDeliverabilityTestReports -> f ListDeliverabilityTestReports
listDeliverabilityTestReports_nextToken = (ListDeliverabilityTestReports -> Maybe Text)
-> (ListDeliverabilityTestReports
-> Maybe Text -> ListDeliverabilityTestReports)
-> Lens
ListDeliverabilityTestReports
ListDeliverabilityTestReports
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListDeliverabilityTestReports' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:ListDeliverabilityTestReports' :: ListDeliverabilityTestReports -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: ListDeliverabilityTestReports
s@ListDeliverabilityTestReports' {} Maybe Text
a -> ListDeliverabilityTestReports
s {$sel:nextToken:ListDeliverabilityTestReports' :: Maybe Text
nextToken = Maybe Text
a} :: ListDeliverabilityTestReports)
listDeliverabilityTestReports_pageSize :: Lens.Lens' ListDeliverabilityTestReports (Prelude.Maybe Prelude.Int)
listDeliverabilityTestReports_pageSize :: (Maybe Int -> f (Maybe Int))
-> ListDeliverabilityTestReports -> f ListDeliverabilityTestReports
listDeliverabilityTestReports_pageSize = (ListDeliverabilityTestReports -> Maybe Int)
-> (ListDeliverabilityTestReports
-> Maybe Int -> ListDeliverabilityTestReports)
-> Lens
ListDeliverabilityTestReports
ListDeliverabilityTestReports
(Maybe Int)
(Maybe Int)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListDeliverabilityTestReports' {Maybe Int
pageSize :: Maybe Int
$sel:pageSize:ListDeliverabilityTestReports' :: ListDeliverabilityTestReports -> Maybe Int
pageSize} -> Maybe Int
pageSize) (\s :: ListDeliverabilityTestReports
s@ListDeliverabilityTestReports' {} Maybe Int
a -> ListDeliverabilityTestReports
s {$sel:pageSize:ListDeliverabilityTestReports' :: Maybe Int
pageSize = Maybe Int
a} :: ListDeliverabilityTestReports)
instance Core.AWSPager ListDeliverabilityTestReports where
page :: ListDeliverabilityTestReports
-> AWSResponse ListDeliverabilityTestReports
-> Maybe ListDeliverabilityTestReports
page ListDeliverabilityTestReports
rq AWSResponse ListDeliverabilityTestReports
rs
| Maybe Text -> Bool
forall a. AWSTruncated a => a -> Bool
Core.stop
( AWSResponse ListDeliverabilityTestReports
ListDeliverabilityTestReportsResponse
rs
ListDeliverabilityTestReportsResponse
-> Getting (First Text) ListDeliverabilityTestReportsResponse Text
-> Maybe Text
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? (Maybe Text -> Const (First Text) (Maybe Text))
-> ListDeliverabilityTestReportsResponse
-> Const (First Text) ListDeliverabilityTestReportsResponse
Lens' ListDeliverabilityTestReportsResponse (Maybe Text)
listDeliverabilityTestReportsResponse_nextToken
((Maybe Text -> Const (First Text) (Maybe Text))
-> ListDeliverabilityTestReportsResponse
-> Const (First Text) ListDeliverabilityTestReportsResponse)
-> ((Text -> Const (First Text) Text)
-> Maybe Text -> Const (First Text) (Maybe Text))
-> Getting (First Text) ListDeliverabilityTestReportsResponse 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 ListDeliverabilityTestReports
forall a. Maybe a
Prelude.Nothing
| [DeliverabilityTestReport] -> Bool
forall a. AWSTruncated a => a -> Bool
Core.stop
( AWSResponse ListDeliverabilityTestReports
ListDeliverabilityTestReportsResponse
rs
ListDeliverabilityTestReportsResponse
-> Getting
[DeliverabilityTestReport]
ListDeliverabilityTestReportsResponse
[DeliverabilityTestReport]
-> [DeliverabilityTestReport]
forall s a. s -> Getting a s a -> a
Lens.^. Getting
[DeliverabilityTestReport]
ListDeliverabilityTestReportsResponse
[DeliverabilityTestReport]
Lens'
ListDeliverabilityTestReportsResponse [DeliverabilityTestReport]
listDeliverabilityTestReportsResponse_deliverabilityTestReports
) =
Maybe ListDeliverabilityTestReports
forall a. Maybe a
Prelude.Nothing
| Bool
Prelude.otherwise =
ListDeliverabilityTestReports
-> Maybe ListDeliverabilityTestReports
forall a. a -> Maybe a
Prelude.Just (ListDeliverabilityTestReports
-> Maybe ListDeliverabilityTestReports)
-> ListDeliverabilityTestReports
-> Maybe ListDeliverabilityTestReports
forall a b. (a -> b) -> a -> b
Prelude.$
ListDeliverabilityTestReports
rq
ListDeliverabilityTestReports
-> (ListDeliverabilityTestReports -> ListDeliverabilityTestReports)
-> ListDeliverabilityTestReports
forall a b. a -> (a -> b) -> b
Prelude.& (Maybe Text -> Identity (Maybe Text))
-> ListDeliverabilityTestReports
-> Identity ListDeliverabilityTestReports
Lens
ListDeliverabilityTestReports
ListDeliverabilityTestReports
(Maybe Text)
(Maybe Text)
listDeliverabilityTestReports_nextToken
((Maybe Text -> Identity (Maybe Text))
-> ListDeliverabilityTestReports
-> Identity ListDeliverabilityTestReports)
-> Maybe Text
-> ListDeliverabilityTestReports
-> ListDeliverabilityTestReports
forall s t a b. ASetter s t a b -> b -> s -> t
Lens..~ AWSResponse ListDeliverabilityTestReports
ListDeliverabilityTestReportsResponse
rs
ListDeliverabilityTestReportsResponse
-> Getting (First Text) ListDeliverabilityTestReportsResponse Text
-> Maybe Text
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? (Maybe Text -> Const (First Text) (Maybe Text))
-> ListDeliverabilityTestReportsResponse
-> Const (First Text) ListDeliverabilityTestReportsResponse
Lens' ListDeliverabilityTestReportsResponse (Maybe Text)
listDeliverabilityTestReportsResponse_nextToken
((Maybe Text -> Const (First Text) (Maybe Text))
-> ListDeliverabilityTestReportsResponse
-> Const (First Text) ListDeliverabilityTestReportsResponse)
-> ((Text -> Const (First Text) Text)
-> Maybe Text -> Const (First Text) (Maybe Text))
-> Getting (First Text) ListDeliverabilityTestReportsResponse 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
ListDeliverabilityTestReports
where
type
AWSResponse ListDeliverabilityTestReports =
ListDeliverabilityTestReportsResponse
request :: ListDeliverabilityTestReports
-> Request ListDeliverabilityTestReports
request = Service
-> ListDeliverabilityTestReports
-> Request ListDeliverabilityTestReports
forall a. ToRequest a => Service -> a -> Request a
Request.get Service
defaultService
response :: Logger
-> Service
-> Proxy ListDeliverabilityTestReports
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse ListDeliverabilityTestReports)))
response =
(Int
-> ResponseHeaders
-> Object
-> Either String (AWSResponse ListDeliverabilityTestReports))
-> Logger
-> Service
-> Proxy ListDeliverabilityTestReports
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse ListDeliverabilityTestReports)))
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
-> [DeliverabilityTestReport]
-> ListDeliverabilityTestReportsResponse
ListDeliverabilityTestReportsResponse'
(Maybe Text
-> Int
-> [DeliverabilityTestReport]
-> ListDeliverabilityTestReportsResponse)
-> Either String (Maybe Text)
-> Either
String
(Int
-> [DeliverabilityTestReport]
-> ListDeliverabilityTestReportsResponse)
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
-> [DeliverabilityTestReport]
-> ListDeliverabilityTestReportsResponse)
-> Either String Int
-> Either
String
([DeliverabilityTestReport]
-> ListDeliverabilityTestReportsResponse)
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
([DeliverabilityTestReport]
-> ListDeliverabilityTestReportsResponse)
-> Either String [DeliverabilityTestReport]
-> Either String ListDeliverabilityTestReportsResponse
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ( Object
x Object -> Text -> Either String (Maybe [DeliverabilityTestReport])
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"DeliverabilityTestReports"
Either String (Maybe [DeliverabilityTestReport])
-> [DeliverabilityTestReport]
-> Either String [DeliverabilityTestReport]
forall (f :: * -> *) a. Functor f => f (Maybe a) -> a -> f a
Core..!@ [DeliverabilityTestReport]
forall a. Monoid a => a
Prelude.mempty
)
)
instance
Prelude.Hashable
ListDeliverabilityTestReports
instance Prelude.NFData ListDeliverabilityTestReports
instance Core.ToHeaders ListDeliverabilityTestReports where
toHeaders :: ListDeliverabilityTestReports -> ResponseHeaders
toHeaders =
ResponseHeaders -> ListDeliverabilityTestReports -> 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.ToPath ListDeliverabilityTestReports where
toPath :: ListDeliverabilityTestReports -> ByteString
toPath =
ByteString -> ListDeliverabilityTestReports -> ByteString
forall a b. a -> b -> a
Prelude.const
ByteString
"/v1/email/deliverability-dashboard/test-reports"
instance Core.ToQuery ListDeliverabilityTestReports where
toQuery :: ListDeliverabilityTestReports -> QueryString
toQuery ListDeliverabilityTestReports' {Maybe Int
Maybe Text
pageSize :: Maybe Int
nextToken :: Maybe Text
$sel:pageSize:ListDeliverabilityTestReports' :: ListDeliverabilityTestReports -> Maybe Int
$sel:nextToken:ListDeliverabilityTestReports' :: ListDeliverabilityTestReports -> Maybe Text
..} =
[QueryString] -> QueryString
forall a. Monoid a => [a] -> a
Prelude.mconcat
[ ByteString
"NextToken" ByteString -> Maybe Text -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Maybe Text
nextToken,
ByteString
"PageSize" ByteString -> Maybe Int -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Maybe Int
pageSize
]
data ListDeliverabilityTestReportsResponse = ListDeliverabilityTestReportsResponse'
{
ListDeliverabilityTestReportsResponse -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
ListDeliverabilityTestReportsResponse -> Int
httpStatus :: Prelude.Int,
ListDeliverabilityTestReportsResponse -> [DeliverabilityTestReport]
deliverabilityTestReports :: [DeliverabilityTestReport]
}
deriving (ListDeliverabilityTestReportsResponse
-> ListDeliverabilityTestReportsResponse -> Bool
(ListDeliverabilityTestReportsResponse
-> ListDeliverabilityTestReportsResponse -> Bool)
-> (ListDeliverabilityTestReportsResponse
-> ListDeliverabilityTestReportsResponse -> Bool)
-> Eq ListDeliverabilityTestReportsResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ListDeliverabilityTestReportsResponse
-> ListDeliverabilityTestReportsResponse -> Bool
$c/= :: ListDeliverabilityTestReportsResponse
-> ListDeliverabilityTestReportsResponse -> Bool
== :: ListDeliverabilityTestReportsResponse
-> ListDeliverabilityTestReportsResponse -> Bool
$c== :: ListDeliverabilityTestReportsResponse
-> ListDeliverabilityTestReportsResponse -> Bool
Prelude.Eq, ReadPrec [ListDeliverabilityTestReportsResponse]
ReadPrec ListDeliverabilityTestReportsResponse
Int -> ReadS ListDeliverabilityTestReportsResponse
ReadS [ListDeliverabilityTestReportsResponse]
(Int -> ReadS ListDeliverabilityTestReportsResponse)
-> ReadS [ListDeliverabilityTestReportsResponse]
-> ReadPrec ListDeliverabilityTestReportsResponse
-> ReadPrec [ListDeliverabilityTestReportsResponse]
-> Read ListDeliverabilityTestReportsResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ListDeliverabilityTestReportsResponse]
$creadListPrec :: ReadPrec [ListDeliverabilityTestReportsResponse]
readPrec :: ReadPrec ListDeliverabilityTestReportsResponse
$creadPrec :: ReadPrec ListDeliverabilityTestReportsResponse
readList :: ReadS [ListDeliverabilityTestReportsResponse]
$creadList :: ReadS [ListDeliverabilityTestReportsResponse]
readsPrec :: Int -> ReadS ListDeliverabilityTestReportsResponse
$creadsPrec :: Int -> ReadS ListDeliverabilityTestReportsResponse
Prelude.Read, Int -> ListDeliverabilityTestReportsResponse -> ShowS
[ListDeliverabilityTestReportsResponse] -> ShowS
ListDeliverabilityTestReportsResponse -> String
(Int -> ListDeliverabilityTestReportsResponse -> ShowS)
-> (ListDeliverabilityTestReportsResponse -> String)
-> ([ListDeliverabilityTestReportsResponse] -> ShowS)
-> Show ListDeliverabilityTestReportsResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ListDeliverabilityTestReportsResponse] -> ShowS
$cshowList :: [ListDeliverabilityTestReportsResponse] -> ShowS
show :: ListDeliverabilityTestReportsResponse -> String
$cshow :: ListDeliverabilityTestReportsResponse -> String
showsPrec :: Int -> ListDeliverabilityTestReportsResponse -> ShowS
$cshowsPrec :: Int -> ListDeliverabilityTestReportsResponse -> ShowS
Prelude.Show, (forall x.
ListDeliverabilityTestReportsResponse
-> Rep ListDeliverabilityTestReportsResponse x)
-> (forall x.
Rep ListDeliverabilityTestReportsResponse x
-> ListDeliverabilityTestReportsResponse)
-> Generic ListDeliverabilityTestReportsResponse
forall x.
Rep ListDeliverabilityTestReportsResponse x
-> ListDeliverabilityTestReportsResponse
forall x.
ListDeliverabilityTestReportsResponse
-> Rep ListDeliverabilityTestReportsResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep ListDeliverabilityTestReportsResponse x
-> ListDeliverabilityTestReportsResponse
$cfrom :: forall x.
ListDeliverabilityTestReportsResponse
-> Rep ListDeliverabilityTestReportsResponse x
Prelude.Generic)
newListDeliverabilityTestReportsResponse ::
Prelude.Int ->
ListDeliverabilityTestReportsResponse
newListDeliverabilityTestReportsResponse :: Int -> ListDeliverabilityTestReportsResponse
newListDeliverabilityTestReportsResponse Int
pHttpStatus_ =
ListDeliverabilityTestReportsResponse' :: Maybe Text
-> Int
-> [DeliverabilityTestReport]
-> ListDeliverabilityTestReportsResponse
ListDeliverabilityTestReportsResponse'
{ $sel:nextToken:ListDeliverabilityTestReportsResponse' :: Maybe Text
nextToken =
Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:httpStatus:ListDeliverabilityTestReportsResponse' :: Int
httpStatus = Int
pHttpStatus_,
$sel:deliverabilityTestReports:ListDeliverabilityTestReportsResponse' :: [DeliverabilityTestReport]
deliverabilityTestReports =
[DeliverabilityTestReport]
forall a. Monoid a => a
Prelude.mempty
}
listDeliverabilityTestReportsResponse_nextToken :: Lens.Lens' ListDeliverabilityTestReportsResponse (Prelude.Maybe Prelude.Text)
listDeliverabilityTestReportsResponse_nextToken :: (Maybe Text -> f (Maybe Text))
-> ListDeliverabilityTestReportsResponse
-> f ListDeliverabilityTestReportsResponse
listDeliverabilityTestReportsResponse_nextToken = (ListDeliverabilityTestReportsResponse -> Maybe Text)
-> (ListDeliverabilityTestReportsResponse
-> Maybe Text -> ListDeliverabilityTestReportsResponse)
-> Lens' ListDeliverabilityTestReportsResponse (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListDeliverabilityTestReportsResponse' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:ListDeliverabilityTestReportsResponse' :: ListDeliverabilityTestReportsResponse -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: ListDeliverabilityTestReportsResponse
s@ListDeliverabilityTestReportsResponse' {} Maybe Text
a -> ListDeliverabilityTestReportsResponse
s {$sel:nextToken:ListDeliverabilityTestReportsResponse' :: Maybe Text
nextToken = Maybe Text
a} :: ListDeliverabilityTestReportsResponse)
listDeliverabilityTestReportsResponse_httpStatus :: Lens.Lens' ListDeliverabilityTestReportsResponse Prelude.Int
listDeliverabilityTestReportsResponse_httpStatus :: (Int -> f Int)
-> ListDeliverabilityTestReportsResponse
-> f ListDeliverabilityTestReportsResponse
listDeliverabilityTestReportsResponse_httpStatus = (ListDeliverabilityTestReportsResponse -> Int)
-> (ListDeliverabilityTestReportsResponse
-> Int -> ListDeliverabilityTestReportsResponse)
-> Lens
ListDeliverabilityTestReportsResponse
ListDeliverabilityTestReportsResponse
Int
Int
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListDeliverabilityTestReportsResponse' {Int
httpStatus :: Int
$sel:httpStatus:ListDeliverabilityTestReportsResponse' :: ListDeliverabilityTestReportsResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: ListDeliverabilityTestReportsResponse
s@ListDeliverabilityTestReportsResponse' {} Int
a -> ListDeliverabilityTestReportsResponse
s {$sel:httpStatus:ListDeliverabilityTestReportsResponse' :: Int
httpStatus = Int
a} :: ListDeliverabilityTestReportsResponse)
listDeliverabilityTestReportsResponse_deliverabilityTestReports :: Lens.Lens' ListDeliverabilityTestReportsResponse [DeliverabilityTestReport]
listDeliverabilityTestReportsResponse_deliverabilityTestReports :: ([DeliverabilityTestReport] -> f [DeliverabilityTestReport])
-> ListDeliverabilityTestReportsResponse
-> f ListDeliverabilityTestReportsResponse
listDeliverabilityTestReportsResponse_deliverabilityTestReports = (ListDeliverabilityTestReportsResponse
-> [DeliverabilityTestReport])
-> (ListDeliverabilityTestReportsResponse
-> [DeliverabilityTestReport]
-> ListDeliverabilityTestReportsResponse)
-> Lens'
ListDeliverabilityTestReportsResponse [DeliverabilityTestReport]
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListDeliverabilityTestReportsResponse' {[DeliverabilityTestReport]
deliverabilityTestReports :: [DeliverabilityTestReport]
$sel:deliverabilityTestReports:ListDeliverabilityTestReportsResponse' :: ListDeliverabilityTestReportsResponse -> [DeliverabilityTestReport]
deliverabilityTestReports} -> [DeliverabilityTestReport]
deliverabilityTestReports) (\s :: ListDeliverabilityTestReportsResponse
s@ListDeliverabilityTestReportsResponse' {} [DeliverabilityTestReport]
a -> ListDeliverabilityTestReportsResponse
s {$sel:deliverabilityTestReports:ListDeliverabilityTestReportsResponse' :: [DeliverabilityTestReport]
deliverabilityTestReports = [DeliverabilityTestReport]
a} :: ListDeliverabilityTestReportsResponse) (([DeliverabilityTestReport] -> f [DeliverabilityTestReport])
-> ListDeliverabilityTestReportsResponse
-> f ListDeliverabilityTestReportsResponse)
-> (([DeliverabilityTestReport] -> f [DeliverabilityTestReport])
-> [DeliverabilityTestReport] -> f [DeliverabilityTestReport])
-> ([DeliverabilityTestReport] -> f [DeliverabilityTestReport])
-> ListDeliverabilityTestReportsResponse
-> f ListDeliverabilityTestReportsResponse
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. ([DeliverabilityTestReport] -> f [DeliverabilityTestReport])
-> [DeliverabilityTestReport] -> f [DeliverabilityTestReport]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
instance
Prelude.NFData
ListDeliverabilityTestReportsResponse