module Stratosphere.Pinpoint.EmailTemplate (
        EmailTemplate(..), mkEmailTemplate
    ) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data EmailTemplate
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-pinpoint-emailtemplate.html>
    EmailTemplate {EmailTemplate -> ()
haddock_workaround_ :: (),
                   -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-pinpoint-emailtemplate.html#cfn-pinpoint-emailtemplate-defaultsubstitutions>
                   EmailTemplate -> Maybe (Value Text)
defaultSubstitutions :: (Prelude.Maybe (Value Prelude.Text)),
                   -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-pinpoint-emailtemplate.html#cfn-pinpoint-emailtemplate-htmlpart>
                   EmailTemplate -> Maybe (Value Text)
htmlPart :: (Prelude.Maybe (Value Prelude.Text)),
                   -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-pinpoint-emailtemplate.html#cfn-pinpoint-emailtemplate-subject>
                   EmailTemplate -> Value Text
subject :: (Value Prelude.Text),
                   -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-pinpoint-emailtemplate.html#cfn-pinpoint-emailtemplate-tags>
                   EmailTemplate -> Maybe Object
tags :: (Prelude.Maybe JSON.Object),
                   -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-pinpoint-emailtemplate.html#cfn-pinpoint-emailtemplate-templatedescription>
                   EmailTemplate -> Maybe (Value Text)
templateDescription :: (Prelude.Maybe (Value Prelude.Text)),
                   -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-pinpoint-emailtemplate.html#cfn-pinpoint-emailtemplate-templatename>
                   EmailTemplate -> Value Text
templateName :: (Value Prelude.Text),
                   -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-pinpoint-emailtemplate.html#cfn-pinpoint-emailtemplate-textpart>
                   EmailTemplate -> Maybe (Value Text)
textPart :: (Prelude.Maybe (Value Prelude.Text))}
  deriving stock (EmailTemplate -> EmailTemplate -> Bool
(EmailTemplate -> EmailTemplate -> Bool)
-> (EmailTemplate -> EmailTemplate -> Bool) -> Eq EmailTemplate
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: EmailTemplate -> EmailTemplate -> Bool
== :: EmailTemplate -> EmailTemplate -> Bool
$c/= :: EmailTemplate -> EmailTemplate -> Bool
/= :: EmailTemplate -> EmailTemplate -> Bool
Prelude.Eq, Int -> EmailTemplate -> ShowS
[EmailTemplate] -> ShowS
EmailTemplate -> String
(Int -> EmailTemplate -> ShowS)
-> (EmailTemplate -> String)
-> ([EmailTemplate] -> ShowS)
-> Show EmailTemplate
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> EmailTemplate -> ShowS
showsPrec :: Int -> EmailTemplate -> ShowS
$cshow :: EmailTemplate -> String
show :: EmailTemplate -> String
$cshowList :: [EmailTemplate] -> ShowS
showList :: [EmailTemplate] -> ShowS
Prelude.Show)
mkEmailTemplate ::
  Value Prelude.Text -> Value Prelude.Text -> EmailTemplate
