{-# 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.MediaLive.Types.M3u8NielsenId3Behavior
-- 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.MediaLive.Types.M3u8NielsenId3Behavior
  ( M3u8NielsenId3Behavior
      ( ..,
        M3u8NielsenId3Behavior_NO_PASSTHROUGH,
        M3u8NielsenId3Behavior_PASSTHROUGH
      ),
  )
where

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

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

pattern M3u8NielsenId3Behavior_NO_PASSTHROUGH :: M3u8NielsenId3Behavior
pattern $bM3u8NielsenId3Behavior_NO_PASSTHROUGH :: M3u8NielsenId3Behavior
$mM3u8NielsenId3Behavior_NO_PASSTHROUGH :: forall r.
M3u8NielsenId3Behavior -> (Void# -> r) -> (Void# -> r) -> r
M3u8NielsenId3Behavior_NO_PASSTHROUGH = M3u8NielsenId3Behavior' "NO_PASSTHROUGH"

pattern M3u8NielsenId3Behavior_PASSTHROUGH :: M3u8NielsenId3Behavior
pattern $bM3u8NielsenId3Behavior_PASSTHROUGH :: M3u8NielsenId3Behavior
$mM3u8NielsenId3Behavior_PASSTHROUGH :: forall r.
M3u8NielsenId3Behavior -> (Void# -> r) -> (Void# -> r) -> r
M3u8NielsenId3Behavior_PASSTHROUGH = M3u8NielsenId3Behavior' "PASSTHROUGH"

{-# COMPLETE
  M3u8NielsenId3Behavior_NO_PASSTHROUGH,
  M3u8NielsenId3Behavior_PASSTHROUGH,
  M3u8NielsenId3Behavior'
  #-}