{-# 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-2021 Brendan Hay
-- License     : Mozilla Public License, v. 2.0.
-- Maintainer  : Brendan Hay <brendan.g.hay+amazonka@gmail.com>
-- 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.Prelude as Prelude

newtype CheckoutType = CheckoutType'
  { CheckoutType -> Text
fromCheckoutType ::
      Core.Text
  }
  deriving stock
    ( Int -> CheckoutType -> ShowS
[CheckoutType] -> ShowS
CheckoutType -> String
(Int -> CheckoutType -> ShowS)
-> (CheckoutType -> String)
-> ([CheckoutType] -> ShowS)
-> Show CheckoutType
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]
(Int -> ReadS CheckoutType)
-> ReadS [CheckoutType]
-> ReadPrec CheckoutType
-> ReadPrec [CheckoutType]
-> Read 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
(CheckoutType -> CheckoutType -> Bool)
-> (CheckoutType -> CheckoutType -> Bool) -> Eq CheckoutType
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
Eq CheckoutType
-> (CheckoutType -> CheckoutType -> Ordering)
-> (CheckoutType -> CheckoutType -> Bool)
-> (CheckoutType -> CheckoutType -> Bool)
-> (CheckoutType -> CheckoutType -> Bool)
-> (CheckoutType -> CheckoutType -> Bool)
-> (CheckoutType -> CheckoutType -> CheckoutType)
-> (CheckoutType -> CheckoutType -> CheckoutType)
-> Ord 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
$cp1Ord :: Eq CheckoutType
Prelude.Ord,
      (forall x. CheckoutType -> Rep CheckoutType x)
-> (forall x. Rep CheckoutType x -> CheckoutType)
-> Generic CheckoutType
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
    ( Int -> CheckoutType -> Int
CheckoutType -> Int
(Int -> CheckoutType -> Int)
-> (CheckoutType -> Int) -> Hashable CheckoutType
forall 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 -> ()
(CheckoutType -> ()) -> NFData CheckoutType
forall a. (a -> ()) -> NFData a
rnf :: CheckoutType -> ()
$crnf :: CheckoutType -> ()
Prelude.NFData,
      Text -> Either String CheckoutType
(Text -> Either String CheckoutType) -> FromText CheckoutType
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String CheckoutType
$cfromText :: Text -> Either String CheckoutType
Core.FromText,
      CheckoutType -> Text
(CheckoutType -> Text) -> ToText CheckoutType
forall a. (a -> Text) -> ToText a
toText :: CheckoutType -> Text
$ctoText :: CheckoutType -> Text
Core.ToText,
      CheckoutType -> ByteString
(CheckoutType -> ByteString) -> ToByteString CheckoutType
forall a. (a -> ByteString) -> ToByteString a
toBS :: CheckoutType -> ByteString
$ctoBS :: CheckoutType -> ByteString
Core.ToByteString,
      CheckoutType -> ByteStringBuilder
(CheckoutType -> ByteStringBuilder) -> ToLog CheckoutType
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: CheckoutType -> ByteStringBuilder
$cbuild :: CheckoutType -> ByteStringBuilder
Core.ToLog,
      HeaderName -> CheckoutType -> [Header]
(HeaderName -> CheckoutType -> [Header]) -> ToHeader CheckoutType
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> CheckoutType -> [Header]
$ctoHeader :: HeaderName -> CheckoutType -> [Header]
Core.ToHeader,
      CheckoutType -> QueryString
(CheckoutType -> QueryString) -> ToQuery CheckoutType
forall a. (a -> QueryString) -> ToQuery a
toQuery :: CheckoutType -> QueryString
$ctoQuery :: CheckoutType -> QueryString
Core.ToQuery,
      Value -> Parser [CheckoutType]
Value -> Parser CheckoutType
(Value -> Parser CheckoutType)
-> (Value -> Parser [CheckoutType]) -> FromJSON 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
Core.FromJSON,
      FromJSONKeyFunction [CheckoutType]
FromJSONKeyFunction CheckoutType
FromJSONKeyFunction CheckoutType
-> FromJSONKeyFunction [CheckoutType] -> FromJSONKey CheckoutType
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [CheckoutType]
$cfromJSONKeyList :: FromJSONKeyFunction [CheckoutType]
fromJSONKey :: FromJSONKeyFunction CheckoutType
$cfromJSONKey :: FromJSONKeyFunction CheckoutType
Core.FromJSONKey,
      [CheckoutType] -> Encoding
[CheckoutType] -> Value
CheckoutType -> Encoding
CheckoutType -> Value
(CheckoutType -> Value)
-> (CheckoutType -> Encoding)
-> ([CheckoutType] -> Value)
-> ([CheckoutType] -> Encoding)
-> ToJSON CheckoutType
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
Core.ToJSON,
      ToJSONKeyFunction [CheckoutType]
ToJSONKeyFunction CheckoutType
ToJSONKeyFunction CheckoutType
-> ToJSONKeyFunction [CheckoutType] -> ToJSONKey CheckoutType
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [CheckoutType]
$ctoJSONKeyList :: ToJSONKeyFunction [CheckoutType]
toJSONKey :: ToJSONKeyFunction CheckoutType
$ctoJSONKey :: ToJSONKeyFunction CheckoutType
Core.ToJSONKey,
      [Node] -> Either String CheckoutType
([Node] -> Either String CheckoutType) -> FromXML CheckoutType
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String CheckoutType
$cparseXML :: [Node] -> Either String CheckoutType
Core.FromXML,
      CheckoutType -> XML
(CheckoutType -> XML) -> ToXML CheckoutType
forall a. (a -> XML) -> ToXML a
toXML :: CheckoutType -> XML
$ctoXML :: CheckoutType -> XML
Core.ToXML
    )

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

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

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