{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DerivingStrategies #-}
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# LANGUAGE LambdaCase #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE PatternSynonyms #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
module Amazonka.LicenseManager.Types.ReceivedStatus
( ReceivedStatus
( ..,
ReceivedStatus_ACTIVE,
ReceivedStatus_DELETED,
ReceivedStatus_DISABLED,
ReceivedStatus_FAILED_WORKFLOW,
ReceivedStatus_PENDING_ACCEPT,
ReceivedStatus_PENDING_WORKFLOW,
ReceivedStatus_REJECTED,
ReceivedStatus_WORKFLOW_COMPLETED
),
)
where
import qualified Amazonka.Core as Core
import qualified Amazonka.Prelude as Prelude
newtype ReceivedStatus = ReceivedStatus'
{ ReceivedStatus -> Text
fromReceivedStatus ::
Core.Text
}
deriving stock
( Int -> ReceivedStatus -> ShowS
[ReceivedStatus] -> ShowS
ReceivedStatus -> String
(Int -> ReceivedStatus -> ShowS)
-> (ReceivedStatus -> String)
-> ([ReceivedStatus] -> ShowS)
-> Show ReceivedStatus
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ReceivedStatus] -> ShowS
$cshowList :: [ReceivedStatus] -> ShowS
show :: ReceivedStatus -> String
$cshow :: ReceivedStatus -> String
showsPrec :: Int -> ReceivedStatus -> ShowS
$cshowsPrec :: Int -> ReceivedStatus -> ShowS
Prelude.Show,
ReadPrec [ReceivedStatus]
ReadPrec ReceivedStatus
Int -> ReadS ReceivedStatus
ReadS [ReceivedStatus]
(Int -> ReadS ReceivedStatus)
-> ReadS [ReceivedStatus]
-> ReadPrec ReceivedStatus
-> ReadPrec [ReceivedStatus]
-> Read ReceivedStatus
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ReceivedStatus]
$creadListPrec :: ReadPrec [ReceivedStatus]
readPrec :: ReadPrec ReceivedStatus
$creadPrec :: ReadPrec ReceivedStatus
readList :: ReadS [ReceivedStatus]
$creadList :: ReadS [ReceivedStatus]
readsPrec :: Int -> ReadS ReceivedStatus
$creadsPrec :: Int -> ReadS ReceivedStatus
Prelude.Read,
ReceivedStatus -> ReceivedStatus -> Bool
(ReceivedStatus -> ReceivedStatus -> Bool)
-> (ReceivedStatus -> ReceivedStatus -> Bool) -> Eq ReceivedStatus
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ReceivedStatus -> ReceivedStatus -> Bool
$c/= :: ReceivedStatus -> ReceivedStatus -> Bool
== :: ReceivedStatus -> ReceivedStatus -> Bool
$c== :: ReceivedStatus -> ReceivedStatus -> Bool
Prelude.Eq,
Eq ReceivedStatus
Eq ReceivedStatus
-> (ReceivedStatus -> ReceivedStatus -> Ordering)
-> (ReceivedStatus -> ReceivedStatus -> Bool)
-> (ReceivedStatus -> ReceivedStatus -> Bool)
-> (ReceivedStatus -> ReceivedStatus -> Bool)
-> (ReceivedStatus -> ReceivedStatus -> Bool)
-> (ReceivedStatus -> ReceivedStatus -> ReceivedStatus)
-> (ReceivedStatus -> ReceivedStatus -> ReceivedStatus)
-> Ord ReceivedStatus
ReceivedStatus -> ReceivedStatus -> Bool
ReceivedStatus -> ReceivedStatus -> Ordering
ReceivedStatus -> ReceivedStatus -> ReceivedStatus
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 :: ReceivedStatus -> ReceivedStatus -> ReceivedStatus
$cmin :: ReceivedStatus -> ReceivedStatus -> ReceivedStatus
max :: ReceivedStatus -> ReceivedStatus -> ReceivedStatus
$cmax :: ReceivedStatus -> ReceivedStatus -> ReceivedStatus
>= :: ReceivedStatus -> ReceivedStatus -> Bool
$c>= :: ReceivedStatus -> ReceivedStatus -> Bool
> :: ReceivedStatus -> ReceivedStatus -> Bool
$c> :: ReceivedStatus -> ReceivedStatus -> Bool
<= :: ReceivedStatus -> ReceivedStatus -> Bool
$c<= :: ReceivedStatus -> ReceivedStatus -> Bool
< :: ReceivedStatus -> ReceivedStatus -> Bool
$c< :: ReceivedStatus -> ReceivedStatus -> Bool
compare :: ReceivedStatus -> ReceivedStatus -> Ordering
$ccompare :: ReceivedStatus -> ReceivedStatus -> Ordering
$cp1Ord :: Eq ReceivedStatus
Prelude.Ord,
(forall x. ReceivedStatus -> Rep ReceivedStatus x)
-> (forall x. Rep ReceivedStatus x -> ReceivedStatus)
-> Generic ReceivedStatus
forall x. Rep ReceivedStatus x -> ReceivedStatus
forall x. ReceivedStatus -> Rep ReceivedStatus x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep ReceivedStatus x -> ReceivedStatus
$cfrom :: forall x. ReceivedStatus -> Rep ReceivedStatus x
Prelude.Generic
)
deriving newtype
( Int -> ReceivedStatus -> Int
ReceivedStatus -> Int
(Int -> ReceivedStatus -> Int)
-> (ReceivedStatus -> Int) -> Hashable ReceivedStatus
forall a. (Int -> a -> Int) -> (a -> Int) -> Hashable a
hash :: ReceivedStatus -> Int
$chash :: ReceivedStatus -> Int
hashWithSalt :: Int -> ReceivedStatus -> Int
$chashWithSalt :: Int -> ReceivedStatus -> Int
Prelude.Hashable,
ReceivedStatus -> ()
(ReceivedStatus -> ()) -> NFData ReceivedStatus
forall a. (a -> ()) -> NFData a
rnf :: ReceivedStatus -> ()
$crnf :: ReceivedStatus -> ()
Prelude.NFData,
Text -> Either String ReceivedStatus
(Text -> Either String ReceivedStatus) -> FromText ReceivedStatus
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String ReceivedStatus
$cfromText :: Text -> Either String ReceivedStatus
Core.FromText,
ReceivedStatus -> Text
(ReceivedStatus -> Text) -> ToText ReceivedStatus
forall a. (a -> Text) -> ToText a
toText :: ReceivedStatus -> Text
$ctoText :: ReceivedStatus -> Text
Core.ToText,
ReceivedStatus -> ByteString
(ReceivedStatus -> ByteString) -> ToByteString ReceivedStatus
forall a. (a -> ByteString) -> ToByteString a
toBS :: ReceivedStatus -> ByteString
$ctoBS :: ReceivedStatus -> ByteString
Core.ToByteString,
ReceivedStatus -> ByteStringBuilder
(ReceivedStatus -> ByteStringBuilder) -> ToLog ReceivedStatus
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: ReceivedStatus -> ByteStringBuilder
$cbuild :: ReceivedStatus -> ByteStringBuilder
Core.ToLog,
HeaderName -> ReceivedStatus -> [Header]
(HeaderName -> ReceivedStatus -> [Header])
-> ToHeader ReceivedStatus
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> ReceivedStatus -> [Header]
$ctoHeader :: HeaderName -> ReceivedStatus -> [Header]
Core.ToHeader,
ReceivedStatus -> QueryString
(ReceivedStatus -> QueryString) -> ToQuery ReceivedStatus
forall a. (a -> QueryString) -> ToQuery a
toQuery :: ReceivedStatus -> QueryString
$ctoQuery :: ReceivedStatus -> QueryString
Core.ToQuery,
Value -> Parser [ReceivedStatus]
Value -> Parser ReceivedStatus
(Value -> Parser ReceivedStatus)
-> (Value -> Parser [ReceivedStatus]) -> FromJSON ReceivedStatus
forall a.
(Value -> Parser a) -> (Value -> Parser [a]) -> FromJSON a
parseJSONList :: Value -> Parser [ReceivedStatus]
$cparseJSONList :: Value -> Parser [ReceivedStatus]
parseJSON :: Value -> Parser ReceivedStatus
$cparseJSON :: Value -> Parser ReceivedStatus
Core.FromJSON,
FromJSONKeyFunction [ReceivedStatus]
FromJSONKeyFunction ReceivedStatus
FromJSONKeyFunction ReceivedStatus
-> FromJSONKeyFunction [ReceivedStatus]
-> FromJSONKey ReceivedStatus
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [ReceivedStatus]
$cfromJSONKeyList :: FromJSONKeyFunction [ReceivedStatus]
fromJSONKey :: FromJSONKeyFunction ReceivedStatus
$cfromJSONKey :: FromJSONKeyFunction ReceivedStatus
Core.FromJSONKey,
[ReceivedStatus] -> Encoding
[ReceivedStatus] -> Value
ReceivedStatus -> Encoding
ReceivedStatus -> Value
(ReceivedStatus -> Value)
-> (ReceivedStatus -> Encoding)
-> ([ReceivedStatus] -> Value)
-> ([ReceivedStatus] -> Encoding)
-> ToJSON ReceivedStatus
forall a.
(a -> Value)
-> (a -> Encoding)
-> ([a] -> Value)
-> ([a] -> Encoding)
-> ToJSON a
toEncodingList :: [ReceivedStatus] -> Encoding
$ctoEncodingList :: [ReceivedStatus] -> Encoding
toJSONList :: [ReceivedStatus] -> Value
$ctoJSONList :: [ReceivedStatus] -> Value
toEncoding :: ReceivedStatus -> Encoding
$ctoEncoding :: ReceivedStatus -> Encoding
toJSON :: ReceivedStatus -> Value
$ctoJSON :: ReceivedStatus -> Value
Core.ToJSON,
ToJSONKeyFunction [ReceivedStatus]
ToJSONKeyFunction ReceivedStatus
ToJSONKeyFunction ReceivedStatus
-> ToJSONKeyFunction [ReceivedStatus] -> ToJSONKey ReceivedStatus
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [ReceivedStatus]
$ctoJSONKeyList :: ToJSONKeyFunction [ReceivedStatus]
toJSONKey :: ToJSONKeyFunction ReceivedStatus
$ctoJSONKey :: ToJSONKeyFunction ReceivedStatus
Core.ToJSONKey,
[Node] -> Either String ReceivedStatus
([Node] -> Either String ReceivedStatus) -> FromXML ReceivedStatus
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String ReceivedStatus
$cparseXML :: [Node] -> Either String ReceivedStatus
Core.FromXML,
ReceivedStatus -> XML
(ReceivedStatus -> XML) -> ToXML ReceivedStatus
forall a. (a -> XML) -> ToXML a
toXML :: ReceivedStatus -> XML
$ctoXML :: ReceivedStatus -> XML
Core.ToXML
)
pattern ReceivedStatus_ACTIVE :: ReceivedStatus
pattern $bReceivedStatus_ACTIVE :: ReceivedStatus
$mReceivedStatus_ACTIVE :: forall r. ReceivedStatus -> (Void# -> r) -> (Void# -> r) -> r
ReceivedStatus_ACTIVE = ReceivedStatus' "ACTIVE"
pattern ReceivedStatus_DELETED :: ReceivedStatus
pattern $bReceivedStatus_DELETED :: ReceivedStatus
$mReceivedStatus_DELETED :: forall r. ReceivedStatus -> (Void# -> r) -> (Void# -> r) -> r
ReceivedStatus_DELETED = ReceivedStatus' "DELETED"
pattern ReceivedStatus_DISABLED :: ReceivedStatus
pattern $bReceivedStatus_DISABLED :: ReceivedStatus
$mReceivedStatus_DISABLED :: forall r. ReceivedStatus -> (Void# -> r) -> (Void# -> r) -> r
ReceivedStatus_DISABLED = ReceivedStatus' "DISABLED"
pattern ReceivedStatus_FAILED_WORKFLOW :: ReceivedStatus
pattern $bReceivedStatus_FAILED_WORKFLOW :: ReceivedStatus
$mReceivedStatus_FAILED_WORKFLOW :: forall r. ReceivedStatus -> (Void# -> r) -> (Void# -> r) -> r
ReceivedStatus_FAILED_WORKFLOW = ReceivedStatus' "FAILED_WORKFLOW"
pattern ReceivedStatus_PENDING_ACCEPT :: ReceivedStatus
pattern $bReceivedStatus_PENDING_ACCEPT :: ReceivedStatus
$mReceivedStatus_PENDING_ACCEPT :: forall r. ReceivedStatus -> (Void# -> r) -> (Void# -> r) -> r
ReceivedStatus_PENDING_ACCEPT = ReceivedStatus' "PENDING_ACCEPT"
pattern ReceivedStatus_PENDING_WORKFLOW :: ReceivedStatus
pattern $bReceivedStatus_PENDING_WORKFLOW :: ReceivedStatus
$mReceivedStatus_PENDING_WORKFLOW :: forall r. ReceivedStatus -> (Void# -> r) -> (Void# -> r) -> r
ReceivedStatus_PENDING_WORKFLOW = ReceivedStatus' "PENDING_WORKFLOW"
pattern ReceivedStatus_REJECTED :: ReceivedStatus
pattern $bReceivedStatus_REJECTED :: ReceivedStatus
$mReceivedStatus_REJECTED :: forall r. ReceivedStatus -> (Void# -> r) -> (Void# -> r) -> r
ReceivedStatus_REJECTED = ReceivedStatus' "REJECTED"
pattern ReceivedStatus_WORKFLOW_COMPLETED :: ReceivedStatus
pattern $bReceivedStatus_WORKFLOW_COMPLETED :: ReceivedStatus
$mReceivedStatus_WORKFLOW_COMPLETED :: forall r. ReceivedStatus -> (Void# -> r) -> (Void# -> r) -> r
ReceivedStatus_WORKFLOW_COMPLETED = ReceivedStatus' "WORKFLOW_COMPLETED"
{-# COMPLETE
ReceivedStatus_ACTIVE,
ReceivedStatus_DELETED,
ReceivedStatus_DISABLED,
ReceivedStatus_FAILED_WORKFLOW,
ReceivedStatus_PENDING_ACCEPT,
ReceivedStatus_PENDING_WORKFLOW,
ReceivedStatus_REJECTED,
ReceivedStatus_WORKFLOW_COMPLETED,
ReceivedStatus'
#-}