module Stratosphere.Wisdom.MessageTemplate.MessageTemplateAttributesProperty (
        module Exports, MessageTemplateAttributesProperty(..),
        mkMessageTemplateAttributesProperty
    ) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import {-# SOURCE #-} Stratosphere.Wisdom.MessageTemplate.AgentAttributesProperty as Exports
import {-# SOURCE #-} Stratosphere.Wisdom.MessageTemplate.CustomerProfileAttributesProperty as Exports
import {-# SOURCE #-} Stratosphere.Wisdom.MessageTemplate.SystemAttributesProperty as Exports
import Stratosphere.ResourceProperties
import Stratosphere.Value
data MessageTemplateAttributesProperty
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wisdom-messagetemplate-messagetemplateattributes.html>
    MessageTemplateAttributesProperty {MessageTemplateAttributesProperty -> ()
haddock_workaround_ :: (),
                                       -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wisdom-messagetemplate-messagetemplateattributes.html#cfn-wisdom-messagetemplate-messagetemplateattributes-agentattributes>
                                       MessageTemplateAttributesProperty -> Maybe AgentAttributesProperty
agentAttributes :: (Prelude.Maybe AgentAttributesProperty),
                                       -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wisdom-messagetemplate-messagetemplateattributes.html#cfn-wisdom-messagetemplate-messagetemplateattributes-customattributes>
                                       MessageTemplateAttributesProperty -> Maybe (Map Text (Value Text))
customAttributes :: (Prelude.Maybe (Prelude.Map Prelude.Text (Value Prelude.Text))),
                                       -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wisdom-messagetemplate-messagetemplateattributes.html#cfn-wisdom-messagetemplate-messagetemplateattributes-customerprofileattributes>
                                       MessageTemplateAttributesProperty
-> Maybe CustomerProfileAttributesProperty
customerProfileAttributes :: (Prelude.Maybe CustomerProfileAttributesProperty),
                                       -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wisdom-messagetemplate-messagetemplateattributes.html#cfn-wisdom-messagetemplate-messagetemplateattributes-systemattributes>
                                       MessageTemplateAttributesProperty -> Maybe SystemAttributesProperty
systemAttributes :: (Prelude.Maybe SystemAttributesProperty)}
  deriving stock (MessageTemplateAttributesProperty
-> MessageTemplateAttributesProperty -> Bool
(MessageTemplateAttributesProperty
 -> MessageTemplateAttributesProperty -> Bool)
-> (MessageTemplateAttributesProperty
    -> MessageTemplateAttributesProperty -> Bool)
-> Eq MessageTemplateAttributesProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: MessageTemplateAttributesProperty
-> MessageTemplateAttributesProperty -> Bool
== :: MessageTemplateAttributesProperty
-> MessageTemplateAttributesProperty -> Bool
$c/= :: MessageTemplateAttributesProperty
-> MessageTemplateAttributesProperty -> Bool
/= :: MessageTemplateAttributesProperty
-> MessageTemplateAttributesProperty -> Bool
Prelude.Eq, Int -> MessageTemplateAttributesProperty -> ShowS
[MessageTemplateAttributesProperty] -> ShowS
MessageTemplateAttributesProperty -> String
(Int -> MessageTemplateAttributesProperty -> ShowS)
-> (MessageTemplateAttributesProperty -> String)
-> ([MessageTemplateAttributesProperty] -> ShowS)
-> Show MessageTemplateAttributesProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> MessageTemplateAttributesProperty -> ShowS
showsPrec :: Int -> MessageTemplateAttributesProperty -> ShowS
$cshow :: MessageTemplateAttributesProperty -> String
show :: MessageTemplateAttributesProperty -> String
$cshowList :: [MessageTemplateAttributesProperty] -> ShowS
showList :: [MessageTemplateAttributesProperty] -> ShowS
Prelude.Show)
mkMessageTemplateAttributesProperty ::
  MessageTemplateAttributesProperty
mkMessageTemplateAttributesProperty :: MessageTemplateAttributesProperty
mkMessageTemplateAttributesProperty
  = MessageTemplateAttributesProperty
      {haddock_workaround_ :: ()
haddock_workaround_ = (), agentAttributes :: Maybe AgentAttributesProperty
agentAttributes = Maybe AgentAttributesProperty
forall a. Maybe a
Prelude.Nothing,
       customAttributes :: Maybe (Map Text (Value Text))
customAttributes = Maybe (Map Text (Value Text))
forall a. Maybe a
Prelude.Nothing,
       customerProfileAttributes :: Maybe CustomerProfileAttributesProperty
customerProfileAttributes = Maybe CustomerProfileAttributesProperty
forall a. Maybe a
Prelude.Nothing,
       systemAttributes :: Maybe SystemAttributesProperty
systemAttributes = Maybe SystemAttributesProperty
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties MessageTemplateAttributesProperty where
  toResourceProperties :: MessageTemplateAttributesProperty -> ResourceProperties
toResourceProperties MessageTemplateAttributesProperty {Maybe (Map Text (Value Text))
Maybe AgentAttributesProperty
Maybe CustomerProfileAttributesProperty
Maybe SystemAttributesProperty
()
haddock_workaround_ :: MessageTemplateAttributesProperty -> ()
agentAttributes :: MessageTemplateAttributesProperty -> Maybe AgentAttributesProperty
customAttributes :: MessageTemplateAttributesProperty -> Maybe (Map Text (Value Text))
customerProfileAttributes :: MessageTemplateAttributesProperty
-> Maybe CustomerProfileAttributesProperty
systemAttributes :: MessageTemplateAttributesProperty -> Maybe SystemAttributesProperty
haddock_workaround_ :: ()
agentAttributes :: Maybe AgentAttributesProperty
customAttributes :: Maybe (Map Text (Value Text))
customerProfileAttributes :: Maybe CustomerProfileAttributesProperty
systemAttributes :: Maybe SystemAttributesProperty
..}
    = ResourceProperties
        {awsType :: Text
awsType = Text
"AWS::Wisdom::MessageTemplate.MessageTemplateAttributes",
         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 -> AgentAttributesProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"AgentAttributes" (AgentAttributesProperty -> (Key, Value))
-> Maybe AgentAttributesProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe AgentAttributesProperty
agentAttributes,
                            Key -> Map Text (Value Text) -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"CustomAttributes" (Map Text (Value Text) -> (Key, Value))
-> Maybe (Map Text (Value Text)) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Map Text (Value Text))
customAttributes,
                            Key -> CustomerProfileAttributesProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"CustomerProfileAttributes"
                              (CustomerProfileAttributesProperty -> (Key, Value))
-> Maybe CustomerProfileAttributesProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe CustomerProfileAttributesProperty
customerProfileAttributes,
                            Key -> SystemAttributesProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"SystemAttributes" (SystemAttributesProperty -> (Key, Value))
-> Maybe SystemAttributesProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe SystemAttributesProperty
systemAttributes])}
instance JSON.ToJSON MessageTemplateAttributesProperty where
  toJSON :: MessageTemplateAttributesProperty -> Value
toJSON MessageTemplateAttributesProperty {Maybe (Map Text (Value Text))
Maybe AgentAttributesProperty
Maybe CustomerProfileAttributesProperty
Maybe SystemAttributesProperty
()
haddock_workaround_ :: MessageTemplateAttributesProperty -> ()
agentAttributes :: MessageTemplateAttributesProperty -> Maybe AgentAttributesProperty
customAttributes :: MessageTemplateAttributesProperty -> Maybe (Map Text (Value Text))
customerProfileAttributes :: MessageTemplateAttributesProperty
-> Maybe CustomerProfileAttributesProperty
systemAttributes :: MessageTemplateAttributesProperty -> Maybe SystemAttributesProperty
haddock_workaround_ :: ()
agentAttributes :: Maybe AgentAttributesProperty
customAttributes :: Maybe (Map Text (Value Text))
customerProfileAttributes :: Maybe CustomerProfileAttributesProperty
systemAttributes :: Maybe SystemAttributesProperty
..}
    = [(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 -> AgentAttributesProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"AgentAttributes" (AgentAttributesProperty -> (Key, Value))
-> Maybe AgentAttributesProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe AgentAttributesProperty
agentAttributes,
               Key -> Map Text (Value Text) -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"CustomAttributes" (Map Text (Value Text) -> (Key, Value))
-> Maybe (Map Text (Value Text)) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Map Text (Value Text))
customAttributes,
               Key -> CustomerProfileAttributesProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"CustomerProfileAttributes"
                 (CustomerProfileAttributesProperty -> (Key, Value))
-> Maybe CustomerProfileAttributesProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe CustomerProfileAttributesProperty
customerProfileAttributes,
               Key -> SystemAttributesProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"SystemAttributes" (SystemAttributesProperty -> (Key, Value))
-> Maybe SystemAttributesProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe SystemAttributesProperty
systemAttributes]))
instance Property "AgentAttributes" MessageTemplateAttributesProperty where
  type PropertyType "AgentAttributes" MessageTemplateAttributesProperty = AgentAttributesProperty
  set :: PropertyType "AgentAttributes" MessageTemplateAttributesProperty