mkEmailTemplate :: Value Text -> Value Text -> EmailTemplate
mkEmailTemplate Value Text
subject Value Text
templateName
  = EmailTemplate
      {haddock_workaround_ :: ()
haddock_workaround_ = (), subject :: Value Text
subject = Value Text
subject,
       templateName :: Value Text
templateName = Value Text
templateName,
       defaultSubstitutions :: Maybe (Value Text)
defaultSubstitutions = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing, htmlPart :: Maybe (Value Text)
htmlPart = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing,
       tags :: Maybe Object
tags = Maybe Object
forall a. Maybe a
Prelude.Nothing, templateDescription :: Maybe (Value Text)
templateDescription = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing,
       textPart :: Maybe (Value Text)
textPart = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties EmailTemplate where
  toResourceProperties :: EmailTemplate -> ResourceProperties
toResourceProperties EmailTemplate {Maybe Object
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: EmailTemplate -> ()
defaultSubstitutions :: EmailTemplate -> Maybe (Value Text)
htmlPart :: EmailTemplate -> Maybe (Value Text)
subject :: EmailTemplate -> Value Text
tags :: EmailTemplate -> Maybe Object
templateDescription :: EmailTemplate -> Maybe (Value Text)
templateName :: EmailTemplate -> Value Text
textPart :: EmailTemplate -> Maybe (Value Text)
haddock_workaround_ :: ()
defaultSubstitutions :: Maybe (Value Text)
htmlPart :: Maybe (Value Text)
subject :: Value Text
tags :: Maybe Object
templateDescription :: Maybe (Value Text)
templateName :: Value Text
textPart :: Maybe (Value Text)
..}
    = ResourceProperties
        {awsType :: Text
awsType = Text
"AWS::Pinpoint::EmailTemplate",
         supportsTags :: Bool
supportsTags = Bool
Prelude.True,
         properties :: Object
properties = [Item Object] -> Object
forall l. IsList l => [Item l] -> l
Prelude.fromList
                        ([(Key, Value)] -> [(Key, Value)] -> [(Key, Value)]
forall a. Semigroup a => a -> a -> a
(Prelude.<>)
                           [Key
"Subject" Key -> 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..= Value Text
subject, Key
"TemplateName" Key -> 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..= Value Text
templateName]
                           ([Maybe (Key, Value)] -> [(Key, Value)]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
                              [Key -> 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
"DefaultSubstitutions" (Value Text -> (Key, Value))
-> Maybe (Value Text) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Text)
defaultSubstitutions,
                               Key -> 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
"HtmlPart" (Value Text -> (Key, Value))
-> Maybe (Value Text) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Text)
htmlPart,
                               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
"Tags" (Object -> (Key, Value)) -> Maybe Object -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Object
tags,
                               Key -> 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
"TemplateDescription" (Value Text -> (Key, Value))
-> Maybe (Value Text) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Text)
templateDescription,
                               Key -> 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
"TextPart" (Value Text -> (Key, Value))
-> Maybe (Value Text) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Text)
textPart]))}
instance JSON.ToJSON EmailTemplate where
  toJSON :: EmailTemplate -> Value
toJSON EmailTemplate {Maybe Object
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: EmailTemplate -> ()
defaultSubstitutions :: EmailTemplate -> Maybe (Value Text)
htmlPart :: EmailTemplate -> Maybe (Value Text)
subject :: EmailTemplate -> Value Text
tags :: EmailTemplate -> Maybe Object
templateDescription :: EmailTemplate -> Maybe (Value Text)
templateName :: EmailTemplate -> Value Text
textPart :: EmailTemplate -> Maybe (Value Text)
haddock_workaround_ :: ()
defaultSubstitutions :: Maybe (Value Text)
htmlPart :: Maybe (Value Text)
subject :: Value Text
tags :: Maybe Object
templateDescription :: Maybe (Value Text)
templateName :: Value Text
textPart :: Maybe (Value Text)
..}
    = [(Key, Value)] -> Value
JSON.object
        ([Item [(Key, Value)]] -> [(Key, Value)]
forall l. IsList l => [Item l] -> l
Prelude.fromList
           ([(Key, Value)] -> [(Key, Value)] -> [(Key, Value)]
forall a. Semigroup a => a -> a -> a
(Prelude.<>)
              [Key
"Subject" Key -> 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..= Value Text
subject, Key
"TemplateName" Key -> 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..= Value Text
templateName]
              ([Maybe (Key, Value)] -> [(Key, Value)]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
                 [Key -> 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
"DefaultSubstitutions" (Value Text -> (Key, Value))
-> Maybe (Value Text) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Text)
defaultSubstitutions,
                  Key -> 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
"HtmlPart" (Value Text -> (Key, Value))
-> Maybe (Value Text) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Text)
htmlPart,
                  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
"Tags" (Object -> (Key, Value)) -> Maybe Object -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Object
tags,
                  Key -> 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
"TemplateDescription" (Value Text -> (Key, Value))
-> Maybe (Value Text) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Text)
templateDescription,
                  Key -> 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
"TextPart" (Value Text -> (Key, Value))
-> Maybe (Value Text) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Text)
textPart])))
instance Property "DefaultSubstitutions" EmailTemplate where
  type PropertyType "DefaultSubstitutions" EmailTemplate = Value Prelude.Text
  set :: PropertyType "DefaultSubstitutions" EmailTemplate
