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