-> MessageTemplateAttributesProperty
-> MessageTemplateAttributesProperty
set PropertyType "AgentAttributes" MessageTemplateAttributesProperty
newValue MessageTemplateAttributesProperty {Maybe (Map Text (Value Text))
Maybe AgentAttributesProperty
Maybe CustomerProfileAttributesProperty
Maybe SystemAttributesProperty
()
haddock_workaround_ :: MessageTemplateAttributesProperty -> ()
agentAttributes :: MessageTemplateAttributesProperty -> Maybe AgentAttributesProperty
customAttributes :: MessageTemplateAttributesProperty -> Maybe (Map Text (Value Text))
customerProfileAttributes :: MessageTemplateAttributesProperty
-> Maybe CustomerProfileAttributesProperty
systemAttributes :: MessageTemplateAttributesProperty -> Maybe SystemAttributesProperty
haddock_workaround_ :: ()
agentAttributes :: Maybe AgentAttributesProperty
customAttributes :: Maybe (Map Text (Value Text))
customerProfileAttributes :: Maybe CustomerProfileAttributesProperty
systemAttributes :: Maybe SystemAttributesProperty
..}
    = MessageTemplateAttributesProperty
        {agentAttributes :: Maybe AgentAttributesProperty
agentAttributes = AgentAttributesProperty -> Maybe AgentAttributesProperty
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "AgentAttributes" MessageTemplateAttributesProperty
AgentAttributesProperty
newValue, Maybe (Map Text (Value Text))
Maybe CustomerProfileAttributesProperty
Maybe SystemAttributesProperty
()
haddock_workaround_ :: ()
customAttributes :: Maybe (Map Text (Value Text))
customerProfileAttributes :: Maybe CustomerProfileAttributesProperty
systemAttributes :: Maybe SystemAttributesProperty
haddock_workaround_ :: ()
customAttributes :: Maybe (Map Text (Value Text))
customerProfileAttributes :: Maybe CustomerProfileAttributesProperty
systemAttributes :: Maybe SystemAttributesProperty
..}
instance Property "CustomAttributes" MessageTemplateAttributesProperty where
  type PropertyType "CustomAttributes" MessageTemplateAttributesProperty = Prelude.Map Prelude.Text (Value Prelude.Text)
  set :: PropertyType "CustomAttributes" MessageTemplateAttributesProperty