-> EmailTemplate -> EmailTemplate
set PropertyType "DefaultSubstitutions" EmailTemplate
newValue EmailTemplate {Maybe Object
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: EmailTemplate -> ()
defaultSubstitutions :: EmailTemplate -> Maybe (Value Text)
htmlPart :: EmailTemplate -> Maybe (Value Text)
subject :: EmailTemplate -> Value Text
tags :: EmailTemplate -> Maybe Object
templateDescription :: EmailTemplate -> Maybe (Value Text)
templateName :: EmailTemplate -> Value Text
textPart :: EmailTemplate -> Maybe (Value Text)
haddock_workaround_ :: ()
defaultSubstitutions :: Maybe (Value Text)
htmlPart :: Maybe (Value Text)
subject :: Value Text
tags :: Maybe Object
templateDescription :: Maybe (Value Text)
templateName :: Value Text
textPart :: Maybe (Value Text)
..}
    = EmailTemplate {defaultSubstitutions :: Maybe (Value Text)
defaultSubstitutions = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "DefaultSubstitutions" EmailTemplate
Value Text
newValue, Maybe Object
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ()
htmlPart :: Maybe (Value Text)
subject :: Value Text
tags :: Maybe Object
templateDescription :: Maybe (Value Text)
templateName :: Value Text
textPart :: Maybe (Value Text)
haddock_workaround_ :: ()
htmlPart :: Maybe (Value Text)
subject :: Value Text
tags :: Maybe Object
templateDescription :: Maybe (Value Text)
templateName :: Value Text
textPart :: Maybe (Value Text)
..}
instance Property "HtmlPart" EmailTemplate where
  type PropertyType "HtmlPart" EmailTemplate = Value Prelude.Text
  set :: PropertyType "HtmlPart" EmailTemplate
-> EmailTemplate -> EmailTemplate
set PropertyType "HtmlPart" EmailTemplate
newValue EmailTemplate {Maybe Object
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: EmailTemplate -> ()
defaultSubstitutions :: EmailTemplate -> Maybe (Value Text)
htmlPart :: EmailTemplate -> Maybe (Value Text)
subject :: EmailTemplate -> Value Text
tags :: EmailTemplate -> Maybe Object
templateDescription :: EmailTemplate -> Maybe (Value Text)
templateName :: EmailTemplate -> Value Text
textPart :: EmailTemplate -> Maybe (Value Text)
haddock_workaround_ :: ()
defaultSubstitutions :: Maybe (Value Text)
htmlPart :: Maybe (Value Text)
subject :: Value Text
tags :: Maybe Object
templateDescription :: Maybe (Value Text)
templateName :: Value Text
textPart :: Maybe (Value Text)
..}
    = EmailTemplate {htmlPart :: Maybe (Value Text)
htmlPart = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "HtmlPart" EmailTemplate
Value Text
newValue, Maybe Object
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ()
defaultSubstitutions :: Maybe (Value Text)
subject :: Value Text
tags :: Maybe Object
templateDescription :: Maybe (Value Text)
templateName :: Value Text
textPart :: Maybe (Value Text)
haddock_workaround_ :: ()
defaultSubstitutions :: Maybe (Value Text)
subject :: Value Text
tags :: Maybe Object
templateDescription :: Maybe (Value Text)
templateName :: Value Text
textPart :: Maybe (Value Text)
..}
instance Property "Subject" EmailTemplate where
  type PropertyType "Subject" EmailTemplate = Value Prelude.Text
  set :: PropertyType "Subject" EmailTemplate
