{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DerivingStrategies #-}
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# LANGUAGE LambdaCase #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE PatternSynonyms #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}

-- Derived from AWS service descriptions, licensed under Apache 2.0.

-- |
-- Module      : Amazonka.CostExplorer.Types.CostCategorySplitChargeMethod
-- Copyright   : (c) 2013-2023 Brendan Hay
-- License     : Mozilla Public License, v. 2.0.
-- Maintainer  : Brendan Hay
-- Stability   : auto-generated
-- Portability : non-portable (GHC extensions)
module Amazonka.CostExplorer.Types.CostCategorySplitChargeMethod
  ( CostCategorySplitChargeMethod
      ( ..,
        CostCategorySplitChargeMethod_EVEN,
        CostCategorySplitChargeMethod_FIXED,
        CostCategorySplitChargeMethod_PROPORTIONAL
      ),
  )
where

import qualified Amazonka.Core as Core
import qualified Amazonka.Data as Data
import qualified Amazonka.Prelude as Prelude

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

pattern CostCategorySplitChargeMethod_EVEN :: CostCategorySplitChargeMethod
pattern $bCostCategorySplitChargeMethod_EVEN :: CostCategorySplitChargeMethod
$mCostCategorySplitChargeMethod_EVEN :: forall {r}.
CostCategorySplitChargeMethod -> ((# #) -> r) -> ((# #) -> r) -> r
CostCategorySplitChargeMethod_EVEN = CostCategorySplitChargeMethod' "EVEN"

pattern CostCategorySplitChargeMethod_FIXED :: CostCategorySplitChargeMethod
pattern $bCostCategorySplitChargeMethod_FIXED :: CostCategorySplitChargeMethod
$mCostCategorySplitChargeMethod_FIXED :: forall {r}.
CostCategorySplitChargeMethod -> ((# #) -> r) -> ((# #) -> r) -> r
CostCategorySplitChargeMethod_FIXED = CostCategorySplitChargeMethod' "FIXED"

pattern CostCategorySplitChargeMethod_PROPORTIONAL :: CostCategorySplitChargeMethod
pattern $bCostCategorySplitChargeMethod_PROPORTIONAL :: CostCategorySplitChargeMethod
$mCostCategorySplitChargeMethod_PROPORTIONAL :: forall {r}.
CostCategorySplitChargeMethod -> ((# #) -> r) -> ((# #) -> r) -> r
CostCategorySplitChargeMethod_PROPORTIONAL = CostCategorySplitChargeMethod' "PROPORTIONAL"

{-# COMPLETE
  CostCategorySplitChargeMethod_EVEN,
  CostCategorySplitChargeMethod_FIXED,
  CostCategorySplitChargeMethod_PROPORTIONAL,
  CostCategorySplitChargeMethod'
  #-}