{-# 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.SMSTemplateResponse
-- 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.SMSTemplateResponse 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.TemplateType
import qualified Amazonka.Prelude as Prelude

-- | Provides information about the content and settings for a message
-- template that can be used in text messages that are sent through the SMS
-- channel.
--
-- /See:/ 'newSMSTemplateResponse' smart constructor.
data SMSTemplateResponse = SMSTemplateResponse'
  { -- | The Amazon Resource Name (ARN) of the message template.
    SMSTemplateResponse -> Maybe Text
arn :: Prelude.Maybe Prelude.Text,
    -- | The message body that\'s used in text messages that are based on the
    -- message template.
    SMSTemplateResponse -> Maybe Text
body :: Prelude.Maybe Prelude.Text,
    -- | The JSON object that specifies the default values that are used for
    -- message variables in the message template. This object is a set of
    -- key-value pairs. Each key defines a message variable in the template.
    -- The corresponding value defines the default value for that variable.
    SMSTemplateResponse -> Maybe Text
defaultSubstitutions :: Prelude.Maybe Prelude.Text,
    -- | The unique identifier for the recommender model that\'s used by the
    -- message template.
    SMSTemplateResponse -> Maybe Text
recommenderId :: Prelude.Maybe Prelude.Text,
    -- | The custom description of the message template.
    SMSTemplateResponse -> Maybe Text
templateDescription :: Prelude.Maybe Prelude.Text,
    -- | The unique identifier, as an integer, for the active version of the
    -- message template, or the version of the template that you specified by
    -- using the version parameter in your request.
    SMSTemplateResponse -> Maybe Text
version :: Prelude.Maybe Prelude.Text,
    -- | A string-to-string map of key-value pairs that identifies the tags that
    -- are associated with the message template. Each tag consists of a
    -- required tag key and an associated tag value.
    SMSTemplateResponse -> Maybe (HashMap Text Text)
tags :: Prelude.Maybe (Prelude.HashMap Prelude.Text Prelude.Text),
    -- | The date, in ISO 8601 format, when the message template was last
    -- modified.
    SMSTemplateResponse -> Text
lastModifiedDate :: Prelude.Text,
    -- | The date, in ISO 8601 format, when the message template was created.
    SMSTemplateResponse -> Text
creationDate :: Prelude.Text,
    -- | The name of the message template.
    SMSTemplateResponse -> Text
templateName :: Prelude.Text,
    -- | The type of channel that the message template is designed for. For an
    -- SMS template, this value is SMS.
    SMSTemplateResponse -> TemplateType
templateType :: TemplateType
  }
  deriving (SMSTemplateResponse -> SMSTemplateResponse -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: SMSTemplateResponse -> SMSTemplateResponse -> Bool
$c/= :: SMSTemplateResponse -> SMSTemplateResponse -> Bool
== :: SMSTemplateResponse -> SMSTemplateResponse -> Bool
$c== :: SMSTemplateResponse -> SMSTemplateResponse -> Bool
Prelude.Eq, ReadPrec [SMSTemplateResponse]
ReadPrec SMSTemplateResponse
Int -> ReadS SMSTemplateResponse
ReadS [SMSTemplateResponse]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [SMSTemplateResponse]
$creadListPrec :: ReadPrec [SMSTemplateResponse]
readPrec :: ReadPrec SMSTemplateResponse
$creadPrec :: ReadPrec SMSTemplateResponse
readList :: ReadS [SMSTemplateResponse]
$creadList :: ReadS [SMSTemplateResponse]
readsPrec :: Int -> ReadS SMSTemplateResponse
$creadsPrec :: Int -> ReadS SMSTemplateResponse
Prelude.Read, Int -> SMSTemplateResponse -> ShowS
[SMSTemplateResponse] -> ShowS
SMSTemplateResponse -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [SMSTemplateResponse] -> ShowS
$cshowList :: [SMSTemplateResponse] -> ShowS
show :: SMSTemplateResponse -> String
$cshow :: SMSTemplateResponse -> String
showsPrec :: Int -> SMSTemplateResponse -> ShowS
$cshowsPrec :: Int -> SMSTemplateResponse -> ShowS
Prelude.Show, forall x. Rep SMSTemplateResponse x -> SMSTemplateResponse
forall x. SMSTemplateResponse -> Rep SMSTemplateResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep SMSTemplateResponse x -> SMSTemplateResponse
$cfrom :: forall x. SMSTemplateResponse -> Rep SMSTemplateResponse x
Prelude.Generic)

-- |
-- Create a value of 'SMSTemplateResponse' 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:
--
-- 'arn', 'sMSTemplateResponse_arn' - The Amazon Resource Name (ARN) of the message template.
--
-- 'body', 'sMSTemplateResponse_body' - The message body that\'s used in text messages that are based on the
-- message template.
--
-- 'defaultSubstitutions', 'sMSTemplateResponse_defaultSubstitutions' - The JSON object that specifies the default values that are used for
-- message variables in the message template. This object is a set of
-- key-value pairs. Each key defines a message variable in the template.
-- The corresponding value defines the default value for that variable.
--
-- 'recommenderId', 'sMSTemplateResponse_recommenderId' - The unique identifier for the recommender model that\'s used by the
-- message template.
--
-- 'templateDescription', 'sMSTemplateResponse_templateDescription' - The custom description of the message template.
--
-- 'version', 'sMSTemplateResponse_version' - The unique identifier, as an integer, for the active version of the
-- message template, or the version of the template that you specified by
-- using the version parameter in your request.
--
-- 'tags', 'sMSTemplateResponse_tags' - A string-to-string map of key-value pairs that identifies the tags that
-- are associated with the message template. Each tag consists of a
-- required tag key and an associated tag value.
--
-- 'lastModifiedDate', 'sMSTemplateResponse_lastModifiedDate' - The date, in ISO 8601 format, when the message template was last
-- modified.
--
-- 'creationDate', 'sMSTemplateResponse_creationDate' - The date, in ISO 8601 format, when the message template was created.
--
-- 'templateName', 'sMSTemplateResponse_templateName' - The name of the message template.
--
-- 'templateType', 'sMSTemplateResponse_templateType' - The type of channel that the message template is designed for. For an
-- SMS template, this value is SMS.
newSMSTemplateResponse ::
  -- | 'lastModifiedDate'
  Prelude.Text ->
  -- | 'creationDate'
  Prelude.Text ->
  -- | 'templateName'
  Prelude.Text ->
  -- | 'templateType'
  TemplateType ->
  SMSTemplateResponse
newSMSTemplateResponse :: Text -> Text -> Text -> TemplateType -> SMSTemplateResponse
newSMSTemplateResponse
  Text
pLastModifiedDate_
  Text
pCreationDate_
  Text
pTemplateName_
  TemplateType
pTemplateType_ =
    SMSTemplateResponse'
      { $sel:arn:SMSTemplateResponse' :: Maybe Text
arn = forall a. Maybe a
Prelude.Nothing,
        $sel:body:SMSTemplateResponse' :: Maybe Text
body = forall a. Maybe a
Prelude.Nothing,
        $sel:defaultSubstitutions:SMSTemplateResponse' :: Maybe Text
defaultSubstitutions = forall a. Maybe a
Prelude.Nothing,
        $sel:recommenderId:SMSTemplateResponse' :: Maybe Text
recommenderId = forall a. Maybe a
Prelude.Nothing,
        $sel:templateDescription:SMSTemplateResponse' :: Maybe Text
templateDescription = forall a. Maybe a
Prelude.Nothing,
        $sel:version:SMSTemplateResponse' :: Maybe Text
version = forall a. Maybe a
Prelude.Nothing,
        $sel:tags:SMSTemplateResponse' :: Maybe (HashMap Text Text)
tags = forall a. Maybe a
Prelude.Nothing,
        $sel:lastModifiedDate:SMSTemplateResponse' :: Text
lastModifiedDate = Text
pLastModifiedDate_,
        $sel:creationDate:SMSTemplateResponse' :: Text
creationDate = Text
pCreationDate_,
        $sel:templateName:SMSTemplateResponse' :: Text
templateName = Text
pTemplateName_,
        $sel:templateType:SMSTemplateResponse' :: TemplateType
templateType = TemplateType
pTemplateType_
      }

-- | The Amazon Resource Name (ARN) of the message template.
sMSTemplateResponse_arn :: Lens.Lens' SMSTemplateResponse (Prelude.Maybe Prelude.Text)
sMSTemplateResponse_arn :: Lens' SMSTemplateResponse (Maybe Text)
sMSTemplateResponse_arn = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\SMSTemplateResponse' {Maybe Text
arn :: Maybe Text
$sel:arn:SMSTemplateResponse' :: SMSTemplateResponse -> Maybe Text
arn} -> Maybe Text
arn) (\s :: SMSTemplateResponse
s@SMSTemplateResponse' {} Maybe Text
a -> SMSTemplateResponse
s {$sel:arn:SMSTemplateResponse' :: Maybe Text
arn = Maybe Text
a} :: SMSTemplateResponse)

