{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DerivingStrategies #-}
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# LANGUAGE LambdaCase #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE PatternSynonyms #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}

-- Derived from AWS service descriptions, licensed under Apache 2.0.

-- |
-- Module      : Amazonka.LicenseManager.Types.CheckoutType
-- Copyright   : (c) 2013-2023 Brendan Hay
-- License     : Mozilla Public License, v. 2.0.
-- Maintainer  : Brendan Hay
-- Stability   : auto-generated
-- Portability : non-portable (GHC extensions)
module Amazonka.LicenseManager.Types.CheckoutType
  ( CheckoutType
      ( ..,
        CheckoutType_PERPETUAL,
        CheckoutType_PROVISIONAL
      ),
  )
where

import qualified Amazonka.Core as Core
import qualified Amazonka.Data as Data
import qualified Amazonka.Prelude as Prelude

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

pattern CheckoutType_PERPETUAL :: CheckoutType
pattern $bCheckoutType_PERPETUAL :: CheckoutType
$mCheckoutType_PERPETUAL :: forall {r}. CheckoutType -> ((# #) -> r) -> ((# #) -> r) -> r
CheckoutType_PERPETUAL = CheckoutType' "PERPETUAL"

pattern CheckoutType_PROVISIONAL :: CheckoutType
pattern $bCheckoutType_PROVISIONAL :: CheckoutType
$mCheckoutType_PROVISIONAL :: forall {r}. CheckoutType -> ((# #) -> r) -> ((# #) -> r) -> r
CheckoutType_PROVISIONAL = CheckoutType' "PROVISIONAL"

{-# COMPLETE
  CheckoutType_PERPETUAL,
  CheckoutType_PROVISIONAL,
  CheckoutType'
  #-}