{-# 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.VoiceTemplateResponse 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 VoiceTemplateResponse = VoiceTemplateResponse'
{
VoiceTemplateResponse -> Maybe Text
languageCode :: Prelude.Maybe Prelude.Text,
VoiceTemplateResponse -> Maybe Text
arn :: Prelude.Maybe Prelude.Text,
VoiceTemplateResponse -> Maybe Text
body :: Prelude.Maybe Prelude.Text,
VoiceTemplateResponse -> Maybe Text
templateDescription :: Prelude.Maybe Prelude.Text,
VoiceTemplateResponse -> Maybe Text
defaultSubstitutions :: Prelude.Maybe Prelude.Text,
VoiceTemplateResponse -> Maybe Text
version :: Prelude.Maybe Prelude.Text,
VoiceTemplateResponse -> Maybe Text
voiceId :: Prelude.Maybe Prelude.Text,
VoiceTemplateResponse -> Maybe (HashMap Text Text)
tags :: Prelude.Maybe (Prelude.HashMap Prelude.Text Prelude.Text),
VoiceTemplateResponse -> Text
lastModifiedDate :: Prelude.Text,
VoiceTemplateResponse -> Text
creationDate :: Prelude.Text,
VoiceTemplateResponse -> Text
templateName :: Prelude.Text,
VoiceTemplateResponse -> TemplateType
templateType :: TemplateType
}
deriving (VoiceTemplateResponse -> VoiceTemplateResponse -> Bool
(VoiceTemplateResponse -> VoiceTemplateResponse -> Bool)
-> (VoiceTemplateResponse -> VoiceTemplateResponse -> Bool)
-> Eq VoiceTemplateResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: VoiceTemplateResponse -> VoiceTemplateResponse -> Bool
$c/= :: VoiceTemplateResponse -> VoiceTemplateResponse -> Bool
== :: VoiceTemplateResponse -> VoiceTemplateResponse -> Bool
$c== :: VoiceTemplateResponse -> VoiceTemplateResponse -> Bool
Prelude.Eq, ReadPrec [VoiceTemplateResponse]
ReadPrec VoiceTemplateResponse
Int -> ReadS VoiceTemplateResponse
ReadS [VoiceTemplateResponse]
(Int -> ReadS VoiceTemplateResponse)
-> ReadS [VoiceTemplateResponse]
-> ReadPrec VoiceTemplateResponse
-> ReadPrec [VoiceTemplateResponse]
-> Read VoiceTemplateResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [VoiceTemplateResponse]
$creadListPrec :: ReadPrec [VoiceTemplateResponse]
readPrec :: ReadPrec VoiceTemplateResponse
$creadPrec :: ReadPrec VoiceTemplateResponse
readList :: ReadS [VoiceTemplateResponse]
$creadList :: ReadS [VoiceTemplateResponse]
readsPrec :: Int -> ReadS VoiceTemplateResponse
$creadsPrec :: Int -> ReadS VoiceTemplateResponse
Prelude.Read, Int -> VoiceTemplateResponse -> ShowS
[VoiceTemplateResponse] -> ShowS
VoiceTemplateResponse -> String
(Int -> VoiceTemplateResponse -> ShowS)
-> (VoiceTemplateResponse -> String)
-> ([VoiceTemplateResponse] -> ShowS)
-> Show VoiceTemplateResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [VoiceTemplateResponse] -> ShowS
$cshowList :: [VoiceTemplateResponse] -> ShowS
show :: VoiceTemplateResponse -> String
$cshow :: VoiceTemplateResponse -> String
showsPrec :: Int -> VoiceTemplateResponse -> ShowS
$cshowsPrec :: Int -> VoiceTemplateResponse -> ShowS
Prelude.Show, (forall x. VoiceTemplateResponse -> Rep VoiceTemplateResponse x)
-> (forall x. Rep VoiceTemplateResponse x -> VoiceTemplateResponse)
-> Generic VoiceTemplateResponse
forall x. Rep VoiceTemplateResponse x -> VoiceTemplateResponse
forall x. VoiceTemplateResponse -> Rep VoiceTemplateResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep VoiceTemplateResponse x -> VoiceTemplateResponse
$cfrom :: forall x. VoiceTemplateResponse -> Rep VoiceTemplateResponse x
Prelude.Generic)
newVoiceTemplateResponse ::
Prelude.Text ->
Prelude.Text ->
Prelude.Text ->
TemplateType ->
VoiceTemplateResponse
newVoiceTemplateResponse :: Text -> Text -> Text -> TemplateType -> VoiceTemplateResponse
newVoiceTemplateResponse
Text
pLastModifiedDate_
Text
pCreationDate_
Text
pTemplateName_
TemplateType
pTemplateType_ =
VoiceTemplateResponse' :: Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe (HashMap Text Text)
-> Text
-> Text
-> Text
-> TemplateType
-> VoiceTemplateResponse
VoiceTemplateResponse'
{ $sel:languageCode:VoiceTemplateResponse' :: Maybe Text
languageCode =
Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:arn:VoiceTemplateResponse' :: Maybe Text
arn = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:body:VoiceTemplateResponse' :: Maybe Text
body = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:templateDescription:VoiceTemplateResponse' :: Maybe Text
templateDescription = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:defaultSubstitutions:VoiceTemplateResponse' :: Maybe Text
defaultSubstitutions = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:version:VoiceTemplateResponse' :: Maybe Text
version = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:voiceId:VoiceTemplateResponse' :: Maybe Text
voiceId = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:tags:VoiceTemplateResponse' :: Maybe (HashMap Text Text)
tags = Maybe (HashMap Text Text)
forall a. Maybe a
Prelude.Nothing,
$sel:lastModifiedDate:VoiceTemplateResponse' :: Text
lastModifiedDate = Text
pLastModifiedDate_,
$sel:creationDate:VoiceTemplateResponse' :: Text
creationDate = Text
pCreationDate_,
$sel:templateName:VoiceTemplateResponse' :: Text
templateName = Text
pTemplateName_,
$sel:templateType:VoiceTemplateResponse' :: TemplateType
templateType = TemplateType
pTemplateType_
}
voiceTemplateResponse_languageCode :: Lens.Lens' VoiceTemplateResponse (Prelude.Maybe Prelude.Text)
voiceTemplateResponse_languageCode :: (Maybe Text -> f (Maybe Text))
-> VoiceTemplateResponse -> f VoiceTemplateResponse
voiceTemplateResponse_languageCode = (VoiceTemplateResponse -> Maybe Text)
-> (VoiceTemplateResponse -> Maybe Text -> VoiceTemplateResponse)
-> Lens
VoiceTemplateResponse
VoiceTemplateResponse
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\VoiceTemplateResponse' {Maybe Text
languageCode :: Maybe Text
$sel:languageCode:VoiceTemplateResponse' :: VoiceTemplateResponse -> Maybe Text
languageCode} -> Maybe Text
languageCode) (\s :: VoiceTemplateResponse
s@VoiceTemplateResponse' {} Maybe Text
a -> VoiceTemplateResponse
s {$sel:languageCode:VoiceTemplateResponse' :: Maybe Text
languageCode = Maybe Text
a} :: VoiceTemplateResponse)
voiceTemplateResponse_arn :: Lens.Lens' VoiceTemplateResponse (Prelude.Maybe Prelude.Text)
voiceTemplateResponse_arn :: (Maybe Text -> f (Maybe Text))
-> VoiceTemplateResponse -> f VoiceTemplateResponse
voiceTemplateResponse_arn = (VoiceTemplateResponse -> Maybe Text)
-> (VoiceTemplateResponse -> Maybe Text -> VoiceTemplateResponse)
-> Lens
VoiceTemplateResponse
VoiceTemplateResponse
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\VoiceTemplateResponse' {Maybe Text
arn :: Maybe Text
$sel:arn:VoiceTemplateResponse' :: VoiceTemplateResponse -> Maybe Text
arn} -> Maybe Text
arn) (\s :: VoiceTemplateResponse
s@VoiceTemplateResponse' {} Maybe Text
a -> VoiceTemplateResponse
s {$sel:arn:VoiceTemplateResponse' :: Maybe Text
arn = Maybe Text
a} :: VoiceTemplateResponse)
voiceTemplateResponse_body :: Lens.Lens' VoiceTemplateResponse (Prelude.Maybe Prelude.Text)
voiceTemplateResponse_body :: (Maybe Text -> f (Maybe Text))
-> VoiceTemplateResponse -> f VoiceTemplateResponse
voiceTemplateResponse_body = (VoiceTemplateResponse -> Maybe Text)
-> (VoiceTemplateResponse -> Maybe Text -> VoiceTemplateResponse)
-> Lens
VoiceTemplateResponse
VoiceTemplateResponse
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\VoiceTemplateResponse' {Maybe Text
body :: Maybe Text
$sel:body:VoiceTemplateResponse' :: VoiceTemplateResponse -> Maybe Text
body} -> Maybe Text
body) (\s :: VoiceTemplateResponse
s@VoiceTemplateResponse' {} Maybe Text
a -> VoiceTemplateResponse
s {$sel:body:VoiceTemplateResponse' :: Maybe Text
body = Maybe Text
a} :: VoiceTemplateResponse)
voiceTemplateResponse_templateDescription :: Lens.Lens' VoiceTemplateResponse (Prelude.Maybe Prelude.Text)
voiceTemplateResponse_templateDescription :: (Maybe Text -> f (Maybe Text))
-> VoiceTemplateResponse -> f VoiceTemplateResponse
voiceTemplateResponse_templateDescription = (VoiceTemplateResponse -> Maybe Text)
-> (VoiceTemplateResponse -> Maybe Text -> VoiceTemplateResponse)
-> Lens
VoiceTemplateResponse
VoiceTemplateResponse
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\VoiceTemplateResponse' {Maybe Text
templateDescription :: Maybe Text
$sel:templateDescription:VoiceTemplateResponse' :: VoiceTemplateResponse -> Maybe Text
templateDescription} -> Maybe Text
templateDescription) (\s :: VoiceTemplateResponse
s@VoiceTemplateResponse' {} Maybe Text
a -> VoiceTemplateResponse
s {$sel:templateDescription:VoiceTemplateResponse' :: Maybe Text
templateDescription = Maybe Text
a} :: VoiceTemplateResponse)
voiceTemplateResponse_defaultSubstitutions :: Lens.Lens' VoiceTemplateResponse (Prelude.Maybe Prelude.Text)
voiceTemplateResponse_defaultSubstitutions :: (Maybe Text -> f (Maybe Text))
-> VoiceTemplateResponse -> f VoiceTemplateResponse
voiceTemplateResponse_defaultSubstitutions = (VoiceTemplateResponse -> Maybe Text)
-> (VoiceTemplateResponse -> Maybe Text -> VoiceTemplateResponse)
-> Lens
VoiceTemplateResponse
VoiceTemplateResponse
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\VoiceTemplateResponse' {Maybe Text
defaultSubstitutions :: Maybe Text
$sel:defaultSubstitutions:VoiceTemplateResponse' :: VoiceTemplateResponse -> Maybe Text
defaultSubstitutions} -> Maybe Text
defaultSubstitutions) (\s :: VoiceTemplateResponse
s@VoiceTemplateResponse' {} Maybe Text
a -> VoiceTemplateResponse
s {$sel:defaultSubstitutions:VoiceTemplateResponse' :: Maybe Text
defaultSubstitutions = Maybe Text
a} :: VoiceTemplateResponse)
voiceTemplateResponse_version :: Lens.Lens' VoiceTemplateResponse (Prelude.Maybe Prelude.Text)
voiceTemplateResponse_version :: (Maybe Text -> f (Maybe Text))
-> VoiceTemplateResponse -> f VoiceTemplateResponse
voiceTemplateResponse_version = (VoiceTemplateResponse -> Maybe Text)
-> (VoiceTemplateResponse -> Maybe Text -> VoiceTemplateResponse)
-> Lens
VoiceTemplateResponse
VoiceTemplateResponse
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\VoiceTemplateResponse' {Maybe Text
version :: Maybe Text
$sel:version:VoiceTemplateResponse' :: VoiceTemplateResponse -> Maybe Text
version} -> Maybe Text
version) (\s :: VoiceTemplateResponse
s@VoiceTemplateResponse' {} Maybe Text
a -> VoiceTemplateResponse
s {$sel:version:VoiceTemplateResponse' :: Maybe Text
version = Maybe Text
a} :: VoiceTemplateResponse)
voiceTemplateResponse_voiceId :: Lens.Lens' VoiceTemplateResponse (Prelude.Maybe Prelude.Text)
voiceTemplateResponse_voiceId :: (Maybe Text -> f (Maybe Text))
-> VoiceTemplateResponse -> f VoiceTemplateResponse
voiceTemplateResponse_voiceId = (VoiceTemplateResponse -> Maybe Text)
-> (VoiceTemplateResponse -> Maybe Text -> VoiceTemplateResponse)
-> Lens
VoiceTemplateResponse
VoiceTemplateResponse
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\VoiceTemplateResponse' {Maybe Text
voiceId :: Maybe Text
$sel:voiceId:VoiceTemplateResponse' :: VoiceTemplateResponse -> Maybe Text
voiceId} -> Maybe Text
voiceId) (\s :: VoiceTemplateResponse
s@VoiceTemplateResponse' {} Maybe Text
a -> VoiceTemplateResponse
s {$sel:voiceId:VoiceTemplateResponse' :: Maybe Text
voiceId = Maybe Text
a} :: VoiceTemplateResponse)
voiceTemplateResponse_tags :: Lens.Lens' VoiceTemplateResponse (Prelude.Maybe (Prelude.HashMap Prelude.Text Prelude.Text))
voiceTemplateResponse_tags :: (Maybe (HashMap Text Text) -> f (Maybe (HashMap Text Text)))
-> VoiceTemplateResponse -> f VoiceTemplateResponse
voiceTemplateResponse_tags = (VoiceTemplateResponse -> Maybe (HashMap Text Text))
-> (VoiceTemplateResponse
-> Maybe (HashMap Text Text) -> VoiceTemplateResponse)
-> Lens
VoiceTemplateResponse
VoiceTemplateResponse
(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 (\VoiceTemplateResponse' {Maybe (HashMap Text Text)
tags :: Maybe (HashMap Text Text)
$sel:tags:VoiceTemplateResponse' :: VoiceTemplateResponse -> Maybe (HashMap Text Text)
tags} -> Maybe (HashMap Text Text)
tags) (\s :: VoiceTemplateResponse
s@VoiceTemplateResponse' {} Maybe (HashMap Text Text)
a -> VoiceTemplateResponse
s {$sel:tags:VoiceTemplateResponse' :: Maybe (HashMap Text Text)
tags = Maybe (HashMap Text Text)
a} :: VoiceTemplateResponse) ((Maybe (HashMap Text Text) -> f (Maybe (HashMap Text Text)))
-> VoiceTemplateResponse -> f VoiceTemplateResponse)
-> ((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)))
-> VoiceTemplateResponse
-> f VoiceTemplateResponse
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
voiceTemplateResponse_lastModifiedDate :: Lens.Lens' VoiceTemplateResponse Prelude.Text
voiceTemplateResponse_lastModifiedDate :: (Text -> f Text)
-> VoiceTemplateResponse -> f VoiceTemplateResponse
voiceTemplateResponse_lastModifiedDate = (VoiceTemplateResponse -> Text)
-> (VoiceTemplateResponse -> Text -> VoiceTemplateResponse)
-> Lens VoiceTemplateResponse VoiceTemplateResponse Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\VoiceTemplateResponse' {Text
lastModifiedDate :: Text
$sel:lastModifiedDate:VoiceTemplateResponse' :: VoiceTemplateResponse -> Text
lastModifiedDate} -> Text
lastModifiedDate) (\s :: VoiceTemplateResponse
s@VoiceTemplateResponse' {} Text
a -> VoiceTemplateResponse
s {$sel:lastModifiedDate:VoiceTemplateResponse' :: Text
lastModifiedDate = Text
a} :: VoiceTemplateResponse)
voiceTemplateResponse_creationDate :: Lens.Lens' VoiceTemplateResponse Prelude.Text
voiceTemplateResponse_creationDate :: (Text -> f Text)
-> VoiceTemplateResponse -> f VoiceTemplateResponse
voiceTemplateResponse_creationDate = (VoiceTemplateResponse -> Text)
-> (VoiceTemplateResponse -> Text -> VoiceTemplateResponse)
-> Lens VoiceTemplateResponse VoiceTemplateResponse Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\VoiceTemplateResponse' {Text
creationDate :: Text
$sel:creationDate:VoiceTemplateResponse' :: VoiceTemplateResponse -> Text
creationDate} -> Text
creationDate) (\s :: VoiceTemplateResponse
s@VoiceTemplateResponse' {} Text
a -> VoiceTemplateResponse
s {$sel:creationDate:VoiceTemplateResponse' :: Text
creationDate = Text
a} :: VoiceTemplateResponse)
voiceTemplateResponse_templateName :: Lens.Lens' VoiceTemplateResponse Prelude.Text
voiceTemplateResponse_templateName :: (Text -> f Text)
-> VoiceTemplateResponse -> f VoiceTemplateResponse
voiceTemplateResponse_templateName = (VoiceTemplateResponse -> Text)
-> (VoiceTemplateResponse -> Text -> VoiceTemplateResponse)
-> Lens VoiceTemplateResponse VoiceTemplateResponse Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\VoiceTemplateResponse' {Text
templateName :: Text
$sel:templateName:VoiceTemplateResponse' :: VoiceTemplateResponse -> Text
templateName} -> Text
templateName) (\s :: VoiceTemplateResponse
s@VoiceTemplateResponse' {} Text
a -> VoiceTemplateResponse
s {$sel:templateName:VoiceTemplateResponse' :: Text
templateName = Text
a} :: VoiceTemplateResponse)
voiceTemplateResponse_templateType :: Lens.Lens' VoiceTemplateResponse TemplateType
voiceTemplateResponse_templateType :: (TemplateType -> f TemplateType)
-> VoiceTemplateResponse -> f VoiceTemplateResponse
voiceTemplateResponse_templateType = (VoiceTemplateResponse -> TemplateType)
-> (VoiceTemplateResponse -> TemplateType -> VoiceTemplateResponse)
-> Lens
VoiceTemplateResponse
VoiceTemplateResponse
TemplateType
TemplateType
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\VoiceTemplateResponse' {TemplateType
templateType :: TemplateType
$sel:templateType:VoiceTemplateResponse' :: VoiceTemplateResponse -> TemplateType
templateType} -> TemplateType
templateType) (\s :: VoiceTemplateResponse
s@VoiceTemplateResponse' {} TemplateType
a -> VoiceTemplateResponse
s {$sel:templateType:VoiceTemplateResponse' :: TemplateType
templateType = TemplateType
a} :: VoiceTemplateResponse)
instance Core.FromJSON VoiceTemplateResponse where
parseJSON :: Value -> Parser VoiceTemplateResponse
parseJSON =
String
-> (Object -> Parser VoiceTemplateResponse)
-> Value
-> Parser VoiceTemplateResponse
forall a. String -> (Object -> Parser a) -> Value -> Parser a
Core.withObject
String
"VoiceTemplateResponse"
( \Object
x ->
Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe (HashMap Text Text)
-> Text
-> Text
-> Text
-> TemplateType
-> VoiceTemplateResponse
VoiceTemplateResponse'
(Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe (HashMap Text Text)
-> Text
-> Text
-> Text
-> TemplateType
-> VoiceTemplateResponse)
-> Parser (Maybe Text)
-> Parser
(Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe (HashMap Text Text)
-> Text
-> Text
-> Text
-> TemplateType
-> VoiceTemplateResponse)
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
"LanguageCode")
Parser
(Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe (HashMap Text Text)
-> Text
-> Text
-> Text
-> TemplateType
-> VoiceTemplateResponse)
-> Parser (Maybe Text)
-> Parser
(Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe (HashMap Text Text)
-> Text
-> Text
-> Text
-> TemplateType
-> VoiceTemplateResponse)
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
"Arn")
Parser
(Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe (HashMap Text Text)
-> Text
-> Text
-> Text
-> TemplateType
-> VoiceTemplateResponse)
-> Parser (Maybe Text)
-> Parser
(Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe (HashMap Text Text)
-> Text
-> Text
-> Text
-> TemplateType
-> VoiceTemplateResponse)
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
-> VoiceTemplateResponse)
-> Parser (Maybe Text)
-> Parser
(Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe (HashMap Text Text)
-> Text
-> Text
-> Text
-> TemplateType
-> VoiceTemplateResponse)
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
-> VoiceTemplateResponse)
-> Parser (Maybe Text)
-> Parser
(Maybe Text
-> Maybe Text
-> Maybe (HashMap Text Text)
-> Text
-> Text
-> Text
-> TemplateType
-> VoiceTemplateResponse)
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
-> VoiceTemplateResponse)
-> Parser (Maybe Text)
-> Parser
(Maybe Text
-> Maybe (HashMap Text Text)
-> Text
-> Text
-> Text
-> TemplateType
-> VoiceTemplateResponse)
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
-> VoiceTemplateResponse)
-> Parser (Maybe Text)
-> Parser
(Maybe (HashMap Text Text)
-> Text -> Text -> Text -> TemplateType -> VoiceTemplateResponse)
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
"VoiceId")
Parser
(Maybe (HashMap Text Text)
-> Text -> Text -> Text -> TemplateType -> VoiceTemplateResponse)
-> Parser (Maybe (HashMap Text Text))
-> Parser
(Text -> Text -> Text -> TemplateType -> VoiceTemplateResponse)
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 -> VoiceTemplateResponse)
-> Parser Text
-> Parser (Text -> Text -> TemplateType -> VoiceTemplateResponse)
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 -> VoiceTemplateResponse)
-> Parser Text
-> Parser (Text -> TemplateType -> VoiceTemplateResponse)
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 -> VoiceTemplateResponse)
-> Parser Text -> Parser (TemplateType -> VoiceTemplateResponse)
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 -> VoiceTemplateResponse)
-> Parser TemplateType -> Parser VoiceTemplateResponse
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 VoiceTemplateResponse
instance Prelude.NFData VoiceTemplateResponse