{-# 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.M3u8NielsenId3
-- 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.M3u8NielsenId3
  ( M3u8NielsenId3
      ( ..,
        M3u8NielsenId3_INSERT,
        M3u8NielsenId3_NONE
      ),
  )
where

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

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

pattern M3u8NielsenId3_INSERT :: M3u8NielsenId3
pattern $bM3u8NielsenId3_INSERT :: M3u8NielsenId3
$mM3u8NielsenId3_INSERT :: forall r. M3u8NielsenId3 -> (Void# -> r) -> (Void# -> r) -> r
M3u8NielsenId3_INSERT = M3u8NielsenId3' "INSERT"

pattern M3u8NielsenId3_NONE :: M3u8NielsenId3
pattern $bM3u8NielsenId3_NONE :: M3u8NielsenId3
$mM3u8NielsenId3_NONE :: forall r. M3u8NielsenId3 -> (Void# -> r) -> (Void# -> r) -> r
M3u8NielsenId3_NONE = M3u8NielsenId3' "NONE"

{-# COMPLETE
  M3u8NielsenId3_INSERT,
  M3u8NielsenId3_NONE,
  M3u8NielsenId3'
  #-}