{-# 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.CreateConfigurationSet
(
CreateConfigurationSet (..),
newCreateConfigurationSet,
createConfigurationSet_sendingOptions,
createConfigurationSet_deliveryOptions,
createConfigurationSet_trackingOptions,
createConfigurationSet_reputationOptions,
createConfigurationSet_tags,
createConfigurationSet_suppressionOptions,
createConfigurationSet_configurationSetName,
CreateConfigurationSetResponse (..),
newCreateConfigurationSetResponse,
createConfigurationSetResponse_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.SESV2.Types
data CreateConfigurationSet = CreateConfigurationSet'
{
CreateConfigurationSet -> Maybe SendingOptions
sendingOptions :: Prelude.Maybe SendingOptions,
CreateConfigurationSet -> Maybe DeliveryOptions
deliveryOptions :: Prelude.Maybe DeliveryOptions,
CreateConfigurationSet -> Maybe TrackingOptions
trackingOptions :: Prelude.Maybe TrackingOptions,
CreateConfigurationSet -> Maybe ReputationOptions
reputationOptions :: Prelude.Maybe ReputationOptions,
CreateConfigurationSet -> Maybe [Tag]
tags :: Prelude.Maybe [Tag],
CreateConfigurationSet -> Maybe SuppressionOptions
suppressionOptions :: Prelude.Maybe SuppressionOptions,
CreateConfigurationSet -> Text
configurationSetName :: Prelude.Text
}
deriving (CreateConfigurationSet -> CreateConfigurationSet -> Bool
(CreateConfigurationSet -> CreateConfigurationSet -> Bool)
-> (CreateConfigurationSet -> CreateConfigurationSet -> Bool)
-> Eq CreateConfigurationSet
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: CreateConfigurationSet -> CreateConfigurationSet -> Bool
$c/= :: CreateConfigurationSet -> CreateConfigurationSet -> Bool
== :: CreateConfigurationSet -> CreateConfigurationSet -> Bool
$c== :: CreateConfigurationSet -> CreateConfigurationSet -> Bool
Prelude.Eq, ReadPrec [CreateConfigurationSet]
ReadPrec CreateConfigurationSet
Int -> ReadS CreateConfigurationSet
ReadS [CreateConfigurationSet]
(Int -> ReadS CreateConfigurationSet)
-> ReadS [CreateConfigurationSet]
-> ReadPrec CreateConfigurationSet
-> ReadPrec [CreateConfigurationSet]
-> Read CreateConfigurationSet
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [CreateConfigurationSet]
$creadListPrec :: ReadPrec [CreateConfigurationSet]
readPrec :: ReadPrec CreateConfigurationSet
$creadPrec :: ReadPrec CreateConfigurationSet
readList :: ReadS [CreateConfigurationSet]
$creadList :: ReadS [CreateConfigurationSet]
readsPrec :: Int -> ReadS CreateConfigurationSet
$creadsPrec :: Int -> ReadS CreateConfigurationSet
Prelude.Read, Int -> CreateConfigurationSet -> ShowS
[CreateConfigurationSet] -> ShowS
CreateConfigurationSet -> String
(Int -> CreateConfigurationSet -> ShowS)
-> (CreateConfigurationSet -> String)
-> ([CreateConfigurationSet] -> ShowS)
-> Show CreateConfigurationSet
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [CreateConfigurationSet] -> ShowS
$cshowList :: [CreateConfigurationSet] -> ShowS
show :: CreateConfigurationSet -> String
$cshow :: CreateConfigurationSet -> String
showsPrec :: Int -> CreateConfigurationSet -> ShowS
$cshowsPrec :: Int -> CreateConfigurationSet -> ShowS
Prelude.Show, (forall x. CreateConfigurationSet -> Rep CreateConfigurationSet x)
-> (forall x.
Rep CreateConfigurationSet x -> CreateConfigurationSet)
-> Generic CreateConfigurationSet
forall x. Rep CreateConfigurationSet x -> CreateConfigurationSet
forall x. CreateConfigurationSet -> Rep CreateConfigurationSet x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep CreateConfigurationSet x -> CreateConfigurationSet
$cfrom :: forall x. CreateConfigurationSet -> Rep CreateConfigurationSet x
Prelude.Generic)
newCreateConfigurationSet ::
Prelude.Text ->
CreateConfigurationSet
newCreateConfigurationSet :: Text -> CreateConfigurationSet
newCreateConfigurationSet Text
pConfigurationSetName_ =
CreateConfigurationSet' :: Maybe SendingOptions
-> Maybe DeliveryOptions
-> Maybe TrackingOptions
-> Maybe ReputationOptions
-> Maybe [Tag]
-> Maybe SuppressionOptions
-> Text
-> CreateConfigurationSet
CreateConfigurationSet'
{ $sel:sendingOptions:CreateConfigurationSet' :: Maybe SendingOptions
sendingOptions =
Maybe SendingOptions
forall a. Maybe a
Prelude.Nothing,
$sel:deliveryOptions:CreateConfigurationSet' :: Maybe DeliveryOptions
deliveryOptions = Maybe DeliveryOptions
forall a. Maybe a
Prelude.Nothing,
$sel:trackingOptions:CreateConfigurationSet' :: Maybe TrackingOptions
trackingOptions = Maybe TrackingOptions
forall a. Maybe a
Prelude.Nothing,
$sel:reputationOptions:CreateConfigurationSet' :: Maybe ReputationOptions
reputationOptions = Maybe ReputationOptions
forall a. Maybe a
Prelude.Nothing,
$sel:tags:CreateConfigurationSet' :: Maybe [Tag]
tags = Maybe [Tag]
forall a. Maybe a
Prelude.Nothing,
$sel:suppressionOptions:CreateConfigurationSet' :: Maybe SuppressionOptions
suppressionOptions = Maybe SuppressionOptions
forall a. Maybe a
Prelude.Nothing,
$sel:configurationSetName:CreateConfigurationSet' :: Text
configurationSetName = Text
pConfigurationSetName_
}
createConfigurationSet_sendingOptions :: Lens.Lens' CreateConfigurationSet (Prelude.Maybe SendingOptions)
createConfigurationSet_sendingOptions :: (Maybe SendingOptions -> f (Maybe SendingOptions))
-> CreateConfigurationSet -> f CreateConfigurationSet
createConfigurationSet_sendingOptions = (CreateConfigurationSet -> Maybe SendingOptions)
-> (CreateConfigurationSet
-> Maybe SendingOptions -> CreateConfigurationSet)
-> Lens
CreateConfigurationSet
CreateConfigurationSet
(Maybe SendingOptions)
(Maybe SendingOptions)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateConfigurationSet' {Maybe SendingOptions
sendingOptions :: Maybe SendingOptions
$sel:sendingOptions:CreateConfigurationSet' :: CreateConfigurationSet -> Maybe SendingOptions
sendingOptions} -> Maybe SendingOptions
sendingOptions) (\s :: CreateConfigurationSet
s@CreateConfigurationSet' {} Maybe SendingOptions
a -> CreateConfigurationSet
s {$sel:sendingOptions:CreateConfigurationSet' :: Maybe SendingOptions
sendingOptions = Maybe SendingOptions
a} :: CreateConfigurationSet)
createConfigurationSet_deliveryOptions :: Lens.Lens' CreateConfigurationSet (Prelude.Maybe DeliveryOptions)
createConfigurationSet_deliveryOptions :: (Maybe DeliveryOptions -> f (Maybe DeliveryOptions))
-> CreateConfigurationSet -> f CreateConfigurationSet
createConfigurationSet_deliveryOptions = (CreateConfigurationSet -> Maybe DeliveryOptions)
-> (CreateConfigurationSet
-> Maybe DeliveryOptions -> CreateConfigurationSet)
-> Lens
CreateConfigurationSet
CreateConfigurationSet
(Maybe DeliveryOptions)
(Maybe DeliveryOptions)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateConfigurationSet' {Maybe DeliveryOptions
deliveryOptions :: Maybe DeliveryOptions
$sel:deliveryOptions:CreateConfigurationSet' :: CreateConfigurationSet -> Maybe DeliveryOptions
deliveryOptions} -> Maybe DeliveryOptions
deliveryOptions) (\s :: CreateConfigurationSet
s@CreateConfigurationSet' {} Maybe DeliveryOptions
a -> CreateConfigurationSet
s {$sel:deliveryOptions:CreateConfigurationSet' :: Maybe DeliveryOptions
deliveryOptions = Maybe DeliveryOptions
a} :: CreateConfigurationSet)
createConfigurationSet_trackingOptions :: Lens.Lens' CreateConfigurationSet (Prelude.Maybe TrackingOptions)
createConfigurationSet_trackingOptions :: (Maybe TrackingOptions -> f (Maybe TrackingOptions))
-> CreateConfigurationSet -> f CreateConfigurationSet
createConfigurationSet_trackingOptions = (CreateConfigurationSet -> Maybe TrackingOptions)
-> (CreateConfigurationSet
-> Maybe TrackingOptions -> CreateConfigurationSet)
-> Lens
CreateConfigurationSet
CreateConfigurationSet
(Maybe TrackingOptions)
(Maybe TrackingOptions)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateConfigurationSet' {Maybe TrackingOptions
trackingOptions :: Maybe TrackingOptions
$sel:trackingOptions:CreateConfigurationSet' :: CreateConfigurationSet -> Maybe TrackingOptions
trackingOptions} -> Maybe TrackingOptions
trackingOptions) (\s :: CreateConfigurationSet
s@CreateConfigurationSet' {} Maybe TrackingOptions
a -> CreateConfigurationSet
s {$sel:trackingOptions:CreateConfigurationSet' :: Maybe TrackingOptions
trackingOptions = Maybe TrackingOptions
a} :: CreateConfigurationSet)
createConfigurationSet_reputationOptions :: Lens.Lens' CreateConfigurationSet (Prelude.Maybe ReputationOptions)
createConfigurationSet_reputationOptions :: (Maybe ReputationOptions -> f (Maybe ReputationOptions))
-> CreateConfigurationSet -> f CreateConfigurationSet
createConfigurationSet_reputationOptions = (CreateConfigurationSet -> Maybe ReputationOptions)
-> (CreateConfigurationSet
-> Maybe ReputationOptions -> CreateConfigurationSet)
-> Lens
CreateConfigurationSet
CreateConfigurationSet
(Maybe ReputationOptions)
(Maybe ReputationOptions)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateConfigurationSet' {Maybe ReputationOptions
reputationOptions :: Maybe ReputationOptions
$sel:reputationOptions:CreateConfigurationSet' :: CreateConfigurationSet -> Maybe ReputationOptions
reputationOptions} -> Maybe ReputationOptions
reputationOptions) (\s :: CreateConfigurationSet
s@CreateConfigurationSet' {} Maybe ReputationOptions
a -> CreateConfigurationSet
s {$sel:reputationOptions:CreateConfigurationSet' :: Maybe ReputationOptions
reputationOptions = Maybe ReputationOptions
a} :: CreateConfigurationSet)
createConfigurationSet_tags :: Lens.Lens' CreateConfigurationSet (Prelude.Maybe [Tag])
createConfigurationSet_tags :: (Maybe [Tag] -> f (Maybe [Tag]))
-> CreateConfigurationSet -> f CreateConfigurationSet
createConfigurationSet_tags = (CreateConfigurationSet -> Maybe [Tag])
-> (CreateConfigurationSet
-> Maybe [Tag] -> CreateConfigurationSet)
-> Lens
CreateConfigurationSet
CreateConfigurationSet
(Maybe [Tag])
(Maybe [Tag])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateConfigurationSet' {Maybe [Tag]
tags :: Maybe [Tag]
$sel:tags:CreateConfigurationSet' :: CreateConfigurationSet -> Maybe [Tag]
tags} -> Maybe [Tag]
tags) (\s :: CreateConfigurationSet
s@CreateConfigurationSet' {} Maybe [Tag]
a -> CreateConfigurationSet
s {$sel:tags:CreateConfigurationSet' :: Maybe [Tag]
tags = Maybe [Tag]
a} :: CreateConfigurationSet) ((Maybe [Tag] -> f (Maybe [Tag]))
-> CreateConfigurationSet -> f CreateConfigurationSet)
-> ((Maybe [Tag] -> f (Maybe [Tag]))
-> Maybe [Tag] -> f (Maybe [Tag]))
-> (Maybe [Tag] -> f (Maybe [Tag]))
-> CreateConfigurationSet
-> f CreateConfigurationSet
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
createConfigurationSet_suppressionOptions :: Lens.Lens' CreateConfigurationSet (Prelude.Maybe SuppressionOptions)
createConfigurationSet_suppressionOptions :: (Maybe SuppressionOptions -> f (Maybe SuppressionOptions))
-> CreateConfigurationSet -> f CreateConfigurationSet
createConfigurationSet_suppressionOptions = (CreateConfigurationSet -> Maybe SuppressionOptions)
-> (CreateConfigurationSet
-> Maybe SuppressionOptions -> CreateConfigurationSet)
-> Lens
CreateConfigurationSet
CreateConfigurationSet
(Maybe SuppressionOptions)
(Maybe SuppressionOptions)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateConfigurationSet' {Maybe SuppressionOptions
suppressionOptions :: Maybe SuppressionOptions
$sel:suppressionOptions:CreateConfigurationSet' :: CreateConfigurationSet -> Maybe SuppressionOptions
suppressionOptions} -> Maybe SuppressionOptions
suppressionOptions) (\s :: CreateConfigurationSet
s@CreateConfigurationSet' {} Maybe SuppressionOptions
a -> CreateConfigurationSet
s {$sel:suppressionOptions:CreateConfigurationSet' :: Maybe SuppressionOptions
suppressionOptions = Maybe SuppressionOptions
a} :: CreateConfigurationSet)
createConfigurationSet_configurationSetName :: Lens.Lens' CreateConfigurationSet Prelude.Text
createConfigurationSet_configurationSetName :: (Text -> f Text)
-> CreateConfigurationSet -> f CreateConfigurationSet
createConfigurationSet_configurationSetName = (CreateConfigurationSet -> Text)
-> (CreateConfigurationSet -> Text -> CreateConfigurationSet)
-> Lens CreateConfigurationSet CreateConfigurationSet Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateConfigurationSet' {Text
configurationSetName :: Text
$sel:configurationSetName:CreateConfigurationSet' :: CreateConfigurationSet -> Text
configurationSetName} -> Text
configurationSetName) (\s :: CreateConfigurationSet
s@CreateConfigurationSet' {} Text
a -> CreateConfigurationSet
s {$sel:configurationSetName:CreateConfigurationSet' :: Text
configurationSetName = Text
a} :: CreateConfigurationSet)
instance Core.AWSRequest CreateConfigurationSet where
type
AWSResponse CreateConfigurationSet =
CreateConfigurationSetResponse
request :: CreateConfigurationSet -> Request CreateConfigurationSet
request = Service -> CreateConfigurationSet -> Request CreateConfigurationSet
forall a. (ToRequest a, ToJSON a) => Service -> a -> Request a
Request.postJSON Service
defaultService
response :: Logger
-> Service
-> Proxy CreateConfigurationSet
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse CreateConfigurationSet)))
response =
(Int
-> ResponseHeaders
-> ()
-> Either String (AWSResponse CreateConfigurationSet))
-> Logger
-> Service
-> Proxy CreateConfigurationSet
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse CreateConfigurationSet)))
forall (m :: * -> *) a.
MonadResource m =>
(Int -> ResponseHeaders -> () -> Either String (AWSResponse a))
-> Logger
-> Service
-> Proxy a
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse a)))
Response.receiveEmpty
( \Int
s ResponseHeaders
h ()
x ->
Int -> CreateConfigurationSetResponse
CreateConfigurationSetResponse'
(Int -> CreateConfigurationSetResponse)
-> Either String Int
-> Either String CreateConfigurationSetResponse
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 CreateConfigurationSet
instance Prelude.NFData CreateConfigurationSet
instance Core.ToHeaders CreateConfigurationSet where
toHeaders :: CreateConfigurationSet -> ResponseHeaders
toHeaders =
ResponseHeaders -> CreateConfigurationSet -> 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.ToJSON CreateConfigurationSet where
toJSON :: CreateConfigurationSet -> Value
toJSON CreateConfigurationSet' {Maybe [Tag]
Maybe ReputationOptions
Maybe SendingOptions
Maybe SuppressionOptions
Maybe DeliveryOptions
Maybe TrackingOptions
Text
configurationSetName :: Text
suppressionOptions :: Maybe SuppressionOptions
tags :: Maybe [Tag]
reputationOptions :: Maybe ReputationOptions
trackingOptions :: Maybe TrackingOptions
deliveryOptions :: Maybe DeliveryOptions
sendingOptions :: Maybe SendingOptions
$sel:configurationSetName:CreateConfigurationSet' :: CreateConfigurationSet -> Text
$sel:suppressionOptions:CreateConfigurationSet' :: CreateConfigurationSet -> Maybe SuppressionOptions
$sel:tags:CreateConfigurationSet' :: CreateConfigurationSet -> Maybe [Tag]
$sel:reputationOptions:CreateConfigurationSet' :: CreateConfigurationSet -> Maybe ReputationOptions
$sel:trackingOptions:CreateConfigurationSet' :: CreateConfigurationSet -> Maybe TrackingOptions
$sel:deliveryOptions:CreateConfigurationSet' :: CreateConfigurationSet -> Maybe DeliveryOptions
$sel:sendingOptions:CreateConfigurationSet' :: CreateConfigurationSet -> Maybe SendingOptions
..} =
[Pair] -> Value
Core.object
( [Maybe Pair] -> [Pair]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[ (Text
"SendingOptions" Text -> SendingOptions -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=)
(SendingOptions -> Pair) -> Maybe SendingOptions -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe SendingOptions
sendingOptions,
(Text
"DeliveryOptions" Text -> DeliveryOptions -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=)
(DeliveryOptions -> Pair) -> Maybe DeliveryOptions -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe DeliveryOptions
deliveryOptions,
(Text
"TrackingOptions" Text -> TrackingOptions -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=)
(TrackingOptions -> Pair) -> Maybe TrackingOptions -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe TrackingOptions
trackingOptions,
(Text
"ReputationOptions" Text -> ReputationOptions -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=)
(ReputationOptions -> Pair)
-> Maybe ReputationOptions -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe ReputationOptions
reputationOptions,
(Text
"Tags" Text -> [Tag] -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=) ([Tag] -> Pair) -> Maybe [Tag] -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe [Tag]
tags,
(Text
"SuppressionOptions" Text -> SuppressionOptions -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=)
(SuppressionOptions -> Pair)
-> Maybe SuppressionOptions -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe SuppressionOptions
suppressionOptions,
Pair -> Maybe Pair
forall a. a -> Maybe a
Prelude.Just
( Text
"ConfigurationSetName"
Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= Text
configurationSetName
)
]
)
instance Core.ToPath CreateConfigurationSet where
toPath :: CreateConfigurationSet -> ByteString
toPath = ByteString -> CreateConfigurationSet -> ByteString
forall a b. a -> b -> a
Prelude.const ByteString
"/v2/email/configuration-sets"
instance Core.ToQuery CreateConfigurationSet where
toQuery :: CreateConfigurationSet -> QueryString
toQuery = QueryString -> CreateConfigurationSet -> QueryString
forall a b. a -> b -> a
Prelude.const QueryString
forall a. Monoid a => a
Prelude.mempty
data CreateConfigurationSetResponse = CreateConfigurationSetResponse'
{
CreateConfigurationSetResponse -> Int
httpStatus :: Prelude.Int
}
deriving (CreateConfigurationSetResponse
-> CreateConfigurationSetResponse -> Bool
(CreateConfigurationSetResponse
-> CreateConfigurationSetResponse -> Bool)
-> (CreateConfigurationSetResponse
-> CreateConfigurationSetResponse -> Bool)
-> Eq CreateConfigurationSetResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: CreateConfigurationSetResponse
-> CreateConfigurationSetResponse -> Bool
$c/= :: CreateConfigurationSetResponse
-> CreateConfigurationSetResponse -> Bool
== :: CreateConfigurationSetResponse
-> CreateConfigurationSetResponse -> Bool
$c== :: CreateConfigurationSetResponse
-> CreateConfigurationSetResponse -> Bool
Prelude.Eq, ReadPrec [CreateConfigurationSetResponse]
ReadPrec CreateConfigurationSetResponse
Int -> ReadS CreateConfigurationSetResponse
ReadS [CreateConfigurationSetResponse]
(Int -> ReadS CreateConfigurationSetResponse)
-> ReadS [CreateConfigurationSetResponse]
-> ReadPrec CreateConfigurationSetResponse
-> ReadPrec [CreateConfigurationSetResponse]
-> Read CreateConfigurationSetResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [CreateConfigurationSetResponse]
$creadListPrec :: ReadPrec [CreateConfigurationSetResponse]
readPrec :: ReadPrec CreateConfigurationSetResponse
$creadPrec :: ReadPrec CreateConfigurationSetResponse
readList :: ReadS [CreateConfigurationSetResponse]
$creadList :: ReadS [CreateConfigurationSetResponse]
readsPrec :: Int -> ReadS CreateConfigurationSetResponse
$creadsPrec :: Int -> ReadS CreateConfigurationSetResponse
Prelude.Read, Int -> CreateConfigurationSetResponse -> ShowS
[CreateConfigurationSetResponse] -> ShowS
CreateConfigurationSetResponse -> String
(Int -> CreateConfigurationSetResponse -> ShowS)
-> (CreateConfigurationSetResponse -> String)
-> ([CreateConfigurationSetResponse] -> ShowS)
-> Show CreateConfigurationSetResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [CreateConfigurationSetResponse] -> ShowS
$cshowList :: [CreateConfigurationSetResponse] -> ShowS
show :: CreateConfigurationSetResponse -> String
$cshow :: CreateConfigurationSetResponse -> String
showsPrec :: Int -> CreateConfigurationSetResponse -> ShowS
$cshowsPrec :: Int -> CreateConfigurationSetResponse -> ShowS
Prelude.Show, (forall x.
CreateConfigurationSetResponse
-> Rep CreateConfigurationSetResponse x)
-> (forall x.
Rep CreateConfigurationSetResponse x
-> CreateConfigurationSetResponse)
-> Generic CreateConfigurationSetResponse
forall x.
Rep CreateConfigurationSetResponse x
-> CreateConfigurationSetResponse
forall x.
CreateConfigurationSetResponse
-> Rep CreateConfigurationSetResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep CreateConfigurationSetResponse x
-> CreateConfigurationSetResponse
$cfrom :: forall x.
CreateConfigurationSetResponse
-> Rep CreateConfigurationSetResponse x
Prelude.Generic)
newCreateConfigurationSetResponse ::
Prelude.Int ->
CreateConfigurationSetResponse
newCreateConfigurationSetResponse :: Int -> CreateConfigurationSetResponse
newCreateConfigurationSetResponse Int
pHttpStatus_ =
CreateConfigurationSetResponse' :: Int -> CreateConfigurationSetResponse
CreateConfigurationSetResponse'
{ $sel:httpStatus:CreateConfigurationSetResponse' :: Int
httpStatus =
Int
pHttpStatus_
}
createConfigurationSetResponse_httpStatus :: Lens.Lens' CreateConfigurationSetResponse Prelude.Int
createConfigurationSetResponse_httpStatus :: (Int -> f Int)
-> CreateConfigurationSetResponse
-> f CreateConfigurationSetResponse
createConfigurationSetResponse_httpStatus = (CreateConfigurationSetResponse -> Int)
-> (CreateConfigurationSetResponse
-> Int -> CreateConfigurationSetResponse)
-> Lens
CreateConfigurationSetResponse
CreateConfigurationSetResponse
Int
Int
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateConfigurationSetResponse' {Int
httpStatus :: Int
$sel:httpStatus:CreateConfigurationSetResponse' :: CreateConfigurationSetResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: CreateConfigurationSetResponse
s@CreateConfigurationSetResponse' {} Int
a -> CreateConfigurationSetResponse
s {$sel:httpStatus:CreateConfigurationSetResponse' :: Int
httpStatus = Int
a} :: CreateConfigurationSetResponse)
instance
Prelude.NFData
CreateConfigurationSetResponse