-> EmailTemplate -> EmailTemplate
set PropertyType "Subject" EmailTemplate
newValue EmailTemplate {Maybe Object
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: EmailTemplate -> ()
defaultSubstitutions :: EmailTemplate -> Maybe (Value Text)
htmlPart :: EmailTemplate -> Maybe (Value Text)
subject :: EmailTemplate -> Value Text
tags :: EmailTemplate -> Maybe Object
templateDescription :: EmailTemplate -> Maybe (Value Text)
templateName :: EmailTemplate -> Value Text
textPart :: EmailTemplate -> Maybe (Value Text)
haddock_workaround_ :: ()
defaultSubstitutions :: Maybe (Value Text)
htmlPart :: Maybe (Value Text)
subject :: Value Text
tags :: Maybe Object
templateDescription :: Maybe (Value Text)
templateName :: Value Text
textPart :: Maybe (Value Text)
..}
    = EmailTemplate {subject :: Value Text
subject = PropertyType "Subject" EmailTemplate
Value Text
newValue, Maybe Object
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ()
defaultSubstitutions :: Maybe (Value Text)
htmlPart :: Maybe (Value Text)
tags :: Maybe Object
templateDescription :: Maybe (Value Text)
templateName :: Value Text
textPart :: Maybe (Value Text)
haddock_workaround_ :: ()
defaultSubstitutions :: Maybe (Value Text)
htmlPart :: Maybe (Value Text)
tags :: Maybe Object
templateDescription :: Maybe (Value Text)
templateName :: Value Text
textPart :: Maybe (Value Text)
..}
instance Property "Tags" EmailTemplate where
  type PropertyType "Tags" EmailTemplate = JSON.Object
  set :: PropertyType "Tags" EmailTemplate -> EmailTemplate -> EmailTemplate
set PropertyType "Tags" EmailTemplate
newValue EmailTemplate {Maybe Object
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: EmailTemplate -> ()
defaultSubstitutions :: EmailTemplate -> Maybe (Value Text)
htmlPart :: EmailTemplate -> Maybe (Value Text)
subject :: EmailTemplate -> Value Text
tags :: EmailTemplate -> Maybe Object
templateDescription :: EmailTemplate -> Maybe (Value Text)
templateName :: EmailTemplate -> Value Text
textPart :: EmailTemplate -> Maybe (Value Text)
haddock_workaround_ :: ()
defaultSubstitutions :: Maybe (Value Text)
htmlPart :: Maybe (Value Text)
subject :: Value Text
tags :: Maybe Object
templateDescription :: Maybe (Value Text)
templateName :: Value Text
textPart :: Maybe (Value Text)
..}
    = EmailTemplate {tags :: Maybe Object
tags = Object -> Maybe Object
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure Object
PropertyType "Tags" EmailTemplate
newValue, Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ()
defaultSubstitutions :: Maybe (Value Text)
htmlPart :: Maybe (Value Text)
subject :: Value Text
templateDescription :: Maybe (Value Text)
templateName :: Value Text
textPart :: Maybe (Value Text)
haddock_workaround_ :: ()
defaultSubstitutions :: Maybe (Value Text)
htmlPart :: Maybe (Value Text)
subject :: Value Text
templateDescription :: Maybe (Value Text)
templateName :: Value Text
textPart :: Maybe (Value Text)
..}
instance Property "TemplateDescription" EmailTemplate where
  type PropertyType "TemplateDescription" EmailTemplate = Value Prelude.Text
  set :: PropertyType "TemplateDescription" EmailTemplate
-> EmailTemplate -> EmailTemplate
set PropertyType "TemplateDescription" EmailTemplate
newValue EmailTemplate {Maybe Object
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: EmailTemplate -> ()
defaultSubstitutions :: EmailTemplate -> Maybe (Value Text)
htmlPart :: EmailTemplate -> Maybe (Value Text)
subject :: EmailTemplate -> Value Text
tags :: EmailTemplate -> Maybe Object
templateDescription :: EmailTemplate -> Maybe (Value Text)
templateName :: EmailTemplate -> Value Text
textPart :: EmailTemplate -> Maybe (Value Text)
haddock_workaround_ :: ()
defaultSubstitutions :: Maybe (Value Text)
htmlPart :: Maybe (Value Text)
subject :: Value Text
tags :: Maybe Object
templateDescription :: Maybe (Value Text)
templateName :: Value Text
textPart :: Maybe (Value Text)
..}
    = EmailTemplate {templateDescription :: Maybe (Value Text)
templateDescription = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "TemplateDescription" EmailTemplate
Value Text
newValue, Maybe Object
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ()
defaultSubstitutions :: Maybe (Value Text)
htmlPart :: Maybe (Value Text)
subject :: Value Text
tags :: Maybe Object
templateName :: Value Text
textPart :: Maybe (Value Text)
haddock_workaround_ :: ()
defaultSubstitutions :: Maybe (Value Text)
htmlPart :: Maybe (Value Text)
subject :: Value Text
tags :: Maybe Object
templateName :: Value Text
textPart :: Maybe (Value Text)
..}
instance Property "TemplateName" EmailTemplate where
  type PropertyType "TemplateName" EmailTemplate = Value Prelude.Text
  set :: PropertyType "TemplateName" EmailTemplate
