{-# 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.LicenseStatus
( LicenseStatus
( ..,
LicenseStatus_AVAILABLE,
LicenseStatus_DEACTIVATED,
LicenseStatus_DELETED,
LicenseStatus_EXPIRED,
LicenseStatus_PENDING_AVAILABLE,
LicenseStatus_PENDING_DELETE,
LicenseStatus_SUSPENDED
),
)
where
import qualified Amazonka.Core as Core
import qualified Amazonka.Data as Data
import qualified Amazonka.Prelude as Prelude
newtype LicenseStatus = LicenseStatus'
{ LicenseStatus -> Text
fromLicenseStatus ::
Data.Text
}
deriving stock
( Int -> LicenseStatus -> ShowS
[LicenseStatus] -> ShowS
LicenseStatus -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [LicenseStatus] -> ShowS
$cshowList :: [LicenseStatus] -> ShowS
show :: LicenseStatus -> String
$cshow :: LicenseStatus -> String
showsPrec :: Int -> LicenseStatus -> ShowS
$cshowsPrec :: Int -> LicenseStatus -> ShowS
Prelude.Show,
ReadPrec [LicenseStatus]
ReadPrec LicenseStatus
Int -> ReadS LicenseStatus
ReadS [LicenseStatus]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [LicenseStatus]
$creadListPrec :: ReadPrec [LicenseStatus]
readPrec :: ReadPrec LicenseStatus
$creadPrec :: ReadPrec LicenseStatus
readList :: ReadS [LicenseStatus]
$creadList :: ReadS [LicenseStatus]
readsPrec :: Int -> ReadS LicenseStatus
$creadsPrec :: Int -> ReadS LicenseStatus
Prelude.Read,
LicenseStatus -> LicenseStatus -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: LicenseStatus -> LicenseStatus -> Bool
$c/= :: LicenseStatus -> LicenseStatus -> Bool
== :: LicenseStatus -> LicenseStatus -> Bool
$c== :: LicenseStatus -> LicenseStatus -> Bool
Prelude.Eq,
Eq LicenseStatus
LicenseStatus -> LicenseStatus -> Bool
LicenseStatus -> LicenseStatus -> Ordering
LicenseStatus -> LicenseStatus -> LicenseStatus
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 :: LicenseStatus -> LicenseStatus -> LicenseStatus
$cmin :: LicenseStatus -> LicenseStatus -> LicenseStatus
max :: LicenseStatus -> LicenseStatus -> LicenseStatus
$cmax :: LicenseStatus -> LicenseStatus -> LicenseStatus
>= :: LicenseStatus -> LicenseStatus -> Bool
$c>= :: LicenseStatus -> LicenseStatus -> Bool
> :: LicenseStatus -> LicenseStatus -> Bool
$c> :: LicenseStatus -> LicenseStatus -> Bool
<= :: LicenseStatus -> LicenseStatus -> Bool
$c<= :: LicenseStatus -> LicenseStatus -> Bool
< :: LicenseStatus -> LicenseStatus -> Bool
$c< :: LicenseStatus -> LicenseStatus -> Bool
compare :: LicenseStatus -> LicenseStatus -> Ordering
$ccompare :: LicenseStatus -> LicenseStatus -> Ordering
Prelude.Ord,
forall x. Rep LicenseStatus x -> LicenseStatus
forall x. LicenseStatus -> Rep LicenseStatus x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep LicenseStatus x -> LicenseStatus
$cfrom :: forall x. LicenseStatus -> Rep LicenseStatus x
Prelude.Generic
)
deriving newtype
( Eq LicenseStatus
Int -> LicenseStatus -> Int
LicenseStatus -> Int
forall a. Eq a -> (Int -> a -> Int) -> (a -> Int) -> Hashable a
hash :: LicenseStatus -> Int
$chash :: LicenseStatus -> Int
hashWithSalt :: Int -> LicenseStatus -> Int
$chashWithSalt :: Int -> LicenseStatus -> Int
Prelude.Hashable,
LicenseStatus -> ()
forall a. (a -> ()) -> NFData a
rnf :: LicenseStatus -> ()
$crnf :: LicenseStatus -> ()
Prelude.NFData,
Text -> Either String LicenseStatus
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String LicenseStatus
$cfromText :: Text -> Either String LicenseStatus
Data.FromText,
LicenseStatus -> Text
forall a. (a -> Text) -> ToText a
toText :: LicenseStatus -> Text
$ctoText :: LicenseStatus -> Text
Data.ToText,
LicenseStatus -> ByteString
forall a. (a -> ByteString) -> ToByteString a
toBS :: LicenseStatus -> ByteString
$ctoBS :: LicenseStatus -> ByteString
Data.ToByteString,
LicenseStatus -> ByteStringBuilder
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: LicenseStatus -> ByteStringBuilder
$cbuild :: LicenseStatus -> ByteStringBuilder
Data.ToLog,
HeaderName -> LicenseStatus -> [Header]
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> LicenseStatus -> [Header]
$ctoHeader :: HeaderName -> LicenseStatus -> [Header]
Data.ToHeader,
LicenseStatus -> QueryString
forall a. (a -> QueryString) -> ToQuery a
toQuery :: LicenseStatus -> QueryString
$ctoQuery :: LicenseStatus -> QueryString
Data.ToQuery,
Value -> Parser [LicenseStatus]
Value -> Parser LicenseStatus
forall a.
(Value -> Parser a) -> (Value -> Parser [a]) -> FromJSON a
parseJSONList :: Value -> Parser [LicenseStatus]
$cparseJSONList :: Value -> Parser [LicenseStatus]
parseJSON :: Value -> Parser LicenseStatus
$cparseJSON :: Value -> Parser LicenseStatus
Data.FromJSON,
FromJSONKeyFunction [LicenseStatus]
FromJSONKeyFunction LicenseStatus
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [LicenseStatus]
$cfromJSONKeyList :: FromJSONKeyFunction [LicenseStatus]
fromJSONKey :: FromJSONKeyFunction LicenseStatus
$cfromJSONKey :: FromJSONKeyFunction LicenseStatus
Data.FromJSONKey,
[LicenseStatus] -> Encoding
[LicenseStatus] -> Value
LicenseStatus -> Encoding
LicenseStatus -> Value
forall a.
(a -> Value)
-> (a -> Encoding)
-> ([a] -> Value)
-> ([a] -> Encoding)
-> ToJSON a
toEncodingList :: [LicenseStatus] -> Encoding
$ctoEncodingList :: [LicenseStatus] -> Encoding
toJSONList :: [LicenseStatus] -> Value
$ctoJSONList :: [LicenseStatus] -> Value
toEncoding :: LicenseStatus -> Encoding
$ctoEncoding :: LicenseStatus -> Encoding
toJSON :: LicenseStatus -> Value
$ctoJSON :: LicenseStatus -> Value
Data.ToJSON,
ToJSONKeyFunction [LicenseStatus]
ToJSONKeyFunction LicenseStatus
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [LicenseStatus]
$ctoJSONKeyList :: ToJSONKeyFunction [LicenseStatus]
toJSONKey :: ToJSONKeyFunction LicenseStatus
$ctoJSONKey :: ToJSONKeyFunction LicenseStatus
Data.ToJSONKey,
[Node] -> Either String LicenseStatus
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String LicenseStatus
$cparseXML :: [Node] -> Either String LicenseStatus
Data.FromXML,
LicenseStatus -> XML
forall a. (a -> XML) -> ToXML a
toXML :: LicenseStatus -> XML
$ctoXML :: LicenseStatus -> XML
Data.ToXML
)
pattern LicenseStatus_AVAILABLE :: LicenseStatus
pattern $bLicenseStatus_AVAILABLE :: LicenseStatus
$mLicenseStatus_AVAILABLE :: forall {r}. LicenseStatus -> ((# #) -> r) -> ((# #) -> r) -> r
LicenseStatus_AVAILABLE = LicenseStatus' "AVAILABLE"
pattern LicenseStatus_DEACTIVATED :: LicenseStatus
pattern $bLicenseStatus_DEACTIVATED :: LicenseStatus
$mLicenseStatus_DEACTIVATED :: forall {r}. LicenseStatus -> ((# #) -> r) -> ((# #) -> r) -> r
LicenseStatus_DEACTIVATED = LicenseStatus' "DEACTIVATED"
pattern LicenseStatus_DELETED :: LicenseStatus
pattern $bLicenseStatus_DELETED :: LicenseStatus
$mLicenseStatus_DELETED :: forall {r}. LicenseStatus -> ((# #) -> r) -> ((# #) -> r) -> r
LicenseStatus_DELETED = LicenseStatus' "DELETED"
pattern LicenseStatus_EXPIRED :: LicenseStatus
pattern $bLicenseStatus_EXPIRED :: LicenseStatus
$mLicenseStatus_EXPIRED :: forall {r}. LicenseStatus -> ((# #) -> r) -> ((# #) -> r) -> r
LicenseStatus_EXPIRED = LicenseStatus' "EXPIRED"
pattern LicenseStatus_PENDING_AVAILABLE :: LicenseStatus
pattern $bLicenseStatus_PENDING_AVAILABLE :: LicenseStatus
$mLicenseStatus_PENDING_AVAILABLE :: forall {r}. LicenseStatus -> ((# #) -> r) -> ((# #) -> r) -> r
LicenseStatus_PENDING_AVAILABLE = LicenseStatus' "PENDING_AVAILABLE"
pattern LicenseStatus_PENDING_DELETE :: LicenseStatus
pattern $bLicenseStatus_PENDING_DELETE :: LicenseStatus
$mLicenseStatus_PENDING_DELETE :: forall {r}. LicenseStatus -> ((# #) -> r) -> ((# #) -> r) -> r
LicenseStatus_PENDING_DELETE = LicenseStatus' "PENDING_DELETE"
pattern LicenseStatus_SUSPENDED :: LicenseStatus
pattern $bLicenseStatus_SUSPENDED :: LicenseStatus
$mLicenseStatus_SUSPENDED :: forall {r}. LicenseStatus -> ((# #) -> r) -> ((# #) -> r) -> r
LicenseStatus_SUSPENDED = LicenseStatus' "SUSPENDED"
{-# COMPLETE
LicenseStatus_AVAILABLE,
LicenseStatus_DEACTIVATED,
LicenseStatus_DELETED,
LicenseStatus_EXPIRED,
LicenseStatus_PENDING_AVAILABLE,
LicenseStatus_PENDING_DELETE,
LicenseStatus_SUSPENDED,
LicenseStatus'
#-}