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