{-# 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.SES.SetIdentityFeedbackForwardingEnabled
(
SetIdentityFeedbackForwardingEnabled (..),
newSetIdentityFeedbackForwardingEnabled,
setIdentityFeedbackForwardingEnabled_identity,
setIdentityFeedbackForwardingEnabled_forwardingEnabled,
SetIdentityFeedbackForwardingEnabledResponse (..),
newSetIdentityFeedbackForwardingEnabledResponse,
setIdentityFeedbackForwardingEnabledResponse_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.SES.Types
data SetIdentityFeedbackForwardingEnabled = SetIdentityFeedbackForwardingEnabled'
{
SetIdentityFeedbackForwardingEnabled -> Text
identity :: Prelude.Text,
SetIdentityFeedbackForwardingEnabled -> Bool
forwardingEnabled :: Prelude.Bool
}
deriving (SetIdentityFeedbackForwardingEnabled
-> SetIdentityFeedbackForwardingEnabled -> Bool
(SetIdentityFeedbackForwardingEnabled
-> SetIdentityFeedbackForwardingEnabled -> Bool)
-> (SetIdentityFeedbackForwardingEnabled
-> SetIdentityFeedbackForwardingEnabled -> Bool)
-> Eq SetIdentityFeedbackForwardingEnabled
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: SetIdentityFeedbackForwardingEnabled
-> SetIdentityFeedbackForwardingEnabled -> Bool
$c/= :: SetIdentityFeedbackForwardingEnabled
-> SetIdentityFeedbackForwardingEnabled -> Bool
== :: SetIdentityFeedbackForwardingEnabled
-> SetIdentityFeedbackForwardingEnabled -> Bool
$c== :: SetIdentityFeedbackForwardingEnabled
-> SetIdentityFeedbackForwardingEnabled -> Bool
Prelude.Eq, ReadPrec [SetIdentityFeedbackForwardingEnabled]
ReadPrec SetIdentityFeedbackForwardingEnabled
Int -> ReadS SetIdentityFeedbackForwardingEnabled
ReadS [SetIdentityFeedbackForwardingEnabled]
(Int -> ReadS SetIdentityFeedbackForwardingEnabled)
-> ReadS [SetIdentityFeedbackForwardingEnabled]
-> ReadPrec SetIdentityFeedbackForwardingEnabled
-> ReadPrec [SetIdentityFeedbackForwardingEnabled]
-> Read SetIdentityFeedbackForwardingEnabled
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [SetIdentityFeedbackForwardingEnabled]
$creadListPrec :: ReadPrec [SetIdentityFeedbackForwardingEnabled]
readPrec :: ReadPrec SetIdentityFeedbackForwardingEnabled
$creadPrec :: ReadPrec SetIdentityFeedbackForwardingEnabled
readList :: ReadS [SetIdentityFeedbackForwardingEnabled]
$creadList :: ReadS [SetIdentityFeedbackForwardingEnabled]
readsPrec :: Int -> ReadS SetIdentityFeedbackForwardingEnabled
$creadsPrec :: Int -> ReadS SetIdentityFeedbackForwardingEnabled
Prelude.Read, Int -> SetIdentityFeedbackForwardingEnabled -> ShowS
[SetIdentityFeedbackForwardingEnabled] -> ShowS
SetIdentityFeedbackForwardingEnabled -> String
(Int -> SetIdentityFeedbackForwardingEnabled -> ShowS)
-> (SetIdentityFeedbackForwardingEnabled -> String)
-> ([SetIdentityFeedbackForwardingEnabled] -> ShowS)
-> Show SetIdentityFeedbackForwardingEnabled
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [SetIdentityFeedbackForwardingEnabled] -> ShowS
$cshowList :: [SetIdentityFeedbackForwardingEnabled] -> ShowS
show :: SetIdentityFeedbackForwardingEnabled -> String
$cshow :: SetIdentityFeedbackForwardingEnabled -> String
showsPrec :: Int -> SetIdentityFeedbackForwardingEnabled -> ShowS
$cshowsPrec :: Int -> SetIdentityFeedbackForwardingEnabled -> ShowS
Prelude.Show, (forall x.
SetIdentityFeedbackForwardingEnabled
-> Rep SetIdentityFeedbackForwardingEnabled x)
-> (forall x.
Rep SetIdentityFeedbackForwardingEnabled x
-> SetIdentityFeedbackForwardingEnabled)
-> Generic SetIdentityFeedbackForwardingEnabled
forall x.
Rep SetIdentityFeedbackForwardingEnabled x
-> SetIdentityFeedbackForwardingEnabled
forall x.
SetIdentityFeedbackForwardingEnabled
-> Rep SetIdentityFeedbackForwardingEnabled x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep SetIdentityFeedbackForwardingEnabled x
-> SetIdentityFeedbackForwardingEnabled
$cfrom :: forall x.
SetIdentityFeedbackForwardingEnabled
-> Rep SetIdentityFeedbackForwardingEnabled x
Prelude.Generic)
newSetIdentityFeedbackForwardingEnabled ::
Prelude.Text ->
Prelude.Bool ->
SetIdentityFeedbackForwardingEnabled
newSetIdentityFeedbackForwardingEnabled :: Text -> Bool -> SetIdentityFeedbackForwardingEnabled
newSetIdentityFeedbackForwardingEnabled
Text
pIdentity_
Bool
pForwardingEnabled_ =
SetIdentityFeedbackForwardingEnabled' :: Text -> Bool -> SetIdentityFeedbackForwardingEnabled
SetIdentityFeedbackForwardingEnabled'
{ $sel:identity:SetIdentityFeedbackForwardingEnabled' :: Text
identity =
Text
pIdentity_,
$sel:forwardingEnabled:SetIdentityFeedbackForwardingEnabled' :: Bool
forwardingEnabled =
Bool
pForwardingEnabled_
}
setIdentityFeedbackForwardingEnabled_identity :: Lens.Lens' SetIdentityFeedbackForwardingEnabled Prelude.Text
setIdentityFeedbackForwardingEnabled_identity :: (Text -> f Text)
-> SetIdentityFeedbackForwardingEnabled
-> f SetIdentityFeedbackForwardingEnabled
setIdentityFeedbackForwardingEnabled_identity = (SetIdentityFeedbackForwardingEnabled -> Text)
-> (SetIdentityFeedbackForwardingEnabled
-> Text -> SetIdentityFeedbackForwardingEnabled)
-> Lens
SetIdentityFeedbackForwardingEnabled
SetIdentityFeedbackForwardingEnabled
Text
Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\SetIdentityFeedbackForwardingEnabled' {Text
identity :: Text
$sel:identity:SetIdentityFeedbackForwardingEnabled' :: SetIdentityFeedbackForwardingEnabled -> Text
identity} -> Text
identity) (\s :: SetIdentityFeedbackForwardingEnabled
s@SetIdentityFeedbackForwardingEnabled' {} Text
a -> SetIdentityFeedbackForwardingEnabled
s {$sel:identity:SetIdentityFeedbackForwardingEnabled' :: Text
identity = Text
a} :: SetIdentityFeedbackForwardingEnabled)
setIdentityFeedbackForwardingEnabled_forwardingEnabled :: Lens.Lens' SetIdentityFeedbackForwardingEnabled Prelude.Bool
setIdentityFeedbackForwardingEnabled_forwardingEnabled :: (Bool -> f Bool)
-> SetIdentityFeedbackForwardingEnabled
-> f SetIdentityFeedbackForwardingEnabled
setIdentityFeedbackForwardingEnabled_forwardingEnabled = (SetIdentityFeedbackForwardingEnabled -> Bool)
-> (SetIdentityFeedbackForwardingEnabled
-> Bool -> SetIdentityFeedbackForwardingEnabled)
-> Lens
SetIdentityFeedbackForwardingEnabled
SetIdentityFeedbackForwardingEnabled
Bool
Bool
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\SetIdentityFeedbackForwardingEnabled' {Bool
forwardingEnabled :: Bool
$sel:forwardingEnabled:SetIdentityFeedbackForwardingEnabled' :: SetIdentityFeedbackForwardingEnabled -> Bool
forwardingEnabled} -> Bool
forwardingEnabled) (\s :: SetIdentityFeedbackForwardingEnabled
s@SetIdentityFeedbackForwardingEnabled' {} Bool
a -> SetIdentityFeedbackForwardingEnabled
s {$sel:forwardingEnabled:SetIdentityFeedbackForwardingEnabled' :: Bool
forwardingEnabled = Bool
a} :: SetIdentityFeedbackForwardingEnabled)
instance
Core.AWSRequest
SetIdentityFeedbackForwardingEnabled
where
type
AWSResponse SetIdentityFeedbackForwardingEnabled =
SetIdentityFeedbackForwardingEnabledResponse
request :: SetIdentityFeedbackForwardingEnabled
-> Request SetIdentityFeedbackForwardingEnabled
request = Service
-> SetIdentityFeedbackForwardingEnabled
-> Request SetIdentityFeedbackForwardingEnabled
forall a. ToRequest a => Service -> a -> Request a
Request.postQuery Service
defaultService
response :: Logger
-> Service
-> Proxy SetIdentityFeedbackForwardingEnabled
-> ClientResponse ClientBody
-> m (Either
Error
(ClientResponse
(AWSResponse SetIdentityFeedbackForwardingEnabled)))
response =
Text
-> (Int
-> ResponseHeaders
-> [Node]
-> Either
String (AWSResponse SetIdentityFeedbackForwardingEnabled))
-> Logger
-> Service
-> Proxy SetIdentityFeedbackForwardingEnabled
-> ClientResponse ClientBody
-> m (Either
Error
(ClientResponse
(AWSResponse SetIdentityFeedbackForwardingEnabled)))
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
"SetIdentityFeedbackForwardingEnabledResult"
( \Int
s ResponseHeaders
h [Node]
x ->
Int -> SetIdentityFeedbackForwardingEnabledResponse
SetIdentityFeedbackForwardingEnabledResponse'
(Int -> SetIdentityFeedbackForwardingEnabledResponse)
-> Either String Int
-> Either String SetIdentityFeedbackForwardingEnabledResponse
forall (f :: * -> *) a b. Functor 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
SetIdentityFeedbackForwardingEnabled
instance
Prelude.NFData
SetIdentityFeedbackForwardingEnabled
instance
Core.ToHeaders
SetIdentityFeedbackForwardingEnabled
where
toHeaders :: SetIdentityFeedbackForwardingEnabled -> ResponseHeaders
toHeaders = ResponseHeaders
-> SetIdentityFeedbackForwardingEnabled -> ResponseHeaders
forall a b. a -> b -> a
Prelude.const ResponseHeaders
forall a. Monoid a => a
Prelude.mempty
instance
Core.ToPath
SetIdentityFeedbackForwardingEnabled
where
toPath :: SetIdentityFeedbackForwardingEnabled -> ByteString
toPath = ByteString -> SetIdentityFeedbackForwardingEnabled -> ByteString
forall a b. a -> b -> a
Prelude.const ByteString
"/"
instance
Core.ToQuery
SetIdentityFeedbackForwardingEnabled
where
toQuery :: SetIdentityFeedbackForwardingEnabled -> QueryString
toQuery SetIdentityFeedbackForwardingEnabled' {Bool
Text
forwardingEnabled :: Bool
identity :: Text
$sel:forwardingEnabled:SetIdentityFeedbackForwardingEnabled' :: SetIdentityFeedbackForwardingEnabled -> Bool
$sel:identity:SetIdentityFeedbackForwardingEnabled' :: SetIdentityFeedbackForwardingEnabled -> 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
"SetIdentityFeedbackForwardingEnabled" ::
Prelude.ByteString
),
ByteString
"Version"
ByteString -> ByteString -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: (ByteString
"2010-12-01" :: Prelude.ByteString),
ByteString
"Identity" ByteString -> Text -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Text
identity,
ByteString
"ForwardingEnabled" ByteString -> Bool -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Bool
forwardingEnabled
]
data SetIdentityFeedbackForwardingEnabledResponse = SetIdentityFeedbackForwardingEnabledResponse'
{
SetIdentityFeedbackForwardingEnabledResponse -> Int
httpStatus :: Prelude.Int
}
deriving (SetIdentityFeedbackForwardingEnabledResponse
-> SetIdentityFeedbackForwardingEnabledResponse -> Bool
(SetIdentityFeedbackForwardingEnabledResponse
-> SetIdentityFeedbackForwardingEnabledResponse -> Bool)
-> (SetIdentityFeedbackForwardingEnabledResponse
-> SetIdentityFeedbackForwardingEnabledResponse -> Bool)
-> Eq SetIdentityFeedbackForwardingEnabledResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: SetIdentityFeedbackForwardingEnabledResponse
-> SetIdentityFeedbackForwardingEnabledResponse -> Bool
$c/= :: SetIdentityFeedbackForwardingEnabledResponse
-> SetIdentityFeedbackForwardingEnabledResponse -> Bool
== :: SetIdentityFeedbackForwardingEnabledResponse
-> SetIdentityFeedbackForwardingEnabledResponse -> Bool
$c== :: SetIdentityFeedbackForwardingEnabledResponse
-> SetIdentityFeedbackForwardingEnabledResponse -> Bool
Prelude.Eq, ReadPrec [SetIdentityFeedbackForwardingEnabledResponse]
ReadPrec SetIdentityFeedbackForwardingEnabledResponse
Int -> ReadS SetIdentityFeedbackForwardingEnabledResponse
ReadS [SetIdentityFeedbackForwardingEnabledResponse]
(Int -> ReadS SetIdentityFeedbackForwardingEnabledResponse)
-> ReadS [SetIdentityFeedbackForwardingEnabledResponse]
-> ReadPrec SetIdentityFeedbackForwardingEnabledResponse
-> ReadPrec [SetIdentityFeedbackForwardingEnabledResponse]
-> Read SetIdentityFeedbackForwardingEnabledResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [SetIdentityFeedbackForwardingEnabledResponse]
$creadListPrec :: ReadPrec [SetIdentityFeedbackForwardingEnabledResponse]
readPrec :: ReadPrec SetIdentityFeedbackForwardingEnabledResponse
$creadPrec :: ReadPrec SetIdentityFeedbackForwardingEnabledResponse
readList :: ReadS [SetIdentityFeedbackForwardingEnabledResponse]
$creadList :: ReadS [SetIdentityFeedbackForwardingEnabledResponse]
readsPrec :: Int -> ReadS SetIdentityFeedbackForwardingEnabledResponse
$creadsPrec :: Int -> ReadS SetIdentityFeedbackForwardingEnabledResponse
Prelude.Read, Int -> SetIdentityFeedbackForwardingEnabledResponse -> ShowS
[SetIdentityFeedbackForwardingEnabledResponse] -> ShowS
SetIdentityFeedbackForwardingEnabledResponse -> String
(Int -> SetIdentityFeedbackForwardingEnabledResponse -> ShowS)
-> (SetIdentityFeedbackForwardingEnabledResponse -> String)
-> ([SetIdentityFeedbackForwardingEnabledResponse] -> ShowS)
-> Show SetIdentityFeedbackForwardingEnabledResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [SetIdentityFeedbackForwardingEnabledResponse] -> ShowS
$cshowList :: [SetIdentityFeedbackForwardingEnabledResponse] -> ShowS
show :: SetIdentityFeedbackForwardingEnabledResponse -> String
$cshow :: SetIdentityFeedbackForwardingEnabledResponse -> String
showsPrec :: Int -> SetIdentityFeedbackForwardingEnabledResponse -> ShowS
$cshowsPrec :: Int -> SetIdentityFeedbackForwardingEnabledResponse -> ShowS
Prelude.Show, (forall x.
SetIdentityFeedbackForwardingEnabledResponse
-> Rep SetIdentityFeedbackForwardingEnabledResponse x)
-> (forall x.
Rep SetIdentityFeedbackForwardingEnabledResponse x
-> SetIdentityFeedbackForwardingEnabledResponse)
-> Generic SetIdentityFeedbackForwardingEnabledResponse
forall x.
Rep SetIdentityFeedbackForwardingEnabledResponse x
-> SetIdentityFeedbackForwardingEnabledResponse
forall x.
SetIdentityFeedbackForwardingEnabledResponse
-> Rep SetIdentityFeedbackForwardingEnabledResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep SetIdentityFeedbackForwardingEnabledResponse x
-> SetIdentityFeedbackForwardingEnabledResponse
$cfrom :: forall x.
SetIdentityFeedbackForwardingEnabledResponse
-> Rep SetIdentityFeedbackForwardingEnabledResponse x
Prelude.Generic)
newSetIdentityFeedbackForwardingEnabledResponse ::
Prelude.Int ->
SetIdentityFeedbackForwardingEnabledResponse
newSetIdentityFeedbackForwardingEnabledResponse :: Int -> SetIdentityFeedbackForwardingEnabledResponse
newSetIdentityFeedbackForwardingEnabledResponse
Int
pHttpStatus_ =
SetIdentityFeedbackForwardingEnabledResponse' :: Int -> SetIdentityFeedbackForwardingEnabledResponse
SetIdentityFeedbackForwardingEnabledResponse'
{ $sel:httpStatus:SetIdentityFeedbackForwardingEnabledResponse' :: Int
httpStatus =
Int
pHttpStatus_
}
setIdentityFeedbackForwardingEnabledResponse_httpStatus :: Lens.Lens' SetIdentityFeedbackForwardingEnabledResponse Prelude.Int
setIdentityFeedbackForwardingEnabledResponse_httpStatus :: (Int -> f Int)
-> SetIdentityFeedbackForwardingEnabledResponse
-> f SetIdentityFeedbackForwardingEnabledResponse
setIdentityFeedbackForwardingEnabledResponse_httpStatus = (SetIdentityFeedbackForwardingEnabledResponse -> Int)
-> (SetIdentityFeedbackForwardingEnabledResponse
-> Int -> SetIdentityFeedbackForwardingEnabledResponse)
-> Lens
SetIdentityFeedbackForwardingEnabledResponse
SetIdentityFeedbackForwardingEnabledResponse
Int
Int
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\SetIdentityFeedbackForwardingEnabledResponse' {Int
httpStatus :: Int
$sel:httpStatus:SetIdentityFeedbackForwardingEnabledResponse' :: SetIdentityFeedbackForwardingEnabledResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: SetIdentityFeedbackForwardingEnabledResponse
s@SetIdentityFeedbackForwardingEnabledResponse' {} Int
a -> SetIdentityFeedbackForwardingEnabledResponse
s {$sel:httpStatus:SetIdentityFeedbackForwardingEnabledResponse' :: Int
httpStatus = Int
a} :: SetIdentityFeedbackForwardingEnabledResponse)
instance
Prelude.NFData
SetIdentityFeedbackForwardingEnabledResponse