-> MessageTemplateAttributesProperty
-> MessageTemplateAttributesProperty
set PropertyType "CustomAttributes" MessageTemplateAttributesProperty
newValue MessageTemplateAttributesProperty {Maybe (Map Text (Value Text))
Maybe AgentAttributesProperty
Maybe CustomerProfileAttributesProperty
Maybe SystemAttributesProperty
()
haddock_workaround_ :: MessageTemplateAttributesProperty -> ()
agentAttributes :: MessageTemplateAttributesProperty -> Maybe AgentAttributesProperty
customAttributes :: MessageTemplateAttributesProperty -> Maybe (Map Text (Value Text))
customerProfileAttributes :: MessageTemplateAttributesProperty
-> Maybe CustomerProfileAttributesProperty
systemAttributes :: MessageTemplateAttributesProperty -> Maybe SystemAttributesProperty
haddock_workaround_ :: ()
agentAttributes :: Maybe AgentAttributesProperty
customAttributes :: Maybe (Map Text (Value Text))
customerProfileAttributes :: Maybe CustomerProfileAttributesProperty
systemAttributes :: Maybe SystemAttributesProperty
..}
    = MessageTemplateAttributesProperty
        {customAttributes :: Maybe (Map Text (Value Text))
customAttributes = Map Text (Value Text) -> Maybe (Map Text (Value Text))
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure Map Text (Value Text)
PropertyType "CustomAttributes" MessageTemplateAttributesProperty
newValue, Maybe AgentAttributesProperty
Maybe CustomerProfileAttributesProperty
Maybe SystemAttributesProperty
()
haddock_workaround_ :: ()
agentAttributes :: Maybe AgentAttributesProperty
customerProfileAttributes :: Maybe CustomerProfileAttributesProperty
systemAttributes :: Maybe SystemAttributesProperty
haddock_workaround_ :: ()
agentAttributes :: Maybe AgentAttributesProperty
customerProfileAttributes :: Maybe CustomerProfileAttributesProperty
systemAttributes :: Maybe SystemAttributesProperty
..}
instance Property "CustomerProfileAttributes" MessageTemplateAttributesProperty where
  type PropertyType "CustomerProfileAttributes" MessageTemplateAttributesProperty = CustomerProfileAttributesProperty
  set :: PropertyType
  "CustomerProfileAttributes" MessageTemplateAttributesProperty
