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