{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DuplicateRecordFields #-}
{-# LANGUAGE NamedFieldPuns #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
{-# OPTIONS_GHC -fno-warn-unused-matches #-}

-- Derived from AWS service descriptions, licensed under Apache 2.0.

-- |
-- Module      : Amazonka.Pinpoint.Types.DefaultPushNotificationMessage
-- Copyright   : (c) 2013-2023 Brendan Hay
-- License     : Mozilla Public License, v. 2.0.
-- Maintainer  : Brendan Hay
-- Stability   : auto-generated
-- Portability : non-portable (GHC extensions)
module Amazonka.Pinpoint.Types.DefaultPushNotificationMessage where

import qualified Amazonka.Core as Core
import qualified Amazonka.Core.Lens.Internal as Lens
import qualified Amazonka.Data as Data
import Amazonka.Pinpoint.Types.Action
import qualified Amazonka.Prelude as Prelude

-- | Specifies the default settings and content for a push notification
-- that\'s sent directly to an endpoint.
--
-- /See:/ 'newDefaultPushNotificationMessage' smart constructor.
data DefaultPushNotificationMessage = DefaultPushNotificationMessage'
  { -- | The default action to occur if a recipient taps the push notification.
    -- Valid values are:
    --
    -- -   OPEN_APP - Your app opens or it becomes the foreground app if it was
    --     sent to the background. This is the default action.
    --
    -- -   DEEP_LINK - Your app opens and displays a designated user interface
    --     in the app. This setting uses the deep-linking features of the iOS
    --     and Android platforms.
    --
    -- -   URL - The default mobile browser on the recipient\'s device opens
    --     and loads the web page at a URL that you specify.
    DefaultPushNotificationMessage -> Maybe Action
action :: Prelude.Maybe Action,
    -- | The default body of the notification message.
    DefaultPushNotificationMessage -> Maybe Text
body :: Prelude.Maybe Prelude.Text,
    -- | The JSON data payload to use for the default push notification, if the
    -- notification is a silent push notification. This payload is added to the
    -- data.pinpoint.jsonBody object of the notification.
    DefaultPushNotificationMessage -> Maybe (HashMap Text Text)
data' :: Prelude.Maybe (Prelude.HashMap Prelude.Text Prelude.Text),
    -- | Specifies whether the default notification is a silent push
    -- notification, which is a push notification that doesn\'t display on a
    -- recipient\'s device. Silent push notifications can be used for cases
    -- such as updating an app\'s configuration or delivering messages to an
    -- in-app notification center.
    DefaultPushNotificationMessage -> Maybe Bool
silentPush :: Prelude.Maybe Prelude.Bool,
    -- | The default message variables to use in the notification message. You
    -- can override the default variables with individual address variables.
    DefaultPushNotificationMessage -> Maybe (HashMap Text [Text])
substitutions :: Prelude.Maybe (Prelude.HashMap Prelude.Text [Prelude.Text]),
    -- | The default title to display above the notification message on a
    -- recipient\'s device.
    DefaultPushNotificationMessage -> Maybe Text
title :: Prelude.Maybe Prelude.Text,
    -- | The default URL to open in a recipient\'s default mobile browser, if a
    -- recipient taps the push notification and the value of the Action
    -- property is URL.
    DefaultPushNotificationMessage -> Maybe Text
url :: Prelude.Maybe Prelude.Text
  }
  deriving (DefaultPushNotificationMessage
-> DefaultPushNotificationMessage -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: DefaultPushNotificationMessage
-> DefaultPushNotificationMessage -> Bool
$c/= :: DefaultPushNotificationMessage
-> DefaultPushNotificationMessage -> Bool
== :: DefaultPushNotificationMessage
-> DefaultPushNotificationMessage -> Bool
$c== :: DefaultPushNotificationMessage
-> DefaultPushNotificationMessage -> Bool
Prelude.Eq, ReadPrec [DefaultPushNotificationMessage]
ReadPrec DefaultPushNotificationMessage
Int -> ReadS DefaultPushNotificationMessage
ReadS [DefaultPushNotificationMessage]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [DefaultPushNotificationMessage]
$creadListPrec :: ReadPrec [DefaultPushNotificationMessage]
readPrec :: ReadPrec DefaultPushNotificationMessage
$creadPrec :: ReadPrec DefaultPushNotificationMessage
readList :: ReadS [DefaultPushNotificationMessage]
$creadList :: ReadS [DefaultPushNotificationMessage]
readsPrec :: Int -> ReadS DefaultPushNotificationMessage
$creadsPrec :: Int -> ReadS DefaultPushNotificationMessage
Prelude.Read, Int -> DefaultPushNotificationMessage -> ShowS
[DefaultPushNotificationMessage] -> ShowS
DefaultPushNotificationMessage -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [DefaultPushNotificationMessage] -> ShowS
$cshowList :: [DefaultPushNotificationMessage] -> ShowS
show :: DefaultPushNotificationMessage -> String
$cshow :: DefaultPushNotificationMessage -> String
showsPrec :: Int -> DefaultPushNotificationMessage -> ShowS
$cshowsPrec :: Int -> DefaultPushNotificationMessage -> ShowS
Prelude.Show, forall x.
Rep DefaultPushNotificationMessage x
-> DefaultPushNotificationMessage
forall x.
DefaultPushNotificationMessage
-> Rep DefaultPushNotificationMessage x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep DefaultPushNotificationMessage x
-> DefaultPushNotificationMessage
$cfrom :: forall x.
DefaultPushNotificationMessage
-> Rep DefaultPushNotificationMessage x
Prelude.Generic)

-- |
-- Create a value of 'DefaultPushNotificationMessage' with all optional fields omitted.
--
-- Use <https://hackage.haskell.org/package/generic-lens generic-lens> or <https://hackage.haskell.org/package/optics optics> to modify other optional fields.
--
-- The following record fields are available, with the corresponding lenses provided
-- for backwards compatibility:
--
-- 'action', 'defaultPushNotificationMessage_action' - The default action to occur if a recipient taps the push notification.
-- Valid values are:
--
-- -   OPEN_APP - Your app opens or it becomes the foreground app if it was
--     sent to the background. This is the default action.
--
-- -   DEEP_LINK - Your app opens and displays a designated user interface
--     in the app. This setting uses the deep-linking features of the iOS
--     and Android platforms.
--
-- -   URL - The default mobile browser on the recipient\'s device opens
--     and loads the web page at a URL that you specify.
--
-- 'body', 'defaultPushNotificationMessage_body' - The default body of the notification message.
--
-- 'data'', 'defaultPushNotificationMessage_data' - The JSON data payload to use for the default push notification, if the
-- notification is a silent push notification. This payload is added to the
-- data.pinpoint.jsonBody object of the notification.
--
-- 'silentPush', 'defaultPushNotificationMessage_silentPush' - Specifies whether the default notification is a silent push
-- notification, which is a push notification that doesn\'t display on a
-- recipient\'s device. Silent push notifications can be used for cases
-- such as updating an app\'s configuration or delivering messages to an
-- in-app notification center.
--
-- 'substitutions', 'defaultPushNotificationMessage_substitutions' - The default message variables to use in the notification message. You
-- can override the default variables with individual address variables.
--
-- 'title', 'defaultPushNotificationMessage_title' - The default title to display above the notification message on a
-- recipient\'s device.
--
-- 'url', 'defaultPushNotificationMessage_url' - The default URL to open in a recipient\'s default mobile browser, if a
-- recipient taps the push notification and the value of the Action
-- property is URL.
newDefaultPushNotificationMessage ::
  DefaultPushNotificationMessage
newDefaultPushNotificationMessage :: DefaultPushNotificationMessage
newDefaultPushNotificationMessage =
  DefaultPushNotificationMessage'
    { $sel:action:DefaultPushNotificationMessage' :: Maybe Action
action =
        forall a. Maybe a
Prelude.Nothing,
      $sel:body:DefaultPushNotificationMessage' :: Maybe Text
body = forall a. Maybe a
Prelude.Nothing,
      $sel:data':DefaultPushNotificationMessage' :: Maybe (HashMap Text Text)
data' = forall a. Maybe a
Prelude.Nothing,
      $sel:silentPush:DefaultPushNotificationMessage' :: Maybe Bool
silentPush = forall a. Maybe a
Prelude.Nothing,
      $sel:substitutions:DefaultPushNotificationMessage' :: Maybe (HashMap Text [Text])
substitutions = forall a. Maybe a
Prelude.Nothing,
      $sel:title:DefaultPushNotificationMessage' :: Maybe Text
title = forall a. Maybe a
Prelude.Nothing,
      $sel:url:DefaultPushNotificationMessage' :: Maybe Text
url = forall a. Maybe a
Prelude.Nothing
    }

-- | The default action to occur if a recipient taps the push notification.
-- Valid values are:
--
-- -   OPEN_APP - Your app opens or it becomes the foreground app if it was
--     sent to the background. This is the default action.
--
-- -   DEEP_LINK - Your app opens and displays a designated user interface
--     in the app. This setting uses the deep-linking features of the iOS
--     and Android platforms.
--
-- -   URL - The default mobile browser on the recipient\'s device opens
--     and loads the web page at a URL that you specify.
defaultPushNotificationMessage_action :: Lens.Lens' DefaultPushNotificationMessage (Prelude.Maybe Action)
defaultPushNotificationMessage_action :: Lens' DefaultPushNotificationMessage (Maybe Action)
defaultPushNotificationMessage_action = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DefaultPushNotificationMessage' {Maybe Action
action :: Maybe Action
$sel:action:DefaultPushNotificationMessage' :: DefaultPushNotificationMessage -> Maybe Action
action} -> Maybe Action
action) (\s :: DefaultPushNotificationMessage
s@DefaultPushNotificationMessage' {} Maybe Action
a -> DefaultPushNotificationMessage
s {$sel:action:DefaultPushNotificationMessage' :: Maybe Action
action = Maybe Action
a} :: DefaultPushNotificationMessage)

-- | The default body of the notification message.
defaultPushNotificationMessage_body :: Lens.Lens' DefaultPushNotificationMessage (Prelude.Maybe Prelude.Text)
defaultPushNotificationMessage_body :: Lens' DefaultPushNotificationMessage (Maybe Text)
defaultPushNotificationMessage_body = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DefaultPushNotificationMessage' {Maybe Text
body :: Maybe Text
$sel:body:DefaultPushNotificationMessage' :: DefaultPushNotificationMessage -> Maybe Text
body} -> Maybe Text
body) (\s :: DefaultPushNotificationMessage
s@DefaultPushNotificationMessage' {} Maybe Text
a -> DefaultPushNotificationMessage
s {$sel:body:DefaultPushNotificationMessage' :: Maybe Text
body = Maybe Text
a} :: DefaultPushNotificationMessage)