-- | The message body that\'s used in text messages that are based on the
-- message template.
sMSTemplateResponse_body :: Lens.Lens' SMSTemplateResponse (Prelude.Maybe Prelude.Text)
sMSTemplateResponse_body :: Lens' SMSTemplateResponse (Maybe Text)
sMSTemplateResponse_body = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\SMSTemplateResponse' {Maybe Text
body :: Maybe Text
$sel:body:SMSTemplateResponse' :: SMSTemplateResponse -> Maybe Text
body} -> Maybe Text
body) (\s :: SMSTemplateResponse
s@SMSTemplateResponse' {} Maybe Text
a -> SMSTemplateResponse
s {$sel:body:SMSTemplateResponse' :: Maybe Text
body = Maybe Text
a} :: SMSTemplateResponse)

-- | The JSON object that specifies the default values that are used for
-- message variables in the message template. This object is a set of
-- key-value pairs. Each key defines a message variable in the template.
-- The corresponding value defines the default value for that variable.
sMSTemplateResponse_defaultSubstitutions :: Lens.Lens' SMSTemplateResponse (Prelude.Maybe Prelude.Text)
sMSTemplateResponse_defaultSubstitutions :: Lens' SMSTemplateResponse (Maybe Text)
sMSTemplateResponse_defaultSubstitutions = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\SMSTemplateResponse' {Maybe Text
defaultSubstitutions :: Maybe Text
$sel:defaultSubstitutions:SMSTemplateResponse' :: SMSTemplateResponse -> Maybe Text
defaultSubstitutions} -> Maybe Text
defaultSubstitutions) (\s :: SMSTemplateResponse
s@SMSTemplateResponse' {} Maybe Text
a -> SMSTemplateResponse
s {$sel:defaultSubstitutions:SMSTemplateResponse' :: Maybe Text
defaultSubstitutions = Maybe Text
a} :: SMSTemplateResponse)

