{-# 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.MediaConvert.Types.BillingTagsSource
-- Copyright   : (c) 2013-2021 Brendan Hay
-- License     : Mozilla Public License, v. 2.0.
-- Maintainer  : Brendan Hay <brendan.g.hay+amazonka@gmail.com>
-- Stability   : auto-generated
-- Portability : non-portable (GHC extensions)
module Amazonka.MediaConvert.Types.BillingTagsSource
  ( BillingTagsSource
      ( ..,
        BillingTagsSource_JOB,
        BillingTagsSource_JOB_TEMPLATE,
        BillingTagsSource_PRESET,
        BillingTagsSource_QUEUE
      ),
  )
where

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

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

pattern BillingTagsSource_JOB :: BillingTagsSource
pattern $bBillingTagsSource_JOB :: BillingTagsSource
$mBillingTagsSource_JOB :: forall r. BillingTagsSource -> (Void# -> r) -> (Void# -> r) -> r
BillingTagsSource_JOB = BillingTagsSource' "JOB"

pattern BillingTagsSource_JOB_TEMPLATE :: BillingTagsSource
pattern $bBillingTagsSource_JOB_TEMPLATE :: BillingTagsSource
$mBillingTagsSource_JOB_TEMPLATE :: forall r. BillingTagsSource -> (Void# -> r) -> (Void# -> r) -> r
BillingTagsSource_JOB_TEMPLATE = BillingTagsSource' "JOB_TEMPLATE"

pattern BillingTagsSource_PRESET :: BillingTagsSource
pattern $bBillingTagsSource_PRESET :: BillingTagsSource
$mBillingTagsSource_PRESET :: forall r. BillingTagsSource -> (Void# -> r) -> (Void# -> r) -> r
BillingTagsSource_PRESET = BillingTagsSource' "PRESET"

pattern BillingTagsSource_QUEUE :: BillingTagsSource
pattern $bBillingTagsSource_QUEUE :: BillingTagsSource
$mBillingTagsSource_QUEUE :: forall r. BillingTagsSource -> (Void# -> r) -> (Void# -> r) -> r
BillingTagsSource_QUEUE = BillingTagsSource' "QUEUE"

{-# COMPLETE
  BillingTagsSource_JOB,
  BillingTagsSource_JOB_TEMPLATE,
  BillingTagsSource_PRESET,
  BillingTagsSource_QUEUE,
  BillingTagsSource'
  #-}