{-# 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.CostAllocationTagType
-- 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.CostAllocationTagType
  ( CostAllocationTagType
      ( ..,
        CostAllocationTagType_AWSGenerated,
        CostAllocationTagType_UserDefined
      ),
  )
where

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

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

pattern CostAllocationTagType_AWSGenerated :: CostAllocationTagType
pattern $bCostAllocationTagType_AWSGenerated :: CostAllocationTagType
$mCostAllocationTagType_AWSGenerated :: forall {r}.
CostAllocationTagType -> ((# #) -> r) -> ((# #) -> r) -> r
CostAllocationTagType_AWSGenerated = CostAllocationTagType' "AWSGenerated"

pattern CostAllocationTagType_UserDefined :: CostAllocationTagType
pattern $bCostAllocationTagType_UserDefined :: CostAllocationTagType
$mCostAllocationTagType_UserDefined :: forall {r}.
CostAllocationTagType -> ((# #) -> r) -> ((# #) -> r) -> r
CostAllocationTagType_UserDefined = CostAllocationTagType' "UserDefined"

{-# COMPLETE
  CostAllocationTagType_AWSGenerated,
  CostAllocationTagType_UserDefined,
  CostAllocationTagType'
  #-}