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