{-# 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 #-}
module Amazonka.Pinpoint.Types.SMSTemplateResponse where
import qualified Amazonka.Core as Core
import qualified Amazonka.Lens as Lens
import Amazonka.Pinpoint.Types.TemplateType
import qualified Amazonka.Prelude as Prelude
data SMSTemplateResponse = SMSTemplateResponse'
{
SMSTemplateResponse -> Maybe Text
arn :: Prelude.Maybe Prelude.Text,
SMSTemplateResponse -> Maybe Text
body :: Prelude.Maybe Prelude.Text,
SMSTemplateResponse -> Maybe Text
templateDescription :: Prelude.Maybe Prelude.Text,
SMSTemplateResponse -> Maybe Text
defaultSubstitutions :: Prelude.Maybe Prelude.Text,
SMSTemplateResponse -> Maybe Text
version :: Prelude.Maybe Prelude.Text,
SMSTemplateResponse -> Maybe Text
recommenderId :: Prelude.Maybe Prelude.Text,
SMSTemplateResponse -> Maybe (HashMap Text Text)
tags :: Prelude.Maybe (Prelude.HashMap Prelude.Text Prelude.Text),
SMSTemplateResponse -> Text
lastModifiedDate :: Prelude.Text,
SMSTemplateResponse -> Text
creationDate :: Prelude.Text,
SMSTemplateResponse -> Text
templateName :: Prelude.Text,
SMSTemplateResponse -> TemplateType
templateType :: TemplateType
}
deriving (SMSTemplateResponse -> SMSTemplateResponse -> Bool
(SMSTemplateResponse -> SMSTemplateResponse -> Bool)
-> (SMSTemplateResponse -> SMSTemplateResponse -> Bool)
-> Eq SMSTemplateResponse
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]
(Int -> ReadS SMSTemplateResponse)
-> ReadS [SMSTemplateResponse]
-> ReadPrec SMSTemplateResponse
-> ReadPrec [SMSTemplateResponse]
-> Read 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
(Int -> SMSTemplateResponse -> ShowS)
-> (SMSTemplateResponse -> String)
-> ([SMSTemplateResponse] -> ShowS)
-> Show SMSTemplateResponse
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. SMSTemplateResponse -> Rep SMSTemplateResponse x)
-> (forall x. Rep SMSTemplateResponse x -> SMSTemplateResponse)
-> Generic SMSTemplateResponse
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)
newSMSTemplateResponse ::
Prelude.Text ->
Prelude.Text ->
Prelude.Text ->
TemplateType ->
SMSTemplateResponse
newSMSTemplateResponse :: Text -> Text -> Text -> TemplateType -> SMSTemplateResponse
newSMSTemplateResponse
Text
pLastModifiedDate_
Text
pCreationDate_
Text
pTemplateName_
TemplateType
pTemplateType_ =
SMSTemplateResponse' :: Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe (HashMap Text Text)
-> Text
-> Text
-> Text
-> TemplateType
-> SMSTemplateResponse
SMSTemplateResponse'
{ $sel:arn:SMSTemplateResponse' :: Maybe Text
arn = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:body:SMSTemplateResponse' :: Maybe Text
body = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:templateDescription:SMSTemplateResponse' :: Maybe Text
templateDescription = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:defaultSubstitutions:SMSTemplateResponse' :: Maybe Text
defaultSubstitutions = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:version:SMSTemplateResponse' :: Maybe Text
version = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:recommenderId:SMSTemplateResponse' :: Maybe Text
recommenderId = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:tags:SMSTemplateResponse' :: Maybe (HashMap Text Text)
tags = Maybe (HashMap Text Text)
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_
}
sMSTemplateResponse_arn :: Lens.Lens' SMSTemplateResponse (Prelude.Maybe Prelude.Text)
sMSTemplateResponse_arn :: (Maybe Text -> f (Maybe Text))
-> SMSTemplateResponse -> f SMSTemplateResponse
sMSTemplateResponse_arn = (SMSTemplateResponse -> Maybe Text)
-> (SMSTemplateResponse -> Maybe Text -> SMSTemplateResponse)
-> Lens
SMSTemplateResponse SMSTemplateResponse (Maybe Text) (Maybe Text)
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)
sMSTemplateResponse_body :: Lens.Lens' SMSTemplateResponse (Prelude.Maybe Prelude.Text)
sMSTemplateResponse_body :: (Maybe Text -> f (Maybe Text))
-> SMSTemplateResponse -> f SMSTemplateResponse
sMSTemplateResponse_body = (SMSTemplateResponse -> Maybe Text)
-> (SMSTemplateResponse -> Maybe Text -> SMSTemplateResponse)
-> Lens
SMSTemplateResponse SMSTemplateResponse (Maybe Text) (Maybe Text)
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)
sMSTemplateResponse_templateDescription :: Lens.Lens' SMSTemplateResponse (Prelude.Maybe Prelude.Text)
sMSTemplateResponse_templateDescription :: (Maybe Text -> f (Maybe Text))
-> SMSTemplateResponse -> f SMSTemplateResponse
sMSTemplateResponse_templateDescription = (SMSTemplateResponse -> Maybe Text)
-> (SMSTemplateResponse -> Maybe Text -> SMSTemplateResponse)
-> Lens
SMSTemplateResponse SMSTemplateResponse (Maybe Text) (Maybe Text)
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)
sMSTemplateResponse_defaultSubstitutions :: Lens.Lens' SMSTemplateResponse (Prelude.Maybe Prelude.Text)
sMSTemplateResponse_defaultSubstitutions :: (Maybe Text -> f (Maybe Text))
-> SMSTemplateResponse -> f SMSTemplateResponse
sMSTemplateResponse_defaultSubstitutions = (SMSTemplateResponse -> Maybe Text)
-> (SMSTemplateResponse -> Maybe Text -> SMSTemplateResponse)
-> Lens
SMSTemplateResponse SMSTemplateResponse (Maybe Text) (Maybe Text)
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)
sMSTemplateResponse_version :: Lens.Lens' SMSTemplateResponse (Prelude.Maybe Prelude.Text)
sMSTemplateResponse_version :: (Maybe Text -> f (Maybe Text))
-> SMSTemplateResponse -> f SMSTemplateResponse
sMSTemplateResponse_version = (SMSTemplateResponse -> Maybe Text)
-> (SMSTemplateResponse -> Maybe Text -> SMSTemplateResponse)
-> Lens
SMSTemplateResponse SMSTemplateResponse (Maybe Text) (Maybe Text)
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)
sMSTemplateResponse_recommenderId :: Lens.Lens' SMSTemplateResponse (Prelude.Maybe Prelude.Text)
sMSTemplateResponse_recommenderId :: (Maybe Text -> f (Maybe Text))
-> SMSTemplateResponse -> f SMSTemplateResponse
sMSTemplateResponse_recommenderId = (SMSTemplateResponse -> Maybe Text)
-> (SMSTemplateResponse -> Maybe Text -> SMSTemplateResponse)
-> Lens
SMSTemplateResponse SMSTemplateResponse (Maybe Text) (Maybe Text)
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)
sMSTemplateResponse_tags :: Lens.Lens' SMSTemplateResponse (Prelude.Maybe (Prelude.HashMap Prelude.Text Prelude.Text))
sMSTemplateResponse_tags :: (Maybe (HashMap Text Text) -> f (Maybe (HashMap Text Text)))
-> SMSTemplateResponse -> f SMSTemplateResponse
sMSTemplateResponse_tags = (SMSTemplateResponse -> Maybe (HashMap Text Text))
-> (SMSTemplateResponse
-> Maybe (HashMap Text Text) -> SMSTemplateResponse)
-> Lens
SMSTemplateResponse
SMSTemplateResponse
(Maybe (HashMap Text Text))
(Maybe (HashMap Text Text))
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) ((Maybe (HashMap Text Text) -> f (Maybe (HashMap Text Text)))
-> SMSTemplateResponse -> f SMSTemplateResponse)
-> ((Maybe (HashMap Text Text) -> f (Maybe (HashMap Text Text)))
-> Maybe (HashMap Text Text) -> f (Maybe (HashMap Text Text)))
-> (Maybe (HashMap Text Text) -> f (Maybe (HashMap Text Text)))
-> SMSTemplateResponse
-> f SMSTemplateResponse
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso
(HashMap Text Text)
(HashMap Text Text)
(HashMap Text Text)
(HashMap Text Text)
-> Iso
(Maybe (HashMap Text Text))
(Maybe (HashMap Text Text))
(Maybe (HashMap Text Text))
(Maybe (HashMap Text Text))
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 AnIso
(HashMap Text Text)
(HashMap Text Text)
(HashMap Text Text)
(HashMap Text Text)
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
sMSTemplateResponse_lastModifiedDate :: Lens.Lens' SMSTemplateResponse Prelude.Text
sMSTemplateResponse_lastModifiedDate :: (Text -> f Text) -> SMSTemplateResponse -> f SMSTemplateResponse
sMSTemplateResponse_lastModifiedDate = (SMSTemplateResponse -> Text)
-> (SMSTemplateResponse -> Text -> SMSTemplateResponse)
-> Lens SMSTemplateResponse SMSTemplateResponse Text Text
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)
sMSTemplateResponse_creationDate :: Lens.Lens' SMSTemplateResponse Prelude.Text
sMSTemplateResponse_creationDate :: (Text -> f Text) -> SMSTemplateResponse -> f SMSTemplateResponse
sMSTemplateResponse_creationDate = (SMSTemplateResponse -> Text)
-> (SMSTemplateResponse -> Text -> SMSTemplateResponse)
-> Lens SMSTemplateResponse SMSTemplateResponse Text Text
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)
sMSTemplateResponse_templateName :: Lens.Lens' SMSTemplateResponse Prelude.Text
sMSTemplateResponse_templateName :: (Text -> f Text) -> SMSTemplateResponse -> f SMSTemplateResponse
sMSTemplateResponse_templateName = (SMSTemplateResponse -> Text)
-> (SMSTemplateResponse -> Text -> SMSTemplateResponse)
-> Lens SMSTemplateResponse SMSTemplateResponse Text Text
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)
sMSTemplateResponse_templateType :: Lens.Lens' SMSTemplateResponse TemplateType
sMSTemplateResponse_templateType :: (TemplateType -> f TemplateType)
-> SMSTemplateResponse -> f SMSTemplateResponse
sMSTemplateResponse_templateType = (SMSTemplateResponse -> TemplateType)
-> (SMSTemplateResponse -> TemplateType -> SMSTemplateResponse)
-> Lens
SMSTemplateResponse SMSTemplateResponse TemplateType 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 Core.FromJSON SMSTemplateResponse where
parseJSON :: Value -> Parser SMSTemplateResponse
parseJSON =
String
-> (Object -> Parser SMSTemplateResponse)
-> Value
-> Parser SMSTemplateResponse
forall a. String -> (Object -> Parser a) -> Value -> Parser a
Core.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'
(Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe (HashMap Text Text)
-> Text
-> Text
-> Text
-> TemplateType
-> SMSTemplateResponse)
-> Parser (Maybe Text)
-> Parser
(Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe (HashMap Text Text)
-> Text
-> Text
-> Text
-> TemplateType
-> SMSTemplateResponse)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x Object -> Text -> Parser (Maybe Text)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"Arn")
Parser
(Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe (HashMap Text Text)
-> Text
-> Text
-> Text
-> TemplateType
-> SMSTemplateResponse)
-> Parser (Maybe Text)
-> Parser
(Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe (HashMap Text Text)
-> Text
-> Text
-> Text
-> TemplateType
-> SMSTemplateResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe Text)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"Body")
Parser
(Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe (HashMap Text Text)
-> Text
-> Text
-> Text
-> TemplateType
-> SMSTemplateResponse)
-> Parser (Maybe Text)
-> Parser
(Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe (HashMap Text Text)
-> Text
-> Text
-> Text
-> TemplateType
-> SMSTemplateResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe Text)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"TemplateDescription")
Parser
(Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe (HashMap Text Text)
-> Text
-> Text
-> Text
-> TemplateType
-> SMSTemplateResponse)
-> Parser (Maybe Text)
-> Parser
(Maybe Text
-> Maybe Text
-> Maybe (HashMap Text Text)
-> Text
-> Text
-> Text
-> TemplateType
-> SMSTemplateResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe Text)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"DefaultSubstitutions")
Parser
(Maybe Text
-> Maybe Text
-> Maybe (HashMap Text Text)
-> Text
-> Text
-> Text
-> TemplateType
-> SMSTemplateResponse)
-> Parser (Maybe Text)
-> Parser
(Maybe Text
-> Maybe (HashMap Text Text)
-> Text
-> Text
-> Text
-> TemplateType
-> SMSTemplateResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe Text)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"Version")
Parser
(Maybe Text
-> Maybe (HashMap Text Text)
-> Text
-> Text
-> Text
-> TemplateType
-> SMSTemplateResponse)
-> Parser (Maybe Text)
-> Parser
(Maybe (HashMap Text Text)
-> Text -> Text -> Text -> TemplateType -> SMSTemplateResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe Text)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"RecommenderId")
Parser
(Maybe (HashMap Text Text)
-> Text -> Text -> Text -> TemplateType -> SMSTemplateResponse)
-> Parser (Maybe (HashMap Text Text))
-> Parser
(Text -> Text -> Text -> TemplateType -> SMSTemplateResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe (Maybe (HashMap Text Text)))
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"tags" Parser (Maybe (Maybe (HashMap Text Text)))
-> Maybe (HashMap Text Text) -> Parser (Maybe (HashMap Text Text))
forall a. Parser (Maybe a) -> a -> Parser a
Core..!= Maybe (HashMap Text Text)
forall a. Monoid a => a
Prelude.mempty)
Parser
(Text -> Text -> Text -> TemplateType -> SMSTemplateResponse)
-> Parser Text
-> Parser (Text -> Text -> TemplateType -> SMSTemplateResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser Text
forall a. FromJSON a => Object -> Text -> Parser a
Core..: Text
"LastModifiedDate")
Parser (Text -> Text -> TemplateType -> SMSTemplateResponse)
-> Parser Text
-> Parser (Text -> TemplateType -> SMSTemplateResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser Text
forall a. FromJSON a => Object -> Text -> Parser a
Core..: Text
"CreationDate")
Parser (Text -> TemplateType -> SMSTemplateResponse)
-> Parser Text -> Parser (TemplateType -> SMSTemplateResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser Text
forall a. FromJSON a => Object -> Text -> Parser a
Core..: Text
"TemplateName")
Parser (TemplateType -> SMSTemplateResponse)
-> Parser TemplateType -> Parser SMSTemplateResponse
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser TemplateType
forall a. FromJSON a => Object -> Text -> Parser a
Core..: Text
"TemplateType")
)
instance Prelude.Hashable SMSTemplateResponse
instance Prelude.NFData SMSTemplateResponse