{-# 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.SESV2.GetDeliverabilityTestReport
(
GetDeliverabilityTestReport (..),
newGetDeliverabilityTestReport,
getDeliverabilityTestReport_reportId,
GetDeliverabilityTestReportResponse (..),
newGetDeliverabilityTestReportResponse,
getDeliverabilityTestReportResponse_message,
getDeliverabilityTestReportResponse_tags,
getDeliverabilityTestReportResponse_httpStatus,
getDeliverabilityTestReportResponse_deliverabilityTestReport,
getDeliverabilityTestReportResponse_overallPlacement,
getDeliverabilityTestReportResponse_ispPlacements,
)
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
data GetDeliverabilityTestReport = GetDeliverabilityTestReport'
{
GetDeliverabilityTestReport -> Text
reportId :: Prelude.Text
}
deriving (GetDeliverabilityTestReport -> GetDeliverabilityTestReport -> Bool
(GetDeliverabilityTestReport
-> GetDeliverabilityTestReport -> Bool)
-> (GetDeliverabilityTestReport
-> GetDeliverabilityTestReport -> Bool)
-> Eq GetDeliverabilityTestReport
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: GetDeliverabilityTestReport -> GetDeliverabilityTestReport -> Bool
$c/= :: GetDeliverabilityTestReport -> GetDeliverabilityTestReport -> Bool
== :: GetDeliverabilityTestReport -> GetDeliverabilityTestReport -> Bool
$c== :: GetDeliverabilityTestReport -> GetDeliverabilityTestReport -> Bool
Prelude.Eq, ReadPrec [GetDeliverabilityTestReport]
ReadPrec GetDeliverabilityTestReport
Int -> ReadS GetDeliverabilityTestReport
ReadS [GetDeliverabilityTestReport]
(Int -> ReadS GetDeliverabilityTestReport)
-> ReadS [GetDeliverabilityTestReport]
-> ReadPrec GetDeliverabilityTestReport
-> ReadPrec [GetDeliverabilityTestReport]
-> Read GetDeliverabilityTestReport
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [GetDeliverabilityTestReport]
$creadListPrec :: ReadPrec [GetDeliverabilityTestReport]
readPrec :: ReadPrec GetDeliverabilityTestReport
$creadPrec :: ReadPrec GetDeliverabilityTestReport
readList :: ReadS [GetDeliverabilityTestReport]
$creadList :: ReadS [GetDeliverabilityTestReport]
readsPrec :: Int -> ReadS GetDeliverabilityTestReport
$creadsPrec :: Int -> ReadS GetDeliverabilityTestReport
Prelude.Read, Int -> GetDeliverabilityTestReport -> ShowS
[GetDeliverabilityTestReport] -> ShowS
GetDeliverabilityTestReport -> String
(Int -> GetDeliverabilityTestReport -> ShowS)
-> (GetDeliverabilityTestReport -> String)
-> ([GetDeliverabilityTestReport] -> ShowS)
-> Show GetDeliverabilityTestReport
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [GetDeliverabilityTestReport] -> ShowS
$cshowList :: [GetDeliverabilityTestReport] -> ShowS
show :: GetDeliverabilityTestReport -> String
$cshow :: GetDeliverabilityTestReport -> String
showsPrec :: Int -> GetDeliverabilityTestReport -> ShowS
$cshowsPrec :: Int -> GetDeliverabilityTestReport -> ShowS
Prelude.Show, (forall x.
GetDeliverabilityTestReport -> Rep GetDeliverabilityTestReport x)
-> (forall x.
Rep GetDeliverabilityTestReport x -> GetDeliverabilityTestReport)
-> Generic GetDeliverabilityTestReport
forall x.
Rep GetDeliverabilityTestReport x -> GetDeliverabilityTestReport
forall x.
GetDeliverabilityTestReport -> Rep GetDeliverabilityTestReport x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep GetDeliverabilityTestReport x -> GetDeliverabilityTestReport
$cfrom :: forall x.
GetDeliverabilityTestReport -> Rep GetDeliverabilityTestReport x
Prelude.Generic)
newGetDeliverabilityTestReport ::
Prelude.Text ->
GetDeliverabilityTestReport
newGetDeliverabilityTestReport :: Text -> GetDeliverabilityTestReport
newGetDeliverabilityTestReport Text
pReportId_ =
GetDeliverabilityTestReport' :: Text -> GetDeliverabilityTestReport
GetDeliverabilityTestReport' {$sel:reportId:GetDeliverabilityTestReport' :: Text
reportId = Text
pReportId_}
getDeliverabilityTestReport_reportId :: Lens.Lens' GetDeliverabilityTestReport Prelude.Text
getDeliverabilityTestReport_reportId :: (Text -> f Text)
-> GetDeliverabilityTestReport -> f GetDeliverabilityTestReport
getDeliverabilityTestReport_reportId = (GetDeliverabilityTestReport -> Text)
-> (GetDeliverabilityTestReport
-> Text -> GetDeliverabilityTestReport)
-> Lens
GetDeliverabilityTestReport GetDeliverabilityTestReport Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetDeliverabilityTestReport' {Text
reportId :: Text
$sel:reportId:GetDeliverabilityTestReport' :: GetDeliverabilityTestReport -> Text
reportId} -> Text
reportId) (\s :: GetDeliverabilityTestReport
s@GetDeliverabilityTestReport' {} Text
a -> GetDeliverabilityTestReport
s {$sel:reportId:GetDeliverabilityTestReport' :: Text
reportId = Text
a} :: GetDeliverabilityTestReport)
instance Core.AWSRequest GetDeliverabilityTestReport where
type
AWSResponse GetDeliverabilityTestReport =
GetDeliverabilityTestReportResponse
request :: GetDeliverabilityTestReport -> Request GetDeliverabilityTestReport
request = Service
-> GetDeliverabilityTestReport
-> Request GetDeliverabilityTestReport
forall a. ToRequest a => Service -> a -> Request a
Request.get Service
defaultService
response :: Logger
-> Service
-> Proxy GetDeliverabilityTestReport
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse GetDeliverabilityTestReport)))
response =
(Int
-> ResponseHeaders
-> Object
-> Either String (AWSResponse GetDeliverabilityTestReport))
-> Logger
-> Service
-> Proxy GetDeliverabilityTestReport
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse GetDeliverabilityTestReport)))
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
-> Maybe [Tag]
-> Int
-> DeliverabilityTestReport
-> PlacementStatistics
-> [IspPlacement]
-> GetDeliverabilityTestReportResponse
GetDeliverabilityTestReportResponse'
(Maybe Text
-> Maybe [Tag]
-> Int
-> DeliverabilityTestReport
-> PlacementStatistics
-> [IspPlacement]
-> GetDeliverabilityTestReportResponse)
-> Either String (Maybe Text)
-> Either
String
(Maybe [Tag]
-> Int
-> DeliverabilityTestReport
-> PlacementStatistics
-> [IspPlacement]
-> GetDeliverabilityTestReportResponse)
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
"Message")
Either
String
(Maybe [Tag]
-> Int
-> DeliverabilityTestReport
-> PlacementStatistics
-> [IspPlacement]
-> GetDeliverabilityTestReportResponse)
-> Either String (Maybe [Tag])
-> Either
String
(Int
-> DeliverabilityTestReport
-> PlacementStatistics
-> [IspPlacement]
-> GetDeliverabilityTestReportResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe (Maybe [Tag]))
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"Tags" Either String (Maybe (Maybe [Tag]))
-> Maybe [Tag] -> Either String (Maybe [Tag])
forall (f :: * -> *) a. Functor f => f (Maybe a) -> a -> f a
Core..!@ Maybe [Tag]
forall a. Monoid a => a
Prelude.mempty)
Either
String
(Int
-> DeliverabilityTestReport
-> PlacementStatistics
-> [IspPlacement]
-> GetDeliverabilityTestReportResponse)
-> Either String Int
-> Either
String
(DeliverabilityTestReport
-> PlacementStatistics
-> [IspPlacement]
-> GetDeliverabilityTestReportResponse)
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
-> PlacementStatistics
-> [IspPlacement]
-> GetDeliverabilityTestReportResponse)
-> Either String DeliverabilityTestReport
-> Either
String
(PlacementStatistics
-> [IspPlacement] -> GetDeliverabilityTestReportResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String DeliverabilityTestReport
forall a. FromJSON a => Object -> Text -> Either String a
Core..:> Text
"DeliverabilityTestReport")
Either
String
(PlacementStatistics
-> [IspPlacement] -> GetDeliverabilityTestReportResponse)
-> Either String PlacementStatistics
-> Either
String ([IspPlacement] -> GetDeliverabilityTestReportResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String PlacementStatistics
forall a. FromJSON a => Object -> Text -> Either String a
Core..:> Text
"OverallPlacement")
Either
String ([IspPlacement] -> GetDeliverabilityTestReportResponse)
-> Either String [IspPlacement]
-> Either String GetDeliverabilityTestReportResponse
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe [IspPlacement])
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"IspPlacements" Either String (Maybe [IspPlacement])
-> [IspPlacement] -> Either String [IspPlacement]
forall (f :: * -> *) a. Functor f => f (Maybe a) -> a -> f a
Core..!@ [IspPlacement]
forall a. Monoid a => a
Prelude.mempty)
)
instance Prelude.Hashable GetDeliverabilityTestReport
instance Prelude.NFData GetDeliverabilityTestReport
instance Core.ToHeaders GetDeliverabilityTestReport where
toHeaders :: GetDeliverabilityTestReport -> ResponseHeaders
toHeaders =
ResponseHeaders -> GetDeliverabilityTestReport -> 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 GetDeliverabilityTestReport where
toPath :: GetDeliverabilityTestReport -> ByteString
toPath GetDeliverabilityTestReport' {Text
reportId :: Text
$sel:reportId:GetDeliverabilityTestReport' :: GetDeliverabilityTestReport -> Text
..} =
[ByteString] -> ByteString
forall a. Monoid a => [a] -> a
Prelude.mconcat
[ ByteString
"/v2/email/deliverability-dashboard/test-reports/",
Text -> ByteString
forall a. ToByteString a => a -> ByteString
Core.toBS Text
reportId
]
instance Core.ToQuery GetDeliverabilityTestReport where
toQuery :: GetDeliverabilityTestReport -> QueryString
toQuery = QueryString -> GetDeliverabilityTestReport -> QueryString
forall a b. a -> b -> a
Prelude.const QueryString
forall a. Monoid a => a
Prelude.mempty
data GetDeliverabilityTestReportResponse = GetDeliverabilityTestReportResponse'
{
GetDeliverabilityTestReportResponse -> Maybe Text
message :: Prelude.Maybe Prelude.Text,
GetDeliverabilityTestReportResponse -> Maybe [Tag]
tags :: Prelude.Maybe [Tag],
GetDeliverabilityTestReportResponse -> Int
httpStatus :: Prelude.Int,
GetDeliverabilityTestReportResponse -> DeliverabilityTestReport
deliverabilityTestReport :: DeliverabilityTestReport,
GetDeliverabilityTestReportResponse -> PlacementStatistics
overallPlacement :: PlacementStatistics,
GetDeliverabilityTestReportResponse -> [IspPlacement]
ispPlacements :: [IspPlacement]
}
deriving (GetDeliverabilityTestReportResponse
-> GetDeliverabilityTestReportResponse -> Bool
(GetDeliverabilityTestReportResponse
-> GetDeliverabilityTestReportResponse -> Bool)
-> (GetDeliverabilityTestReportResponse
-> GetDeliverabilityTestReportResponse -> Bool)
-> Eq GetDeliverabilityTestReportResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: GetDeliverabilityTestReportResponse
-> GetDeliverabilityTestReportResponse -> Bool
$c/= :: GetDeliverabilityTestReportResponse
-> GetDeliverabilityTestReportResponse -> Bool
== :: GetDeliverabilityTestReportResponse
-> GetDeliverabilityTestReportResponse -> Bool
$c== :: GetDeliverabilityTestReportResponse
-> GetDeliverabilityTestReportResponse -> Bool
Prelude.Eq, ReadPrec [GetDeliverabilityTestReportResponse]
ReadPrec GetDeliverabilityTestReportResponse
Int -> ReadS GetDeliverabilityTestReportResponse
ReadS [GetDeliverabilityTestReportResponse]
(Int -> ReadS GetDeliverabilityTestReportResponse)
-> ReadS [GetDeliverabilityTestReportResponse]
-> ReadPrec GetDeliverabilityTestReportResponse
-> ReadPrec [GetDeliverabilityTestReportResponse]
-> Read GetDeliverabilityTestReportResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [GetDeliverabilityTestReportResponse]
$creadListPrec :: ReadPrec [GetDeliverabilityTestReportResponse]
readPrec :: ReadPrec GetDeliverabilityTestReportResponse
$creadPrec :: ReadPrec GetDeliverabilityTestReportResponse
readList :: ReadS [GetDeliverabilityTestReportResponse]
$creadList :: ReadS [GetDeliverabilityTestReportResponse]
readsPrec :: Int -> ReadS GetDeliverabilityTestReportResponse
$creadsPrec :: Int -> ReadS GetDeliverabilityTestReportResponse
Prelude.Read, Int -> GetDeliverabilityTestReportResponse -> ShowS
[GetDeliverabilityTestReportResponse] -> ShowS
GetDeliverabilityTestReportResponse -> String
(Int -> GetDeliverabilityTestReportResponse -> ShowS)
-> (GetDeliverabilityTestReportResponse -> String)
-> ([GetDeliverabilityTestReportResponse] -> ShowS)
-> Show GetDeliverabilityTestReportResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [GetDeliverabilityTestReportResponse] -> ShowS
$cshowList :: [GetDeliverabilityTestReportResponse] -> ShowS
show :: GetDeliverabilityTestReportResponse -> String
$cshow :: GetDeliverabilityTestReportResponse -> String
showsPrec :: Int -> GetDeliverabilityTestReportResponse -> ShowS
$cshowsPrec :: Int -> GetDeliverabilityTestReportResponse -> ShowS
Prelude.Show, (forall x.
GetDeliverabilityTestReportResponse
-> Rep GetDeliverabilityTestReportResponse x)
-> (forall x.
Rep GetDeliverabilityTestReportResponse x
-> GetDeliverabilityTestReportResponse)
-> Generic GetDeliverabilityTestReportResponse
forall x.
Rep GetDeliverabilityTestReportResponse x
-> GetDeliverabilityTestReportResponse
forall x.
GetDeliverabilityTestReportResponse
-> Rep GetDeliverabilityTestReportResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep GetDeliverabilityTestReportResponse x
-> GetDeliverabilityTestReportResponse
$cfrom :: forall x.
GetDeliverabilityTestReportResponse
-> Rep GetDeliverabilityTestReportResponse x
Prelude.Generic)
newGetDeliverabilityTestReportResponse ::
Prelude.Int ->
DeliverabilityTestReport ->
PlacementStatistics ->
GetDeliverabilityTestReportResponse
newGetDeliverabilityTestReportResponse :: Int
-> DeliverabilityTestReport
-> PlacementStatistics
-> GetDeliverabilityTestReportResponse
newGetDeliverabilityTestReportResponse
Int
pHttpStatus_
DeliverabilityTestReport
pDeliverabilityTestReport_
PlacementStatistics
pOverallPlacement_ =
GetDeliverabilityTestReportResponse' :: Maybe Text
-> Maybe [Tag]
-> Int
-> DeliverabilityTestReport
-> PlacementStatistics
-> [IspPlacement]
-> GetDeliverabilityTestReportResponse
GetDeliverabilityTestReportResponse'
{ $sel:message:GetDeliverabilityTestReportResponse' :: Maybe Text
message =
Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:tags:GetDeliverabilityTestReportResponse' :: Maybe [Tag]
tags = Maybe [Tag]
forall a. Maybe a
Prelude.Nothing,
$sel:httpStatus:GetDeliverabilityTestReportResponse' :: Int
httpStatus = Int
pHttpStatus_,
$sel:deliverabilityTestReport:GetDeliverabilityTestReportResponse' :: DeliverabilityTestReport
deliverabilityTestReport =
DeliverabilityTestReport
pDeliverabilityTestReport_,
$sel:overallPlacement:GetDeliverabilityTestReportResponse' :: PlacementStatistics
overallPlacement = PlacementStatistics
pOverallPlacement_,
$sel:ispPlacements:GetDeliverabilityTestReportResponse' :: [IspPlacement]
ispPlacements = [IspPlacement]
forall a. Monoid a => a
Prelude.mempty
}
getDeliverabilityTestReportResponse_message :: Lens.Lens' GetDeliverabilityTestReportResponse (Prelude.Maybe Prelude.Text)
getDeliverabilityTestReportResponse_message :: (Maybe Text -> f (Maybe Text))
-> GetDeliverabilityTestReportResponse
-> f GetDeliverabilityTestReportResponse
getDeliverabilityTestReportResponse_message = (GetDeliverabilityTestReportResponse -> Maybe Text)
-> (GetDeliverabilityTestReportResponse
-> Maybe Text -> GetDeliverabilityTestReportResponse)
-> Lens
GetDeliverabilityTestReportResponse
GetDeliverabilityTestReportResponse
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetDeliverabilityTestReportResponse' {Maybe Text
message :: Maybe Text
$sel:message:GetDeliverabilityTestReportResponse' :: GetDeliverabilityTestReportResponse -> Maybe Text
message} -> Maybe Text
message) (\s :: GetDeliverabilityTestReportResponse
s@GetDeliverabilityTestReportResponse' {} Maybe Text
a -> GetDeliverabilityTestReportResponse
s {$sel:message:GetDeliverabilityTestReportResponse' :: Maybe Text
message = Maybe Text
a} :: GetDeliverabilityTestReportResponse)
getDeliverabilityTestReportResponse_tags :: Lens.Lens' GetDeliverabilityTestReportResponse (Prelude.Maybe [Tag])
getDeliverabilityTestReportResponse_tags :: (Maybe [Tag] -> f (Maybe [Tag]))
-> GetDeliverabilityTestReportResponse
-> f GetDeliverabilityTestReportResponse
getDeliverabilityTestReportResponse_tags = (GetDeliverabilityTestReportResponse -> Maybe [Tag])
-> (GetDeliverabilityTestReportResponse
-> Maybe [Tag] -> GetDeliverabilityTestReportResponse)
-> Lens
GetDeliverabilityTestReportResponse
GetDeliverabilityTestReportResponse
(Maybe [Tag])
(Maybe [Tag])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetDeliverabilityTestReportResponse' {Maybe [Tag]
tags :: Maybe [Tag]
$sel:tags:GetDeliverabilityTestReportResponse' :: GetDeliverabilityTestReportResponse -> Maybe [Tag]
tags} -> Maybe [Tag]
tags) (\s :: GetDeliverabilityTestReportResponse
s@GetDeliverabilityTestReportResponse' {} Maybe [Tag]
a -> GetDeliverabilityTestReportResponse
s {$sel:tags:GetDeliverabilityTestReportResponse' :: Maybe [Tag]
tags = Maybe [Tag]
a} :: GetDeliverabilityTestReportResponse) ((Maybe [Tag] -> f (Maybe [Tag]))
-> GetDeliverabilityTestReportResponse
-> f GetDeliverabilityTestReportResponse)
-> ((Maybe [Tag] -> f (Maybe [Tag]))
-> Maybe [Tag] -> f (Maybe [Tag]))
-> (Maybe [Tag] -> f (Maybe [Tag]))
-> GetDeliverabilityTestReportResponse
-> f GetDeliverabilityTestReportResponse
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso [Tag] [Tag] [Tag] [Tag]
-> Iso (Maybe [Tag]) (Maybe [Tag]) (Maybe [Tag]) (Maybe [Tag])
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 [Tag] [Tag] [Tag] [Tag]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
getDeliverabilityTestReportResponse_httpStatus :: Lens.Lens' GetDeliverabilityTestReportResponse Prelude.Int
getDeliverabilityTestReportResponse_httpStatus :: (Int -> f Int)
-> GetDeliverabilityTestReportResponse
-> f GetDeliverabilityTestReportResponse
getDeliverabilityTestReportResponse_httpStatus = (GetDeliverabilityTestReportResponse -> Int)
-> (GetDeliverabilityTestReportResponse
-> Int -> GetDeliverabilityTestReportResponse)
-> Lens
GetDeliverabilityTestReportResponse
GetDeliverabilityTestReportResponse
Int
Int
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetDeliverabilityTestReportResponse' {Int
httpStatus :: Int
$sel:httpStatus:GetDeliverabilityTestReportResponse' :: GetDeliverabilityTestReportResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: GetDeliverabilityTestReportResponse
s@GetDeliverabilityTestReportResponse' {} Int
a -> GetDeliverabilityTestReportResponse
s {$sel:httpStatus:GetDeliverabilityTestReportResponse' :: Int
httpStatus = Int
a} :: GetDeliverabilityTestReportResponse)
getDeliverabilityTestReportResponse_deliverabilityTestReport :: Lens.Lens' GetDeliverabilityTestReportResponse DeliverabilityTestReport
getDeliverabilityTestReportResponse_deliverabilityTestReport :: (DeliverabilityTestReport -> f DeliverabilityTestReport)
-> GetDeliverabilityTestReportResponse
-> f GetDeliverabilityTestReportResponse
getDeliverabilityTestReportResponse_deliverabilityTestReport = (GetDeliverabilityTestReportResponse -> DeliverabilityTestReport)
-> (GetDeliverabilityTestReportResponse
-> DeliverabilityTestReport -> GetDeliverabilityTestReportResponse)
-> Lens
GetDeliverabilityTestReportResponse
GetDeliverabilityTestReportResponse
DeliverabilityTestReport
DeliverabilityTestReport
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetDeliverabilityTestReportResponse' {DeliverabilityTestReport
deliverabilityTestReport :: DeliverabilityTestReport
$sel:deliverabilityTestReport:GetDeliverabilityTestReportResponse' :: GetDeliverabilityTestReportResponse -> DeliverabilityTestReport
deliverabilityTestReport} -> DeliverabilityTestReport
deliverabilityTestReport) (\s :: GetDeliverabilityTestReportResponse
s@GetDeliverabilityTestReportResponse' {} DeliverabilityTestReport
a -> GetDeliverabilityTestReportResponse
s {$sel:deliverabilityTestReport:GetDeliverabilityTestReportResponse' :: DeliverabilityTestReport
deliverabilityTestReport = DeliverabilityTestReport
a} :: GetDeliverabilityTestReportResponse)
getDeliverabilityTestReportResponse_overallPlacement :: Lens.Lens' GetDeliverabilityTestReportResponse PlacementStatistics
getDeliverabilityTestReportResponse_overallPlacement :: (PlacementStatistics -> f PlacementStatistics)
-> GetDeliverabilityTestReportResponse
-> f GetDeliverabilityTestReportResponse
getDeliverabilityTestReportResponse_overallPlacement = (GetDeliverabilityTestReportResponse -> PlacementStatistics)
-> (GetDeliverabilityTestReportResponse
-> PlacementStatistics -> GetDeliverabilityTestReportResponse)
-> Lens
GetDeliverabilityTestReportResponse
GetDeliverabilityTestReportResponse
PlacementStatistics
PlacementStatistics
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetDeliverabilityTestReportResponse' {PlacementStatistics
overallPlacement :: PlacementStatistics
$sel:overallPlacement:GetDeliverabilityTestReportResponse' :: GetDeliverabilityTestReportResponse -> PlacementStatistics
overallPlacement} -> PlacementStatistics
overallPlacement) (\s :: GetDeliverabilityTestReportResponse
s@GetDeliverabilityTestReportResponse' {} PlacementStatistics
a -> GetDeliverabilityTestReportResponse
s {$sel:overallPlacement:GetDeliverabilityTestReportResponse' :: PlacementStatistics
overallPlacement = PlacementStatistics
a} :: GetDeliverabilityTestReportResponse)
getDeliverabilityTestReportResponse_ispPlacements :: Lens.Lens' GetDeliverabilityTestReportResponse [IspPlacement]
getDeliverabilityTestReportResponse_ispPlacements :: ([IspPlacement] -> f [IspPlacement])
-> GetDeliverabilityTestReportResponse
-> f GetDeliverabilityTestReportResponse
getDeliverabilityTestReportResponse_ispPlacements = (GetDeliverabilityTestReportResponse -> [IspPlacement])
-> (GetDeliverabilityTestReportResponse
-> [IspPlacement] -> GetDeliverabilityTestReportResponse)
-> Lens
GetDeliverabilityTestReportResponse
GetDeliverabilityTestReportResponse
[IspPlacement]
[IspPlacement]
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetDeliverabilityTestReportResponse' {[IspPlacement]
ispPlacements :: [IspPlacement]
$sel:ispPlacements:GetDeliverabilityTestReportResponse' :: GetDeliverabilityTestReportResponse -> [IspPlacement]
ispPlacements} -> [IspPlacement]
ispPlacements) (\s :: GetDeliverabilityTestReportResponse
s@GetDeliverabilityTestReportResponse' {} [IspPlacement]
a -> GetDeliverabilityTestReportResponse
s {$sel:ispPlacements:GetDeliverabilityTestReportResponse' :: [IspPlacement]
ispPlacements = [IspPlacement]
a} :: GetDeliverabilityTestReportResponse) (([IspPlacement] -> f [IspPlacement])
-> GetDeliverabilityTestReportResponse
-> f GetDeliverabilityTestReportResponse)
-> (([IspPlacement] -> f [IspPlacement])
-> [IspPlacement] -> f [IspPlacement])
-> ([IspPlacement] -> f [IspPlacement])
-> GetDeliverabilityTestReportResponse
-> f GetDeliverabilityTestReportResponse
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. ([IspPlacement] -> f [IspPlacement])
-> [IspPlacement] -> f [IspPlacement]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
instance
Prelude.NFData
GetDeliverabilityTestReportResponse