{-# 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.SavingsPlanRateFilterName
( SavingsPlanRateFilterName
( ..,
SavingsPlanRateFilterName_InstanceType,
SavingsPlanRateFilterName_Operation,
SavingsPlanRateFilterName_ProductDescription,
SavingsPlanRateFilterName_ProductType,
SavingsPlanRateFilterName_Region,
SavingsPlanRateFilterName_ServiceCode,
SavingsPlanRateFilterName_Tenancy,
SavingsPlanRateFilterName_UsageType
),
)
where
import qualified Amazonka.Core as Core
import qualified Amazonka.Data as Data
import qualified Amazonka.Prelude as Prelude
newtype SavingsPlanRateFilterName = SavingsPlanRateFilterName'
{ SavingsPlanRateFilterName -> Text
fromSavingsPlanRateFilterName ::
Data.Text
}
deriving stock
( Int -> SavingsPlanRateFilterName -> ShowS
[SavingsPlanRateFilterName] -> ShowS
SavingsPlanRateFilterName -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [SavingsPlanRateFilterName] -> ShowS
$cshowList :: [SavingsPlanRateFilterName] -> ShowS
show :: SavingsPlanRateFilterName -> String
$cshow :: SavingsPlanRateFilterName -> String
showsPrec :: Int -> SavingsPlanRateFilterName -> ShowS
$cshowsPrec :: Int -> SavingsPlanRateFilterName -> ShowS
Prelude.Show,
ReadPrec [SavingsPlanRateFilterName]
ReadPrec SavingsPlanRateFilterName
Int -> ReadS SavingsPlanRateFilterName
ReadS [SavingsPlanRateFilterName]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [SavingsPlanRateFilterName]
$creadListPrec :: ReadPrec [SavingsPlanRateFilterName]
readPrec :: ReadPrec SavingsPlanRateFilterName
$creadPrec :: ReadPrec SavingsPlanRateFilterName
readList :: ReadS [SavingsPlanRateFilterName]
$creadList :: ReadS [SavingsPlanRateFilterName]
readsPrec :: Int -> ReadS SavingsPlanRateFilterName
$creadsPrec :: Int -> ReadS SavingsPlanRateFilterName
Prelude.Read,
SavingsPlanRateFilterName -> SavingsPlanRateFilterName -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: SavingsPlanRateFilterName -> SavingsPlanRateFilterName -> Bool
$c/= :: SavingsPlanRateFilterName -> SavingsPlanRateFilterName -> Bool
== :: SavingsPlanRateFilterName -> SavingsPlanRateFilterName -> Bool
$c== :: SavingsPlanRateFilterName -> SavingsPlanRateFilterName -> Bool
Prelude.Eq,
Eq SavingsPlanRateFilterName
SavingsPlanRateFilterName -> SavingsPlanRateFilterName -> Bool
SavingsPlanRateFilterName -> SavingsPlanRateFilterName -> Ordering
SavingsPlanRateFilterName
-> SavingsPlanRateFilterName -> SavingsPlanRateFilterName
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 :: SavingsPlanRateFilterName
-> SavingsPlanRateFilterName -> SavingsPlanRateFilterName
$cmin :: SavingsPlanRateFilterName
-> SavingsPlanRateFilterName -> SavingsPlanRateFilterName
max :: SavingsPlanRateFilterName
-> SavingsPlanRateFilterName -> SavingsPlanRateFilterName
$cmax :: SavingsPlanRateFilterName
-> SavingsPlanRateFilterName -> SavingsPlanRateFilterName
>= :: SavingsPlanRateFilterName -> SavingsPlanRateFilterName -> Bool
$c>= :: SavingsPlanRateFilterName -> SavingsPlanRateFilterName -> Bool
> :: SavingsPlanRateFilterName -> SavingsPlanRateFilterName -> Bool
$c> :: SavingsPlanRateFilterName -> SavingsPlanRateFilterName -> Bool
<= :: SavingsPlanRateFilterName -> SavingsPlanRateFilterName -> Bool
$c<= :: SavingsPlanRateFilterName -> SavingsPlanRateFilterName -> Bool
< :: SavingsPlanRateFilterName -> SavingsPlanRateFilterName -> Bool
$c< :: SavingsPlanRateFilterName -> SavingsPlanRateFilterName -> Bool
compare :: SavingsPlanRateFilterName -> SavingsPlanRateFilterName -> Ordering
$ccompare :: SavingsPlanRateFilterName -> SavingsPlanRateFilterName -> Ordering
Prelude.Ord,
forall x.
Rep SavingsPlanRateFilterName x -> SavingsPlanRateFilterName
forall x.
SavingsPlanRateFilterName -> Rep SavingsPlanRateFilterName x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep SavingsPlanRateFilterName x -> SavingsPlanRateFilterName
$cfrom :: forall x.
SavingsPlanRateFilterName -> Rep SavingsPlanRateFilterName x
Prelude.Generic
)
deriving newtype
( Eq SavingsPlanRateFilterName
Int -> SavingsPlanRateFilterName -> Int
SavingsPlanRateFilterName -> Int
forall a. Eq a -> (Int -> a -> Int) -> (a -> Int) -> Hashable a
hash :: SavingsPlanRateFilterName -> Int
$chash :: SavingsPlanRateFilterName -> Int
hashWithSalt :: Int -> SavingsPlanRateFilterName -> Int
$chashWithSalt :: Int -> SavingsPlanRateFilterName -> Int
Prelude.Hashable,
SavingsPlanRateFilterName -> ()
forall a. (a -> ()) -> NFData a
rnf :: SavingsPlanRateFilterName -> ()
$crnf :: SavingsPlanRateFilterName -> ()
Prelude.NFData,
Text -> Either String SavingsPlanRateFilterName
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String SavingsPlanRateFilterName
$cfromText :: Text -> Either String SavingsPlanRateFilterName
Data.FromText,
SavingsPlanRateFilterName -> Text
forall a. (a -> Text) -> ToText a
toText :: SavingsPlanRateFilterName -> Text
$ctoText :: SavingsPlanRateFilterName -> Text
Data.ToText,
SavingsPlanRateFilterName -> ByteString
forall a. (a -> ByteString) -> ToByteString a
toBS :: SavingsPlanRateFilterName -> ByteString
$ctoBS :: SavingsPlanRateFilterName -> ByteString
Data.ToByteString,
SavingsPlanRateFilterName -> ByteStringBuilder
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: SavingsPlanRateFilterName -> ByteStringBuilder
$cbuild :: SavingsPlanRateFilterName -> ByteStringBuilder
Data.ToLog,
HeaderName -> SavingsPlanRateFilterName -> [Header]
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> SavingsPlanRateFilterName -> [Header]
$ctoHeader :: HeaderName -> SavingsPlanRateFilterName -> [Header]
Data.ToHeader,
SavingsPlanRateFilterName -> QueryString
forall a. (a -> QueryString) -> ToQuery a
toQuery :: SavingsPlanRateFilterName -> QueryString
$ctoQuery :: SavingsPlanRateFilterName -> QueryString
Data.ToQuery,
Value -> Parser [SavingsPlanRateFilterName]
Value -> Parser SavingsPlanRateFilterName
forall a.
(Value -> Parser a) -> (Value -> Parser [a]) -> FromJSON a
parseJSONList :: Value -> Parser [SavingsPlanRateFilterName]
$cparseJSONList :: Value -> Parser [SavingsPlanRateFilterName]
parseJSON :: Value -> Parser SavingsPlanRateFilterName
$cparseJSON :: Value -> Parser SavingsPlanRateFilterName
Data.FromJSON,
FromJSONKeyFunction [SavingsPlanRateFilterName]
FromJSONKeyFunction SavingsPlanRateFilterName
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [SavingsPlanRateFilterName]
$cfromJSONKeyList :: FromJSONKeyFunction [SavingsPlanRateFilterName]
fromJSONKey :: FromJSONKeyFunction SavingsPlanRateFilterName
$cfromJSONKey :: FromJSONKeyFunction SavingsPlanRateFilterName
Data.FromJSONKey,
[SavingsPlanRateFilterName] -> Encoding
[SavingsPlanRateFilterName] -> Value
SavingsPlanRateFilterName -> Encoding
SavingsPlanRateFilterName -> Value
forall a.
(a -> Value)
-> (a -> Encoding)
-> ([a] -> Value)
-> ([a] -> Encoding)
-> ToJSON a
toEncodingList :: [SavingsPlanRateFilterName] -> Encoding
$ctoEncodingList :: [SavingsPlanRateFilterName] -> Encoding
toJSONList :: [SavingsPlanRateFilterName] -> Value
$ctoJSONList :: [SavingsPlanRateFilterName] -> Value
toEncoding :: SavingsPlanRateFilterName -> Encoding
$ctoEncoding :: SavingsPlanRateFilterName -> Encoding
toJSON :: SavingsPlanRateFilterName -> Value
$ctoJSON :: SavingsPlanRateFilterName -> Value
Data.ToJSON,
ToJSONKeyFunction [SavingsPlanRateFilterName]
ToJSONKeyFunction SavingsPlanRateFilterName
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [SavingsPlanRateFilterName]
$ctoJSONKeyList :: ToJSONKeyFunction [SavingsPlanRateFilterName]
toJSONKey :: ToJSONKeyFunction SavingsPlanRateFilterName
$ctoJSONKey :: ToJSONKeyFunction SavingsPlanRateFilterName
Data.ToJSONKey,
[Node] -> Either String SavingsPlanRateFilterName
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String SavingsPlanRateFilterName
$cparseXML :: [Node] -> Either String SavingsPlanRateFilterName
Data.FromXML,
SavingsPlanRateFilterName -> XML
forall a. (a -> XML) -> ToXML a
toXML :: SavingsPlanRateFilterName -> XML
$ctoXML :: SavingsPlanRateFilterName -> XML
Data.ToXML
)
pattern SavingsPlanRateFilterName_InstanceType :: SavingsPlanRateFilterName
pattern $bSavingsPlanRateFilterName_InstanceType :: SavingsPlanRateFilterName
$mSavingsPlanRateFilterName_InstanceType :: forall {r}.
SavingsPlanRateFilterName -> ((# #) -> r) -> ((# #) -> r) -> r
SavingsPlanRateFilterName_InstanceType = SavingsPlanRateFilterName' "instanceType"
pattern SavingsPlanRateFilterName_Operation :: SavingsPlanRateFilterName
pattern $bSavingsPlanRateFilterName_Operation :: SavingsPlanRateFilterName
$mSavingsPlanRateFilterName_Operation :: forall {r}.
SavingsPlanRateFilterName -> ((# #) -> r) -> ((# #) -> r) -> r
SavingsPlanRateFilterName_Operation = SavingsPlanRateFilterName' "operation"
pattern SavingsPlanRateFilterName_ProductDescription :: SavingsPlanRateFilterName
pattern $bSavingsPlanRateFilterName_ProductDescription :: SavingsPlanRateFilterName
$mSavingsPlanRateFilterName_ProductDescription :: forall {r}.
SavingsPlanRateFilterName -> ((# #) -> r) -> ((# #) -> r) -> r
SavingsPlanRateFilterName_ProductDescription = SavingsPlanRateFilterName' "productDescription"
pattern SavingsPlanRateFilterName_ProductType :: SavingsPlanRateFilterName
pattern $bSavingsPlanRateFilterName_ProductType :: SavingsPlanRateFilterName
$mSavingsPlanRateFilterName_ProductType :: forall {r}.
SavingsPlanRateFilterName -> ((# #) -> r) -> ((# #) -> r) -> r
SavingsPlanRateFilterName_ProductType = SavingsPlanRateFilterName' "productType"
pattern SavingsPlanRateFilterName_Region :: SavingsPlanRateFilterName
pattern $bSavingsPlanRateFilterName_Region :: SavingsPlanRateFilterName
$mSavingsPlanRateFilterName_Region :: forall {r}.
SavingsPlanRateFilterName -> ((# #) -> r) -> ((# #) -> r) -> r
SavingsPlanRateFilterName_Region = SavingsPlanRateFilterName' "region"
pattern SavingsPlanRateFilterName_ServiceCode :: SavingsPlanRateFilterName
pattern $bSavingsPlanRateFilterName_ServiceCode :: SavingsPlanRateFilterName
$mSavingsPlanRateFilterName_ServiceCode :: forall {r}.
SavingsPlanRateFilterName -> ((# #) -> r) -> ((# #) -> r) -> r
SavingsPlanRateFilterName_ServiceCode = SavingsPlanRateFilterName' "serviceCode"
pattern SavingsPlanRateFilterName_Tenancy :: SavingsPlanRateFilterName
pattern $bSavingsPlanRateFilterName_Tenancy :: SavingsPlanRateFilterName
$mSavingsPlanRateFilterName_Tenancy :: forall {r}.
SavingsPlanRateFilterName -> ((# #) -> r) -> ((# #) -> r) -> r
SavingsPlanRateFilterName_Tenancy = SavingsPlanRateFilterName' "tenancy"
pattern SavingsPlanRateFilterName_UsageType :: SavingsPlanRateFilterName
pattern $bSavingsPlanRateFilterName_UsageType :: SavingsPlanRateFilterName
$mSavingsPlanRateFilterName_UsageType :: forall {r}.
SavingsPlanRateFilterName -> ((# #) -> r) -> ((# #) -> r) -> r
SavingsPlanRateFilterName_UsageType = SavingsPlanRateFilterName' "usageType"
{-# COMPLETE
SavingsPlanRateFilterName_InstanceType,
SavingsPlanRateFilterName_Operation,
SavingsPlanRateFilterName_ProductDescription,
SavingsPlanRateFilterName_ProductType,
SavingsPlanRateFilterName_Region,
SavingsPlanRateFilterName_ServiceCode,
SavingsPlanRateFilterName_Tenancy,
SavingsPlanRateFilterName_UsageType,
SavingsPlanRateFilterName'
#-}