{-# 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.CostCategoryInheritedValueDimensionName
-- 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.CostCategoryInheritedValueDimensionName
  ( CostCategoryInheritedValueDimensionName
      ( ..,
        CostCategoryInheritedValueDimensionName_LINKED_ACCOUNT_NAME,
        CostCategoryInheritedValueDimensionName_TAG
      ),
  )
where

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

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

pattern CostCategoryInheritedValueDimensionName_LINKED_ACCOUNT_NAME :: CostCategoryInheritedValueDimensionName
pattern $bCostCategoryInheritedValueDimensionName_LINKED_ACCOUNT_NAME :: CostCategoryInheritedValueDimensionName
$mCostCategoryInheritedValueDimensionName_LINKED_ACCOUNT_NAME :: forall {r}.
CostCategoryInheritedValueDimensionName
-> ((# #) -> r) -> ((# #) -> r) -> r
CostCategoryInheritedValueDimensionName_LINKED_ACCOUNT_NAME = CostCategoryInheritedValueDimensionName' "LINKED_ACCOUNT_NAME"

pattern CostCategoryInheritedValueDimensionName_TAG :: CostCategoryInheritedValueDimensionName
pattern $bCostCategoryInheritedValueDimensionName_TAG :: CostCategoryInheritedValueDimensionName
$mCostCategoryInheritedValueDimensionName_TAG :: forall {r}.
CostCategoryInheritedValueDimensionName
-> ((# #) -> r) -> ((# #) -> r) -> r
CostCategoryInheritedValueDimensionName_TAG = CostCategoryInheritedValueDimensionName' "TAG"

{-# COMPLETE
  CostCategoryInheritedValueDimensionName_LINKED_ACCOUNT_NAME,
  CostCategoryInheritedValueDimensionName_TAG,
  CostCategoryInheritedValueDimensionName'
  #-}