{-# 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.DropFrameTimecode
-- 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.DropFrameTimecode
  ( DropFrameTimecode
      ( ..,
        DropFrameTimecode_DISABLED,
        DropFrameTimecode_ENABLED
      ),
  )
where

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

-- | Applies only to 29.97 fps outputs. When this feature is enabled, the
-- service will use drop-frame timecode on outputs. If it is not possible
-- to use drop-frame timecode, the system will fall back to non-drop-frame.
-- This setting is enabled by default when Timecode insertion
-- (TimecodeInsertion) is enabled.
newtype DropFrameTimecode = DropFrameTimecode'
  { DropFrameTimecode -> Text
fromDropFrameTimecode ::
      Core.Text
  }
  deriving stock
    ( Int -> DropFrameTimecode -> ShowS
[DropFrameTimecode] -> ShowS
DropFrameTimecode -> String
(Int -> DropFrameTimecode -> ShowS)
-> (DropFrameTimecode -> String)
-> ([DropFrameTimecode] -> ShowS)
-> Show DropFrameTimecode
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [DropFrameTimecode] -> ShowS
$cshowList :: [DropFrameTimecode] -> ShowS
show :: DropFrameTimecode -> String
$cshow :: DropFrameTimecode -> String
showsPrec :: Int -> DropFrameTimecode -> ShowS
$cshowsPrec :: Int -> DropFrameTimecode -> ShowS
Prelude.Show,
      ReadPrec [DropFrameTimecode]
ReadPrec DropFrameTimecode
Int -> ReadS DropFrameTimecode
ReadS [DropFrameTimecode]
(Int -> ReadS DropFrameTimecode)
-> ReadS [DropFrameTimecode]
-> ReadPrec DropFrameTimecode
-> ReadPrec [DropFrameTimecode]
-> Read DropFrameTimecode
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [DropFrameTimecode]
$creadListPrec :: ReadPrec [DropFrameTimecode]
readPrec :: ReadPrec DropFrameTimecode
$creadPrec :: ReadPrec DropFrameTimecode
readList :: ReadS [DropFrameTimecode]
$creadList :: ReadS [DropFrameTimecode]
readsPrec :: Int -> ReadS DropFrameTimecode
$creadsPrec :: Int -> ReadS DropFrameTimecode
Prelude.Read,
      DropFrameTimecode -> DropFrameTimecode -> Bool
(DropFrameTimecode -> DropFrameTimecode -> Bool)
-> (DropFrameTimecode -> DropFrameTimecode -> Bool)
-> Eq DropFrameTimecode
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: DropFrameTimecode -> DropFrameTimecode -> Bool
$c/= :: DropFrameTimecode -> DropFrameTimecode -> Bool
== :: DropFrameTimecode -> DropFrameTimecode -> Bool
$c== :: DropFrameTimecode -> DropFrameTimecode -> Bool
Prelude.Eq,
      Eq DropFrameTimecode
Eq DropFrameTimecode
-> (DropFrameTimecode -> DropFrameTimecode -> Ordering)
-> (DropFrameTimecode -> DropFrameTimecode -> Bool)
-> (DropFrameTimecode -> DropFrameTimecode -> Bool)
-> (DropFrameTimecode -> DropFrameTimecode -> Bool)
-> (DropFrameTimecode -> DropFrameTimecode -> Bool)
-> (DropFrameTimecode -> DropFrameTimecode -> DropFrameTimecode)
-> (DropFrameTimecode -> DropFrameTimecode -> DropFrameTimecode)
-> Ord DropFrameTimecode
DropFrameTimecode -> DropFrameTimecode -> Bool
DropFrameTimecode -> DropFrameTimecode -> Ordering
DropFrameTimecode -> DropFrameTimecode -> DropFrameTimecode
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 :: DropFrameTimecode -> DropFrameTimecode -> DropFrameTimecode
$cmin :: DropFrameTimecode -> DropFrameTimecode -> DropFrameTimecode
max :: DropFrameTimecode -> DropFrameTimecode -> DropFrameTimecode
$cmax :: DropFrameTimecode -> DropFrameTimecode -> DropFrameTimecode
>= :: DropFrameTimecode -> DropFrameTimecode -> Bool
$c>= :: DropFrameTimecode -> DropFrameTimecode -> Bool
> :: DropFrameTimecode -> DropFrameTimecode -> Bool
$c> :: DropFrameTimecode -> DropFrameTimecode -> Bool
<= :: DropFrameTimecode -> DropFrameTimecode -> Bool
$c<= :: DropFrameTimecode -> DropFrameTimecode -> Bool
< :: DropFrameTimecode -> DropFrameTimecode -> Bool
$c< :: DropFrameTimecode -> DropFrameTimecode -> Bool
compare :: DropFrameTimecode -> DropFrameTimecode -> Ordering
$ccompare :: DropFrameTimecode -> DropFrameTimecode -> Ordering
$cp1Ord :: Eq DropFrameTimecode
Prelude.Ord,
      (forall x. DropFrameTimecode -> Rep DropFrameTimecode x)
-> (forall x. Rep DropFrameTimecode x -> DropFrameTimecode)
-> Generic DropFrameTimecode
forall x. Rep DropFrameTimecode x -> DropFrameTimecode
forall x. DropFrameTimecode -> Rep DropFrameTimecode x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep DropFrameTimecode x -> DropFrameTimecode
$cfrom :: forall x. DropFrameTimecode -> Rep DropFrameTimecode x
Prelude.Generic
    )
  deriving newtype
    ( Int -> DropFrameTimecode -> Int
DropFrameTimecode -> Int
(Int -> DropFrameTimecode -> Int)
-> (DropFrameTimecode -> Int) -> Hashable DropFrameTimecode
forall a. (Int -> a -> Int) -> (a -> Int) -> Hashable a
hash :: DropFrameTimecode -> Int
$chash :: DropFrameTimecode -> Int
hashWithSalt :: Int -> DropFrameTimecode -> Int
$chashWithSalt :: Int -> DropFrameTimecode -> Int
Prelude.Hashable,
      DropFrameTimecode -> ()
(DropFrameTimecode -> ()) -> NFData DropFrameTimecode
forall a. (a -> ()) -> NFData a
rnf :: DropFrameTimecode -> ()
$crnf :: DropFrameTimecode -> ()
Prelude.NFData,
      Text -> Either String DropFrameTimecode
(Text -> Either String DropFrameTimecode)
-> FromText DropFrameTimecode
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String DropFrameTimecode
$cfromText :: Text -> Either String DropFrameTimecode
Core.FromText,
      DropFrameTimecode -> Text
(DropFrameTimecode -> Text) -> ToText DropFrameTimecode
forall a. (a -> Text) -> ToText a
toText :: DropFrameTimecode -> Text
$ctoText :: DropFrameTimecode -> Text
Core.ToText,
      DropFrameTimecode -> ByteString
(DropFrameTimecode -> ByteString) -> ToByteString DropFrameTimecode
forall a. (a -> ByteString) -> ToByteString a
toBS :: DropFrameTimecode -> ByteString
$ctoBS :: DropFrameTimecode -> ByteString
Core.ToByteString,
      DropFrameTimecode -> ByteStringBuilder
(DropFrameTimecode -> ByteStringBuilder) -> ToLog DropFrameTimecode
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: DropFrameTimecode -> ByteStringBuilder
$cbuild :: DropFrameTimecode -> ByteStringBuilder
Core.ToLog,
      HeaderName -> DropFrameTimecode -> [Header]
(HeaderName -> DropFrameTimecode -> [Header])
-> ToHeader DropFrameTimecode
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> DropFrameTimecode -> [Header]
$ctoHeader :: HeaderName -> DropFrameTimecode -> [Header]
Core.ToHeader,
      DropFrameTimecode -> QueryString
(DropFrameTimecode -> QueryString) -> ToQuery DropFrameTimecode
forall a. (a -> QueryString) -> ToQuery a
toQuery :: DropFrameTimecode -> QueryString
$ctoQuery :: DropFrameTimecode -> QueryString
Core.ToQuery,
      Value -> Parser [DropFrameTimecode]
Value -> Parser DropFrameTimecode
(Value -> Parser DropFrameTimecode)
-> (Value -> Parser [DropFrameTimecode])
-> FromJSON DropFrameTimecode
forall a.
(Value -> Parser a) -> (Value -> Parser [a]) -> FromJSON a
parseJSONList :: Value -> Parser [DropFrameTimecode]
$cparseJSONList :: Value -> Parser [DropFrameTimecode]
parseJSON :: Value -> Parser DropFrameTimecode
$cparseJSON :: Value -> Parser DropFrameTimecode
Core.FromJSON,
      FromJSONKeyFunction [DropFrameTimecode]
FromJSONKeyFunction DropFrameTimecode
FromJSONKeyFunction DropFrameTimecode
-> FromJSONKeyFunction [DropFrameTimecode]
-> FromJSONKey DropFrameTimecode
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [DropFrameTimecode]
$cfromJSONKeyList :: FromJSONKeyFunction [DropFrameTimecode]
fromJSONKey :: FromJSONKeyFunction DropFrameTimecode
$cfromJSONKey :: FromJSONKeyFunction DropFrameTimecode
Core.FromJSONKey,
      [DropFrameTimecode] -> Encoding
[DropFrameTimecode] -> Value
DropFrameTimecode -> Encoding
DropFrameTimecode -> Value
(DropFrameTimecode -> Value)
-> (DropFrameTimecode -> Encoding)
-> ([DropFrameTimecode] -> Value)
-> ([DropFrameTimecode] -> Encoding)
-> ToJSON DropFrameTimecode
forall a.
(a -> Value)
-> (a -> Encoding)
-> ([a] -> Value)
-> ([a] -> Encoding)
-> ToJSON a
toEncodingList :: [DropFrameTimecode] -> Encoding
$ctoEncodingList :: [DropFrameTimecode] -> Encoding
toJSONList :: [DropFrameTimecode] -> Value
$ctoJSONList :: [DropFrameTimecode] -> Value
toEncoding :: DropFrameTimecode -> Encoding
$ctoEncoding :: DropFrameTimecode -> Encoding
toJSON :: DropFrameTimecode -> Value
$ctoJSON :: DropFrameTimecode -> Value
Core.ToJSON,
      ToJSONKeyFunction [DropFrameTimecode]
ToJSONKeyFunction DropFrameTimecode
ToJSONKeyFunction DropFrameTimecode
-> ToJSONKeyFunction [DropFrameTimecode]
-> ToJSONKey DropFrameTimecode
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [DropFrameTimecode]
$ctoJSONKeyList :: ToJSONKeyFunction [DropFrameTimecode]
toJSONKey :: ToJSONKeyFunction DropFrameTimecode
$ctoJSONKey :: ToJSONKeyFunction DropFrameTimecode
Core.ToJSONKey,
      [Node] -> Either String DropFrameTimecode
([Node] -> Either String DropFrameTimecode)
-> FromXML DropFrameTimecode
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String DropFrameTimecode
$cparseXML :: [Node] -> Either String DropFrameTimecode
Core.FromXML,
      DropFrameTimecode -> XML
(DropFrameTimecode -> XML) -> ToXML DropFrameTimecode
forall a. (a -> XML) -> ToXML a
toXML :: DropFrameTimecode -> XML
$ctoXML :: DropFrameTimecode -> XML
Core.ToXML
    )

pattern DropFrameTimecode_DISABLED :: DropFrameTimecode
pattern $bDropFrameTimecode_DISABLED :: DropFrameTimecode
$mDropFrameTimecode_DISABLED :: forall r. DropFrameTimecode -> (Void# -> r) -> (Void# -> r) -> r
DropFrameTimecode_DISABLED = DropFrameTimecode' "DISABLED"

pattern DropFrameTimecode_ENABLED :: DropFrameTimecode
pattern $bDropFrameTimecode_ENABLED :: DropFrameTimecode
$mDropFrameTimecode_ENABLED :: forall r. DropFrameTimecode -> (Void# -> r) -> (Void# -> r) -> r
DropFrameTimecode_ENABLED = DropFrameTimecode' "ENABLED"

{-# COMPLETE
  DropFrameTimecode_DISABLED,
  DropFrameTimecode_ENABLED,
  DropFrameTimecode'
  #-}