-- | The JSON data payload to use for the default push notification, if the
-- notification is a silent push notification. This payload is added to the
-- data.pinpoint.jsonBody object of the notification.
defaultPushNotificationMessage_data :: Lens.Lens' DefaultPushNotificationMessage (Prelude.Maybe (Prelude.HashMap Prelude.Text Prelude.Text))
defaultPushNotificationMessage_data :: Lens' DefaultPushNotificationMessage (Maybe (HashMap Text Text))
defaultPushNotificationMessage_data = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DefaultPushNotificationMessage' {Maybe (HashMap Text Text)
data' :: Maybe (HashMap Text Text)
$sel:data':DefaultPushNotificationMessage' :: DefaultPushNotificationMessage -> Maybe (HashMap Text Text)
data'} -> Maybe (HashMap Text Text)
data') (\s :: DefaultPushNotificationMessage
s@DefaultPushNotificationMessage' {} Maybe (HashMap Text Text)
a -> DefaultPushNotificationMessage
s {$sel:data':DefaultPushNotificationMessage' :: Maybe (HashMap Text Text)
data' = Maybe (HashMap Text Text)
a} :: DefaultPushNotificationMessage) forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. 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 forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced

-- | Specifies whether the default notification is a silent push
-- notification, which is a push notification that doesn\'t display on a
-- recipient\'s device. Silent push notifications can be used for cases
-- such as updating an app\'s configuration or delivering messages to an
-- in-app notification center.
defaultPushNotificationMessage_silentPush :: Lens.Lens' DefaultPushNotificationMessage (Prelude.Maybe Prelude.Bool)
defaultPushNotificationMessage_silentPush :: Lens' DefaultPushNotificationMessage (Maybe Bool)
defaultPushNotificationMessage_silentPush = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DefaultPushNotificationMessage' {Maybe Bool
silentPush :: Maybe Bool
$sel:silentPush:DefaultPushNotificationMessage' :: DefaultPushNotificationMessage -> Maybe Bool
silentPush} -> Maybe Bool
silentPush) (\s :: DefaultPushNotificationMessage
s@DefaultPushNotificationMessage' {} Maybe Bool
a -> DefaultPushNotificationMessage
s {$sel:silentPush:DefaultPushNotificationMessage' :: Maybe Bool
silentPush = Maybe Bool
a} :: DefaultPushNotificationMessage)

