{-# 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.AlphaBehavior
-- 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.AlphaBehavior
  ( AlphaBehavior
      ( ..,
        AlphaBehavior_DISCARD,
        AlphaBehavior_REMAP_TO_LUMA
      ),
  )
where

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

-- | Ignore this setting unless this input is a QuickTime animation with an
-- alpha channel. Use this setting to create separate Key and Fill outputs.
-- In each output, specify which part of the input MediaConvert uses. Leave
-- this setting at the default value DISCARD to delete the alpha channel
-- and preserve the video. Set it to REMAP_TO_LUMA to delete the video and
-- map the alpha channel to the luma channel of your outputs.
newtype AlphaBehavior = AlphaBehavior'
  { AlphaBehavior -> Text
fromAlphaBehavior ::
      Core.Text
  }
  deriving stock
    ( Int -> AlphaBehavior -> ShowS
[AlphaBehavior] -> ShowS
AlphaBehavior -> String
(Int -> AlphaBehavior -> ShowS)
-> (AlphaBehavior -> String)
-> ([AlphaBehavior] -> ShowS)
-> Show AlphaBehavior
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [AlphaBehavior] -> ShowS
$cshowList :: [AlphaBehavior] -> ShowS
show :: AlphaBehavior -> String
$cshow :: AlphaBehavior -> String
showsPrec :: Int -> AlphaBehavior -> ShowS
$cshowsPrec :: Int -> AlphaBehavior -> ShowS
Prelude.Show,
      ReadPrec [AlphaBehavior]
ReadPrec AlphaBehavior
Int -> ReadS AlphaBehavior
ReadS [AlphaBehavior]
(Int -> ReadS AlphaBehavior)
-> ReadS [AlphaBehavior]
-> ReadPrec AlphaBehavior
-> ReadPrec [AlphaBehavior]
-> Read AlphaBehavior
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [AlphaBehavior]
$creadListPrec :: ReadPrec [AlphaBehavior]
readPrec :: ReadPrec AlphaBehavior
$creadPrec :: ReadPrec AlphaBehavior
readList :: ReadS [AlphaBehavior]
$creadList :: ReadS [AlphaBehavior]
readsPrec :: Int -> ReadS AlphaBehavior
$creadsPrec :: Int -> ReadS AlphaBehavior
Prelude.Read,
      AlphaBehavior -> AlphaBehavior -> Bool
(AlphaBehavior -> AlphaBehavior -> Bool)
-> (AlphaBehavior -> AlphaBehavior -> Bool) -> Eq AlphaBehavior
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: AlphaBehavior -> AlphaBehavior -> Bool
$c/= :: AlphaBehavior -> AlphaBehavior -> Bool
== :: AlphaBehavior -> AlphaBehavior -> Bool
$c== :: AlphaBehavior -> AlphaBehavior -> Bool
Prelude.Eq,
      Eq AlphaBehavior
Eq AlphaBehavior
-> (AlphaBehavior -> AlphaBehavior -> Ordering)
-> (AlphaBehavior -> AlphaBehavior -> Bool)
-> (AlphaBehavior -> AlphaBehavior -> Bool)
-> (AlphaBehavior -> AlphaBehavior -> Bool)
-> (AlphaBehavior -> AlphaBehavior -> Bool)
-> (AlphaBehavior -> AlphaBehavior -> AlphaBehavior)
-> (AlphaBehavior -> AlphaBehavior -> AlphaBehavior)
-> Ord AlphaBehavior
AlphaBehavior -> AlphaBehavior -> Bool
AlphaBehavior -> AlphaBehavior -> Ordering
AlphaBehavior -> AlphaBehavior -> AlphaBehavior
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 :: AlphaBehavior -> AlphaBehavior -> AlphaBehavior
$cmin :: AlphaBehavior -> AlphaBehavior -> AlphaBehavior
max :: AlphaBehavior -> AlphaBehavior -> AlphaBehavior
$cmax :: AlphaBehavior -> AlphaBehavior -> AlphaBehavior
>= :: AlphaBehavior -> AlphaBehavior -> Bool
$c>= :: AlphaBehavior -> AlphaBehavior -> Bool
> :: AlphaBehavior -> AlphaBehavior -> Bool
$c> :: AlphaBehavior -> AlphaBehavior -> Bool
<= :: AlphaBehavior -> AlphaBehavior -> Bool
$c<= :: AlphaBehavior -> AlphaBehavior -> Bool
< :: AlphaBehavior -> AlphaBehavior -> Bool
$c< :: AlphaBehavior -> AlphaBehavior -> Bool
compare :: AlphaBehavior -> AlphaBehavior -> Ordering
$ccompare :: AlphaBehavior -> AlphaBehavior -> Ordering
$cp1Ord :: Eq AlphaBehavior
Prelude.Ord,
      (forall x. AlphaBehavior -> Rep AlphaBehavior x)
-> (forall x. Rep AlphaBehavior x -> AlphaBehavior)
-> Generic AlphaBehavior
forall x. Rep AlphaBehavior x -> AlphaBehavior
forall x. AlphaBehavior -> Rep AlphaBehavior x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep AlphaBehavior x -> AlphaBehavior
$cfrom :: forall x. AlphaBehavior -> Rep AlphaBehavior x
Prelude.Generic
    )
  deriving newtype
    ( Int -> AlphaBehavior -> Int
AlphaBehavior -> Int
(Int -> AlphaBehavior -> Int)
-> (AlphaBehavior -> Int) -> Hashable AlphaBehavior
forall a. (Int -> a -> Int) -> (a -> Int) -> Hashable a
hash :: AlphaBehavior -> Int
$chash :: AlphaBehavior -> Int
hashWithSalt :: Int -> AlphaBehavior -> Int
$chashWithSalt :: Int -> AlphaBehavior -> Int
Prelude.Hashable,
      AlphaBehavior -> ()
(AlphaBehavior -> ()) -> NFData AlphaBehavior
forall a. (a -> ()) -> NFData a
rnf :: AlphaBehavior -> ()
$crnf :: AlphaBehavior -> ()
Prelude.NFData,
      Text -> Either String AlphaBehavior
(Text -> Either String AlphaBehavior) -> FromText AlphaBehavior
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String AlphaBehavior
$cfromText :: Text -> Either String AlphaBehavior
Core.FromText,
      AlphaBehavior -> Text
(AlphaBehavior -> Text) -> ToText AlphaBehavior
forall a. (a -> Text) -> ToText a
toText :: AlphaBehavior -> Text
$ctoText :: AlphaBehavior -> Text
Core.ToText,
      AlphaBehavior -> ByteString
(AlphaBehavior -> ByteString) -> ToByteString AlphaBehavior
forall a. (a -> ByteString) -> ToByteString a
toBS :: AlphaBehavior -> ByteString
$ctoBS :: AlphaBehavior -> ByteString
Core.ToByteString,
      AlphaBehavior -> ByteStringBuilder
(AlphaBehavior -> ByteStringBuilder) -> ToLog AlphaBehavior
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: AlphaBehavior -> ByteStringBuilder
$cbuild :: AlphaBehavior -> ByteStringBuilder
Core.ToLog,
      HeaderName -> AlphaBehavior -> [Header]
(HeaderName -> AlphaBehavior -> [Header]) -> ToHeader AlphaBehavior
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> AlphaBehavior -> [Header]
$ctoHeader :: HeaderName -> AlphaBehavior -> [Header]
Core.ToHeader,
      AlphaBehavior -> QueryString
(AlphaBehavior -> QueryString) -> ToQuery AlphaBehavior
forall a. (a -> QueryString) -> ToQuery a
toQuery :: AlphaBehavior -> QueryString
$ctoQuery :: AlphaBehavior -> QueryString
Core.ToQuery,
      Value -> Parser [AlphaBehavior]
Value -> Parser AlphaBehavior
(Value -> Parser AlphaBehavior)
-> (Value -> Parser [AlphaBehavior]) -> FromJSON AlphaBehavior
forall a.
(Value -> Parser a) -> (Value -> Parser [a]) -> FromJSON a
parseJSONList :: Value -> Parser [AlphaBehavior]
$cparseJSONList :: Value -> Parser [AlphaBehavior]
parseJSON :: Value -> Parser AlphaBehavior
$cparseJSON :: Value -> Parser AlphaBehavior
Core.FromJSON,
      FromJSONKeyFunction [AlphaBehavior]
FromJSONKeyFunction AlphaBehavior
FromJSONKeyFunction AlphaBehavior
-> FromJSONKeyFunction [AlphaBehavior] -> FromJSONKey AlphaBehavior
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [AlphaBehavior]
$cfromJSONKeyList :: FromJSONKeyFunction [AlphaBehavior]
fromJSONKey :: FromJSONKeyFunction AlphaBehavior
$cfromJSONKey :: FromJSONKeyFunction AlphaBehavior
Core.FromJSONKey,
      [AlphaBehavior] -> Encoding
[AlphaBehavior] -> Value
AlphaBehavior -> Encoding
AlphaBehavior -> Value
(AlphaBehavior -> Value)
-> (AlphaBehavior -> Encoding)
-> ([AlphaBehavior] -> Value)
-> ([AlphaBehavior] -> Encoding)
-> ToJSON AlphaBehavior
forall a.
(a -> Value)
-> (a -> Encoding)
-> ([a] -> Value)
-> ([a] -> Encoding)
-> ToJSON a
toEncodingList :: [AlphaBehavior] -> Encoding
$ctoEncodingList :: [AlphaBehavior] -> Encoding
toJSONList :: [AlphaBehavior] -> Value
$ctoJSONList :: [AlphaBehavior] -> Value
toEncoding :: AlphaBehavior -> Encoding
$ctoEncoding :: AlphaBehavior -> Encoding
toJSON :: AlphaBehavior -> Value
$ctoJSON :: AlphaBehavior -> Value
Core.ToJSON,
      ToJSONKeyFunction [AlphaBehavior]
ToJSONKeyFunction AlphaBehavior
ToJSONKeyFunction AlphaBehavior
-> ToJSONKeyFunction [AlphaBehavior] -> ToJSONKey AlphaBehavior
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [AlphaBehavior]
$ctoJSONKeyList :: ToJSONKeyFunction [AlphaBehavior]
toJSONKey :: ToJSONKeyFunction AlphaBehavior
$ctoJSONKey :: ToJSONKeyFunction AlphaBehavior
Core.ToJSONKey,
      [Node] -> Either String AlphaBehavior
([Node] -> Either String AlphaBehavior) -> FromXML AlphaBehavior
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String AlphaBehavior
$cparseXML :: [Node] -> Either String AlphaBehavior
Core.FromXML,
      AlphaBehavior -> XML
(AlphaBehavior -> XML) -> ToXML AlphaBehavior
forall a. (a -> XML) -> ToXML a
toXML :: AlphaBehavior -> XML
$ctoXML :: AlphaBehavior -> XML
Core.ToXML
    )

pattern AlphaBehavior_DISCARD :: AlphaBehavior
pattern $bAlphaBehavior_DISCARD :: AlphaBehavior
$mAlphaBehavior_DISCARD :: forall r. AlphaBehavior -> (Void# -> r) -> (Void# -> r) -> r
AlphaBehavior_DISCARD = AlphaBehavior' "DISCARD"

pattern AlphaBehavior_REMAP_TO_LUMA :: AlphaBehavior
pattern $bAlphaBehavior_REMAP_TO_LUMA :: AlphaBehavior
$mAlphaBehavior_REMAP_TO_LUMA :: forall r. AlphaBehavior -> (Void# -> r) -> (Void# -> r) -> r
AlphaBehavior_REMAP_TO_LUMA = AlphaBehavior' "REMAP_TO_LUMA"

{-# COMPLETE
  AlphaBehavior_DISCARD,
  AlphaBehavior_REMAP_TO_LUMA,
  AlphaBehavior'
  #-}