{-# 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.SavingsPlanRatePropertyKey
( SavingsPlanRatePropertyKey
( ..,
SavingsPlanRatePropertyKey_InstanceFamily,
SavingsPlanRatePropertyKey_InstanceType,
SavingsPlanRatePropertyKey_ProductDescription,
SavingsPlanRatePropertyKey_Region,
SavingsPlanRatePropertyKey_Tenancy
),
)
where
import qualified Amazonka.Core as Core
import qualified Amazonka.Prelude as Prelude
newtype SavingsPlanRatePropertyKey = SavingsPlanRatePropertyKey'
{ SavingsPlanRatePropertyKey -> Text
fromSavingsPlanRatePropertyKey ::
Core.Text
}
deriving stock
( Int -> SavingsPlanRatePropertyKey -> ShowS
[SavingsPlanRatePropertyKey] -> ShowS
SavingsPlanRatePropertyKey -> String
(Int -> SavingsPlanRatePropertyKey -> ShowS)
-> (SavingsPlanRatePropertyKey -> String)
-> ([SavingsPlanRatePropertyKey] -> ShowS)
-> Show SavingsPlanRatePropertyKey
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [SavingsPlanRatePropertyKey] -> ShowS
$cshowList :: [SavingsPlanRatePropertyKey] -> ShowS
show :: SavingsPlanRatePropertyKey -> String
$cshow :: SavingsPlanRatePropertyKey -> String
showsPrec :: Int -> SavingsPlanRatePropertyKey -> ShowS
$cshowsPrec :: Int -> SavingsPlanRatePropertyKey -> ShowS
Prelude.Show,
ReadPrec [SavingsPlanRatePropertyKey]
ReadPrec SavingsPlanRatePropertyKey
Int -> ReadS SavingsPlanRatePropertyKey
ReadS [SavingsPlanRatePropertyKey]
(Int -> ReadS SavingsPlanRatePropertyKey)
-> ReadS [SavingsPlanRatePropertyKey]
-> ReadPrec SavingsPlanRatePropertyKey
-> ReadPrec [SavingsPlanRatePropertyKey]
-> Read SavingsPlanRatePropertyKey
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [SavingsPlanRatePropertyKey]
$creadListPrec :: ReadPrec [SavingsPlanRatePropertyKey]
readPrec :: ReadPrec SavingsPlanRatePropertyKey
$creadPrec :: ReadPrec SavingsPlanRatePropertyKey
readList :: ReadS [SavingsPlanRatePropertyKey]
$creadList :: ReadS [SavingsPlanRatePropertyKey]
readsPrec :: Int -> ReadS SavingsPlanRatePropertyKey
$creadsPrec :: Int -> ReadS SavingsPlanRatePropertyKey
Prelude.Read,
SavingsPlanRatePropertyKey -> SavingsPlanRatePropertyKey -> Bool
(SavingsPlanRatePropertyKey -> SavingsPlanRatePropertyKey -> Bool)
-> (SavingsPlanRatePropertyKey
-> SavingsPlanRatePropertyKey -> Bool)
-> Eq SavingsPlanRatePropertyKey
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: SavingsPlanRatePropertyKey -> SavingsPlanRatePropertyKey -> Bool
$c/= :: SavingsPlanRatePropertyKey -> SavingsPlanRatePropertyKey -> Bool
== :: SavingsPlanRatePropertyKey -> SavingsPlanRatePropertyKey -> Bool
$c== :: SavingsPlanRatePropertyKey -> SavingsPlanRatePropertyKey -> Bool
Prelude.Eq,
Eq SavingsPlanRatePropertyKey
Eq SavingsPlanRatePropertyKey
-> (SavingsPlanRatePropertyKey
-> SavingsPlanRatePropertyKey -> Ordering)
-> (SavingsPlanRatePropertyKey
-> SavingsPlanRatePropertyKey -> Bool)
-> (SavingsPlanRatePropertyKey
-> SavingsPlanRatePropertyKey -> Bool)
-> (SavingsPlanRatePropertyKey
-> SavingsPlanRatePropertyKey -> Bool)
-> (SavingsPlanRatePropertyKey
-> SavingsPlanRatePropertyKey -> Bool)
-> (SavingsPlanRatePropertyKey
-> SavingsPlanRatePropertyKey -> SavingsPlanRatePropertyKey)
-> (SavingsPlanRatePropertyKey
-> SavingsPlanRatePropertyKey -> SavingsPlanRatePropertyKey)
-> Ord SavingsPlanRatePropertyKey
SavingsPlanRatePropertyKey -> SavingsPlanRatePropertyKey -> Bool
SavingsPlanRatePropertyKey
-> SavingsPlanRatePropertyKey -> Ordering
SavingsPlanRatePropertyKey
-> SavingsPlanRatePropertyKey -> SavingsPlanRatePropertyKey
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 :: SavingsPlanRatePropertyKey
-> SavingsPlanRatePropertyKey -> SavingsPlanRatePropertyKey
$cmin :: SavingsPlanRatePropertyKey
-> SavingsPlanRatePropertyKey -> SavingsPlanRatePropertyKey
max :: SavingsPlanRatePropertyKey
-> SavingsPlanRatePropertyKey -> SavingsPlanRatePropertyKey
$cmax :: SavingsPlanRatePropertyKey
-> SavingsPlanRatePropertyKey -> SavingsPlanRatePropertyKey
>= :: SavingsPlanRatePropertyKey -> SavingsPlanRatePropertyKey -> Bool
$c>= :: SavingsPlanRatePropertyKey -> SavingsPlanRatePropertyKey -> Bool
> :: SavingsPlanRatePropertyKey -> SavingsPlanRatePropertyKey -> Bool
$c> :: SavingsPlanRatePropertyKey -> SavingsPlanRatePropertyKey -> Bool
<= :: SavingsPlanRatePropertyKey -> SavingsPlanRatePropertyKey -> Bool
$c<= :: SavingsPlanRatePropertyKey -> SavingsPlanRatePropertyKey -> Bool
< :: SavingsPlanRatePropertyKey -> SavingsPlanRatePropertyKey -> Bool
$c< :: SavingsPlanRatePropertyKey -> SavingsPlanRatePropertyKey -> Bool
compare :: SavingsPlanRatePropertyKey
-> SavingsPlanRatePropertyKey -> Ordering
$ccompare :: SavingsPlanRatePropertyKey
-> SavingsPlanRatePropertyKey -> Ordering
$cp1Ord :: Eq SavingsPlanRatePropertyKey
Prelude.Ord,
(forall x.
SavingsPlanRatePropertyKey -> Rep SavingsPlanRatePropertyKey x)
-> (forall x.
Rep SavingsPlanRatePropertyKey x -> SavingsPlanRatePropertyKey)
-> Generic SavingsPlanRatePropertyKey
forall x.
Rep SavingsPlanRatePropertyKey x -> SavingsPlanRatePropertyKey
forall x.
SavingsPlanRatePropertyKey -> Rep SavingsPlanRatePropertyKey x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep SavingsPlanRatePropertyKey x -> SavingsPlanRatePropertyKey
$cfrom :: forall x.
SavingsPlanRatePropertyKey -> Rep SavingsPlanRatePropertyKey x
Prelude.Generic
)
deriving newtype
( Int -> SavingsPlanRatePropertyKey -> Int
SavingsPlanRatePropertyKey -> Int
(Int -> SavingsPlanRatePropertyKey -> Int)
-> (SavingsPlanRatePropertyKey -> Int)
-> Hashable SavingsPlanRatePropertyKey
forall a. (Int -> a -> Int) -> (a -> Int) -> Hashable a
hash :: SavingsPlanRatePropertyKey -> Int
$chash :: SavingsPlanRatePropertyKey -> Int
hashWithSalt :: Int -> SavingsPlanRatePropertyKey -> Int
$chashWithSalt :: Int -> SavingsPlanRatePropertyKey -> Int
Prelude.Hashable,
SavingsPlanRatePropertyKey -> ()
(SavingsPlanRatePropertyKey -> ())
-> NFData SavingsPlanRatePropertyKey
forall a. (a -> ()) -> NFData a
rnf :: SavingsPlanRatePropertyKey -> ()
$crnf :: SavingsPlanRatePropertyKey -> ()
Prelude.NFData,
Text -> Either String SavingsPlanRatePropertyKey
(Text -> Either String SavingsPlanRatePropertyKey)
-> FromText SavingsPlanRatePropertyKey
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String SavingsPlanRatePropertyKey
$cfromText :: Text -> Either String SavingsPlanRatePropertyKey
Core.FromText,
SavingsPlanRatePropertyKey -> Text
(SavingsPlanRatePropertyKey -> Text)
-> ToText SavingsPlanRatePropertyKey
forall a. (a -> Text) -> ToText a
toText :: SavingsPlanRatePropertyKey -> Text
$ctoText :: SavingsPlanRatePropertyKey -> Text
Core.ToText,
SavingsPlanRatePropertyKey -> ByteString
(SavingsPlanRatePropertyKey -> ByteString)
-> ToByteString SavingsPlanRatePropertyKey
forall a. (a -> ByteString) -> ToByteString a
toBS :: SavingsPlanRatePropertyKey -> ByteString
$ctoBS :: SavingsPlanRatePropertyKey -> ByteString
Core.ToByteString,
SavingsPlanRatePropertyKey -> ByteStringBuilder
(SavingsPlanRatePropertyKey -> ByteStringBuilder)
-> ToLog SavingsPlanRatePropertyKey
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: SavingsPlanRatePropertyKey -> ByteStringBuilder
$cbuild :: SavingsPlanRatePropertyKey -> ByteStringBuilder
Core.ToLog,
HeaderName -> SavingsPlanRatePropertyKey -> [Header]
(HeaderName -> SavingsPlanRatePropertyKey -> [Header])
-> ToHeader SavingsPlanRatePropertyKey
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> SavingsPlanRatePropertyKey -> [Header]
$ctoHeader :: HeaderName -> SavingsPlanRatePropertyKey -> [Header]
Core.ToHeader,
SavingsPlanRatePropertyKey -> QueryString
(SavingsPlanRatePropertyKey -> QueryString)
-> ToQuery SavingsPlanRatePropertyKey
forall a. (a -> QueryString) -> ToQuery a
toQuery :: SavingsPlanRatePropertyKey -> QueryString
$ctoQuery :: SavingsPlanRatePropertyKey -> QueryString
Core.ToQuery,
Value -> Parser [SavingsPlanRatePropertyKey]
Value -> Parser SavingsPlanRatePropertyKey
(Value -> Parser SavingsPlanRatePropertyKey)
-> (Value -> Parser [SavingsPlanRatePropertyKey])
-> FromJSON SavingsPlanRatePropertyKey
forall a.
(Value -> Parser a) -> (Value -> Parser [a]) -> FromJSON a
parseJSONList :: Value -> Parser [SavingsPlanRatePropertyKey]
$cparseJSONList :: Value -> Parser [SavingsPlanRatePropertyKey]
parseJSON :: Value -> Parser SavingsPlanRatePropertyKey
$cparseJSON :: Value -> Parser SavingsPlanRatePropertyKey
Core.FromJSON,
FromJSONKeyFunction [SavingsPlanRatePropertyKey]
FromJSONKeyFunction SavingsPlanRatePropertyKey
FromJSONKeyFunction SavingsPlanRatePropertyKey
-> FromJSONKeyFunction [SavingsPlanRatePropertyKey]
-> FromJSONKey SavingsPlanRatePropertyKey
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [SavingsPlanRatePropertyKey]
$cfromJSONKeyList :: FromJSONKeyFunction [SavingsPlanRatePropertyKey]
fromJSONKey :: FromJSONKeyFunction SavingsPlanRatePropertyKey
$cfromJSONKey :: FromJSONKeyFunction SavingsPlanRatePropertyKey
Core.FromJSONKey,
[SavingsPlanRatePropertyKey] -> Encoding
[SavingsPlanRatePropertyKey] -> Value
SavingsPlanRatePropertyKey -> Encoding
SavingsPlanRatePropertyKey -> Value
(SavingsPlanRatePropertyKey -> Value)
-> (SavingsPlanRatePropertyKey -> Encoding)
-> ([SavingsPlanRatePropertyKey] -> Value)
-> ([SavingsPlanRatePropertyKey] -> Encoding)
-> ToJSON SavingsPlanRatePropertyKey
forall a.
(a -> Value)
-> (a -> Encoding)
-> ([a] -> Value)
-> ([a] -> Encoding)
-> ToJSON a
toEncodingList :: [SavingsPlanRatePropertyKey] -> Encoding
$ctoEncodingList :: [SavingsPlanRatePropertyKey] -> Encoding
toJSONList :: [SavingsPlanRatePropertyKey] -> Value
$ctoJSONList :: [SavingsPlanRatePropertyKey] -> Value
toEncoding :: SavingsPlanRatePropertyKey -> Encoding
$ctoEncoding :: SavingsPlanRatePropertyKey -> Encoding
toJSON :: SavingsPlanRatePropertyKey -> Value
$ctoJSON :: SavingsPlanRatePropertyKey -> Value
Core.ToJSON,
ToJSONKeyFunction [SavingsPlanRatePropertyKey]
ToJSONKeyFunction SavingsPlanRatePropertyKey
ToJSONKeyFunction SavingsPlanRatePropertyKey
-> ToJSONKeyFunction [SavingsPlanRatePropertyKey]
-> ToJSONKey SavingsPlanRatePropertyKey
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [SavingsPlanRatePropertyKey]
$ctoJSONKeyList :: ToJSONKeyFunction [SavingsPlanRatePropertyKey]
toJSONKey :: ToJSONKeyFunction SavingsPlanRatePropertyKey
$ctoJSONKey :: ToJSONKeyFunction SavingsPlanRatePropertyKey
Core.ToJSONKey,
[Node] -> Either String SavingsPlanRatePropertyKey
([Node] -> Either String SavingsPlanRatePropertyKey)
-> FromXML SavingsPlanRatePropertyKey
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String SavingsPlanRatePropertyKey
$cparseXML :: [Node] -> Either String SavingsPlanRatePropertyKey
Core.FromXML,
SavingsPlanRatePropertyKey -> XML
(SavingsPlanRatePropertyKey -> XML)
-> ToXML SavingsPlanRatePropertyKey
forall a. (a -> XML) -> ToXML a
toXML :: SavingsPlanRatePropertyKey -> XML
$ctoXML :: SavingsPlanRatePropertyKey -> XML
Core.ToXML
)
pattern SavingsPlanRatePropertyKey_InstanceFamily :: SavingsPlanRatePropertyKey
pattern $bSavingsPlanRatePropertyKey_InstanceFamily :: SavingsPlanRatePropertyKey
$mSavingsPlanRatePropertyKey_InstanceFamily :: forall r.
SavingsPlanRatePropertyKey -> (Void# -> r) -> (Void# -> r) -> r
SavingsPlanRatePropertyKey_InstanceFamily = SavingsPlanRatePropertyKey' "instanceFamily"
pattern SavingsPlanRatePropertyKey_InstanceType :: SavingsPlanRatePropertyKey
pattern $bSavingsPlanRatePropertyKey_InstanceType :: SavingsPlanRatePropertyKey
$mSavingsPlanRatePropertyKey_InstanceType :: forall r.
SavingsPlanRatePropertyKey -> (Void# -> r) -> (Void# -> r) -> r
SavingsPlanRatePropertyKey_InstanceType = SavingsPlanRatePropertyKey' "instanceType"
pattern SavingsPlanRatePropertyKey_ProductDescription :: SavingsPlanRatePropertyKey
pattern $bSavingsPlanRatePropertyKey_ProductDescription :: SavingsPlanRatePropertyKey
$mSavingsPlanRatePropertyKey_ProductDescription :: forall r.
SavingsPlanRatePropertyKey -> (Void# -> r) -> (Void# -> r) -> r
SavingsPlanRatePropertyKey_ProductDescription = SavingsPlanRatePropertyKey' "productDescription"
pattern SavingsPlanRatePropertyKey_Region :: SavingsPlanRatePropertyKey
pattern $bSavingsPlanRatePropertyKey_Region :: SavingsPlanRatePropertyKey
$mSavingsPlanRatePropertyKey_Region :: forall r.
SavingsPlanRatePropertyKey -> (Void# -> r) -> (Void# -> r) -> r
SavingsPlanRatePropertyKey_Region = SavingsPlanRatePropertyKey' "region"
pattern SavingsPlanRatePropertyKey_Tenancy :: SavingsPlanRatePropertyKey
pattern $bSavingsPlanRatePropertyKey_Tenancy :: SavingsPlanRatePropertyKey
$mSavingsPlanRatePropertyKey_Tenancy :: forall r.
SavingsPlanRatePropertyKey -> (Void# -> r) -> (Void# -> r) -> r
SavingsPlanRatePropertyKey_Tenancy = SavingsPlanRatePropertyKey' "tenancy"
{-# COMPLETE
SavingsPlanRatePropertyKey_InstanceFamily,
SavingsPlanRatePropertyKey_InstanceType,
SavingsPlanRatePropertyKey_ProductDescription,
SavingsPlanRatePropertyKey_Region,
SavingsPlanRatePropertyKey_Tenancy,
SavingsPlanRatePropertyKey'
#-}