{-# 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.LicenseConfigurationStatus
( LicenseConfigurationStatus
( ..,
LicenseConfigurationStatus_AVAILABLE,
LicenseConfigurationStatus_DISABLED
),
)
where
import qualified Amazonka.Core as Core
import qualified Amazonka.Prelude as Prelude
newtype LicenseConfigurationStatus = LicenseConfigurationStatus'
{ LicenseConfigurationStatus -> Text
fromLicenseConfigurationStatus ::
Core.Text
}
deriving stock
( Int -> LicenseConfigurationStatus -> ShowS
[LicenseConfigurationStatus] -> ShowS
LicenseConfigurationStatus -> String
(Int -> LicenseConfigurationStatus -> ShowS)
-> (LicenseConfigurationStatus -> String)
-> ([LicenseConfigurationStatus] -> ShowS)
-> Show LicenseConfigurationStatus
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [LicenseConfigurationStatus] -> ShowS
$cshowList :: [LicenseConfigurationStatus] -> ShowS
show :: LicenseConfigurationStatus -> String
$cshow :: LicenseConfigurationStatus -> String
showsPrec :: Int -> LicenseConfigurationStatus -> ShowS
$cshowsPrec :: Int -> LicenseConfigurationStatus -> ShowS
Prelude.Show,
ReadPrec [LicenseConfigurationStatus]
ReadPrec LicenseConfigurationStatus
Int -> ReadS LicenseConfigurationStatus
ReadS [LicenseConfigurationStatus]
(Int -> ReadS LicenseConfigurationStatus)
-> ReadS [LicenseConfigurationStatus]
-> ReadPrec LicenseConfigurationStatus
-> ReadPrec [LicenseConfigurationStatus]
-> Read LicenseConfigurationStatus
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [LicenseConfigurationStatus]
$creadListPrec :: ReadPrec [LicenseConfigurationStatus]
readPrec :: ReadPrec LicenseConfigurationStatus
$creadPrec :: ReadPrec LicenseConfigurationStatus
readList :: ReadS [LicenseConfigurationStatus]
$creadList :: ReadS [LicenseConfigurationStatus]
readsPrec :: Int -> ReadS LicenseConfigurationStatus
$creadsPrec :: Int -> ReadS LicenseConfigurationStatus
Prelude.Read,
LicenseConfigurationStatus -> LicenseConfigurationStatus -> Bool
(LicenseConfigurationStatus -> LicenseConfigurationStatus -> Bool)
-> (LicenseConfigurationStatus
-> LicenseConfigurationStatus -> Bool)
-> Eq LicenseConfigurationStatus
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: LicenseConfigurationStatus -> LicenseConfigurationStatus -> Bool
$c/= :: LicenseConfigurationStatus -> LicenseConfigurationStatus -> Bool
== :: LicenseConfigurationStatus -> LicenseConfigurationStatus -> Bool
$c== :: LicenseConfigurationStatus -> LicenseConfigurationStatus -> Bool
Prelude.Eq,
Eq LicenseConfigurationStatus
Eq LicenseConfigurationStatus
-> (LicenseConfigurationStatus
-> LicenseConfigurationStatus -> Ordering)
-> (LicenseConfigurationStatus
-> LicenseConfigurationStatus -> Bool)
-> (LicenseConfigurationStatus
-> LicenseConfigurationStatus -> Bool)
-> (LicenseConfigurationStatus
-> LicenseConfigurationStatus -> Bool)
-> (LicenseConfigurationStatus
-> LicenseConfigurationStatus -> Bool)
-> (LicenseConfigurationStatus
-> LicenseConfigurationStatus -> LicenseConfigurationStatus)
-> (LicenseConfigurationStatus
-> LicenseConfigurationStatus -> LicenseConfigurationStatus)
-> Ord LicenseConfigurationStatus
LicenseConfigurationStatus -> LicenseConfigurationStatus -> Bool
LicenseConfigurationStatus
-> LicenseConfigurationStatus -> Ordering
LicenseConfigurationStatus
-> LicenseConfigurationStatus -> LicenseConfigurationStatus
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 :: LicenseConfigurationStatus
-> LicenseConfigurationStatus -> LicenseConfigurationStatus
$cmin :: LicenseConfigurationStatus
-> LicenseConfigurationStatus -> LicenseConfigurationStatus
max :: LicenseConfigurationStatus
-> LicenseConfigurationStatus -> LicenseConfigurationStatus
$cmax :: LicenseConfigurationStatus
-> LicenseConfigurationStatus -> LicenseConfigurationStatus
>= :: LicenseConfigurationStatus -> LicenseConfigurationStatus -> Bool
$c>= :: LicenseConfigurationStatus -> LicenseConfigurationStatus -> Bool
> :: LicenseConfigurationStatus -> LicenseConfigurationStatus -> Bool
$c> :: LicenseConfigurationStatus -> LicenseConfigurationStatus -> Bool
<= :: LicenseConfigurationStatus -> LicenseConfigurationStatus -> Bool
$c<= :: LicenseConfigurationStatus -> LicenseConfigurationStatus -> Bool
< :: LicenseConfigurationStatus -> LicenseConfigurationStatus -> Bool
$c< :: LicenseConfigurationStatus -> LicenseConfigurationStatus -> Bool
compare :: LicenseConfigurationStatus
-> LicenseConfigurationStatus -> Ordering
$ccompare :: LicenseConfigurationStatus
-> LicenseConfigurationStatus -> Ordering
$cp1Ord :: Eq LicenseConfigurationStatus
Prelude.Ord,
(forall x.
LicenseConfigurationStatus -> Rep LicenseConfigurationStatus x)
-> (forall x.
Rep LicenseConfigurationStatus x -> LicenseConfigurationStatus)
-> Generic LicenseConfigurationStatus
forall x.
Rep LicenseConfigurationStatus x -> LicenseConfigurationStatus
forall x.
LicenseConfigurationStatus -> Rep LicenseConfigurationStatus x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep LicenseConfigurationStatus x -> LicenseConfigurationStatus
$cfrom :: forall x.
LicenseConfigurationStatus -> Rep LicenseConfigurationStatus x
Prelude.Generic
)
deriving newtype
( Int -> LicenseConfigurationStatus -> Int
LicenseConfigurationStatus -> Int
(Int -> LicenseConfigurationStatus -> Int)
-> (LicenseConfigurationStatus -> Int)
-> Hashable LicenseConfigurationStatus
forall a. (Int -> a -> Int) -> (a -> Int) -> Hashable a
hash :: LicenseConfigurationStatus -> Int
$chash :: LicenseConfigurationStatus -> Int
hashWithSalt :: Int -> LicenseConfigurationStatus -> Int
$chashWithSalt :: Int -> LicenseConfigurationStatus -> Int
Prelude.Hashable,
LicenseConfigurationStatus -> ()
(LicenseConfigurationStatus -> ())
-> NFData LicenseConfigurationStatus
forall a. (a -> ()) -> NFData a
rnf :: LicenseConfigurationStatus -> ()
$crnf :: LicenseConfigurationStatus -> ()
Prelude.NFData,
Text -> Either String LicenseConfigurationStatus
(Text -> Either String LicenseConfigurationStatus)
-> FromText LicenseConfigurationStatus
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String LicenseConfigurationStatus
$cfromText :: Text -> Either String LicenseConfigurationStatus
Core.FromText,
LicenseConfigurationStatus -> Text
(LicenseConfigurationStatus -> Text)
-> ToText LicenseConfigurationStatus
forall a. (a -> Text) -> ToText a
toText :: LicenseConfigurationStatus -> Text
$ctoText :: LicenseConfigurationStatus -> Text
Core.ToText,
LicenseConfigurationStatus -> ByteString
(LicenseConfigurationStatus -> ByteString)
-> ToByteString LicenseConfigurationStatus
forall a. (a -> ByteString) -> ToByteString a
toBS :: LicenseConfigurationStatus -> ByteString
$ctoBS :: LicenseConfigurationStatus -> ByteString
Core.ToByteString,
LicenseConfigurationStatus -> ByteStringBuilder
(LicenseConfigurationStatus -> ByteStringBuilder)
-> ToLog LicenseConfigurationStatus
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: LicenseConfigurationStatus -> ByteStringBuilder
$cbuild :: LicenseConfigurationStatus -> ByteStringBuilder
Core.ToLog,
HeaderName -> LicenseConfigurationStatus -> [Header]
(HeaderName -> LicenseConfigurationStatus -> [Header])
-> ToHeader LicenseConfigurationStatus
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> LicenseConfigurationStatus -> [Header]
$ctoHeader :: HeaderName -> LicenseConfigurationStatus -> [Header]
Core.ToHeader,
LicenseConfigurationStatus -> QueryString
(LicenseConfigurationStatus -> QueryString)
-> ToQuery LicenseConfigurationStatus
forall a. (a -> QueryString) -> ToQuery a
toQuery :: LicenseConfigurationStatus -> QueryString
$ctoQuery :: LicenseConfigurationStatus -> QueryString
Core.ToQuery,
Value -> Parser [LicenseConfigurationStatus]
Value -> Parser LicenseConfigurationStatus
(Value -> Parser LicenseConfigurationStatus)
-> (Value -> Parser [LicenseConfigurationStatus])
-> FromJSON LicenseConfigurationStatus
forall a.
(Value -> Parser a) -> (Value -> Parser [a]) -> FromJSON a
parseJSONList :: Value -> Parser [LicenseConfigurationStatus]
$cparseJSONList :: Value -> Parser [LicenseConfigurationStatus]
parseJSON :: Value -> Parser LicenseConfigurationStatus
$cparseJSON :: Value -> Parser LicenseConfigurationStatus
Core.FromJSON,
FromJSONKeyFunction [LicenseConfigurationStatus]
FromJSONKeyFunction LicenseConfigurationStatus
FromJSONKeyFunction LicenseConfigurationStatus
-> FromJSONKeyFunction [LicenseConfigurationStatus]
-> FromJSONKey LicenseConfigurationStatus
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [LicenseConfigurationStatus]
$cfromJSONKeyList :: FromJSONKeyFunction [LicenseConfigurationStatus]
fromJSONKey :: FromJSONKeyFunction LicenseConfigurationStatus
$cfromJSONKey :: FromJSONKeyFunction LicenseConfigurationStatus
Core.FromJSONKey,
[LicenseConfigurationStatus] -> Encoding
[LicenseConfigurationStatus] -> Value
LicenseConfigurationStatus -> Encoding
LicenseConfigurationStatus -> Value
(LicenseConfigurationStatus -> Value)
-> (LicenseConfigurationStatus -> Encoding)
-> ([LicenseConfigurationStatus] -> Value)
-> ([LicenseConfigurationStatus] -> Encoding)
-> ToJSON LicenseConfigurationStatus
forall a.
(a -> Value)
-> (a -> Encoding)
-> ([a] -> Value)
-> ([a] -> Encoding)
-> ToJSON a
toEncodingList :: [LicenseConfigurationStatus] -> Encoding
$ctoEncodingList :: [LicenseConfigurationStatus] -> Encoding
toJSONList :: [LicenseConfigurationStatus] -> Value
$ctoJSONList :: [LicenseConfigurationStatus] -> Value
toEncoding :: LicenseConfigurationStatus -> Encoding
$ctoEncoding :: LicenseConfigurationStatus -> Encoding
toJSON :: LicenseConfigurationStatus -> Value
$ctoJSON :: LicenseConfigurationStatus -> Value
Core.ToJSON,
ToJSONKeyFunction [LicenseConfigurationStatus]
ToJSONKeyFunction LicenseConfigurationStatus
ToJSONKeyFunction LicenseConfigurationStatus
-> ToJSONKeyFunction [LicenseConfigurationStatus]
-> ToJSONKey LicenseConfigurationStatus
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [LicenseConfigurationStatus]
$ctoJSONKeyList :: ToJSONKeyFunction [LicenseConfigurationStatus]
toJSONKey :: ToJSONKeyFunction LicenseConfigurationStatus
$ctoJSONKey :: ToJSONKeyFunction LicenseConfigurationStatus
Core.ToJSONKey,
[Node] -> Either String LicenseConfigurationStatus
([Node] -> Either String LicenseConfigurationStatus)
-> FromXML LicenseConfigurationStatus
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String LicenseConfigurationStatus
$cparseXML :: [Node] -> Either String LicenseConfigurationStatus
Core.FromXML,
LicenseConfigurationStatus -> XML
(LicenseConfigurationStatus -> XML)
-> ToXML LicenseConfigurationStatus
forall a. (a -> XML) -> ToXML a
toXML :: LicenseConfigurationStatus -> XML
$ctoXML :: LicenseConfigurationStatus -> XML
Core.ToXML
)
pattern LicenseConfigurationStatus_AVAILABLE :: LicenseConfigurationStatus
pattern $bLicenseConfigurationStatus_AVAILABLE :: LicenseConfigurationStatus
$mLicenseConfigurationStatus_AVAILABLE :: forall r.
LicenseConfigurationStatus -> (Void# -> r) -> (Void# -> r) -> r
LicenseConfigurationStatus_AVAILABLE = LicenseConfigurationStatus' "AVAILABLE"
pattern LicenseConfigurationStatus_DISABLED :: LicenseConfigurationStatus
pattern $bLicenseConfigurationStatus_DISABLED :: LicenseConfigurationStatus
$mLicenseConfigurationStatus_DISABLED :: forall r.
LicenseConfigurationStatus -> (Void# -> r) -> (Void# -> r) -> r
LicenseConfigurationStatus_DISABLED = LicenseConfigurationStatus' "DISABLED"
{-# COMPLETE
LicenseConfigurationStatus_AVAILABLE,
LicenseConfigurationStatus_DISABLED,
LicenseConfigurationStatus'
#-}