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