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