-- | The unique identifier for the recommender model that\'s used by the
-- message template.
sMSTemplateResponse_recommenderId :: Lens.Lens' SMSTemplateResponse (Prelude.Maybe Prelude.Text)
sMSTemplateResponse_recommenderId :: Lens' SMSTemplateResponse (Maybe Text)
sMSTemplateResponse_recommenderId = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\SMSTemplateResponse' {Maybe Text
recommenderId :: Maybe Text
$sel:recommenderId:SMSTemplateResponse' :: SMSTemplateResponse -> Maybe Text
recommenderId} -> Maybe Text
recommenderId) (\s :: SMSTemplateResponse
s@SMSTemplateResponse' {} Maybe Text
a -> SMSTemplateResponse
s {$sel:recommenderId:SMSTemplateResponse' :: Maybe Text
recommenderId = Maybe Text
a} :: SMSTemplateResponse)

-- | The custom description of the message template.
sMSTemplateResponse_templateDescription :: Lens.Lens' SMSTemplateResponse (Prelude.Maybe Prelude.Text)
sMSTemplateResponse_templateDescription :: Lens' SMSTemplateResponse (Maybe Text)
sMSTemplateResponse_templateDescription = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\SMSTemplateResponse' {Maybe Text
templateDescription :: Maybe Text
$sel:templateDescription:SMSTemplateResponse' :: SMSTemplateResponse -> Maybe Text
templateDescription} -> Maybe Text
templateDescription) (\s :: SMSTemplateResponse
s@SMSTemplateResponse' {} Maybe Text
a -> SMSTemplateResponse
s {$sel:templateDescription:SMSTemplateResponse' :: Maybe Text
templateDescription = Maybe Text
a} :: SMSTemplateResponse)

-- | The unique identifier, as an integer, for the active version of the
-- message template, or the version of the template that you specified by
-- using the version parameter in your request.
sMSTemplateResponse_version :: Lens.Lens' SMSTemplateResponse (Prelude.Maybe Prelude.Text)
sMSTemplateResponse_version :: Lens' SMSTemplateResponse (Maybe Text)
sMSTemplateResponse_version = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\SMSTemplateResponse' {Maybe Text
version :: Maybe Text
$sel:version:SMSTemplateResponse' :: SMSTemplateResponse -> Maybe Text
version} -> Maybe Text
version) (\s :: SMSTemplateResponse
s@SMSTemplateResponse' {} Maybe Text
a -> SMSTemplateResponse
s {$sel:version:SMSTemplateResponse' :: Maybe Text
version = Maybe Text
a} :: SMSTemplateResponse)

