{-# 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.Fmp4TimedMetadataBehavior
-- 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.Fmp4TimedMetadataBehavior
  ( Fmp4TimedMetadataBehavior
      ( ..,
        Fmp4TimedMetadataBehavior_NO_PASSTHROUGH,
        Fmp4TimedMetadataBehavior_PASSTHROUGH
      ),
  )
where

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

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

pattern Fmp4TimedMetadataBehavior_NO_PASSTHROUGH :: Fmp4TimedMetadataBehavior
pattern $bFmp4TimedMetadataBehavior_NO_PASSTHROUGH :: Fmp4TimedMetadataBehavior
$mFmp4TimedMetadataBehavior_NO_PASSTHROUGH :: forall r.
Fmp4TimedMetadataBehavior -> (Void# -> r) -> (Void# -> r) -> r
Fmp4TimedMetadataBehavior_NO_PASSTHROUGH = Fmp4TimedMetadataBehavior' "NO_PASSTHROUGH"

pattern Fmp4TimedMetadataBehavior_PASSTHROUGH :: Fmp4TimedMetadataBehavior
pattern $bFmp4TimedMetadataBehavior_PASSTHROUGH :: Fmp4TimedMetadataBehavior
$mFmp4TimedMetadataBehavior_PASSTHROUGH :: forall r.
Fmp4TimedMetadataBehavior -> (Void# -> r) -> (Void# -> r) -> r
Fmp4TimedMetadataBehavior_PASSTHROUGH = Fmp4TimedMetadataBehavior' "PASSTHROUGH"

{-# COMPLETE
  Fmp4TimedMetadataBehavior_NO_PASSTHROUGH,
  Fmp4TimedMetadataBehavior_PASSTHROUGH,
  Fmp4TimedMetadataBehavior'
  #-}