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