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