{-# 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.MediaTailor.Types.MessageType
-- 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.MediaTailor.Types.MessageType
  ( MessageType
      ( ..,
        MessageType_SPLICE_INSERT
      ),
  )
where

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

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

pattern MessageType_SPLICE_INSERT :: MessageType
pattern $bMessageType_SPLICE_INSERT :: MessageType
$mMessageType_SPLICE_INSERT :: forall r. MessageType -> (Void# -> r) -> (Void# -> r) -> r
MessageType_SPLICE_INSERT = MessageType' "SPLICE_INSERT"

{-# COMPLETE
  MessageType_SPLICE_INSERT,
  MessageType'
  #-}