{-# 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.BillingConductor.Types.CustomLineItemType
-- 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.BillingConductor.Types.CustomLineItemType
  ( CustomLineItemType
      ( ..,
        CustomLineItemType_CREDIT,
        CustomLineItemType_FEE
      ),
  )
where

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

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

pattern CustomLineItemType_CREDIT :: CustomLineItemType
pattern $bCustomLineItemType_CREDIT :: CustomLineItemType
$mCustomLineItemType_CREDIT :: forall {r}. CustomLineItemType -> ((# #) -> r) -> ((# #) -> r) -> r
CustomLineItemType_CREDIT = CustomLineItemType' "CREDIT"

pattern CustomLineItemType_FEE :: CustomLineItemType
pattern $bCustomLineItemType_FEE :: CustomLineItemType
$mCustomLineItemType_FEE :: forall {r}. CustomLineItemType -> ((# #) -> r) -> ((# #) -> r) -> r
CustomLineItemType_FEE = CustomLineItemType' "FEE"

{-# COMPLETE
  CustomLineItemType_CREDIT,
  CustomLineItemType_FEE,
  CustomLineItemType'
  #-}