{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DerivingStrategies #-}
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# LANGUAGE LambdaCase #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE PatternSynonyms #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
module Amazonka.Chime.Types.ChannelMessagePersistenceType
( ChannelMessagePersistenceType
( ..,
ChannelMessagePersistenceType_NON_PERSISTENT,
ChannelMessagePersistenceType_PERSISTENT
),
)
where
import qualified Amazonka.Core as Core
import qualified Amazonka.Prelude as Prelude
newtype ChannelMessagePersistenceType = ChannelMessagePersistenceType'
{ ChannelMessagePersistenceType -> Text
fromChannelMessagePersistenceType ::
Core.Text
}
deriving stock
( Int -> ChannelMessagePersistenceType -> ShowS
[ChannelMessagePersistenceType] -> ShowS
ChannelMessagePersistenceType -> String
(Int -> ChannelMessagePersistenceType -> ShowS)
-> (ChannelMessagePersistenceType -> String)
-> ([ChannelMessagePersistenceType] -> ShowS)
-> Show ChannelMessagePersistenceType
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ChannelMessagePersistenceType] -> ShowS
$cshowList :: [ChannelMessagePersistenceType] -> ShowS
show :: ChannelMessagePersistenceType -> String
$cshow :: ChannelMessagePersistenceType -> String
showsPrec :: Int -> ChannelMessagePersistenceType -> ShowS
$cshowsPrec :: Int -> ChannelMessagePersistenceType -> ShowS
Prelude.Show,
ReadPrec [ChannelMessagePersistenceType]
ReadPrec ChannelMessagePersistenceType
Int -> ReadS ChannelMessagePersistenceType
ReadS [ChannelMessagePersistenceType]
(Int -> ReadS ChannelMessagePersistenceType)
-> ReadS [ChannelMessagePersistenceType]
-> ReadPrec ChannelMessagePersistenceType
-> ReadPrec [ChannelMessagePersistenceType]
-> Read ChannelMessagePersistenceType
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ChannelMessagePersistenceType]
$creadListPrec :: ReadPrec [ChannelMessagePersistenceType]
readPrec :: ReadPrec ChannelMessagePersistenceType
$creadPrec :: ReadPrec ChannelMessagePersistenceType
readList :: ReadS [ChannelMessagePersistenceType]
$creadList :: ReadS [ChannelMessagePersistenceType]
readsPrec :: Int -> ReadS ChannelMessagePersistenceType
$creadsPrec :: Int -> ReadS ChannelMessagePersistenceType
Prelude.Read,
ChannelMessagePersistenceType
-> ChannelMessagePersistenceType -> Bool
(ChannelMessagePersistenceType
-> ChannelMessagePersistenceType -> Bool)
-> (ChannelMessagePersistenceType
-> ChannelMessagePersistenceType -> Bool)
-> Eq ChannelMessagePersistenceType
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ChannelMessagePersistenceType
-> ChannelMessagePersistenceType -> Bool
$c/= :: ChannelMessagePersistenceType
-> ChannelMessagePersistenceType -> Bool
== :: ChannelMessagePersistenceType
-> ChannelMessagePersistenceType -> Bool
$c== :: ChannelMessagePersistenceType
-> ChannelMessagePersistenceType -> Bool
Prelude.Eq,
Eq ChannelMessagePersistenceType
Eq ChannelMessagePersistenceType
-> (ChannelMessagePersistenceType
-> ChannelMessagePersistenceType -> Ordering)
-> (ChannelMessagePersistenceType
-> ChannelMessagePersistenceType -> Bool)
-> (ChannelMessagePersistenceType
-> ChannelMessagePersistenceType -> Bool)
-> (ChannelMessagePersistenceType
-> ChannelMessagePersistenceType -> Bool)
-> (ChannelMessagePersistenceType
-> ChannelMessagePersistenceType -> Bool)
-> (ChannelMessagePersistenceType
-> ChannelMessagePersistenceType -> ChannelMessagePersistenceType)
-> (ChannelMessagePersistenceType
-> ChannelMessagePersistenceType -> ChannelMessagePersistenceType)
-> Ord ChannelMessagePersistenceType
ChannelMessagePersistenceType
-> ChannelMessagePersistenceType -> Bool
ChannelMessagePersistenceType
-> ChannelMessagePersistenceType -> Ordering
ChannelMessagePersistenceType
-> ChannelMessagePersistenceType -> ChannelMessagePersistenceType
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 :: ChannelMessagePersistenceType
-> ChannelMessagePersistenceType -> ChannelMessagePersistenceType
$cmin :: ChannelMessagePersistenceType
-> ChannelMessagePersistenceType -> ChannelMessagePersistenceType
max :: ChannelMessagePersistenceType
-> ChannelMessagePersistenceType -> ChannelMessagePersistenceType
$cmax :: ChannelMessagePersistenceType
-> ChannelMessagePersistenceType -> ChannelMessagePersistenceType
>= :: ChannelMessagePersistenceType
-> ChannelMessagePersistenceType -> Bool
$c>= :: ChannelMessagePersistenceType
-> ChannelMessagePersistenceType -> Bool
> :: ChannelMessagePersistenceType
-> ChannelMessagePersistenceType -> Bool
$c> :: ChannelMessagePersistenceType
-> ChannelMessagePersistenceType -> Bool
<= :: ChannelMessagePersistenceType
-> ChannelMessagePersistenceType -> Bool
$c<= :: ChannelMessagePersistenceType
-> ChannelMessagePersistenceType -> Bool
< :: ChannelMessagePersistenceType
-> ChannelMessagePersistenceType -> Bool
$c< :: ChannelMessagePersistenceType
-> ChannelMessagePersistenceType -> Bool
compare :: ChannelMessagePersistenceType
-> ChannelMessagePersistenceType -> Ordering
$ccompare :: ChannelMessagePersistenceType
-> ChannelMessagePersistenceType -> Ordering
$cp1Ord :: Eq ChannelMessagePersistenceType
Prelude.Ord,
(forall x.
ChannelMessagePersistenceType
-> Rep ChannelMessagePersistenceType x)
-> (forall x.
Rep ChannelMessagePersistenceType x
-> ChannelMessagePersistenceType)
-> Generic ChannelMessagePersistenceType
forall x.
Rep ChannelMessagePersistenceType x
-> ChannelMessagePersistenceType
forall x.
ChannelMessagePersistenceType
-> Rep ChannelMessagePersistenceType x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep ChannelMessagePersistenceType x
-> ChannelMessagePersistenceType
$cfrom :: forall x.
ChannelMessagePersistenceType
-> Rep ChannelMessagePersistenceType x
Prelude.Generic
)
deriving newtype
( Int -> ChannelMessagePersistenceType -> Int
ChannelMessagePersistenceType -> Int
(Int -> ChannelMessagePersistenceType -> Int)
-> (ChannelMessagePersistenceType -> Int)
-> Hashable ChannelMessagePersistenceType
forall a. (Int -> a -> Int) -> (a -> Int) -> Hashable a
hash :: ChannelMessagePersistenceType -> Int
$chash :: ChannelMessagePersistenceType -> Int
hashWithSalt :: Int -> ChannelMessagePersistenceType -> Int
$chashWithSalt :: Int -> ChannelMessagePersistenceType -> Int
Prelude.Hashable,
ChannelMessagePersistenceType -> ()
(ChannelMessagePersistenceType -> ())
-> NFData ChannelMessagePersistenceType
forall a. (a -> ()) -> NFData a
rnf :: ChannelMessagePersistenceType -> ()
$crnf :: ChannelMessagePersistenceType -> ()
Prelude.NFData,
Text -> Either String ChannelMessagePersistenceType
(Text -> Either String ChannelMessagePersistenceType)
-> FromText ChannelMessagePersistenceType
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String ChannelMessagePersistenceType
$cfromText :: Text -> Either String ChannelMessagePersistenceType
Core.FromText,
ChannelMessagePersistenceType -> Text
(ChannelMessagePersistenceType -> Text)
-> ToText ChannelMessagePersistenceType
forall a. (a -> Text) -> ToText a
toText :: ChannelMessagePersistenceType -> Text
$ctoText :: ChannelMessagePersistenceType -> Text
Core.ToText,
ChannelMessagePersistenceType -> ByteString
(ChannelMessagePersistenceType -> ByteString)
-> ToByteString ChannelMessagePersistenceType
forall a. (a -> ByteString) -> ToByteString a
toBS :: ChannelMessagePersistenceType -> ByteString
$ctoBS :: ChannelMessagePersistenceType -> ByteString
Core.ToByteString,
ChannelMessagePersistenceType -> ByteStringBuilder
(ChannelMessagePersistenceType -> ByteStringBuilder)
-> ToLog ChannelMessagePersistenceType
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: ChannelMessagePersistenceType -> ByteStringBuilder
$cbuild :: ChannelMessagePersistenceType -> ByteStringBuilder
Core.ToLog,
HeaderName -> ChannelMessagePersistenceType -> [Header]
(HeaderName -> ChannelMessagePersistenceType -> [Header])
-> ToHeader ChannelMessagePersistenceType
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> ChannelMessagePersistenceType -> [Header]
$ctoHeader :: HeaderName -> ChannelMessagePersistenceType -> [Header]
Core.ToHeader,
ChannelMessagePersistenceType -> QueryString
(ChannelMessagePersistenceType -> QueryString)
-> ToQuery ChannelMessagePersistenceType
forall a. (a -> QueryString) -> ToQuery a
toQuery :: ChannelMessagePersistenceType -> QueryString
$ctoQuery :: ChannelMessagePersistenceType -> QueryString
Core.ToQuery,
Value -> Parser [ChannelMessagePersistenceType]
Value -> Parser ChannelMessagePersistenceType
(Value -> Parser ChannelMessagePersistenceType)
-> (Value -> Parser [ChannelMessagePersistenceType])
-> FromJSON ChannelMessagePersistenceType
forall a.
(Value -> Parser a) -> (Value -> Parser [a]) -> FromJSON a
parseJSONList :: Value -> Parser [ChannelMessagePersistenceType]
$cparseJSONList :: Value -> Parser [ChannelMessagePersistenceType]
parseJSON :: Value -> Parser ChannelMessagePersistenceType
$cparseJSON :: Value -> Parser ChannelMessagePersistenceType
Core.FromJSON,
FromJSONKeyFunction [ChannelMessagePersistenceType]
FromJSONKeyFunction ChannelMessagePersistenceType
FromJSONKeyFunction ChannelMessagePersistenceType
-> FromJSONKeyFunction [ChannelMessagePersistenceType]
-> FromJSONKey ChannelMessagePersistenceType
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [ChannelMessagePersistenceType]
$cfromJSONKeyList :: FromJSONKeyFunction [ChannelMessagePersistenceType]
fromJSONKey :: FromJSONKeyFunction ChannelMessagePersistenceType
$cfromJSONKey :: FromJSONKeyFunction ChannelMessagePersistenceType
Core.FromJSONKey,
[ChannelMessagePersistenceType] -> Encoding
[ChannelMessagePersistenceType] -> Value
ChannelMessagePersistenceType -> Encoding
ChannelMessagePersistenceType -> Value
(ChannelMessagePersistenceType -> Value)
-> (ChannelMessagePersistenceType -> Encoding)
-> ([ChannelMessagePersistenceType] -> Value)
-> ([ChannelMessagePersistenceType] -> Encoding)
-> ToJSON ChannelMessagePersistenceType
forall a.
(a -> Value)
-> (a -> Encoding)
-> ([a] -> Value)
-> ([a] -> Encoding)
-> ToJSON a
toEncodingList :: [ChannelMessagePersistenceType] -> Encoding
$ctoEncodingList :: [ChannelMessagePersistenceType] -> Encoding
toJSONList :: [ChannelMessagePersistenceType] -> Value
$ctoJSONList :: [ChannelMessagePersistenceType] -> Value
toEncoding :: ChannelMessagePersistenceType -> Encoding
$ctoEncoding :: ChannelMessagePersistenceType -> Encoding
toJSON :: ChannelMessagePersistenceType -> Value
$ctoJSON :: ChannelMessagePersistenceType -> Value
Core.ToJSON,
ToJSONKeyFunction [ChannelMessagePersistenceType]
ToJSONKeyFunction ChannelMessagePersistenceType
ToJSONKeyFunction ChannelMessagePersistenceType
-> ToJSONKeyFunction [ChannelMessagePersistenceType]
-> ToJSONKey ChannelMessagePersistenceType
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [ChannelMessagePersistenceType]
$ctoJSONKeyList :: ToJSONKeyFunction [ChannelMessagePersistenceType]
toJSONKey :: ToJSONKeyFunction ChannelMessagePersistenceType
$ctoJSONKey :: ToJSONKeyFunction ChannelMessagePersistenceType
Core.ToJSONKey,
[Node] -> Either String ChannelMessagePersistenceType
([Node] -> Either String ChannelMessagePersistenceType)
-> FromXML ChannelMessagePersistenceType
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String ChannelMessagePersistenceType
$cparseXML :: [Node] -> Either String ChannelMessagePersistenceType
Core.FromXML,
ChannelMessagePersistenceType -> XML
(ChannelMessagePersistenceType -> XML)
-> ToXML ChannelMessagePersistenceType
forall a. (a -> XML) -> ToXML a
toXML :: ChannelMessagePersistenceType -> XML
$ctoXML :: ChannelMessagePersistenceType -> XML
Core.ToXML
)
pattern ChannelMessagePersistenceType_NON_PERSISTENT :: ChannelMessagePersistenceType
pattern $bChannelMessagePersistenceType_NON_PERSISTENT :: ChannelMessagePersistenceType
$mChannelMessagePersistenceType_NON_PERSISTENT :: forall r.
ChannelMessagePersistenceType -> (Void# -> r) -> (Void# -> r) -> r
ChannelMessagePersistenceType_NON_PERSISTENT = ChannelMessagePersistenceType' "NON_PERSISTENT"
pattern ChannelMessagePersistenceType_PERSISTENT :: ChannelMessagePersistenceType
pattern $bChannelMessagePersistenceType_PERSISTENT :: ChannelMessagePersistenceType
$mChannelMessagePersistenceType_PERSISTENT :: forall r.
ChannelMessagePersistenceType -> (Void# -> r) -> (Void# -> r) -> r
ChannelMessagePersistenceType_PERSISTENT = ChannelMessagePersistenceType' "PERSISTENT"
{-# COMPLETE
ChannelMessagePersistenceType_NON_PERSISTENT,
ChannelMessagePersistenceType_PERSISTENT,
ChannelMessagePersistenceType'
#-}