{-# 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.CostCategoryStatus
-- 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.CostCategoryStatus
  ( CostCategoryStatus
      ( ..,
        CostCategoryStatus_APPLIED,
        CostCategoryStatus_PROCESSING
      ),
  )
where

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

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

pattern CostCategoryStatus_APPLIED :: CostCategoryStatus
pattern $bCostCategoryStatus_APPLIED :: CostCategoryStatus
$mCostCategoryStatus_APPLIED :: forall {r}. CostCategoryStatus -> ((# #) -> r) -> ((# #) -> r) -> r
CostCategoryStatus_APPLIED = CostCategoryStatus' "APPLIED"

pattern CostCategoryStatus_PROCESSING :: CostCategoryStatus
pattern $bCostCategoryStatus_PROCESSING :: CostCategoryStatus
$mCostCategoryStatus_PROCESSING :: forall {r}. CostCategoryStatus -> ((# #) -> r) -> ((# #) -> r) -> r
CostCategoryStatus_PROCESSING = CostCategoryStatus' "PROCESSING"

{-# COMPLETE
  CostCategoryStatus_APPLIED,
  CostCategoryStatus_PROCESSING,
  CostCategoryStatus'
  #-}