{-# 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.MotionImageInsertionMode
-- 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.MotionImageInsertionMode
  ( MotionImageInsertionMode
      ( ..,
        MotionImageInsertionMode_MOV,
        MotionImageInsertionMode_PNG
      ),
  )
where

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

-- | Choose the type of motion graphic asset that you are providing for your
-- overlay. You can choose either a .mov file or a series of .png files.
newtype MotionImageInsertionMode = MotionImageInsertionMode'
  { MotionImageInsertionMode -> Text
fromMotionImageInsertionMode ::
      Data.Text
  }
  deriving stock
    ( Int -> MotionImageInsertionMode -> ShowS
[MotionImageInsertionMode] -> ShowS
MotionImageInsertionMode -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [MotionImageInsertionMode] -> ShowS
$cshowList :: [MotionImageInsertionMode] -> ShowS
show :: MotionImageInsertionMode -> String
$cshow :: MotionImageInsertionMode -> String
showsPrec :: Int -> MotionImageInsertionMode -> ShowS
$cshowsPrec :: Int -> MotionImageInsertionMode -> ShowS
Prelude.Show,
      ReadPrec [MotionImageInsertionMode]
ReadPrec MotionImageInsertionMode
Int -> ReadS MotionImageInsertionMode
ReadS [MotionImageInsertionMode]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [MotionImageInsertionMode]
$creadListPrec :: ReadPrec [MotionImageInsertionMode]
readPrec :: ReadPrec MotionImageInsertionMode
$creadPrec :: ReadPrec MotionImageInsertionMode
readList :: ReadS [MotionImageInsertionMode]
$creadList :: ReadS [MotionImageInsertionMode]
readsPrec :: Int -> ReadS MotionImageInsertionMode
$creadsPrec :: Int -> ReadS MotionImageInsertionMode
Prelude.Read,
      MotionImageInsertionMode -> MotionImageInsertionMode -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: MotionImageInsertionMode -> MotionImageInsertionMode -> Bool
$c/= :: MotionImageInsertionMode -> MotionImageInsertionMode -> Bool
== :: MotionImageInsertionMode -> MotionImageInsertionMode -> Bool
$c== :: MotionImageInsertionMode -> MotionImageInsertionMode -> Bool
Prelude.Eq,
      Eq MotionImageInsertionMode
MotionImageInsertionMode -> MotionImageInsertionMode -> Bool
MotionImageInsertionMode -> MotionImageInsertionMode -> Ordering
MotionImageInsertionMode
-> MotionImageInsertionMode -> MotionImageInsertionMode
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 :: MotionImageInsertionMode
-> MotionImageInsertionMode -> MotionImageInsertionMode
$cmin :: MotionImageInsertionMode
-> MotionImageInsertionMode -> MotionImageInsertionMode
max :: MotionImageInsertionMode
-> MotionImageInsertionMode -> MotionImageInsertionMode
$cmax :: MotionImageInsertionMode
-> MotionImageInsertionMode -> MotionImageInsertionMode
>= :: MotionImageInsertionMode -> MotionImageInsertionMode -> Bool
$c>= :: MotionImageInsertionMode -> MotionImageInsertionMode -> Bool
> :: MotionImageInsertionMode -> MotionImageInsertionMode -> Bool
$c> :: MotionImageInsertionMode -> MotionImageInsertionMode -> Bool
<= :: MotionImageInsertionMode -> MotionImageInsertionMode -> Bool
$c<= :: MotionImageInsertionMode -> MotionImageInsertionMode -> Bool
< :: MotionImageInsertionMode -> MotionImageInsertionMode -> Bool
$c< :: MotionImageInsertionMode -> MotionImageInsertionMode -> Bool
compare :: MotionImageInsertionMode -> MotionImageInsertionMode -> Ordering
$ccompare :: MotionImageInsertionMode -> MotionImageInsertionMode -> Ordering
Prelude.Ord,
      forall x.
Rep MotionImageInsertionMode x -> MotionImageInsertionMode
forall x.
MotionImageInsertionMode -> Rep MotionImageInsertionMode x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep MotionImageInsertionMode x -> MotionImageInsertionMode
$cfrom :: forall x.
MotionImageInsertionMode -> Rep MotionImageInsertionMode x
Prelude.Generic
    )
  deriving newtype
    ( Eq MotionImageInsertionMode
Int -> MotionImageInsertionMode -> Int
MotionImageInsertionMode -> Int
forall a. Eq a -> (Int -> a -> Int) -> (a -> Int) -> Hashable a
hash :: MotionImageInsertionMode -> Int
$chash :: MotionImageInsertionMode -> Int
hashWithSalt :: Int -> MotionImageInsertionMode -> Int
$chashWithSalt :: Int -> MotionImageInsertionMode -> Int
Prelude.Hashable,
      MotionImageInsertionMode -> ()
forall a. (a -> ()) -> NFData a
rnf :: MotionImageInsertionMode -> ()
$crnf :: MotionImageInsertionMode -> ()
Prelude.NFData,
      Text -> Either String MotionImageInsertionMode
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String MotionImageInsertionMode
$cfromText :: Text -> Either String MotionImageInsertionMode
Data.FromText,
      MotionImageInsertionMode -> Text
forall a. (a -> Text) -> ToText a
toText :: MotionImageInsertionMode -> Text
$ctoText :: MotionImageInsertionMode -> Text
Data.ToText,
      MotionImageInsertionMode -> ByteString
forall a. (a -> ByteString) -> ToByteString a
toBS :: MotionImageInsertionMode -> ByteString
$ctoBS :: MotionImageInsertionMode -> ByteString
Data.ToByteString,
      MotionImageInsertionMode -> ByteStringBuilder
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: MotionImageInsertionMode -> ByteStringBuilder
$cbuild :: MotionImageInsertionMode -> ByteStringBuilder
Data.ToLog,
      HeaderName -> MotionImageInsertionMode -> [Header]
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> MotionImageInsertionMode -> [Header]
$ctoHeader :: HeaderName -> MotionImageInsertionMode -> [Header]
Data.ToHeader,
      MotionImageInsertionMode -> QueryString
forall a. (a -> QueryString) -> ToQuery a
toQuery :: MotionImageInsertionMode -> QueryString
$ctoQuery :: MotionImageInsertionMode -> QueryString
Data.ToQuery,
      Value -> Parser [MotionImageInsertionMode]
Value -> Parser MotionImageInsertionMode
forall a.
(Value -> Parser a) -> (Value -> Parser [a]) -> FromJSON a
parseJSONList :: Value -> Parser [MotionImageInsertionMode]
$cparseJSONList :: Value -> Parser [MotionImageInsertionMode]
parseJSON :: Value -> Parser MotionImageInsertionMode
$cparseJSON :: Value -> Parser MotionImageInsertionMode
Data.FromJSON,
      FromJSONKeyFunction [MotionImageInsertionMode]
FromJSONKeyFunction MotionImageInsertionMode
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [MotionImageInsertionMode]
$cfromJSONKeyList :: FromJSONKeyFunction [MotionImageInsertionMode]
fromJSONKey :: FromJSONKeyFunction MotionImageInsertionMode
$cfromJSONKey :: FromJSONKeyFunction MotionImageInsertionMode
Data.FromJSONKey,
      [MotionImageInsertionMode] -> Encoding
[MotionImageInsertionMode] -> Value
MotionImageInsertionMode -> Encoding
MotionImageInsertionMode -> Value
forall a.
(a -> Value)
-> (a -> Encoding)
-> ([a] -> Value)
-> ([a] -> Encoding)
-> ToJSON a
toEncodingList :: [MotionImageInsertionMode] -> Encoding
$ctoEncodingList :: [MotionImageInsertionMode] -> Encoding
toJSONList :: [MotionImageInsertionMode] -> Value
$ctoJSONList :: [MotionImageInsertionMode] -> Value
toEncoding :: MotionImageInsertionMode -> Encoding
$ctoEncoding :: MotionImageInsertionMode -> Encoding
toJSON :: MotionImageInsertionMode -> Value
$ctoJSON :: MotionImageInsertionMode -> Value
Data.ToJSON,
      ToJSONKeyFunction [MotionImageInsertionMode]
ToJSONKeyFunction MotionImageInsertionMode
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [MotionImageInsertionMode]
$ctoJSONKeyList :: ToJSONKeyFunction [MotionImageInsertionMode]
toJSONKey :: ToJSONKeyFunction MotionImageInsertionMode
$ctoJSONKey :: ToJSONKeyFunction MotionImageInsertionMode
Data.ToJSONKey,
      [Node] -> Either String MotionImageInsertionMode
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String MotionImageInsertionMode
$cparseXML :: [Node] -> Either String MotionImageInsertionMode
Data.FromXML,
      MotionImageInsertionMode -> XML
forall a. (a -> XML) -> ToXML a
toXML :: MotionImageInsertionMode -> XML
$ctoXML :: MotionImageInsertionMode -> XML
Data.ToXML
    )

pattern MotionImageInsertionMode_MOV :: MotionImageInsertionMode
pattern $bMotionImageInsertionMode_MOV :: MotionImageInsertionMode
$mMotionImageInsertionMode_MOV :: forall {r}.
MotionImageInsertionMode -> ((# #) -> r) -> ((# #) -> r) -> r
MotionImageInsertionMode_MOV = MotionImageInsertionMode' "MOV"

pattern MotionImageInsertionMode_PNG :: MotionImageInsertionMode
pattern $bMotionImageInsertionMode_PNG :: MotionImageInsertionMode
$mMotionImageInsertionMode_PNG :: forall {r}.
MotionImageInsertionMode -> ((# #) -> r) -> ((# #) -> r) -> r
MotionImageInsertionMode_PNG = MotionImageInsertionMode' "PNG"

{-# COMPLETE
  MotionImageInsertionMode_MOV,
  MotionImageInsertionMode_PNG,
  MotionImageInsertionMode'
  #-}