-> EmailTemplate -> EmailTemplate
set PropertyType "TemplateName" EmailTemplate
newValue EmailTemplate {Maybe Object
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: EmailTemplate -> ()
defaultSubstitutions :: EmailTemplate -> Maybe (Value Text)
htmlPart :: EmailTemplate -> Maybe (Value Text)
subject :: EmailTemplate -> Value Text
tags :: EmailTemplate -> Maybe Object
templateDescription :: EmailTemplate -> Maybe (Value Text)
templateName :: EmailTemplate -> Value Text
textPart :: EmailTemplate -> Maybe (Value Text)
haddock_workaround_ :: ()
defaultSubstitutions :: Maybe (Value Text)
htmlPart :: Maybe (Value Text)
subject :: Value Text
tags :: Maybe Object
templateDescription :: Maybe (Value Text)
templateName :: Value Text
textPart :: Maybe (Value Text)
..}
    = EmailTemplate {templateName :: Value Text
templateName = PropertyType "TemplateName" EmailTemplate
Value Text
newValue, Maybe Object
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ()
defaultSubstitutions :: Maybe (Value Text)
htmlPart :: Maybe (Value Text)
subject :: Value Text
tags :: Maybe Object
templateDescription :: Maybe (Value Text)
textPart :: Maybe (Value Text)
haddock_workaround_ :: ()
defaultSubstitutions :: Maybe (Value Text)
htmlPart :: Maybe (Value Text)
subject :: Value Text
tags :: Maybe Object
templateDescription :: Maybe (Value Text)
textPart :: Maybe (Value Text)
..}
instance Property "TextPart" EmailTemplate where
  type PropertyType "TextPart" EmailTemplate = Value Prelude.Text
  set :: PropertyType "TextPart" EmailTemplate
-> EmailTemplate -> EmailTemplate
set PropertyType "TextPart" EmailTemplate
newValue EmailTemplate {Maybe Object
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: EmailTemplate -> ()
defaultSubstitutions :: EmailTemplate -> Maybe (Value Text)
htmlPart :: EmailTemplate -> Maybe (Value Text)
subject :: EmailTemplate -> Value Text
tags :: EmailTemplate -> Maybe Object
templateDescription :: EmailTemplate -> Maybe (Value Text)
templateName :: EmailTemplate -> Value Text
textPart :: EmailTemplate -> Maybe (Value Text)
haddock_workaround_ :: ()
defaultSubstitutions :: Maybe (Value Text)
htmlPart :: Maybe (Value Text)
subject :: Value Text
tags :: Maybe Object
templateDescription :: Maybe (Value Text)
templateName :: Value Text
textPart :: Maybe (Value Text)
..}
    = EmailTemplate {textPart :: Maybe (Value Text)
textPart = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "TextPart" EmailTemplate
Value Text
newValue, Maybe Object
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ()
defaultSubstitutions :: Maybe (Value Text)
htmlPart :: Maybe (Value Text)
subject :: Value Text
tags :: Maybe Object
templateDescription :: Maybe (Value Text)
templateName :: Value Text
haddock_workaround_ :: ()
defaultSubstitutions :: Maybe (Value Text)
htmlPart :: Maybe (Value Text)
subject :: Value Text
tags :: Maybe Object
templateDescription :: Maybe (Value Text)
templateName :: Value Text
..}