-- | The default message variables to use in the notification message. You
-- can override the default variables with individual address variables.
defaultPushNotificationMessage_substitutions :: Lens.Lens' DefaultPushNotificationMessage (Prelude.Maybe (Prelude.HashMap Prelude.Text [Prelude.Text]))
defaultPushNotificationMessage_substitutions :: Lens' DefaultPushNotificationMessage (Maybe (HashMap Text [Text]))
defaultPushNotificationMessage_substitutions = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DefaultPushNotificationMessage' {Maybe (HashMap Text [Text])
substitutions :: Maybe (HashMap Text [Text])
$sel:substitutions:DefaultPushNotificationMessage' :: DefaultPushNotificationMessage -> Maybe (HashMap Text [Text])
substitutions} -> Maybe (HashMap Text [Text])
substitutions) (\s :: DefaultPushNotificationMessage
s@DefaultPushNotificationMessage' {} Maybe (HashMap Text [Text])
a -> DefaultPushNotificationMessage
s {$sel:substitutions:DefaultPushNotificationMessage' :: Maybe (HashMap Text [Text])
substitutions = Maybe (HashMap Text [Text])
a} :: DefaultPushNotificationMessage) forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. 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 forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced

-- | The default title to display above the notification message on a
-- recipient\'s device.
defaultPushNotificationMessage_title :: Lens.Lens' DefaultPushNotificationMessage (Prelude.Maybe Prelude.Text)
defaultPushNotificationMessage_title :: Lens' DefaultPushNotificationMessage (Maybe Text)
defaultPushNotificationMessage_title = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DefaultPushNotificationMessage' {Maybe Text
title :: Maybe Text
$sel:title:DefaultPushNotificationMessage' :: DefaultPushNotificationMessage -> Maybe Text
title} -> Maybe Text
title) (\s :: DefaultPushNotificationMessage
s@DefaultPushNotificationMessage' {} Maybe Text
a -> DefaultPushNotificationMessage
s {$sel:title:DefaultPushNotificationMessage' :: Maybe Text
title = Maybe Text
a} :: DefaultPushNotificationMessage)