-> MessageTemplateAttributesProperty
-> MessageTemplateAttributesProperty
set PropertyType
  "CustomerProfileAttributes" MessageTemplateAttributesProperty
newValue MessageTemplateAttributesProperty {Maybe (Map Text (Value Text))
Maybe AgentAttributesProperty
Maybe CustomerProfileAttributesProperty
Maybe SystemAttributesProperty
()
haddock_workaround_ :: MessageTemplateAttributesProperty -> ()
agentAttributes :: MessageTemplateAttributesProperty -> Maybe AgentAttributesProperty
customAttributes :: MessageTemplateAttributesProperty -> Maybe (Map Text (Value Text))
customerProfileAttributes :: MessageTemplateAttributesProperty
-> Maybe CustomerProfileAttributesProperty
systemAttributes :: MessageTemplateAttributesProperty -> Maybe SystemAttributesProperty
haddock_workaround_ :: ()
agentAttributes :: Maybe AgentAttributesProperty
customAttributes :: Maybe (Map Text (Value Text))
customerProfileAttributes :: Maybe CustomerProfileAttributesProperty
systemAttributes :: Maybe SystemAttributesProperty
..}
    = MessageTemplateAttributesProperty
        {customerProfileAttributes :: Maybe CustomerProfileAttributesProperty
customerProfileAttributes = CustomerProfileAttributesProperty
-> Maybe CustomerProfileAttributesProperty
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType
  "CustomerProfileAttributes" MessageTemplateAttributesProperty
CustomerProfileAttributesProperty
newValue, Maybe (Map Text (Value Text))
Maybe AgentAttributesProperty
Maybe SystemAttributesProperty
()
haddock_workaround_ :: ()
agentAttributes :: Maybe AgentAttributesProperty
customAttributes :: Maybe (Map Text (Value Text))
systemAttributes :: Maybe SystemAttributesProperty
haddock_workaround_ :: ()
agentAttributes :: Maybe AgentAttributesProperty
customAttributes :: Maybe (Map Text (Value Text))
systemAttributes :: Maybe SystemAttributesProperty
..}
instance Property "SystemAttributes" MessageTemplateAttributesProperty where
  type PropertyType "SystemAttributes" MessageTemplateAttributesProperty = SystemAttributesProperty
  set :: PropertyType "SystemAttributes" MessageTemplateAttributesProperty
-> MessageTemplateAttributesProperty
-> MessageTemplateAttributesProperty
set PropertyType "SystemAttributes" MessageTemplateAttributesProperty
newValue MessageTemplateAttributesProperty {Maybe (Map Text (Value Text))
Maybe AgentAttributesProperty
Maybe CustomerProfileAttributesProperty
Maybe SystemAttributesProperty
()
haddock_workaround_ :: MessageTemplateAttributesProperty -> ()
agentAttributes :: MessageTemplateAttributesProperty -> Maybe AgentAttributesProperty
customAttributes :: MessageTemplateAttributesProperty -> Maybe (Map Text (Value Text))
customerProfileAttributes :: MessageTemplateAttributesProperty
-> Maybe CustomerProfileAttributesProperty
systemAttributes :: MessageTemplateAttributesProperty -> Maybe SystemAttributesProperty
haddock_workaround_ :: ()
agentAttributes :: Maybe AgentAttributesProperty
customAttributes :: Maybe (Map Text (Value Text))
customerProfileAttributes :: Maybe CustomerProfileAttributesProperty
systemAttributes :: Maybe SystemAttributesProperty
..}
    = MessageTemplateAttributesProperty
        {systemAttributes :: Maybe SystemAttributesProperty
systemAttributes = SystemAttributesProperty -> Maybe SystemAttributesProperty
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "SystemAttributes" MessageTemplateAttributesProperty
SystemAttributesProperty
newValue, Maybe (Map Text (Value Text))
Maybe AgentAttributesProperty
Maybe CustomerProfileAttributesProperty
()
haddock_workaround_ :: ()
agentAttributes :: Maybe AgentAttributesProperty
customAttributes :: Maybe (Map Text (Value Text))
customerProfileAttributes :: Maybe CustomerProfileAttributesProperty
haddock_workaround_ :: ()
agentAttributes :: Maybe AgentAttributesProperty
customAttributes :: Maybe (Map Text (Value Text))
customerProfileAttributes :: Maybe CustomerProfileAttributesProperty
..}