{-# 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.NielsenPcmToId3TaggingState
-- 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.NielsenPcmToId3TaggingState
  ( NielsenPcmToId3TaggingState
      ( ..,
        NielsenPcmToId3TaggingState_DISABLED,
        NielsenPcmToId3TaggingState_ENABLED
      ),
  )
where

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

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

pattern NielsenPcmToId3TaggingState_DISABLED :: NielsenPcmToId3TaggingState
pattern $bNielsenPcmToId3TaggingState_DISABLED :: NielsenPcmToId3TaggingState
$mNielsenPcmToId3TaggingState_DISABLED :: forall r.
NielsenPcmToId3TaggingState -> (Void# -> r) -> (Void# -> r) -> r
NielsenPcmToId3TaggingState_DISABLED = NielsenPcmToId3TaggingState' "DISABLED"

pattern NielsenPcmToId3TaggingState_ENABLED :: NielsenPcmToId3TaggingState
pattern $bNielsenPcmToId3TaggingState_ENABLED :: NielsenPcmToId3TaggingState
$mNielsenPcmToId3TaggingState_ENABLED :: forall r.
NielsenPcmToId3TaggingState -> (Void# -> r) -> (Void# -> r) -> r
NielsenPcmToId3TaggingState_ENABLED = NielsenPcmToId3TaggingState' "ENABLED"

{-# COMPLETE
  NielsenPcmToId3TaggingState_DISABLED,
  NielsenPcmToId3TaggingState_ENABLED,
  NielsenPcmToId3TaggingState'
  #-}