{-# 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 #-}

-- Derived from AWS service descriptions, licensed under Apache 2.0.

-- |
-- Module      : Amazonka.SESV2.ListDeliverabilityTestReports
-- Copyright   : (c) 2013-2021 Brendan Hay
-- License     : Mozilla Public License, v. 2.0.
-- Maintainer  : Brendan Hay <brendan.g.hay+amazonka@gmail.com>
-- Stability   : auto-generated
-- Portability : non-portable (GHC extensions)
--
-- Show a list of the predictive inbox placement tests that you\'ve
-- performed, regardless of their statuses. For predictive inbox placement
-- tests that are complete, you can use the @GetDeliverabilityTestReport@
-- operation to view the results.
module Amazonka.SESV2.ListDeliverabilityTestReports
  ( -- * Creating a Request
    ListDeliverabilityTestReports (..),
    newListDeliverabilityTestReports,

    -- * Request Lenses
    listDeliverabilityTestReports_nextToken,
    listDeliverabilityTestReports_pageSize,

    -- * Destructuring the Response
    ListDeliverabilityTestReportsResponse (..),
    newListDeliverabilityTestReportsResponse,

    -- * Response Lenses
    listDeliverabilityTestReportsResponse_nextToken,
    listDeliverabilityTestReportsResponse_httpStatus,
    listDeliverabilityTestReportsResponse_deliverabilityTestReports,
  )
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.SESV2.Types

-- | A request to list all of the predictive inbox placement tests that
-- you\'ve performed.
--
-- /See:/ 'newListDeliverabilityTestReports' smart constructor.
data ListDeliverabilityTestReports = ListDeliverabilityTestReports'
  { -- | A token returned from a previous call to @ListDeliverabilityTestReports@
    -- to indicate the position in the list of predictive inbox placement
    -- tests.
    ListDeliverabilityTestReports -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
    -- | The number of results to show in a single call to
    -- @ListDeliverabilityTestReports@. If the number of results is larger than
    -- the number you specified in this parameter, then the response includes a
    -- @NextToken@ element, which you can use to obtain additional results.
    --
    -- The value you specify has to be at least 0, and can be no more than
    -- 1000.
    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)

-- |
-- Create a value of 'ListDeliverabilityTestReports' with all optional fields omitted.
--
-- Use <https://hackage.haskell.org/package/generic-lens generic-lens> or <https://hackage.haskell.org/package/optics optics> to modify other optional fields.
--
-- The following record fields are available, with the corresponding lenses provided
-- for backwards compatibility:
--
-- 'nextToken', 'listDeliverabilityTestReports_nextToken' - A token returned from a previous call to @ListDeliverabilityTestReports@
-- to indicate the position in the list of predictive inbox placement
-- tests.
--
-- 'pageSize', 'listDeliverabilityTestReports_pageSize' - The number of results to show in a single call to
-- @ListDeliverabilityTestReports@. If the number of results is larger than
-- the number you specified in this parameter, then the response includes a
-- @NextToken@ element, which you can use to obtain additional results.
--
-- The value you specify has to be at least 0, and can be no more than
-- 1000.
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
    }

-- | A token returned from a previous call to @ListDeliverabilityTestReports@
-- to indicate the position in the list of predictive inbox placement
-- tests.
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)

-- | The number of results to show in a single call to
-- @ListDeliverabilityTestReports@. If the number of results is larger than
-- the number you specified in this parameter, then the response includes a
-- @NextToken@ element, which you can use to obtain additional results.
--
-- The value you specify has to be at least 0, and can be no more than
-- 1000.
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.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
"/v2/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
      ]

-- | A list of the predictive inbox placement test reports that are available
-- for your account, regardless of whether or not those tests are complete.
--
-- /See:/ 'newListDeliverabilityTestReportsResponse' smart constructor.
data ListDeliverabilityTestReportsResponse = ListDeliverabilityTestReportsResponse'
  { -- | A token that indicates that there are additional predictive inbox
    -- placement tests to list. To view additional predictive inbox placement
    -- tests, issue another request to @ListDeliverabilityTestReports@, and
    -- pass this token in the @NextToken@ parameter.
    ListDeliverabilityTestReportsResponse -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
    -- | The response's http status code.
    ListDeliverabilityTestReportsResponse -> Int
httpStatus :: Prelude.Int,
    -- | An object that contains a lists of predictive inbox placement tests that
    -- you\'ve performed.
    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)

-- |
-- Create a value of 'ListDeliverabilityTestReportsResponse' with all optional fields omitted.
--
-- Use <https://hackage.haskell.org/package/generic-lens generic-lens> or <https://hackage.haskell.org/package/optics optics> to modify other optional fields.
--
-- The following record fields are available, with the corresponding lenses provided
-- for backwards compatibility:
--
-- 'nextToken', 'listDeliverabilityTestReportsResponse_nextToken' - A token that indicates that there are additional predictive inbox
-- placement tests to list. To view additional predictive inbox placement
-- tests, issue another request to @ListDeliverabilityTestReports@, and
-- pass this token in the @NextToken@ parameter.
--
-- 'httpStatus', 'listDeliverabilityTestReportsResponse_httpStatus' - The response's http status code.
--
-- 'deliverabilityTestReports', 'listDeliverabilityTestReportsResponse_deliverabilityTestReports' - An object that contains a lists of predictive inbox placement tests that
-- you\'ve performed.
newListDeliverabilityTestReportsResponse ::
  -- | 'httpStatus'
  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
    }

-- | A token that indicates that there are additional predictive inbox
-- placement tests to list. To view additional predictive inbox placement
-- tests, issue another request to @ListDeliverabilityTestReports@, and
-- pass this token in the @NextToken@ parameter.
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
     ListDeliverabilityTestReportsResponse
     (Maybe Text)
     (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)

-- | The response's http status code.
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)

-- | An object that contains a lists of predictive inbox placement tests that
-- you\'ve performed.
listDeliverabilityTestReportsResponse_deliverabilityTestReports :: Lens.Lens' ListDeliverabilityTestReportsResponse [DeliverabilityTestReport]
listDeliverabilityTestReportsResponse_deliverabilityTestReports :: ([DeliverabilityTestReport] -> f [DeliverabilityTestReport])
-> ListDeliverabilityTestReportsResponse
-> f ListDeliverabilityTestReportsResponse
listDeliverabilityTestReportsResponse_deliverabilityTestReports = (ListDeliverabilityTestReportsResponse
 -> [DeliverabilityTestReport])
-> (ListDeliverabilityTestReportsResponse
    -> [DeliverabilityTestReport]
    -> ListDeliverabilityTestReportsResponse)
-> Lens
     ListDeliverabilityTestReportsResponse
     ListDeliverabilityTestReportsResponse
     [DeliverabilityTestReport]
     [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