{-# 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.CopyProtectionAction
-- 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.CopyProtectionAction
  ( CopyProtectionAction
      ( ..,
        CopyProtectionAction_PASSTHROUGH,
        CopyProtectionAction_STRIP
      ),
  )
where

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

-- | The action to take on copy and redistribution control XDS packets. If
-- you select PASSTHROUGH, packets will not be changed. If you select
-- STRIP, any packets will be removed in output captions.
newtype CopyProtectionAction = CopyProtectionAction'
  { CopyProtectionAction -> Text
fromCopyProtectionAction ::
      Data.Text
  }
  deriving stock
    ( Int -> CopyProtectionAction -> ShowS
[CopyProtectionAction] -> ShowS
CopyProtectionAction -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [CopyProtectionAction] -> ShowS
$cshowList :: [CopyProtectionAction] -> ShowS
show :: CopyProtectionAction -> String
$cshow :: CopyProtectionAction -> String
showsPrec :: Int -> CopyProtectionAction -> ShowS
$cshowsPrec :: Int -> CopyProtectionAction -> ShowS
Prelude.Show,
      ReadPrec [CopyProtectionAction]
ReadPrec CopyProtectionAction
Int -> ReadS CopyProtectionAction
ReadS [CopyProtectionAction]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [CopyProtectionAction]
$creadListPrec :: ReadPrec [CopyProtectionAction]
readPrec :: ReadPrec CopyProtectionAction
$creadPrec :: ReadPrec CopyProtectionAction
readList :: ReadS [CopyProtectionAction]
$creadList :: ReadS [CopyProtectionAction]
readsPrec :: Int -> ReadS CopyProtectionAction
$creadsPrec :: Int -> ReadS CopyProtectionAction
Prelude.Read,
      CopyProtectionAction -> CopyProtectionAction -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: CopyProtectionAction -> CopyProtectionAction -> Bool
$c/= :: CopyProtectionAction -> CopyProtectionAction -> Bool
== :: CopyProtectionAction -> CopyProtectionAction -> Bool
$c== :: CopyProtectionAction -> CopyProtectionAction -> Bool
Prelude.Eq,
      Eq CopyProtectionAction
CopyProtectionAction -> CopyProtectionAction -> Bool
CopyProtectionAction -> CopyProtectionAction -> Ordering
CopyProtectionAction
-> CopyProtectionAction -> CopyProtectionAction
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 :: CopyProtectionAction
-> CopyProtectionAction -> CopyProtectionAction
$cmin :: CopyProtectionAction
-> CopyProtectionAction -> CopyProtectionAction
max :: CopyProtectionAction
-> CopyProtectionAction -> CopyProtectionAction
$cmax :: CopyProtectionAction
-> CopyProtectionAction -> CopyProtectionAction
>= :: CopyProtectionAction -> CopyProtectionAction -> Bool
$c>= :: CopyProtectionAction -> CopyProtectionAction -> Bool
> :: CopyProtectionAction -> CopyProtectionAction -> Bool
$c> :: CopyProtectionAction -> CopyProtectionAction -> Bool
<= :: CopyProtectionAction -> CopyProtectionAction -> Bool
$c<= :: CopyProtectionAction -> CopyProtectionAction -> Bool
< :: CopyProtectionAction -> CopyProtectionAction -> Bool
$c< :: CopyProtectionAction -> CopyProtectionAction -> Bool
compare :: CopyProtectionAction -> CopyProtectionAction -> Ordering
$ccompare :: CopyProtectionAction -> CopyProtectionAction -> Ordering
Prelude.Ord,
      forall x. Rep CopyProtectionAction x -> CopyProtectionAction
forall x. CopyProtectionAction -> Rep CopyProtectionAction x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep CopyProtectionAction x -> CopyProtectionAction
$cfrom :: forall x. CopyProtectionAction -> Rep CopyProtectionAction x
Prelude.Generic
    )
  deriving newtype
    ( Eq CopyProtectionAction
Int -> CopyProtectionAction -> Int
CopyProtectionAction -> Int
forall a. Eq a -> (Int -> a -> Int) -> (a -> Int) -> Hashable a
hash :: CopyProtectionAction -> Int
$chash :: CopyProtectionAction -> Int
hashWithSalt :: Int -> CopyProtectionAction -> Int
$chashWithSalt :: Int -> CopyProtectionAction -> Int
Prelude.Hashable,
      CopyProtectionAction -> ()
forall a. (a -> ()) -> NFData a
rnf :: CopyProtectionAction -> ()
$crnf :: CopyProtectionAction -> ()
Prelude.NFData,
      Text -> Either String CopyProtectionAction
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String CopyProtectionAction
$cfromText :: Text -> Either String CopyProtectionAction
Data.FromText,
      CopyProtectionAction -> Text
forall a. (a -> Text) -> ToText a
toText :: CopyProtectionAction -> Text
$ctoText :: CopyProtectionAction -> Text
Data.ToText,
      CopyProtectionAction -> ByteString
forall a. (a -> ByteString) -> ToByteString a
toBS :: CopyProtectionAction -> ByteString
$ctoBS :: CopyProtectionAction -> ByteString
Data.ToByteString,
      CopyProtectionAction -> ByteStringBuilder
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: CopyProtectionAction -> ByteStringBuilder
$cbuild :: CopyProtectionAction -> ByteStringBuilder
Data.ToLog,
      HeaderName -> CopyProtectionAction -> [Header]
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> CopyProtectionAction -> [Header]
$ctoHeader :: HeaderName -> CopyProtectionAction -> [Header]
Data.ToHeader,
      CopyProtectionAction -> QueryString
forall a. (a -> QueryString) -> ToQuery a
toQuery :: CopyProtectionAction -> QueryString
$ctoQuery :: CopyProtectionAction -> QueryString
Data.ToQuery,
      Value -> Parser [CopyProtectionAction]
Value -> Parser CopyProtectionAction
forall a.
(Value -> Parser a) -> (Value -> Parser [a]) -> FromJSON a
parseJSONList :: Value -> Parser [CopyProtectionAction]
$cparseJSONList :: Value -> Parser [CopyProtectionAction]
parseJSON :: Value -> Parser CopyProtectionAction
$cparseJSON :: Value -> Parser CopyProtectionAction
Data.FromJSON,
      FromJSONKeyFunction [CopyProtectionAction]
FromJSONKeyFunction CopyProtectionAction
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [CopyProtectionAction]
$cfromJSONKeyList :: FromJSONKeyFunction [CopyProtectionAction]
fromJSONKey :: FromJSONKeyFunction CopyProtectionAction
$cfromJSONKey :: FromJSONKeyFunction CopyProtectionAction
Data.FromJSONKey,
      [CopyProtectionAction] -> Encoding
[CopyProtectionAction] -> Value
CopyProtectionAction -> Encoding
CopyProtectionAction -> Value
forall a.
(a -> Value)
-> (a -> Encoding)
-> ([a] -> Value)
-> ([a] -> Encoding)
-> ToJSON a
toEncodingList :: [CopyProtectionAction] -> Encoding
$ctoEncodingList :: [CopyProtectionAction] -> Encoding
toJSONList :: [CopyProtectionAction] -> Value
$ctoJSONList :: [CopyProtectionAction] -> Value
toEncoding :: CopyProtectionAction -> Encoding
$ctoEncoding :: CopyProtectionAction -> Encoding
toJSON :: CopyProtectionAction -> Value
$ctoJSON :: CopyProtectionAction -> Value
Data.ToJSON,
      ToJSONKeyFunction [CopyProtectionAction]
ToJSONKeyFunction CopyProtectionAction
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [CopyProtectionAction]
$ctoJSONKeyList :: ToJSONKeyFunction [CopyProtectionAction]
toJSONKey :: ToJSONKeyFunction CopyProtectionAction
$ctoJSONKey :: ToJSONKeyFunction CopyProtectionAction
Data.ToJSONKey,
      [Node] -> Either String CopyProtectionAction
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String CopyProtectionAction
$cparseXML :: [Node] -> Either String CopyProtectionAction
Data.FromXML,
      CopyProtectionAction -> XML
forall a. (a -> XML) -> ToXML a
toXML :: CopyProtectionAction -> XML
$ctoXML :: CopyProtectionAction -> XML
Data.ToXML
    )

pattern CopyProtectionAction_PASSTHROUGH :: CopyProtectionAction
pattern $bCopyProtectionAction_PASSTHROUGH :: CopyProtectionAction
$mCopyProtectionAction_PASSTHROUGH :: forall {r}.
CopyProtectionAction -> ((# #) -> r) -> ((# #) -> r) -> r
CopyProtectionAction_PASSTHROUGH = CopyProtectionAction' "PASSTHROUGH"

pattern CopyProtectionAction_STRIP :: CopyProtectionAction
pattern $bCopyProtectionAction_STRIP :: CopyProtectionAction
$mCopyProtectionAction_STRIP :: forall {r}.
CopyProtectionAction -> ((# #) -> r) -> ((# #) -> r) -> r
CopyProtectionAction_STRIP = CopyProtectionAction' "STRIP"

{-# COMPLETE
  CopyProtectionAction_PASSTHROUGH,
  CopyProtectionAction_STRIP,
  CopyProtectionAction'
  #-}