{-# 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.Prelude as Prelude
newtype SavingsPlansDataType = SavingsPlansDataType'
{ SavingsPlansDataType -> Text
fromSavingsPlansDataType ::
Core.Text
}
deriving stock
( Int -> SavingsPlansDataType -> ShowS
[SavingsPlansDataType] -> ShowS
SavingsPlansDataType -> String
(Int -> SavingsPlansDataType -> ShowS)
-> (SavingsPlansDataType -> String)
-> ([SavingsPlansDataType] -> ShowS)
-> Show SavingsPlansDataType
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]
(Int -> ReadS SavingsPlansDataType)
-> ReadS [SavingsPlansDataType]
-> ReadPrec SavingsPlansDataType
-> ReadPrec [SavingsPlansDataType]
-> Read 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
(SavingsPlansDataType -> SavingsPlansDataType -> Bool)
-> (SavingsPlansDataType -> SavingsPlansDataType -> Bool)
-> Eq SavingsPlansDataType
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
Eq SavingsPlansDataType
-> (SavingsPlansDataType -> SavingsPlansDataType -> Ordering)
-> (SavingsPlansDataType -> SavingsPlansDataType -> Bool)
-> (SavingsPlansDataType -> SavingsPlansDataType -> Bool)
-> (SavingsPlansDataType -> SavingsPlansDataType -> Bool)
-> (SavingsPlansDataType -> SavingsPlansDataType -> Bool)
-> (SavingsPlansDataType
-> SavingsPlansDataType -> SavingsPlansDataType)
-> (SavingsPlansDataType
-> SavingsPlansDataType -> SavingsPlansDataType)
-> Ord 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
$cp1Ord :: Eq SavingsPlansDataType
Prelude.Ord,
(forall x. SavingsPlansDataType -> Rep SavingsPlansDataType x)
-> (forall x. Rep SavingsPlansDataType x -> SavingsPlansDataType)
-> Generic SavingsPlansDataType
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
( Int -> SavingsPlansDataType -> Int
SavingsPlansDataType -> Int
(Int -> SavingsPlansDataType -> Int)
-> (SavingsPlansDataType -> Int) -> Hashable SavingsPlansDataType
forall 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 -> ()
(SavingsPlansDataType -> ()) -> NFData SavingsPlansDataType
forall a. (a -> ()) -> NFData a
rnf :: SavingsPlansDataType -> ()
$crnf :: SavingsPlansDataType -> ()
Prelude.NFData,
Text -> Either String SavingsPlansDataType
(Text -> Either String SavingsPlansDataType)
-> FromText SavingsPlansDataType
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String SavingsPlansDataType
$cfromText :: Text -> Either String SavingsPlansDataType
Core.FromText,
SavingsPlansDataType -> Text
(SavingsPlansDataType -> Text) -> ToText SavingsPlansDataType
forall a. (a -> Text) -> ToText a
toText :: SavingsPlansDataType -> Text
$ctoText :: SavingsPlansDataType -> Text
Core.ToText,
SavingsPlansDataType -> ByteString
(SavingsPlansDataType -> ByteString)
-> ToByteString SavingsPlansDataType
forall a. (a -> ByteString) -> ToByteString a
toBS :: SavingsPlansDataType -> ByteString
$ctoBS :: SavingsPlansDataType -> ByteString
Core.ToByteString,
SavingsPlansDataType -> ByteStringBuilder
(SavingsPlansDataType -> ByteStringBuilder)
-> ToLog SavingsPlansDataType
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: SavingsPlansDataType -> ByteStringBuilder
$cbuild :: SavingsPlansDataType -> ByteStringBuilder
Core.ToLog,
HeaderName -> SavingsPlansDataType -> [Header]
(HeaderName -> SavingsPlansDataType -> [Header])
-> ToHeader SavingsPlansDataType
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> SavingsPlansDataType -> [Header]
$ctoHeader :: HeaderName -> SavingsPlansDataType -> [Header]
Core.ToHeader,
SavingsPlansDataType -> QueryString
(SavingsPlansDataType -> QueryString)
-> ToQuery SavingsPlansDataType
forall a. (a -> QueryString) -> ToQuery a
toQuery :: SavingsPlansDataType -> QueryString
$ctoQuery :: SavingsPlansDataType -> QueryString
Core.ToQuery,
Value -> Parser [SavingsPlansDataType]
Value -> Parser SavingsPlansDataType
(Value -> Parser SavingsPlansDataType)
-> (Value -> Parser [SavingsPlansDataType])
-> FromJSON 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
Core.FromJSON,
FromJSONKeyFunction [SavingsPlansDataType]
FromJSONKeyFunction SavingsPlansDataType
FromJSONKeyFunction SavingsPlansDataType
-> FromJSONKeyFunction [SavingsPlansDataType]
-> FromJSONKey SavingsPlansDataType
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [SavingsPlansDataType]
$cfromJSONKeyList :: FromJSONKeyFunction [SavingsPlansDataType]
fromJSONKey :: FromJSONKeyFunction SavingsPlansDataType
$cfromJSONKey :: FromJSONKeyFunction SavingsPlansDataType
Core.FromJSONKey,
[SavingsPlansDataType] -> Encoding
[SavingsPlansDataType] -> Value
SavingsPlansDataType -> Encoding
SavingsPlansDataType -> Value
(SavingsPlansDataType -> Value)
-> (SavingsPlansDataType -> Encoding)
-> ([SavingsPlansDataType] -> Value)
-> ([SavingsPlansDataType] -> Encoding)
-> ToJSON SavingsPlansDataType
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
Core.ToJSON,
ToJSONKeyFunction [SavingsPlansDataType]
ToJSONKeyFunction SavingsPlansDataType
ToJSONKeyFunction SavingsPlansDataType
-> ToJSONKeyFunction [SavingsPlansDataType]
-> ToJSONKey SavingsPlansDataType
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [SavingsPlansDataType]
$ctoJSONKeyList :: ToJSONKeyFunction [SavingsPlansDataType]
toJSONKey :: ToJSONKeyFunction SavingsPlansDataType
$ctoJSONKey :: ToJSONKeyFunction SavingsPlansDataType
Core.ToJSONKey,
[Node] -> Either String SavingsPlansDataType
([Node] -> Either String SavingsPlansDataType)
-> FromXML SavingsPlansDataType
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String SavingsPlansDataType
$cparseXML :: [Node] -> Either String SavingsPlansDataType
Core.FromXML,
SavingsPlansDataType -> XML
(SavingsPlansDataType -> XML) -> ToXML SavingsPlansDataType
forall a. (a -> XML) -> ToXML a
toXML :: SavingsPlansDataType -> XML
$ctoXML :: SavingsPlansDataType -> XML
Core.ToXML
)
pattern SavingsPlansDataType_AMORTIZED_COMMITMENT :: SavingsPlansDataType
pattern $bSavingsPlansDataType_AMORTIZED_COMMITMENT :: SavingsPlansDataType
$mSavingsPlansDataType_AMORTIZED_COMMITMENT :: forall r. SavingsPlansDataType -> (Void# -> r) -> (Void# -> r) -> r
SavingsPlansDataType_AMORTIZED_COMMITMENT = SavingsPlansDataType' "AMORTIZED_COMMITMENT"
pattern SavingsPlansDataType_ATTRIBUTES :: SavingsPlansDataType
pattern $bSavingsPlansDataType_ATTRIBUTES :: SavingsPlansDataType
$mSavingsPlansDataType_ATTRIBUTES :: forall r. SavingsPlansDataType -> (Void# -> r) -> (Void# -> r) -> r
SavingsPlansDataType_ATTRIBUTES = SavingsPlansDataType' "ATTRIBUTES"
pattern SavingsPlansDataType_SAVINGS :: SavingsPlansDataType
pattern $bSavingsPlansDataType_SAVINGS :: SavingsPlansDataType
$mSavingsPlansDataType_SAVINGS :: forall r. SavingsPlansDataType -> (Void# -> r) -> (Void# -> r) -> r
SavingsPlansDataType_SAVINGS = SavingsPlansDataType' "SAVINGS"
pattern SavingsPlansDataType_UTILIZATION :: SavingsPlansDataType
pattern $bSavingsPlansDataType_UTILIZATION :: SavingsPlansDataType
$mSavingsPlansDataType_UTILIZATION :: forall r. SavingsPlansDataType -> (Void# -> r) -> (Void# -> r) -> r
SavingsPlansDataType_UTILIZATION = SavingsPlansDataType' "UTILIZATION"
{-# COMPLETE
SavingsPlansDataType_AMORTIZED_COMMITMENT,
SavingsPlansDataType_ATTRIBUTES,
SavingsPlansDataType_SAVINGS,
SavingsPlansDataType_UTILIZATION,
SavingsPlansDataType'
#-}