-- | The default URL to open in a recipient\'s default mobile browser, if a
-- recipient taps the push notification and the value of the Action
-- property is URL.
defaultPushNotificationMessage_url :: Lens.Lens' DefaultPushNotificationMessage (Prelude.Maybe Prelude.Text)
defaultPushNotificationMessage_url :: Lens' DefaultPushNotificationMessage (Maybe Text)
defaultPushNotificationMessage_url = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DefaultPushNotificationMessage' {Maybe Text
url :: Maybe Text
$sel:url:DefaultPushNotificationMessage' :: DefaultPushNotificationMessage -> Maybe Text
url} -> Maybe Text
url) (\s :: DefaultPushNotificationMessage
s@DefaultPushNotificationMessage' {} Maybe Text
a -> DefaultPushNotificationMessage
s {$sel:url:DefaultPushNotificationMessage' :: Maybe Text
url = Maybe Text
a} :: DefaultPushNotificationMessage)

instance
  Prelude.Hashable
    DefaultPushNotificationMessage
  where
  hashWithSalt :: Int -> DefaultPushNotificationMessage -> Int
hashWithSalt
    Int
_salt
    DefaultPushNotificationMessage' {Maybe Bool
Maybe Text
Maybe (HashMap Text [Text])
Maybe (HashMap Text Text)
Maybe Action
url :: Maybe Text
title :: Maybe Text
substitutions :: Maybe (HashMap Text [Text])
silentPush :: Maybe Bool
data' :: Maybe (HashMap Text Text)
body :: Maybe Text
action :: Maybe Action
$sel:url:DefaultPushNotificationMessage' :: DefaultPushNotificationMessage -> Maybe Text
$sel:title:DefaultPushNotificationMessage' :: DefaultPushNotificationMessage -> Maybe Text
$sel:substitutions:DefaultPushNotificationMessage' :: DefaultPushNotificationMessage -> Maybe (HashMap Text [Text])
$sel:silentPush:DefaultPushNotificationMessage' :: DefaultPushNotificationMessage -> Maybe Bool
$sel:data':DefaultPushNotificationMessage' :: DefaultPushNotificationMessage -> Maybe (HashMap Text Text)
$sel:body:DefaultPushNotificationMessage' :: DefaultPushNotificationMessage -> Maybe Text
$sel:action:DefaultPushNotificationMessage' :: DefaultPushNotificationMessage -> Maybe Action
..} =
      Int
