{-# 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.Chime.Types.ChannelMessageType
-- 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.Chime.Types.ChannelMessageType
  ( ChannelMessageType
      ( ..,
        ChannelMessageType_CONTROL,
        ChannelMessageType_STANDARD
      ),
  )
where

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

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

pattern ChannelMessageType_CONTROL :: ChannelMessageType
pattern $bChannelMessageType_CONTROL :: ChannelMessageType
$mChannelMessageType_CONTROL :: forall {r}. ChannelMessageType -> ((# #) -> r) -> ((# #) -> r) -> r
ChannelMessageType_CONTROL = ChannelMessageType' "CONTROL"

pattern ChannelMessageType_STANDARD :: ChannelMessageType
pattern $bChannelMessageType_STANDARD :: ChannelMessageType
$mChannelMessageType_STANDARD :: forall {r}. ChannelMessageType -> ((# #) -> r) -> ((# #) -> r) -> r
ChannelMessageType_STANDARD = ChannelMessageType' "STANDARD"

{-# COMPLETE
  ChannelMessageType_CONTROL,
  ChannelMessageType_STANDARD,
  ChannelMessageType'
  #-}