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