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