{-# 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.CostAllocationTagStatus
-- 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.CostAllocationTagStatus
  ( CostAllocationTagStatus
      ( ..,
        CostAllocationTagStatus_Active,
        CostAllocationTagStatus_Inactive
      ),
  )
where

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

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

pattern CostAllocationTagStatus_Active :: CostAllocationTagStatus
pattern $bCostAllocationTagStatus_Active :: CostAllocationTagStatus
$mCostAllocationTagStatus_Active :: forall {r}.
CostAllocationTagStatus -> ((# #) -> r) -> ((# #) -> r) -> r
CostAllocationTagStatus_Active = CostAllocationTagStatus' "Active"

pattern CostAllocationTagStatus_Inactive :: CostAllocationTagStatus
pattern $bCostAllocationTagStatus_Inactive :: CostAllocationTagStatus
$mCostAllocationTagStatus_Inactive :: forall {r}.
CostAllocationTagStatus -> ((# #) -> r) -> ((# #) -> r) -> r
CostAllocationTagStatus_Inactive = CostAllocationTagStatus' "Inactive"

{-# COMPLETE
  CostAllocationTagStatus_Active,
  CostAllocationTagStatus_Inactive,
  CostAllocationTagStatus'
  #-}