{-# 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.H264TimecodeInsertionBehavior
-- 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.H264TimecodeInsertionBehavior
  ( H264TimecodeInsertionBehavior
      ( ..,
        H264TimecodeInsertionBehavior_DISABLED,
        H264TimecodeInsertionBehavior_PIC_TIMING_SEI
      ),
  )
where

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

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

pattern H264TimecodeInsertionBehavior_DISABLED :: H264TimecodeInsertionBehavior
pattern $bH264TimecodeInsertionBehavior_DISABLED :: H264TimecodeInsertionBehavior
$mH264TimecodeInsertionBehavior_DISABLED :: forall r.
H264TimecodeInsertionBehavior -> (Void# -> r) -> (Void# -> r) -> r
H264TimecodeInsertionBehavior_DISABLED = H264TimecodeInsertionBehavior' "DISABLED"

pattern H264TimecodeInsertionBehavior_PIC_TIMING_SEI :: H264TimecodeInsertionBehavior
pattern $bH264TimecodeInsertionBehavior_PIC_TIMING_SEI :: H264TimecodeInsertionBehavior
$mH264TimecodeInsertionBehavior_PIC_TIMING_SEI :: forall r.
H264TimecodeInsertionBehavior -> (Void# -> r) -> (Void# -> r) -> r
H264TimecodeInsertionBehavior_PIC_TIMING_SEI = H264TimecodeInsertionBehavior' "PIC_TIMING_SEI"

{-# COMPLETE
  H264TimecodeInsertionBehavior_DISABLED,
  H264TimecodeInsertionBehavior_PIC_TIMING_SEI,
  H264TimecodeInsertionBehavior'
  #-}