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