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