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

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

-- | Motion Graphics Insertion
newtype MotionGraphicsInsertion = MotionGraphicsInsertion'
  { MotionGraphicsInsertion -> Text
fromMotionGraphicsInsertion ::
      Core.Text
  }
  deriving stock
    ( Int -> MotionGraphicsInsertion -> ShowS
[MotionGraphicsInsertion] -> ShowS
MotionGraphicsInsertion -> String
(Int -> MotionGraphicsInsertion -> ShowS)
-> (MotionGraphicsInsertion -> String)
-> ([MotionGraphicsInsertion] -> ShowS)
-> Show MotionGraphicsInsertion
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]
(Int -> ReadS MotionGraphicsInsertion)
-> ReadS [MotionGraphicsInsertion]
-> ReadPrec MotionGraphicsInsertion
-> ReadPrec [MotionGraphicsInsertion]
-> Read 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
(MotionGraphicsInsertion -> MotionGraphicsInsertion -> Bool)
-> (MotionGraphicsInsertion -> MotionGraphicsInsertion -> Bool)
-> Eq MotionGraphicsInsertion
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
Eq MotionGraphicsInsertion
-> (MotionGraphicsInsertion -> MotionGraphicsInsertion -> Ordering)
-> (MotionGraphicsInsertion -> MotionGraphicsInsertion -> Bool)
-> (MotionGraphicsInsertion -> MotionGraphicsInsertion -> Bool)
-> (MotionGraphicsInsertion -> MotionGraphicsInsertion -> Bool)
-> (MotionGraphicsInsertion -> MotionGraphicsInsertion -> Bool)
-> (MotionGraphicsInsertion
    -> MotionGraphicsInsertion -> MotionGraphicsInsertion)
-> (MotionGraphicsInsertion
    -> MotionGraphicsInsertion -> MotionGraphicsInsertion)
-> Ord 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
$cp1Ord :: Eq MotionGraphicsInsertion
Prelude.Ord,
      (forall x.
 MotionGraphicsInsertion -> Rep MotionGraphicsInsertion x)
-> (forall x.
    Rep MotionGraphicsInsertion x -> MotionGraphicsInsertion)
-> Generic MotionGraphicsInsertion
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
    ( Int -> MotionGraphicsInsertion -> Int
MotionGraphicsInsertion -> Int
(Int -> MotionGraphicsInsertion -> Int)
-> (MotionGraphicsInsertion -> Int)
-> Hashable MotionGraphicsInsertion
forall 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 -> ()
(MotionGraphicsInsertion -> ()) -> NFData MotionGraphicsInsertion
forall a. (a -> ()) -> NFData a
rnf :: MotionGraphicsInsertion -> ()
$crnf :: MotionGraphicsInsertion -> ()
Prelude.NFData,
      Text -> Either String MotionGraphicsInsertion
(Text -> Either String MotionGraphicsInsertion)
-> FromText MotionGraphicsInsertion
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String MotionGraphicsInsertion
$cfromText :: Text -> Either String MotionGraphicsInsertion
Core.FromText,
      MotionGraphicsInsertion -> Text
(MotionGraphicsInsertion -> Text) -> ToText MotionGraphicsInsertion
forall a. (a -> Text) -> ToText a
toText :: MotionGraphicsInsertion -> Text
$ctoText :: MotionGraphicsInsertion -> Text
Core.ToText,
      MotionGraphicsInsertion -> ByteString
(MotionGraphicsInsertion -> ByteString)
-> ToByteString MotionGraphicsInsertion
forall a. (a -> ByteString) -> ToByteString a
toBS :: MotionGraphicsInsertion -> ByteString
$ctoBS :: MotionGraphicsInsertion -> ByteString
Core.ToByteString,
      MotionGraphicsInsertion -> ByteStringBuilder
(MotionGraphicsInsertion -> ByteStringBuilder)
-> ToLog MotionGraphicsInsertion
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: MotionGraphicsInsertion -> ByteStringBuilder
$cbuild :: MotionGraphicsInsertion -> ByteStringBuilder
Core.ToLog,
      HeaderName -> MotionGraphicsInsertion -> [Header]
(HeaderName -> MotionGraphicsInsertion -> [Header])
-> ToHeader MotionGraphicsInsertion
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> MotionGraphicsInsertion -> [Header]
$ctoHeader :: HeaderName -> MotionGraphicsInsertion -> [Header]
Core.ToHeader,
      MotionGraphicsInsertion -> QueryString
(MotionGraphicsInsertion -> QueryString)
-> ToQuery MotionGraphicsInsertion
forall a. (a -> QueryString) -> ToQuery a
toQuery :: MotionGraphicsInsertion -> QueryString
$ctoQuery :: MotionGraphicsInsertion -> QueryString
Core.ToQuery,
      Value -> Parser [MotionGraphicsInsertion]
Value -> Parser MotionGraphicsInsertion
(Value -> Parser MotionGraphicsInsertion)
-> (Value -> Parser [MotionGraphicsInsertion])
-> FromJSON 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
Core.FromJSON,
      FromJSONKeyFunction [MotionGraphicsInsertion]
FromJSONKeyFunction MotionGraphicsInsertion
FromJSONKeyFunction MotionGraphicsInsertion
-> FromJSONKeyFunction [MotionGraphicsInsertion]
-> FromJSONKey MotionGraphicsInsertion
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [MotionGraphicsInsertion]
$cfromJSONKeyList :: FromJSONKeyFunction [MotionGraphicsInsertion]
fromJSONKey :: FromJSONKeyFunction MotionGraphicsInsertion
$cfromJSONKey :: FromJSONKeyFunction MotionGraphicsInsertion
Core.FromJSONKey,
      [MotionGraphicsInsertion] -> Encoding
[MotionGraphicsInsertion] -> Value
MotionGraphicsInsertion -> Encoding
MotionGraphicsInsertion -> Value
(MotionGraphicsInsertion -> Value)
-> (MotionGraphicsInsertion -> Encoding)
-> ([MotionGraphicsInsertion] -> Value)
-> ([MotionGraphicsInsertion] -> Encoding)
-> ToJSON MotionGraphicsInsertion
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
Core.ToJSON,
      ToJSONKeyFunction [MotionGraphicsInsertion]
ToJSONKeyFunction MotionGraphicsInsertion
ToJSONKeyFunction MotionGraphicsInsertion
-> ToJSONKeyFunction [MotionGraphicsInsertion]
-> ToJSONKey MotionGraphicsInsertion
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [MotionGraphicsInsertion]
$ctoJSONKeyList :: ToJSONKeyFunction [MotionGraphicsInsertion]
toJSONKey :: ToJSONKeyFunction MotionGraphicsInsertion
$ctoJSONKey :: ToJSONKeyFunction MotionGraphicsInsertion
Core.ToJSONKey,
      [Node] -> Either String MotionGraphicsInsertion
([Node] -> Either String MotionGraphicsInsertion)
-> FromXML MotionGraphicsInsertion
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String MotionGraphicsInsertion
$cparseXML :: [Node] -> Either String MotionGraphicsInsertion
Core.FromXML,
      MotionGraphicsInsertion -> XML
(MotionGraphicsInsertion -> XML) -> ToXML MotionGraphicsInsertion
forall a. (a -> XML) -> ToXML a
toXML :: MotionGraphicsInsertion -> XML
$ctoXML :: MotionGraphicsInsertion -> XML
Core.ToXML
    )

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

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

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