module Stratosphere.ConnectCampaignsV2.Campaign.CommunicationLimitsProperty (
module Exports, CommunicationLimitsProperty(..),
mkCommunicationLimitsProperty
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import {-# SOURCE #-} Stratosphere.ConnectCampaignsV2.Campaign.CommunicationLimitProperty as Exports
import Stratosphere.ResourceProperties
data CommunicationLimitsProperty
=
CommunicationLimitsProperty {CommunicationLimitsProperty -> ()
haddock_workaround_ :: (),
CommunicationLimitsProperty -> Maybe [CommunicationLimitProperty]
communicationLimitList :: (Prelude.Maybe [CommunicationLimitProperty])}
deriving stock (CommunicationLimitsProperty -> CommunicationLimitsProperty -> Bool
(CommunicationLimitsProperty
-> CommunicationLimitsProperty -> Bool)
-> (CommunicationLimitsProperty
-> CommunicationLimitsProperty -> Bool)
-> Eq CommunicationLimitsProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: CommunicationLimitsProperty -> CommunicationLimitsProperty -> Bool
== :: CommunicationLimitsProperty -> CommunicationLimitsProperty -> Bool
$c/= :: CommunicationLimitsProperty -> CommunicationLimitsProperty -> Bool
/= :: CommunicationLimitsProperty -> CommunicationLimitsProperty -> Bool
Prelude.Eq, Int -> CommunicationLimitsProperty -> ShowS
[CommunicationLimitsProperty] -> ShowS
CommunicationLimitsProperty -> String
(Int -> CommunicationLimitsProperty -> ShowS)
-> (CommunicationLimitsProperty -> String)
-> ([CommunicationLimitsProperty] -> ShowS)
-> Show CommunicationLimitsProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> CommunicationLimitsProperty -> ShowS
showsPrec :: Int -> CommunicationLimitsProperty -> ShowS
$cshow :: CommunicationLimitsProperty -> String
show :: CommunicationLimitsProperty -> String
$cshowList :: [CommunicationLimitsProperty] -> ShowS
showList :: [CommunicationLimitsProperty] -> ShowS
Prelude.Show)
mkCommunicationLimitsProperty :: CommunicationLimitsProperty
mkCommunicationLimitsProperty :: CommunicationLimitsProperty
mkCommunicationLimitsProperty
= CommunicationLimitsProperty
{haddock_workaround_ :: ()
haddock_workaround_ = (),
communicationLimitList :: Maybe [CommunicationLimitProperty]
communicationLimitList = Maybe [CommunicationLimitProperty]
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties CommunicationLimitsProperty where
toResourceProperties :: CommunicationLimitsProperty -> ResourceProperties
toResourceProperties CommunicationLimitsProperty {Maybe [CommunicationLimitProperty]
()
haddock_workaround_ :: CommunicationLimitsProperty -> ()
communicationLimitList :: CommunicationLimitsProperty -> Maybe [CommunicationLimitProperty]
haddock_workaround_ :: ()
communicationLimitList :: Maybe [CommunicationLimitProperty]
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::ConnectCampaignsV2::Campaign.CommunicationLimits",
supportsTags :: Bool
supportsTags = Bool
Prelude.False,
properties :: Object
properties = [Item Object] -> Object
forall l. IsList l => [Item l] -> l
Prelude.fromList
([Maybe (Key, Value)] -> [(Key, Value)]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[Key -> [CommunicationLimitProperty] -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"CommunicationLimitList"
([CommunicationLimitProperty] -> (Key, Value))
-> Maybe [CommunicationLimitProperty] -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe [CommunicationLimitProperty]
communicationLimitList])}
instance JSON.ToJSON CommunicationLimitsProperty where
toJSON :: CommunicationLimitsProperty -> Value
toJSON CommunicationLimitsProperty {Maybe [CommunicationLimitProperty]
()
haddock_workaround_ :: CommunicationLimitsProperty -> ()
communicationLimitList :: CommunicationLimitsProperty -> Maybe [CommunicationLimitProperty]
haddock_workaround_ :: ()
communicationLimitList :: Maybe [CommunicationLimitProperty]
..}
= [(Key, Value)] -> Value
JSON.object
([Item [(Key, Value)]] -> [(Key, Value)]
forall l. IsList l => [Item l] -> l
Prelude.fromList
([Maybe (Key, Value)] -> [(Key, Value)]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[Key -> [CommunicationLimitProperty] -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"CommunicationLimitList"
([CommunicationLimitProperty] -> (Key, Value))
-> Maybe [CommunicationLimitProperty] -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe [CommunicationLimitProperty]
communicationLimitList]))
instance Property "CommunicationLimitList" CommunicationLimitsProperty where
type PropertyType "CommunicationLimitList" CommunicationLimitsProperty = [CommunicationLimitProperty]
set :: PropertyType "CommunicationLimitList" CommunicationLimitsProperty
-> CommunicationLimitsProperty -> CommunicationLimitsProperty
set PropertyType "CommunicationLimitList" CommunicationLimitsProperty
newValue CommunicationLimitsProperty {Maybe [CommunicationLimitProperty]
()
haddock_workaround_ :: CommunicationLimitsProperty -> ()
communicationLimitList :: CommunicationLimitsProperty -> Maybe [CommunicationLimitProperty]
haddock_workaround_ :: ()
communicationLimitList :: Maybe [CommunicationLimitProperty]
..}
= CommunicationLimitsProperty
{communicationLimitList :: Maybe [CommunicationLimitProperty]
communicationLimitList = [CommunicationLimitProperty] -> Maybe [CommunicationLimitProperty]
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure [CommunicationLimitProperty]
PropertyType "CommunicationLimitList" CommunicationLimitsProperty
newValue, ()
haddock_workaround_ :: ()
haddock_workaround_ :: ()
..}