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