module Stratosphere.ConnectCampaignsV2.Campaign.SmsOutboundModeProperty (
SmsOutboundModeProperty(..), mkSmsOutboundModeProperty
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
data SmsOutboundModeProperty
=
SmsOutboundModeProperty {SmsOutboundModeProperty -> ()
haddock_workaround_ :: (),
SmsOutboundModeProperty -> Maybe Object
agentlessConfig :: (Prelude.Maybe JSON.Object)}
deriving stock (SmsOutboundModeProperty -> SmsOutboundModeProperty -> Bool
(SmsOutboundModeProperty -> SmsOutboundModeProperty -> Bool)
-> (SmsOutboundModeProperty -> SmsOutboundModeProperty -> Bool)
-> Eq SmsOutboundModeProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: SmsOutboundModeProperty -> SmsOutboundModeProperty -> Bool
== :: SmsOutboundModeProperty -> SmsOutboundModeProperty -> Bool
$c/= :: SmsOutboundModeProperty -> SmsOutboundModeProperty -> Bool
/= :: SmsOutboundModeProperty -> SmsOutboundModeProperty -> Bool
Prelude.Eq, Int -> SmsOutboundModeProperty -> ShowS
[SmsOutboundModeProperty] -> ShowS
SmsOutboundModeProperty -> String
(Int -> SmsOutboundModeProperty -> ShowS)
-> (SmsOutboundModeProperty -> String)
-> ([SmsOutboundModeProperty] -> ShowS)
-> Show SmsOutboundModeProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> SmsOutboundModeProperty -> ShowS
showsPrec :: Int -> SmsOutboundModeProperty -> ShowS
$cshow :: SmsOutboundModeProperty -> String
show :: SmsOutboundModeProperty -> String
$cshowList :: [SmsOutboundModeProperty] -> ShowS
showList :: [SmsOutboundModeProperty] -> ShowS
Prelude.Show)
mkSmsOutboundModeProperty :: SmsOutboundModeProperty
mkSmsOutboundModeProperty :: SmsOutboundModeProperty
mkSmsOutboundModeProperty
= SmsOutboundModeProperty
{haddock_workaround_ :: ()
haddock_workaround_ = (), agentlessConfig :: Maybe Object
agentlessConfig = Maybe Object
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties SmsOutboundModeProperty where
toResourceProperties :: SmsOutboundModeProperty -> ResourceProperties
toResourceProperties SmsOutboundModeProperty {Maybe Object
()
haddock_workaround_ :: SmsOutboundModeProperty -> ()
agentlessConfig :: SmsOutboundModeProperty -> Maybe Object
haddock_workaround_ :: ()
agentlessConfig :: Maybe Object
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::ConnectCampaignsV2::Campaign.SmsOutboundMode",
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 -> Object -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"AgentlessConfig" (Object -> (Key, Value)) -> Maybe Object -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Object
agentlessConfig])}
instance JSON.ToJSON SmsOutboundModeProperty where
toJSON :: SmsOutboundModeProperty -> Value
toJSON SmsOutboundModeProperty {Maybe Object
()
haddock_workaround_ :: SmsOutboundModeProperty -> ()
agentlessConfig :: SmsOutboundModeProperty -> Maybe Object
haddock_workaround_ :: ()
agentlessConfig :: Maybe Object
..}
= [(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 -> Object -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"AgentlessConfig" (Object -> (Key, Value)) -> Maybe Object -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Object
agentlessConfig]))
instance Property "AgentlessConfig" SmsOutboundModeProperty where
type PropertyType "AgentlessConfig" SmsOutboundModeProperty = JSON.Object
set :: PropertyType "AgentlessConfig" SmsOutboundModeProperty
-> SmsOutboundModeProperty -> SmsOutboundModeProperty
set PropertyType "AgentlessConfig" SmsOutboundModeProperty
newValue SmsOutboundModeProperty {Maybe Object
()
haddock_workaround_ :: SmsOutboundModeProperty -> ()
agentlessConfig :: SmsOutboundModeProperty -> Maybe Object
haddock_workaround_ :: ()
agentlessConfig :: Maybe Object
..}
= SmsOutboundModeProperty
{agentlessConfig :: Maybe Object
agentlessConfig = Object -> Maybe Object
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure Object
PropertyType "AgentlessConfig" SmsOutboundModeProperty
newValue, ()
haddock_workaround_ :: ()
haddock_workaround_ :: ()
..}