{-# 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-2023 Brendan Hay
-- License     : Mozilla Public License, v. 2.0.
-- Maintainer  : Brendan Hay
-- 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.Data as Data
import qualified Amazonka.Prelude as Prelude

-- | M2ts Nielsen Id3 Behavior
newtype M2tsNielsenId3Behavior = M2tsNielsenId3Behavior'
  { M2tsNielsenId3Behavior -> Text
fromM2tsNielsenId3Behavior ::
      Data.Text
  }
  deriving stock
    ( Int -> M2tsNielsenId3Behavior -> ShowS
[M2tsNielsenId3Behavior] -> ShowS
M2tsNielsenId3Behavior -> String
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]
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
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
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
Prelude.Ord,
      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
    ( Eq M2tsNielsenId3Behavior
Int -> M2tsNielsenId3Behavior -> Int
M2tsNielsenId3Behavior -> Int
forall a. Eq 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 -> ()
forall a. (a -> ()) -> NFData a
rnf :: M2tsNielsenId3Behavior -> ()
$crnf :: M2tsNielsenId3Behavior -> ()
Prelude.NFData,
      Text -> Either String M2tsNielsenId3Behavior
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String M2tsNielsenId3Behavior
$cfromText :: Text -> Either String M2tsNielsenId3Behavior
Data.FromText,
      M2tsNielsenId3Behavior -> Text
forall a. (a -> Text) -> ToText a
toText :: M2tsNielsenId3Behavior -> Text
$ctoText :: M2tsNielsenId3Behavior -> Text
Data.ToText,
      M2tsNielsenId3Behavior -> ByteString
forall a. (a -> ByteString) -> ToByteString a
toBS :: M2tsNielsenId3Behavior -> ByteString
$ctoBS :: M2tsNielsenId3Behavior -> ByteString
Data.ToByteString,
      M2tsNielsenId3Behavior -> ByteStringBuilder
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: M2tsNielsenId3Behavior -> ByteStringBuilder
$cbuild :: M2tsNielsenId3Behavior -> ByteStringBuilder
Data.ToLog,
      HeaderName -> M2tsNielsenId3Behavior -> [Header]
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> M2tsNielsenId3Behavior -> [Header]
$ctoHeader :: HeaderName -> M2tsNielsenId3Behavior -> [Header]
Data.ToHeader,
      M2tsNielsenId3Behavior -> QueryString
forall a. (a -> QueryString) -> ToQuery a
toQuery :: M2tsNielsenId3Behavior -> QueryString
$ctoQuery :: M2tsNielsenId3Behavior -> QueryString
Data.ToQuery,
      Value -> Parser [M2tsNielsenId3Behavior]
Value -> Parser 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
Data.FromJSON,
      FromJSONKeyFunction [M2tsNielsenId3Behavior]
FromJSONKeyFunction M2tsNielsenId3Behavior
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [M2tsNielsenId3Behavior]
$cfromJSONKeyList :: FromJSONKeyFunction [M2tsNielsenId3Behavior]
fromJSONKey :: FromJSONKeyFunction M2tsNielsenId3Behavior
$cfromJSONKey :: FromJSONKeyFunction M2tsNielsenId3Behavior
Data.FromJSONKey,
      [M2tsNielsenId3Behavior] -> Encoding
[M2tsNielsenId3Behavior] -> Value
M2tsNielsenId3Behavior -> Encoding
M2tsNielsenId3Behavior -> Value
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
Data.ToJSON,
      ToJSONKeyFunction [M2tsNielsenId3Behavior]
ToJSONKeyFunction M2tsNielsenId3Behavior
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [M2tsNielsenId3Behavior]
$ctoJSONKeyList :: ToJSONKeyFunction [M2tsNielsenId3Behavior]
toJSONKey :: ToJSONKeyFunction M2tsNielsenId3Behavior
$ctoJSONKey :: ToJSONKeyFunction M2tsNielsenId3Behavior
Data.ToJSONKey,
      [Node] -> Either String M2tsNielsenId3Behavior
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String M2tsNielsenId3Behavior
$cparseXML :: [Node] -> Either String M2tsNielsenId3Behavior
Data.FromXML,
      M2tsNielsenId3Behavior -> XML
forall a. (a -> XML) -> ToXML a
toXML :: M2tsNielsenId3Behavior -> XML
$ctoXML :: M2tsNielsenId3Behavior -> XML
Data.ToXML
    )

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

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

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