{-# 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.NielsenActiveWatermarkProcessType
-- 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.NielsenActiveWatermarkProcessType
  ( NielsenActiveWatermarkProcessType
      ( ..,
        NielsenActiveWatermarkProcessType_CBET,
        NielsenActiveWatermarkProcessType_NAES2_AND_NW,
        NielsenActiveWatermarkProcessType_NAES2_AND_NW_AND_CBET
      ),
  )
where

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

-- | Choose the type of Nielsen watermarks that you want in your outputs.
-- When you choose NAES 2 and NW (NAES2_AND_NW), you must provide a value
-- for the setting SID (sourceId). When you choose CBET (CBET), you must
-- provide a value for the setting CSID (cbetSourceId). When you choose
-- NAES 2, NW, and CBET (NAES2_AND_NW_AND_CBET), you must provide values
-- for both of these settings.
newtype NielsenActiveWatermarkProcessType = NielsenActiveWatermarkProcessType'
  { NielsenActiveWatermarkProcessType -> Text
fromNielsenActiveWatermarkProcessType ::
      Core.Text
  }
  deriving stock
    ( Int -> NielsenActiveWatermarkProcessType -> ShowS
[NielsenActiveWatermarkProcessType] -> ShowS
NielsenActiveWatermarkProcessType -> String
(Int -> NielsenActiveWatermarkProcessType -> ShowS)
-> (NielsenActiveWatermarkProcessType -> String)
-> ([NielsenActiveWatermarkProcessType] -> ShowS)
-> Show NielsenActiveWatermarkProcessType
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [NielsenActiveWatermarkProcessType] -> ShowS
$cshowList :: [NielsenActiveWatermarkProcessType] -> ShowS
show :: NielsenActiveWatermarkProcessType -> String
$cshow :: NielsenActiveWatermarkProcessType -> String
showsPrec :: Int -> NielsenActiveWatermarkProcessType -> ShowS
$cshowsPrec :: Int -> NielsenActiveWatermarkProcessType -> ShowS
Prelude.Show,
      ReadPrec [NielsenActiveWatermarkProcessType]
ReadPrec NielsenActiveWatermarkProcessType
Int -> ReadS NielsenActiveWatermarkProcessType
ReadS [NielsenActiveWatermarkProcessType]
(Int -> ReadS NielsenActiveWatermarkProcessType)
-> ReadS [NielsenActiveWatermarkProcessType]
-> ReadPrec NielsenActiveWatermarkProcessType
-> ReadPrec [NielsenActiveWatermarkProcessType]
-> Read NielsenActiveWatermarkProcessType
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [NielsenActiveWatermarkProcessType]
$creadListPrec :: ReadPrec [NielsenActiveWatermarkProcessType]
readPrec :: ReadPrec NielsenActiveWatermarkProcessType
$creadPrec :: ReadPrec NielsenActiveWatermarkProcessType
readList :: ReadS [NielsenActiveWatermarkProcessType]
$creadList :: ReadS [NielsenActiveWatermarkProcessType]
readsPrec :: Int -> ReadS NielsenActiveWatermarkProcessType
$creadsPrec :: Int -> ReadS NielsenActiveWatermarkProcessType
Prelude.Read,
      NielsenActiveWatermarkProcessType
-> NielsenActiveWatermarkProcessType -> Bool
(NielsenActiveWatermarkProcessType
 -> NielsenActiveWatermarkProcessType -> Bool)
-> (NielsenActiveWatermarkProcessType
    -> NielsenActiveWatermarkProcessType -> Bool)
-> Eq NielsenActiveWatermarkProcessType
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: NielsenActiveWatermarkProcessType
-> NielsenActiveWatermarkProcessType -> Bool
$c/= :: NielsenActiveWatermarkProcessType
-> NielsenActiveWatermarkProcessType -> Bool
== :: NielsenActiveWatermarkProcessType
-> NielsenActiveWatermarkProcessType -> Bool
$c== :: NielsenActiveWatermarkProcessType
-> NielsenActiveWatermarkProcessType -> Bool
Prelude.Eq,
      Eq NielsenActiveWatermarkProcessType
Eq NielsenActiveWatermarkProcessType
-> (NielsenActiveWatermarkProcessType
    -> NielsenActiveWatermarkProcessType -> Ordering)
-> (NielsenActiveWatermarkProcessType
    -> NielsenActiveWatermarkProcessType -> Bool)
-> (NielsenActiveWatermarkProcessType
    -> NielsenActiveWatermarkProcessType -> Bool)
-> (NielsenActiveWatermarkProcessType
    -> NielsenActiveWatermarkProcessType -> Bool)
-> (NielsenActiveWatermarkProcessType
    -> NielsenActiveWatermarkProcessType -> Bool)
-> (NielsenActiveWatermarkProcessType
    -> NielsenActiveWatermarkProcessType
    -> NielsenActiveWatermarkProcessType)
-> (NielsenActiveWatermarkProcessType
    -> NielsenActiveWatermarkProcessType
    -> NielsenActiveWatermarkProcessType)
-> Ord NielsenActiveWatermarkProcessType
NielsenActiveWatermarkProcessType
-> NielsenActiveWatermarkProcessType -> Bool
NielsenActiveWatermarkProcessType
-> NielsenActiveWatermarkProcessType -> Ordering
NielsenActiveWatermarkProcessType
-> NielsenActiveWatermarkProcessType
-> NielsenActiveWatermarkProcessType
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 :: NielsenActiveWatermarkProcessType
-> NielsenActiveWatermarkProcessType
-> NielsenActiveWatermarkProcessType
$cmin :: NielsenActiveWatermarkProcessType
-> NielsenActiveWatermarkProcessType
-> NielsenActiveWatermarkProcessType
max :: NielsenActiveWatermarkProcessType
-> NielsenActiveWatermarkProcessType
-> NielsenActiveWatermarkProcessType
$cmax :: NielsenActiveWatermarkProcessType
-> NielsenActiveWatermarkProcessType
-> NielsenActiveWatermarkProcessType
>= :: NielsenActiveWatermarkProcessType
-> NielsenActiveWatermarkProcessType -> Bool
$c>= :: NielsenActiveWatermarkProcessType
-> NielsenActiveWatermarkProcessType -> Bool
> :: NielsenActiveWatermarkProcessType
-> NielsenActiveWatermarkProcessType -> Bool
$c> :: NielsenActiveWatermarkProcessType
-> NielsenActiveWatermarkProcessType -> Bool
<= :: NielsenActiveWatermarkProcessType
-> NielsenActiveWatermarkProcessType -> Bool
$c<= :: NielsenActiveWatermarkProcessType
-> NielsenActiveWatermarkProcessType -> Bool
< :: NielsenActiveWatermarkProcessType
-> NielsenActiveWatermarkProcessType -> Bool
$c< :: NielsenActiveWatermarkProcessType
-> NielsenActiveWatermarkProcessType -> Bool
compare :: NielsenActiveWatermarkProcessType
-> NielsenActiveWatermarkProcessType -> Ordering
$ccompare :: NielsenActiveWatermarkProcessType
-> NielsenActiveWatermarkProcessType -> Ordering
$cp1Ord :: Eq NielsenActiveWatermarkProcessType
Prelude.Ord,
      (forall x.
 NielsenActiveWatermarkProcessType
 -> Rep NielsenActiveWatermarkProcessType x)
-> (forall x.
    Rep NielsenActiveWatermarkProcessType x
    -> NielsenActiveWatermarkProcessType)
-> Generic NielsenActiveWatermarkProcessType
forall x.
Rep NielsenActiveWatermarkProcessType x
-> NielsenActiveWatermarkProcessType
forall x.
NielsenActiveWatermarkProcessType
-> Rep NielsenActiveWatermarkProcessType x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep NielsenActiveWatermarkProcessType x
-> NielsenActiveWatermarkProcessType
$cfrom :: forall x.
NielsenActiveWatermarkProcessType
-> Rep NielsenActiveWatermarkProcessType x
Prelude.Generic
    )
  deriving newtype
    ( Int -> NielsenActiveWatermarkProcessType -> Int
NielsenActiveWatermarkProcessType -> Int
(Int -> NielsenActiveWatermarkProcessType -> Int)
-> (NielsenActiveWatermarkProcessType -> Int)
-> Hashable NielsenActiveWatermarkProcessType
forall a. (Int -> a -> Int) -> (a -> Int) -> Hashable a
hash :: NielsenActiveWatermarkProcessType -> Int
$chash :: NielsenActiveWatermarkProcessType -> Int
hashWithSalt :: Int -> NielsenActiveWatermarkProcessType -> Int
$chashWithSalt :: Int -> NielsenActiveWatermarkProcessType -> Int
Prelude.Hashable,
      NielsenActiveWatermarkProcessType -> ()
(NielsenActiveWatermarkProcessType -> ())
-> NFData NielsenActiveWatermarkProcessType
forall a. (a -> ()) -> NFData a
rnf :: NielsenActiveWatermarkProcessType -> ()
$crnf :: NielsenActiveWatermarkProcessType -> ()
Prelude.NFData,
      Text -> Either String NielsenActiveWatermarkProcessType
(Text -> Either String NielsenActiveWatermarkProcessType)
-> FromText NielsenActiveWatermarkProcessType
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String NielsenActiveWatermarkProcessType
$cfromText :: Text -> Either String NielsenActiveWatermarkProcessType
Core.FromText,
      NielsenActiveWatermarkProcessType -> Text
(NielsenActiveWatermarkProcessType -> Text)
-> ToText NielsenActiveWatermarkProcessType
forall a. (a -> Text) -> ToText a
toText :: NielsenActiveWatermarkProcessType -> Text
$ctoText :: NielsenActiveWatermarkProcessType -> Text
Core.ToText,
      NielsenActiveWatermarkProcessType -> ByteString
(NielsenActiveWatermarkProcessType -> ByteString)
-> ToByteString NielsenActiveWatermarkProcessType
forall a. (a -> ByteString) -> ToByteString a
toBS :: NielsenActiveWatermarkProcessType -> ByteString
$ctoBS :: NielsenActiveWatermarkProcessType -> ByteString
Core.ToByteString,
      NielsenActiveWatermarkProcessType -> ByteStringBuilder
(NielsenActiveWatermarkProcessType -> ByteStringBuilder)
-> ToLog NielsenActiveWatermarkProcessType
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: NielsenActiveWatermarkProcessType -> ByteStringBuilder
$cbuild :: NielsenActiveWatermarkProcessType -> ByteStringBuilder
Core.ToLog,
      HeaderName -> NielsenActiveWatermarkProcessType -> [Header]
(HeaderName -> NielsenActiveWatermarkProcessType -> [Header])
-> ToHeader NielsenActiveWatermarkProcessType
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> NielsenActiveWatermarkProcessType -> [Header]
$ctoHeader :: HeaderName -> NielsenActiveWatermarkProcessType -> [Header]
Core.ToHeader,
      NielsenActiveWatermarkProcessType -> QueryString
(NielsenActiveWatermarkProcessType -> QueryString)
-> ToQuery NielsenActiveWatermarkProcessType
forall a. (a -> QueryString) -> ToQuery a
toQuery :: NielsenActiveWatermarkProcessType -> QueryString
$ctoQuery :: NielsenActiveWatermarkProcessType -> QueryString
Core.ToQuery,
      Value -> Parser [NielsenActiveWatermarkProcessType]
Value -> Parser NielsenActiveWatermarkProcessType
(Value -> Parser NielsenActiveWatermarkProcessType)
-> (Value -> Parser [NielsenActiveWatermarkProcessType])
-> FromJSON NielsenActiveWatermarkProcessType
forall a.
(Value -> Parser a) -> (Value -> Parser [a]) -> FromJSON a
parseJSONList :: Value -> Parser [NielsenActiveWatermarkProcessType]
$cparseJSONList :: Value -> Parser [NielsenActiveWatermarkProcessType]
parseJSON :: Value -> Parser NielsenActiveWatermarkProcessType
$cparseJSON :: Value -> Parser NielsenActiveWatermarkProcessType
Core.FromJSON,
      FromJSONKeyFunction [NielsenActiveWatermarkProcessType]
FromJSONKeyFunction NielsenActiveWatermarkProcessType
FromJSONKeyFunction NielsenActiveWatermarkProcessType
-> FromJSONKeyFunction [NielsenActiveWatermarkProcessType]
-> FromJSONKey NielsenActiveWatermarkProcessType
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [NielsenActiveWatermarkProcessType]
$cfromJSONKeyList :: FromJSONKeyFunction [NielsenActiveWatermarkProcessType]
fromJSONKey :: FromJSONKeyFunction NielsenActiveWatermarkProcessType
$cfromJSONKey :: FromJSONKeyFunction NielsenActiveWatermarkProcessType
Core.FromJSONKey,
      [NielsenActiveWatermarkProcessType] -> Encoding
[NielsenActiveWatermarkProcessType] -> Value
NielsenActiveWatermarkProcessType -> Encoding
NielsenActiveWatermarkProcessType -> Value
(NielsenActiveWatermarkProcessType -> Value)
-> (NielsenActiveWatermarkProcessType -> Encoding)
-> ([NielsenActiveWatermarkProcessType] -> Value)
-> ([NielsenActiveWatermarkProcessType] -> Encoding)
-> ToJSON NielsenActiveWatermarkProcessType
forall a.
(a -> Value)
-> (a -> Encoding)
-> ([a] -> Value)
-> ([a] -> Encoding)
-> ToJSON a
toEncodingList :: [NielsenActiveWatermarkProcessType] -> Encoding
$ctoEncodingList :: [NielsenActiveWatermarkProcessType] -> Encoding
toJSONList :: [NielsenActiveWatermarkProcessType] -> Value
$ctoJSONList :: [NielsenActiveWatermarkProcessType] -> Value
toEncoding :: NielsenActiveWatermarkProcessType -> Encoding
$ctoEncoding :: NielsenActiveWatermarkProcessType -> Encoding
toJSON :: NielsenActiveWatermarkProcessType -> Value
$ctoJSON :: NielsenActiveWatermarkProcessType -> Value
Core.ToJSON,
      ToJSONKeyFunction [NielsenActiveWatermarkProcessType]
ToJSONKeyFunction NielsenActiveWatermarkProcessType
ToJSONKeyFunction NielsenActiveWatermarkProcessType
-> ToJSONKeyFunction [NielsenActiveWatermarkProcessType]
-> ToJSONKey NielsenActiveWatermarkProcessType
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [NielsenActiveWatermarkProcessType]
$ctoJSONKeyList :: ToJSONKeyFunction [NielsenActiveWatermarkProcessType]
toJSONKey :: ToJSONKeyFunction NielsenActiveWatermarkProcessType
$ctoJSONKey :: ToJSONKeyFunction NielsenActiveWatermarkProcessType
Core.ToJSONKey,
      [Node] -> Either String NielsenActiveWatermarkProcessType
([Node] -> Either String NielsenActiveWatermarkProcessType)
-> FromXML NielsenActiveWatermarkProcessType
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String NielsenActiveWatermarkProcessType
$cparseXML :: [Node] -> Either String NielsenActiveWatermarkProcessType
Core.FromXML,
      NielsenActiveWatermarkProcessType -> XML
(NielsenActiveWatermarkProcessType -> XML)
-> ToXML NielsenActiveWatermarkProcessType
forall a. (a -> XML) -> ToXML a
toXML :: NielsenActiveWatermarkProcessType -> XML
$ctoXML :: NielsenActiveWatermarkProcessType -> XML
Core.ToXML
    )

pattern NielsenActiveWatermarkProcessType_CBET :: NielsenActiveWatermarkProcessType
pattern $bNielsenActiveWatermarkProcessType_CBET :: NielsenActiveWatermarkProcessType
$mNielsenActiveWatermarkProcessType_CBET :: forall r.
NielsenActiveWatermarkProcessType
-> (Void# -> r) -> (Void# -> r) -> r
NielsenActiveWatermarkProcessType_CBET = NielsenActiveWatermarkProcessType' "CBET"

pattern NielsenActiveWatermarkProcessType_NAES2_AND_NW :: NielsenActiveWatermarkProcessType
pattern $bNielsenActiveWatermarkProcessType_NAES2_AND_NW :: NielsenActiveWatermarkProcessType
$mNielsenActiveWatermarkProcessType_NAES2_AND_NW :: forall r.
NielsenActiveWatermarkProcessType
-> (Void# -> r) -> (Void# -> r) -> r
NielsenActiveWatermarkProcessType_NAES2_AND_NW = NielsenActiveWatermarkProcessType' "NAES2_AND_NW"

pattern NielsenActiveWatermarkProcessType_NAES2_AND_NW_AND_CBET :: NielsenActiveWatermarkProcessType
pattern $bNielsenActiveWatermarkProcessType_NAES2_AND_NW_AND_CBET :: NielsenActiveWatermarkProcessType
$mNielsenActiveWatermarkProcessType_NAES2_AND_NW_AND_CBET :: forall r.
NielsenActiveWatermarkProcessType
-> (Void# -> r) -> (Void# -> r) -> r
NielsenActiveWatermarkProcessType_NAES2_AND_NW_AND_CBET = NielsenActiveWatermarkProcessType' "NAES2_AND_NW_AND_CBET"

{-# COMPLETE
  NielsenActiveWatermarkProcessType_CBET,
  NielsenActiveWatermarkProcessType_NAES2_AND_NW,
  NielsenActiveWatermarkProcessType_NAES2_AND_NW_AND_CBET,
  NielsenActiveWatermarkProcessType'
  #-}