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