{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DerivingStrategies #-}
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# LANGUAGE LambdaCase #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE PatternSynonyms #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}

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

-- |
-- Module      : Amazonka.PinpointSmsVoiceV2.Types.VoiceMessageBodyTextType
-- 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.PinpointSmsVoiceV2.Types.VoiceMessageBodyTextType
  ( VoiceMessageBodyTextType
      ( ..,
        VoiceMessageBodyTextType_SSML,
        VoiceMessageBodyTextType_TEXT
      ),
  )
where

import qualified Amazonka.Core as Core
import qualified Amazonka.Data as Data
import qualified Amazonka.Prelude as Prelude

newtype VoiceMessageBodyTextType = VoiceMessageBodyTextType'
  { VoiceMessageBodyTextType -> Text
fromVoiceMessageBodyTextType ::
      Data.Text
  }
  deriving stock
    ( Int -> VoiceMessageBodyTextType -> ShowS
[VoiceMessageBodyTextType] -> ShowS
VoiceMessageBodyTextType -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [VoiceMessageBodyTextType] -> ShowS
$cshowList :: [VoiceMessageBodyTextType] -> ShowS
show :: VoiceMessageBodyTextType -> String
$cshow :: VoiceMessageBodyTextType -> String
showsPrec :: Int -> VoiceMessageBodyTextType -> ShowS
$cshowsPrec :: Int -> VoiceMessageBodyTextType -> ShowS
Prelude.Show,
      ReadPrec [VoiceMessageBodyTextType]
ReadPrec VoiceMessageBodyTextType
Int -> ReadS VoiceMessageBodyTextType
ReadS [VoiceMessageBodyTextType]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [VoiceMessageBodyTextType]
$creadListPrec :: ReadPrec [VoiceMessageBodyTextType]
readPrec :: ReadPrec VoiceMessageBodyTextType
$creadPrec :: ReadPrec VoiceMessageBodyTextType
readList :: ReadS [VoiceMessageBodyTextType]
$creadList :: ReadS [VoiceMessageBodyTextType]
readsPrec :: Int -> ReadS VoiceMessageBodyTextType
$creadsPrec :: Int -> ReadS VoiceMessageBodyTextType
Prelude.Read,
      VoiceMessageBodyTextType -> VoiceMessageBodyTextType -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: VoiceMessageBodyTextType -> VoiceMessageBodyTextType -> Bool
$c/= :: VoiceMessageBodyTextType -> VoiceMessageBodyTextType -> Bool
== :: VoiceMessageBodyTextType -> VoiceMessageBodyTextType -> Bool
$c== :: VoiceMessageBodyTextType -> VoiceMessageBodyTextType -> Bool
Prelude.Eq,
      Eq VoiceMessageBodyTextType
VoiceMessageBodyTextType -> VoiceMessageBodyTextType -> Bool
VoiceMessageBodyTextType -> VoiceMessageBodyTextType -> Ordering
VoiceMessageBodyTextType
-> VoiceMessageBodyTextType -> VoiceMessageBodyTextType
forall a.
Eq a
-> (a -> a -> Ordering)
-> (a -> a -> Bool)
-> (a -> a -> Bool)
-> (a -> a -> Bool)
-> (a -> a -> Bool)
-> (a -> a -> a)
-> (a -> a -> a)
-> Ord a
min :: VoiceMessageBodyTextType
-> VoiceMessageBodyTextType -> VoiceMessageBodyTextType
$cmin :: VoiceMessageBodyTextType
-> VoiceMessageBodyTextType -> VoiceMessageBodyTextType
max :: VoiceMessageBodyTextType
-> VoiceMessageBodyTextType -> VoiceMessageBodyTextType
$cmax :: VoiceMessageBodyTextType
-> VoiceMessageBodyTextType -> VoiceMessageBodyTextType
>= :: VoiceMessageBodyTextType -> VoiceMessageBodyTextType -> Bool
$c>= :: VoiceMessageBodyTextType -> VoiceMessageBodyTextType -> Bool
> :: VoiceMessageBodyTextType -> VoiceMessageBodyTextType -> Bool
$c> :: VoiceMessageBodyTextType -> VoiceMessageBodyTextType -> Bool
<= :: VoiceMessageBodyTextType -> VoiceMessageBodyTextType -> Bool
$c<= :: VoiceMessageBodyTextType -> VoiceMessageBodyTextType -> Bool
< :: VoiceMessageBodyTextType -> VoiceMessageBodyTextType -> Bool
$c< :: VoiceMessageBodyTextType -> VoiceMessageBodyTextType -> Bool
compare :: VoiceMessageBodyTextType -> VoiceMessageBodyTextType -> Ordering
$ccompare :: VoiceMessageBodyTextType -> VoiceMessageBodyTextType -> Ordering
Prelude.Ord,
      forall x.
Rep VoiceMessageBodyTextType x -> VoiceMessageBodyTextType
forall x.
VoiceMessageBodyTextType -> Rep VoiceMessageBodyTextType x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep VoiceMessageBodyTextType x -> VoiceMessageBodyTextType
$cfrom :: forall x.
VoiceMessageBodyTextType -> Rep VoiceMessageBodyTextType x
Prelude.Generic
    )
  deriving newtype
    ( Eq VoiceMessageBodyTextType
Int -> VoiceMessageBodyTextType -> Int
VoiceMessageBodyTextType -> Int
forall a. Eq a -> (Int -> a -> Int) -> (a -> Int) -> Hashable a
hash :: VoiceMessageBodyTextType -> Int
$chash :: VoiceMessageBodyTextType -> Int
hashWithSalt :: Int -> VoiceMessageBodyTextType -> Int
$chashWithSalt :: Int -> VoiceMessageBodyTextType -> Int
Prelude.Hashable,
      VoiceMessageBodyTextType -> ()
forall a. (a -> ()) -> NFData a
rnf :: VoiceMessageBodyTextType -> ()
$crnf :: VoiceMessageBodyTextType -> ()
Prelude.NFData,
      Text -> Either String VoiceMessageBodyTextType
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String VoiceMessageBodyTextType
$cfromText :: Text -> Either String VoiceMessageBodyTextType
Data.FromText,
      VoiceMessageBodyTextType -> Text
forall a. (a -> Text) -> ToText a
toText :: VoiceMessageBodyTextType -> Text
$ctoText :: VoiceMessageBodyTextType -> Text
Data.ToText,
      VoiceMessageBodyTextType -> ByteString
forall a. (a -> ByteString) -> ToByteString a
toBS :: VoiceMessageBodyTextType -> ByteString
$ctoBS :: VoiceMessageBodyTextType -> ByteString
Data.ToByteString,
      VoiceMessageBodyTextType -> ByteStringBuilder
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: VoiceMessageBodyTextType -> ByteStringBuilder
$cbuild :: VoiceMessageBodyTextType -> ByteStringBuilder
Data.ToLog,
      HeaderName -> VoiceMessageBodyTextType -> [Header]
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> VoiceMessageBodyTextType -> [Header]
$ctoHeader :: HeaderName -> VoiceMessageBodyTextType -> [Header]
Data.ToHeader,
      VoiceMessageBodyTextType -> QueryString
forall a. (a -> QueryString) -> ToQuery a
toQuery :: VoiceMessageBodyTextType -> QueryString
$ctoQuery :: VoiceMessageBodyTextType -> QueryString
Data.ToQuery,
      Value -> Parser [VoiceMessageBodyTextType]
Value -> Parser VoiceMessageBodyTextType
forall a.
(Value -> Parser a) -> (Value -> Parser [a]) -> FromJSON a
parseJSONList :: Value -> Parser [VoiceMessageBodyTextType]
$cparseJSONList :: Value -> Parser [VoiceMessageBodyTextType]
parseJSON :: Value -> Parser VoiceMessageBodyTextType
$cparseJSON :: Value -> Parser VoiceMessageBodyTextType
Data.FromJSON,
      FromJSONKeyFunction [VoiceMessageBodyTextType]
FromJSONKeyFunction VoiceMessageBodyTextType
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [VoiceMessageBodyTextType]
$cfromJSONKeyList :: FromJSONKeyFunction [VoiceMessageBodyTextType]
fromJSONKey :: FromJSONKeyFunction VoiceMessageBodyTextType
$cfromJSONKey :: FromJSONKeyFunction VoiceMessageBodyTextType
Data.FromJSONKey,
      [VoiceMessageBodyTextType] -> Encoding
[VoiceMessageBodyTextType] -> Value
VoiceMessageBodyTextType -> Encoding
VoiceMessageBodyTextType -> Value
forall a.
(a -> Value)
-> (a -> Encoding)
-> ([a] -> Value)
-> ([a] -> Encoding)
-> ToJSON a
toEncodingList :: [VoiceMessageBodyTextType] -> Encoding
$ctoEncodingList :: [VoiceMessageBodyTextType] -> Encoding
toJSONList :: [VoiceMessageBodyTextType] -> Value
$ctoJSONList :: [VoiceMessageBodyTextType] -> Value
toEncoding :: VoiceMessageBodyTextType -> Encoding
$ctoEncoding :: VoiceMessageBodyTextType -> Encoding
toJSON :: VoiceMessageBodyTextType -> Value
$ctoJSON :: VoiceMessageBodyTextType -> Value
Data.ToJSON,
      ToJSONKeyFunction [VoiceMessageBodyTextType]
ToJSONKeyFunction VoiceMessageBodyTextType
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [VoiceMessageBodyTextType]
$ctoJSONKeyList :: ToJSONKeyFunction [VoiceMessageBodyTextType]
toJSONKey :: ToJSONKeyFunction VoiceMessageBodyTextType
$ctoJSONKey :: ToJSONKeyFunction VoiceMessageBodyTextType
Data.ToJSONKey,
      [Node] -> Either String VoiceMessageBodyTextType
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String VoiceMessageBodyTextType
$cparseXML :: [Node] -> Either String VoiceMessageBodyTextType
Data.FromXML,
      VoiceMessageBodyTextType -> XML
forall a. (a -> XML) -> ToXML a
toXML :: VoiceMessageBodyTextType -> XML
$ctoXML :: VoiceMessageBodyTextType -> XML
Data.ToXML
    )

pattern VoiceMessageBodyTextType_SSML :: VoiceMessageBodyTextType
pattern $bVoiceMessageBodyTextType_SSML :: VoiceMessageBodyTextType
$mVoiceMessageBodyTextType_SSML :: forall {r}.
VoiceMessageBodyTextType -> ((# #) -> r) -> ((# #) -> r) -> r
VoiceMessageBodyTextType_SSML = VoiceMessageBodyTextType' "SSML"

pattern VoiceMessageBodyTextType_TEXT :: VoiceMessageBodyTextType
pattern $bVoiceMessageBodyTextType_TEXT :: VoiceMessageBodyTextType
$mVoiceMessageBodyTextType_TEXT :: forall {r}.
VoiceMessageBodyTextType -> ((# #) -> r) -> ((# #) -> r) -> r
VoiceMessageBodyTextType_TEXT = VoiceMessageBodyTextType' "TEXT"

{-# COMPLETE
  VoiceMessageBodyTextType_SSML,
  VoiceMessageBodyTextType_TEXT,
  VoiceMessageBodyTextType'
  #-}