{-# 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.MediaLive.Types.MotionGraphicsInsertion
-- 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.MediaLive.Types.MotionGraphicsInsertion
  ( MotionGraphicsInsertion
      ( ..,
        MotionGraphicsInsertion_DISABLED,
        MotionGraphicsInsertion_ENABLED
      ),
  )
where

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

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

pattern MotionGraphicsInsertion_DISABLED :: MotionGraphicsInsertion
pattern $bMotionGraphicsInsertion_DISABLED :: MotionGraphicsInsertion
$mMotionGraphicsInsertion_DISABLED :: forall {r}.
MotionGraphicsInsertion -> ((# #) -> r) -> ((# #) -> r) -> r
MotionGraphicsInsertion_DISABLED = MotionGraphicsInsertion' "DISABLED"

pattern MotionGraphicsInsertion_ENABLED :: MotionGraphicsInsertion
pattern $bMotionGraphicsInsertion_ENABLED :: MotionGraphicsInsertion
$mMotionGraphicsInsertion_ENABLED :: forall {r}.
MotionGraphicsInsertion -> ((# #) -> r) -> ((# #) -> r) -> r
MotionGraphicsInsertion_ENABLED = MotionGraphicsInsertion' "ENABLED"

{-# COMPLETE
  MotionGraphicsInsertion_DISABLED,
  MotionGraphicsInsertion_ENABLED,
  MotionGraphicsInsertion'
  #-}