{-# 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.CustomLineItemRelationship
-- 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.CustomLineItemRelationship
  ( CustomLineItemRelationship
      ( ..,
        CustomLineItemRelationship_CHILD,
        CustomLineItemRelationship_PARENT
      ),
  )
where

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

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

pattern CustomLineItemRelationship_CHILD :: CustomLineItemRelationship
pattern $bCustomLineItemRelationship_CHILD :: CustomLineItemRelationship
$mCustomLineItemRelationship_CHILD :: forall {r}.
CustomLineItemRelationship -> ((# #) -> r) -> ((# #) -> r) -> r
CustomLineItemRelationship_CHILD = CustomLineItemRelationship' "CHILD"

pattern CustomLineItemRelationship_PARENT :: CustomLineItemRelationship
pattern $bCustomLineItemRelationship_PARENT :: CustomLineItemRelationship
$mCustomLineItemRelationship_PARENT :: forall {r}.
CustomLineItemRelationship -> ((# #) -> r) -> ((# #) -> r) -> r
CustomLineItemRelationship_PARENT = CustomLineItemRelationship' "PARENT"

{-# COMPLETE
  CustomLineItemRelationship_CHILD,
  CustomLineItemRelationship_PARENT,
  CustomLineItemRelationship'
  #-}