-- | A string-to-string map of key-value pairs that identifies the tags that
-- are associated with the message template. Each tag consists of a
-- required tag key and an associated tag value.
sMSTemplateResponse_tags :: Lens.Lens' SMSTemplateResponse (Prelude.Maybe (Prelude.HashMap Prelude.Text Prelude.Text))
sMSTemplateResponse_tags :: Lens' SMSTemplateResponse (Maybe (HashMap Text Text))
sMSTemplateResponse_tags = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\SMSTemplateResponse' {Maybe (HashMap Text Text)
tags :: Maybe (HashMap Text Text)
$sel:tags:SMSTemplateResponse' :: SMSTemplateResponse -> Maybe (HashMap Text Text)
tags} -> Maybe (HashMap Text Text)
tags) (\s :: SMSTemplateResponse
s@SMSTemplateResponse' {} Maybe (HashMap Text Text)
a -> SMSTemplateResponse
s {$sel:tags:SMSTemplateResponse' :: Maybe (HashMap Text Text)
tags = Maybe (HashMap Text Text)
a} :: SMSTemplateResponse) 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 date, in ISO 8601 format, when the message template was last
-- modified.
sMSTemplateResponse_lastModifiedDate :: Lens.Lens' SMSTemplateResponse Prelude.Text
sMSTemplateResponse_lastModifiedDate :: Lens' SMSTemplateResponse Text
sMSTemplateResponse_lastModifiedDate = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\SMSTemplateResponse' {Text
lastModifiedDate :: Text
$sel:lastModifiedDate:SMSTemplateResponse' :: SMSTemplateResponse -> Text
lastModifiedDate} -> Text
lastModifiedDate) (\s :: SMSTemplateResponse
s@SMSTemplateResponse' {} Text
a -> SMSTemplateResponse
s {$sel:lastModifiedDate:SMSTemplateResponse' :: Text
lastModifiedDate = Text
a} :: SMSTemplateResponse)

-- | The date, in ISO 8601 format, when the message template was created.
sMSTemplateResponse_creationDate :: Lens.Lens' SMSTemplateResponse Prelude.Text
sMSTemplateResponse_creationDate :: Lens' SMSTemplateResponse Text
sMSTemplateResponse_creationDate = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\SMSTemplateResponse' {Text
creationDate :: Text
$sel:creationDate:SMSTemplateResponse' :: SMSTemplateResponse -> Text
creationDate} -> Text
creationDate) (\s :: SMSTemplateResponse
s@SMSTemplateResponse' {} Text
a -> SMSTemplateResponse
s {$sel:creationDate:SMSTemplateResponse' :: Text
creationDate = Text
a} :: SMSTemplateResponse)

-- | The name of the message template.
sMSTemplateResponse_templateName :: Lens.Lens' SMSTemplateResponse Prelude.Text
sMSTemplateResponse_templateName :: Lens' SMSTemplateResponse Text
sMSTemplateResponse_templateName = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\SMSTemplateResponse' {Text
templateName :: Text
$sel:templateName:SMSTemplateResponse' :: SMSTemplateResponse -> Text
templateName} -> Text
templateName) (\s :: SMSTemplateResponse
s@SMSTemplateResponse' {} Text
a -> SMSTemplateResponse
s {$sel:templateName:SMSTemplateResponse' :: Text
templateName = Text
a} :: SMSTemplateResponse)

-- | The type of channel that the message template is designed for. For an
-- SMS template, this value is SMS.
sMSTemplateResponse_templateType :: Lens.Lens' SMSTemplateResponse TemplateType
sMSTemplateResponse_templateType :: Lens' SMSTemplateResponse TemplateType
sMSTemplateResponse_templateType = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\SMSTemplateResponse' {TemplateType
templateType :: TemplateType
$sel:templateType:SMSTemplateResponse' :: SMSTemplateResponse -> TemplateType
templateType} -> TemplateType
templateType) (\s :: SMSTemplateResponse
s@SMSTemplateResponse' {} TemplateType
a -> SMSTemplateResponse
s {$sel:templateType:SMSTemplateResponse' :: TemplateType
templateType = TemplateType
a} :: SMSTemplateResponse)

instance Data.FromJSON SMSTemplateResponse where
  parseJSON :: Value -> Parser SMSTemplateResponse
parseJSON =
    forall a. String -> (Object -> Parser a) -> Value -> Parser a
Data.withObject
      String
