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