_salt
        forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Action
action
        forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
body
        forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe (HashMap Text Text)
data'
        forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Bool
silentPush
        forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe (HashMap Text [Text])
substitutions
        forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
title
        forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
url

instance
  Prelude.NFData
    DefaultPushNotificationMessage
  where
  rnf :: DefaultPushNotificationMessage -> ()
rnf DefaultPushNotificationMessage' {Maybe Bool
Maybe Text
Maybe (HashMap Text [Text])
Maybe (HashMap Text Text)
Maybe Action
url :: Maybe Text
title :: Maybe Text
substitutions :: Maybe (HashMap Text [Text])
silentPush :: Maybe Bool
data' :: Maybe (HashMap Text Text)
body :: Maybe Text
action :: Maybe Action
$sel:url:DefaultPushNotificationMessage' :: DefaultPushNotificationMessage -> Maybe Text
$sel:title:DefaultPushNotificationMessage' :: DefaultPushNotificationMessage -> Maybe Text
$sel:substitutions:DefaultPushNotificationMessage' :: DefaultPushNotificationMessage -> Maybe (HashMap Text [Text])
$sel:silentPush:DefaultPushNotificationMessage' :: DefaultPushNotificationMessage -> Maybe Bool
$sel:data':DefaultPushNotificationMessage' :: DefaultPushNotificationMessage -> Maybe (HashMap Text Text)
$sel:body:DefaultPushNotificationMessage' :: DefaultPushNotificationMessage -> Maybe Text
$sel:action:DefaultPushNotificationMessage' :: DefaultPushNotificationMessage -> Maybe Action
..} =
    forall a. NFData a => a -> ()
Prelude.rnf Maybe Action
action
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
body
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe (HashMap Text Text)
data'
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Bool
silentPush
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe (HashMap Text [Text])
substitutions
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
title
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
url

instance Data.ToJSON DefaultPushNotificationMessage where
  toJSON :: DefaultPushNotificationMessage -> Value
toJSON DefaultPushNotificationMessage' {Maybe Bool
Maybe Text
Maybe (HashMap Text [Text])
Maybe (HashMap Text Text)
Maybe Action
url :: Maybe Text
title :: Maybe Text
substitutions :: Maybe (HashMap Text [Text])
silentPush :: Maybe Bool
data' :: Maybe (HashMap Text Text)
body :: Maybe Text
action :: Maybe Action
$sel:url:DefaultPushNotificationMessage' :: DefaultPushNotificationMessage -> Maybe Text
$sel:title:DefaultPushNotificationMessage' :: DefaultPushNotificationMessage -> Maybe Text
$sel:substitutions:DefaultPushNotificationMessage' :: DefaultPushNotificationMessage -> Maybe (HashMap Text [Text])
$sel:silentPush:DefaultPushNotificationMessage' :: DefaultPushNotificationMessage -> Maybe Bool
$sel:data':DefaultPushNotificationMessage' :: DefaultPushNotificationMessage -> Maybe (HashMap Text Text)
$sel:body:DefaultPushNotificationMessage' :: DefaultPushNotificationMessage -> Maybe Text
$sel:action:DefaultPushNotificationMessage' :: DefaultPushNotificationMessage -> Maybe Action
..} =
    [Pair] -> Value
Data.object
      ( forall a. [Maybe a] -> [a]
Prelude.catMaybes
          [ (Key
"Action" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..=) forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Action
action,
            (Key
"Body" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..=) forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Text
body,
            (Key
"Data" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..=) forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (HashMap Text Text)
data',
            (Key
"SilentPush" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..=) forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Bool
silentPush,
            (Key
"Substitutions" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..=) forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (HashMap Text [Text])
substitutions,
            (Key
"Title" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..=) forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Text
title,
            (Key
"Url" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..=) forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Text
url
          ]
      )