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