{-# 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.MovClapAtom
-- 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.MovClapAtom
  ( MovClapAtom
      ( ..,
        MovClapAtom_EXCLUDE,
        MovClapAtom_INCLUDE
      ),
  )
where

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

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

pattern MovClapAtom_EXCLUDE :: MovClapAtom
pattern $bMovClapAtom_EXCLUDE :: MovClapAtom
$mMovClapAtom_EXCLUDE :: forall r. MovClapAtom -> (Void# -> r) -> (Void# -> r) -> r
MovClapAtom_EXCLUDE = MovClapAtom' "EXCLUDE"

pattern MovClapAtom_INCLUDE :: MovClapAtom
pattern $bMovClapAtom_INCLUDE :: MovClapAtom
$mMovClapAtom_INCLUDE :: forall r. MovClapAtom -> (Void# -> r) -> (Void# -> r) -> r
MovClapAtom_INCLUDE = MovClapAtom' "INCLUDE"

{-# COMPLETE
  MovClapAtom_EXCLUDE,
  MovClapAtom_INCLUDE,
  MovClapAtom'
  #-}