{-# 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.M2tsNielsenId3Behavior
-- 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.M2tsNielsenId3Behavior
  ( M2tsNielsenId3Behavior
      ( ..,
        M2tsNielsenId3Behavior_NO_PASSTHROUGH,
        M2tsNielsenId3Behavior_PASSTHROUGH
      ),
  )
where

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

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

pattern M2tsNielsenId3Behavior_NO_PASSTHROUGH :: M2tsNielsenId3Behavior
pattern $bM2tsNielsenId3Behavior_NO_PASSTHROUGH :: M2tsNielsenId3Behavior
$mM2tsNielsenId3Behavior_NO_PASSTHROUGH :: forall r.
M2tsNielsenId3Behavior -> (Void# -> r) -> (Void# -> r) -> r
M2tsNielsenId3Behavior_NO_PASSTHROUGH = M2tsNielsenId3Behavior' "NO_PASSTHROUGH"

pattern M2tsNielsenId3Behavior_PASSTHROUGH :: M2tsNielsenId3Behavior
pattern $bM2tsNielsenId3Behavior_PASSTHROUGH :: M2tsNielsenId3Behavior
$mM2tsNielsenId3Behavior_PASSTHROUGH :: forall r.
M2tsNielsenId3Behavior -> (Void# -> r) -> (Void# -> r) -> r
M2tsNielsenId3Behavior_PASSTHROUGH = M2tsNielsenId3Behavior' "PASSTHROUGH"

{-# COMPLETE
  M2tsNielsenId3Behavior_NO_PASSTHROUGH,
  M2tsNielsenId3Behavior_PASSTHROUGH,
  M2tsNielsenId3Behavior'
  #-}