{-# 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.LexRuntime.Types.MessageFormatType
-- Copyright   : (c) 2013-2021 Brendan Hay
-- License     : Mozilla Public License, v. 2.0.
-- Maintainer  : Brendan Hay <brendan.g.hay+amazonka@gmail.com>
-- Stability   : auto-generated
-- Portability : non-portable (GHC extensions)
module Amazonka.LexRuntime.Types.MessageFormatType
  ( MessageFormatType
      ( ..,
        MessageFormatType_Composite,
        MessageFormatType_CustomPayload,
        MessageFormatType_PlainText,
        MessageFormatType_SSML
      ),
  )
where

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

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

pattern MessageFormatType_Composite :: MessageFormatType
pattern $bMessageFormatType_Composite :: MessageFormatType
$mMessageFormatType_Composite :: forall r. MessageFormatType -> (Void# -> r) -> (Void# -> r) -> r
MessageFormatType_Composite = MessageFormatType' "Composite"

pattern MessageFormatType_CustomPayload :: MessageFormatType
pattern $bMessageFormatType_CustomPayload :: MessageFormatType
$mMessageFormatType_CustomPayload :: forall r. MessageFormatType -> (Void# -> r) -> (Void# -> r) -> r
MessageFormatType_CustomPayload = MessageFormatType' "CustomPayload"

pattern MessageFormatType_PlainText :: MessageFormatType
pattern $bMessageFormatType_PlainText :: MessageFormatType
$mMessageFormatType_PlainText :: forall r. MessageFormatType -> (Void# -> r) -> (Void# -> r) -> r
MessageFormatType_PlainText = MessageFormatType' "PlainText"

pattern MessageFormatType_SSML :: MessageFormatType
pattern $bMessageFormatType_SSML :: MessageFormatType
$mMessageFormatType_SSML :: forall r. MessageFormatType -> (Void# -> r) -> (Void# -> r) -> r
MessageFormatType_SSML = MessageFormatType' "SSML"

{-# COMPLETE
  MessageFormatType_Composite,
  MessageFormatType_CustomPayload,
  MessageFormatType_PlainText,
  MessageFormatType_SSML,
  MessageFormatType'
  #-}