"SMSTemplateResponse"
      ( \Object
x ->
          Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe (HashMap Text Text)
-> Text
-> Text
-> Text
-> TemplateType
-> SMSTemplateResponse
SMSTemplateResponse'
            forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"Arn")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"Body")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"DefaultSubstitutions")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"RecommenderId")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"TemplateDescription")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"Version")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"tags" forall a. Parser (Maybe a) -> a -> Parser a
Data..!= forall a. Monoid a => a
Prelude.mempty)
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser a
Data..: Key
"LastModifiedDate")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser a
Data..: Key
"CreationDate")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser a
Data..: Key
"TemplateName")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser a
Data..: Key
"TemplateType")
      )

instance Prelude.Hashable SMSTemplateResponse where
  hashWithSalt :: Int -> SMSTemplateResponse -> Int
hashWithSalt Int
_salt SMSTemplateResponse' {Maybe Text
Maybe (HashMap Text Text)
Text
TemplateType
templateType :: TemplateType
templateName :: Text
creationDate :: Text
lastModifiedDate :: Text
tags :: Maybe (HashMap Text Text)
version :: Maybe Text
templateDescription :: Maybe Text
recommenderId :: Maybe Text
defaultSubstitutions :: Maybe Text
body :: Maybe Text
arn :: Maybe Text
$sel:templateType:SMSTemplateResponse' :: SMSTemplateResponse -> TemplateType
$sel:templateName:SMSTemplateResponse' :: SMSTemplateResponse -> Text
$sel:creationDate:SMSTemplateResponse' :: SMSTemplateResponse -> Text
$sel:lastModifiedDate:SMSTemplateResponse' :: SMSTemplateResponse -> Text
$sel:tags:SMSTemplateResponse' :: SMSTemplateResponse -> Maybe (HashMap Text Text)
$sel:version:SMSTemplateResponse' :: SMSTemplateResponse -> Maybe Text
$sel:templateDescription:SMSTemplateResponse' :: SMSTemplateResponse -> Maybe Text
$sel:recommenderId:SMSTemplateResponse' :: SMSTemplateResponse -> Maybe Text
$sel:defaultSubstitutions:SMSTemplateResponse' :: SMSTemplateResponse -> Maybe Text
$sel:body:SMSTemplateResponse' :: SMSTemplateResponse -> Maybe Text
$sel:arn:SMSTemplateResponse' :: SMSTemplateResponse -> Maybe Text
..} =
    Int
_salt
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
arn
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
body
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
defaultSubstitutions
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
recommenderId
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
templateDescription
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
version
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe (HashMap Text Text)
tags
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Text
lastModifiedDate
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Text
creationDate
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Text
templateName
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` TemplateType
templateType

instance Prelude.NFData SMSTemplateResponse where
  rnf :: SMSTemplateResponse -> ()
rnf SMSTemplateResponse' {Maybe Text
Maybe (HashMap Text Text)
Text
TemplateType
templateType :: TemplateType
templateName :: Text
creationDate :: Text
lastModifiedDate :: Text
tags :: Maybe (HashMap Text Text)
version :: Maybe Text
templateDescription :: Maybe Text
recommenderId :: Maybe Text
defaultSubstitutions :: Maybe Text
body :: Maybe Text
arn :: Maybe Text
$sel:templateType:SMSTemplateResponse' :: SMSTemplateResponse -> TemplateType
$sel:templateName:SMSTemplateResponse' :: SMSTemplateResponse -> Text
$sel:creationDate:SMSTemplateResponse' :: SMSTemplateResponse -> Text
$sel:lastModifiedDate:SMSTemplateResponse' :: SMSTemplateResponse -> Text
$sel:tags:SMSTemplateResponse' :: SMSTemplateResponse -> Maybe (HashMap Text Text)
$sel:version:SMSTemplateResponse' :: SMSTemplateResponse -> Maybe Text
$sel:templateDescription:SMSTemplateResponse' :: SMSTemplateResponse -> Maybe Text
$sel:recommenderId:SMSTemplateResponse' :: SMSTemplateResponse -> Maybe Text
$sel:defaultSubstitutions:SMSTemplateResponse' :: SMSTemplateResponse -> Maybe Text
$sel:body:SMSTemplateResponse' :: SMSTemplateResponse -> Maybe Text
$sel:arn:SMSTemplateResponse' :: SMSTemplateResponse -> Maybe Text
..} =
    forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
arn
      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 Text
defaultSubstitutions
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
recommenderId
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
templateDescription
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
version
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe (HashMap Text Text)
tags
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Text
lastModifiedDate
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Text
creationDate
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Text
templateName
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf TemplateType
templateType