{-# 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.NielsenSourceWatermarkStatusType
-- 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.NielsenSourceWatermarkStatusType
  ( NielsenSourceWatermarkStatusType
      ( ..,
        NielsenSourceWatermarkStatusType_CLEAN,
        NielsenSourceWatermarkStatusType_WATERMARKED
      ),
  )
where

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

-- | Required. Specify whether your source content already contains Nielsen
-- non-linear watermarks. When you set this value to Watermarked
-- (WATERMARKED), the service fails the job. Nielsen requires that you add
-- non-linear watermarking to only clean content that doesn\'t already have
-- non-linear Nielsen watermarks.
newtype NielsenSourceWatermarkStatusType = NielsenSourceWatermarkStatusType'
  { NielsenSourceWatermarkStatusType -> Text
fromNielsenSourceWatermarkStatusType ::
      Core.Text
  }
  deriving stock
    ( Int -> NielsenSourceWatermarkStatusType -> ShowS
[NielsenSourceWatermarkStatusType] -> ShowS
NielsenSourceWatermarkStatusType -> String
(Int -> NielsenSourceWatermarkStatusType -> ShowS)
-> (NielsenSourceWatermarkStatusType -> String)
-> ([NielsenSourceWatermarkStatusType] -> ShowS)
-> Show NielsenSourceWatermarkStatusType
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [NielsenSourceWatermarkStatusType] -> ShowS
$cshowList :: [NielsenSourceWatermarkStatusType] -> ShowS
show :: NielsenSourceWatermarkStatusType -> String
$cshow :: NielsenSourceWatermarkStatusType -> String
showsPrec :: Int -> NielsenSourceWatermarkStatusType -> ShowS
$cshowsPrec :: Int -> NielsenSourceWatermarkStatusType -> ShowS
Prelude.Show,
      ReadPrec [NielsenSourceWatermarkStatusType]
ReadPrec NielsenSourceWatermarkStatusType
Int -> ReadS NielsenSourceWatermarkStatusType
ReadS [NielsenSourceWatermarkStatusType]
(Int -> ReadS NielsenSourceWatermarkStatusType)
-> ReadS [NielsenSourceWatermarkStatusType]
-> ReadPrec NielsenSourceWatermarkStatusType
-> ReadPrec [NielsenSourceWatermarkStatusType]
-> Read NielsenSourceWatermarkStatusType
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [NielsenSourceWatermarkStatusType]
$creadListPrec :: ReadPrec [NielsenSourceWatermarkStatusType]
readPrec :: ReadPrec NielsenSourceWatermarkStatusType
$creadPrec :: ReadPrec NielsenSourceWatermarkStatusType
readList :: ReadS [NielsenSourceWatermarkStatusType]
$creadList :: ReadS [NielsenSourceWatermarkStatusType]
readsPrec :: Int -> ReadS NielsenSourceWatermarkStatusType
$creadsPrec :: Int -> ReadS NielsenSourceWatermarkStatusType
Prelude.Read,
      NielsenSourceWatermarkStatusType
-> NielsenSourceWatermarkStatusType -> Bool
(NielsenSourceWatermarkStatusType
 -> NielsenSourceWatermarkStatusType -> Bool)
-> (NielsenSourceWatermarkStatusType
    -> NielsenSourceWatermarkStatusType -> Bool)
-> Eq NielsenSourceWatermarkStatusType
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: NielsenSourceWatermarkStatusType
-> NielsenSourceWatermarkStatusType -> Bool
$c/= :: NielsenSourceWatermarkStatusType
-> NielsenSourceWatermarkStatusType -> Bool
== :: NielsenSourceWatermarkStatusType
-> NielsenSourceWatermarkStatusType -> Bool
$c== :: NielsenSourceWatermarkStatusType
-> NielsenSourceWatermarkStatusType -> Bool
Prelude.Eq,
      Eq NielsenSourceWatermarkStatusType
Eq NielsenSourceWatermarkStatusType
-> (NielsenSourceWatermarkStatusType
    -> NielsenSourceWatermarkStatusType -> Ordering)
-> (NielsenSourceWatermarkStatusType
    -> NielsenSourceWatermarkStatusType -> Bool)
-> (NielsenSourceWatermarkStatusType
    -> NielsenSourceWatermarkStatusType -> Bool)
-> (NielsenSourceWatermarkStatusType
    -> NielsenSourceWatermarkStatusType -> Bool)
-> (NielsenSourceWatermarkStatusType
    -> NielsenSourceWatermarkStatusType -> Bool)
-> (NielsenSourceWatermarkStatusType
    -> NielsenSourceWatermarkStatusType
    -> NielsenSourceWatermarkStatusType)
-> (NielsenSourceWatermarkStatusType
    -> NielsenSourceWatermarkStatusType
    -> NielsenSourceWatermarkStatusType)
-> Ord NielsenSourceWatermarkStatusType
NielsenSourceWatermarkStatusType
-> NielsenSourceWatermarkStatusType -> Bool
NielsenSourceWatermarkStatusType
-> NielsenSourceWatermarkStatusType -> Ordering
NielsenSourceWatermarkStatusType
-> NielsenSourceWatermarkStatusType
-> NielsenSourceWatermarkStatusType
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 :: NielsenSourceWatermarkStatusType
-> NielsenSourceWatermarkStatusType
-> NielsenSourceWatermarkStatusType
$cmin :: NielsenSourceWatermarkStatusType
-> NielsenSourceWatermarkStatusType
-> NielsenSourceWatermarkStatusType
max :: NielsenSourceWatermarkStatusType
-> NielsenSourceWatermarkStatusType
-> NielsenSourceWatermarkStatusType
$cmax :: NielsenSourceWatermarkStatusType
-> NielsenSourceWatermarkStatusType
-> NielsenSourceWatermarkStatusType
>= :: NielsenSourceWatermarkStatusType
-> NielsenSourceWatermarkStatusType -> Bool
$c>= :: NielsenSourceWatermarkStatusType
-> NielsenSourceWatermarkStatusType -> Bool
> :: NielsenSourceWatermarkStatusType
-> NielsenSourceWatermarkStatusType -> Bool
$c> :: NielsenSourceWatermarkStatusType
-> NielsenSourceWatermarkStatusType -> Bool
<= :: NielsenSourceWatermarkStatusType
-> NielsenSourceWatermarkStatusType -> Bool
$c<= :: NielsenSourceWatermarkStatusType
-> NielsenSourceWatermarkStatusType -> Bool
< :: NielsenSourceWatermarkStatusType
-> NielsenSourceWatermarkStatusType -> Bool
$c< :: NielsenSourceWatermarkStatusType
-> NielsenSourceWatermarkStatusType -> Bool
compare :: NielsenSourceWatermarkStatusType
-> NielsenSourceWatermarkStatusType -> Ordering
$ccompare :: NielsenSourceWatermarkStatusType
-> NielsenSourceWatermarkStatusType -> Ordering
$cp1Ord :: Eq NielsenSourceWatermarkStatusType
Prelude.Ord,
      (forall x.
 NielsenSourceWatermarkStatusType
 -> Rep NielsenSourceWatermarkStatusType x)
-> (forall x.
    Rep NielsenSourceWatermarkStatusType x
    -> NielsenSourceWatermarkStatusType)
-> Generic NielsenSourceWatermarkStatusType
forall x.
Rep NielsenSourceWatermarkStatusType x
-> NielsenSourceWatermarkStatusType
forall x.
NielsenSourceWatermarkStatusType
-> Rep NielsenSourceWatermarkStatusType x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep NielsenSourceWatermarkStatusType x
-> NielsenSourceWatermarkStatusType
$cfrom :: forall x.
NielsenSourceWatermarkStatusType
-> Rep NielsenSourceWatermarkStatusType x
Prelude.Generic
    )
  deriving newtype
    ( Int -> NielsenSourceWatermarkStatusType -> Int
NielsenSourceWatermarkStatusType -> Int
(Int -> NielsenSourceWatermarkStatusType -> Int)
-> (NielsenSourceWatermarkStatusType -> Int)
-> Hashable NielsenSourceWatermarkStatusType
forall a. (Int -> a -> Int) -> (a -> Int) -> Hashable a
hash :: NielsenSourceWatermarkStatusType -> Int
$chash :: NielsenSourceWatermarkStatusType -> Int
hashWithSalt :: Int -> NielsenSourceWatermarkStatusType -> Int
$chashWithSalt :: Int -> NielsenSourceWatermarkStatusType -> Int
Prelude.Hashable,
      NielsenSourceWatermarkStatusType -> ()
(NielsenSourceWatermarkStatusType -> ())
-> NFData NielsenSourceWatermarkStatusType
forall a. (a -> ()) -> NFData a
rnf :: NielsenSourceWatermarkStatusType -> ()
$crnf :: NielsenSourceWatermarkStatusType -> ()
Prelude.NFData,
      Text -> Either String NielsenSourceWatermarkStatusType
(Text -> Either String NielsenSourceWatermarkStatusType)
-> FromText NielsenSourceWatermarkStatusType
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String NielsenSourceWatermarkStatusType
$cfromText :: Text -> Either String NielsenSourceWatermarkStatusType
Core.FromText,
      NielsenSourceWatermarkStatusType -> Text
(NielsenSourceWatermarkStatusType -> Text)
-> ToText NielsenSourceWatermarkStatusType
forall a. (a -> Text) -> ToText a
toText :: NielsenSourceWatermarkStatusType -> Text
$ctoText :: NielsenSourceWatermarkStatusType -> Text
Core.ToText,
      NielsenSourceWatermarkStatusType -> ByteString
(NielsenSourceWatermarkStatusType -> ByteString)
-> ToByteString NielsenSourceWatermarkStatusType
forall a. (a -> ByteString) -> ToByteString a
toBS :: NielsenSourceWatermarkStatusType -> ByteString
$ctoBS :: NielsenSourceWatermarkStatusType -> ByteString
Core.ToByteString,
      NielsenSourceWatermarkStatusType -> ByteStringBuilder
(NielsenSourceWatermarkStatusType -> ByteStringBuilder)
-> ToLog NielsenSourceWatermarkStatusType
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: NielsenSourceWatermarkStatusType -> ByteStringBuilder
$cbuild :: NielsenSourceWatermarkStatusType -> ByteStringBuilder
Core.ToLog,
      HeaderName -> NielsenSourceWatermarkStatusType -> [Header]
(HeaderName -> NielsenSourceWatermarkStatusType -> [Header])
-> ToHeader NielsenSourceWatermarkStatusType
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> NielsenSourceWatermarkStatusType -> [Header]
$ctoHeader :: HeaderName -> NielsenSourceWatermarkStatusType -> [Header]
Core.ToHeader,
      NielsenSourceWatermarkStatusType -> QueryString
(NielsenSourceWatermarkStatusType -> QueryString)
-> ToQuery NielsenSourceWatermarkStatusType
forall a. (a -> QueryString) -> ToQuery a
toQuery :: NielsenSourceWatermarkStatusType -> QueryString
$ctoQuery :: NielsenSourceWatermarkStatusType -> QueryString
Core.ToQuery,
      Value -> Parser [NielsenSourceWatermarkStatusType]
Value -> Parser NielsenSourceWatermarkStatusType
(Value -> Parser NielsenSourceWatermarkStatusType)
-> (Value -> Parser [NielsenSourceWatermarkStatusType])
-> FromJSON NielsenSourceWatermarkStatusType
forall a.
(Value -> Parser a) -> (Value -> Parser [a]) -> FromJSON a
parseJSONList :: Value -> Parser [NielsenSourceWatermarkStatusType]
$cparseJSONList :: Value -> Parser [NielsenSourceWatermarkStatusType]
parseJSON :: Value -> Parser NielsenSourceWatermarkStatusType
$cparseJSON :: Value -> Parser NielsenSourceWatermarkStatusType
Core.FromJSON,
      FromJSONKeyFunction [NielsenSourceWatermarkStatusType]
FromJSONKeyFunction NielsenSourceWatermarkStatusType
FromJSONKeyFunction NielsenSourceWatermarkStatusType
-> FromJSONKeyFunction [NielsenSourceWatermarkStatusType]
-> FromJSONKey NielsenSourceWatermarkStatusType
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [NielsenSourceWatermarkStatusType]
$cfromJSONKeyList :: FromJSONKeyFunction [NielsenSourceWatermarkStatusType]
fromJSONKey :: FromJSONKeyFunction NielsenSourceWatermarkStatusType
$cfromJSONKey :: FromJSONKeyFunction NielsenSourceWatermarkStatusType
Core.FromJSONKey,
      [NielsenSourceWatermarkStatusType] -> Encoding
[NielsenSourceWatermarkStatusType] -> Value
NielsenSourceWatermarkStatusType -> Encoding
NielsenSourceWatermarkStatusType -> Value
(NielsenSourceWatermarkStatusType -> Value)
-> (NielsenSourceWatermarkStatusType -> Encoding)
-> ([NielsenSourceWatermarkStatusType] -> Value)
-> ([NielsenSourceWatermarkStatusType] -> Encoding)
-> ToJSON NielsenSourceWatermarkStatusType
forall a.
(a -> Value)
-> (a -> Encoding)
-> ([a] -> Value)
-> ([a] -> Encoding)
-> ToJSON a
toEncodingList :: [NielsenSourceWatermarkStatusType] -> Encoding
$ctoEncodingList :: [NielsenSourceWatermarkStatusType] -> Encoding
toJSONList :: [NielsenSourceWatermarkStatusType] -> Value
$ctoJSONList :: [NielsenSourceWatermarkStatusType] -> Value
toEncoding :: NielsenSourceWatermarkStatusType -> Encoding
$ctoEncoding :: NielsenSourceWatermarkStatusType -> Encoding
toJSON :: NielsenSourceWatermarkStatusType -> Value
$ctoJSON :: NielsenSourceWatermarkStatusType -> Value
Core.ToJSON,
      ToJSONKeyFunction [NielsenSourceWatermarkStatusType]
ToJSONKeyFunction NielsenSourceWatermarkStatusType
ToJSONKeyFunction NielsenSourceWatermarkStatusType
-> ToJSONKeyFunction [NielsenSourceWatermarkStatusType]
-> ToJSONKey NielsenSourceWatermarkStatusType
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [NielsenSourceWatermarkStatusType]
$ctoJSONKeyList :: ToJSONKeyFunction [NielsenSourceWatermarkStatusType]
toJSONKey :: ToJSONKeyFunction NielsenSourceWatermarkStatusType
$ctoJSONKey :: ToJSONKeyFunction NielsenSourceWatermarkStatusType
Core.ToJSONKey,
      [Node] -> Either String NielsenSourceWatermarkStatusType
([Node] -> Either String NielsenSourceWatermarkStatusType)
-> FromXML NielsenSourceWatermarkStatusType
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String NielsenSourceWatermarkStatusType
$cparseXML :: [Node] -> Either String NielsenSourceWatermarkStatusType
Core.FromXML,
      NielsenSourceWatermarkStatusType -> XML
(NielsenSourceWatermarkStatusType -> XML)
-> ToXML NielsenSourceWatermarkStatusType
forall a. (a -> XML) -> ToXML a
toXML :: NielsenSourceWatermarkStatusType -> XML
$ctoXML :: NielsenSourceWatermarkStatusType -> XML
Core.ToXML
    )

pattern NielsenSourceWatermarkStatusType_CLEAN :: NielsenSourceWatermarkStatusType
pattern $bNielsenSourceWatermarkStatusType_CLEAN :: NielsenSourceWatermarkStatusType
$mNielsenSourceWatermarkStatusType_CLEAN :: forall r.
NielsenSourceWatermarkStatusType
-> (Void# -> r) -> (Void# -> r) -> r
NielsenSourceWatermarkStatusType_CLEAN = NielsenSourceWatermarkStatusType' "CLEAN"

pattern NielsenSourceWatermarkStatusType_WATERMARKED :: NielsenSourceWatermarkStatusType
pattern $bNielsenSourceWatermarkStatusType_WATERMARKED :: NielsenSourceWatermarkStatusType
$mNielsenSourceWatermarkStatusType_WATERMARKED :: forall r.
NielsenSourceWatermarkStatusType
-> (Void# -> r) -> (Void# -> r) -> r
NielsenSourceWatermarkStatusType_WATERMARKED = NielsenSourceWatermarkStatusType' "WATERMARKED"

{-# COMPLETE
  NielsenSourceWatermarkStatusType_CLEAN,
  NielsenSourceWatermarkStatusType_WATERMARKED,
  NielsenSourceWatermarkStatusType'
  #-}