{-# 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-2023 Brendan Hay
-- License     : Mozilla Public License, v. 2.0.
-- Maintainer  : Brendan Hay
-- 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.Data as Data
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 ::
      Data.Text
  }
  deriving stock
    ( Int -> NielsenSourceWatermarkStatusType -> ShowS
[NielsenSourceWatermarkStatusType] -> ShowS
NielsenSourceWatermarkStatusType -> String
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]
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
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
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
Prelude.Ord,
      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
    ( Eq NielsenSourceWatermarkStatusType
Int -> NielsenSourceWatermarkStatusType -> Int
NielsenSourceWatermarkStatusType -> Int
forall a. Eq 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 -> ()
forall a. (a -> ()) -> NFData a
rnf :: NielsenSourceWatermarkStatusType -> ()
$crnf :: NielsenSourceWatermarkStatusType -> ()
Prelude.NFData,
      Text -> Either String NielsenSourceWatermarkStatusType
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String NielsenSourceWatermarkStatusType
$cfromText :: Text -> Either String NielsenSourceWatermarkStatusType
Data.FromText,
      NielsenSourceWatermarkStatusType -> Text
forall a. (a -> Text) -> ToText a
toText :: NielsenSourceWatermarkStatusType -> Text
$ctoText :: NielsenSourceWatermarkStatusType -> Text
Data.ToText,
      NielsenSourceWatermarkStatusType -> ByteString
forall a. (a -> ByteString) -> ToByteString a
toBS :: NielsenSourceWatermarkStatusType -> ByteString
$ctoBS :: NielsenSourceWatermarkStatusType -> ByteString
Data.ToByteString,
      NielsenSourceWatermarkStatusType -> ByteStringBuilder
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: NielsenSourceWatermarkStatusType -> ByteStringBuilder
$cbuild :: NielsenSourceWatermarkStatusType -> ByteStringBuilder
Data.ToLog,
      HeaderName -> NielsenSourceWatermarkStatusType -> [Header]
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> NielsenSourceWatermarkStatusType -> [Header]
$ctoHeader :: HeaderName -> NielsenSourceWatermarkStatusType -> [Header]
Data.ToHeader,
      NielsenSourceWatermarkStatusType -> QueryString
forall a. (a -> QueryString) -> ToQuery a
toQuery :: NielsenSourceWatermarkStatusType -> QueryString
$ctoQuery :: NielsenSourceWatermarkStatusType -> QueryString
Data.ToQuery,
      Value -> Parser [NielsenSourceWatermarkStatusType]
Value -> Parser 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
Data.FromJSON,
      FromJSONKeyFunction [NielsenSourceWatermarkStatusType]
FromJSONKeyFunction NielsenSourceWatermarkStatusType
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [NielsenSourceWatermarkStatusType]
$cfromJSONKeyList :: FromJSONKeyFunction [NielsenSourceWatermarkStatusType]
fromJSONKey :: FromJSONKeyFunction NielsenSourceWatermarkStatusType
$cfromJSONKey :: FromJSONKeyFunction NielsenSourceWatermarkStatusType
Data.FromJSONKey,
      [NielsenSourceWatermarkStatusType] -> Encoding
[NielsenSourceWatermarkStatusType] -> Value
NielsenSourceWatermarkStatusType -> Encoding
NielsenSourceWatermarkStatusType -> Value
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
Data.ToJSON,
      ToJSONKeyFunction [NielsenSourceWatermarkStatusType]
ToJSONKeyFunction NielsenSourceWatermarkStatusType
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [NielsenSourceWatermarkStatusType]
$ctoJSONKeyList :: ToJSONKeyFunction [NielsenSourceWatermarkStatusType]
toJSONKey :: ToJSONKeyFunction NielsenSourceWatermarkStatusType
$ctoJSONKey :: ToJSONKeyFunction NielsenSourceWatermarkStatusType
Data.ToJSONKey,
      [Node] -> Either String NielsenSourceWatermarkStatusType
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String NielsenSourceWatermarkStatusType
$cparseXML :: [Node] -> Either String NielsenSourceWatermarkStatusType
Data.FromXML,
      NielsenSourceWatermarkStatusType -> XML
forall a. (a -> XML) -> ToXML a
toXML :: NielsenSourceWatermarkStatusType -> XML
$ctoXML :: NielsenSourceWatermarkStatusType -> XML
Data.ToXML
    )

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

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

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