{-# 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.MxfXavcDurationMode
-- 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.MxfXavcDurationMode
  ( MxfXavcDurationMode
      ( ..,
        MxfXavcDurationMode_ALLOW_ANY_DURATION,
        MxfXavcDurationMode_DROP_FRAMES_FOR_COMPLIANCE
      ),
  )
where

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

-- | To create an output that complies with the XAVC file format guidelines
-- for interoperability, keep the default value, Drop frames for compliance
-- (DROP_FRAMES_FOR_COMPLIANCE). To include all frames from your input in
-- this output, keep the default setting, Allow any duration
-- (ALLOW_ANY_DURATION). The number of frames that MediaConvert excludes
-- when you set this to Drop frames for compliance depends on the output
-- frame rate and duration.
newtype MxfXavcDurationMode = MxfXavcDurationMode'
  { MxfXavcDurationMode -> Text
fromMxfXavcDurationMode ::
      Core.Text
  }
  deriving stock
    ( Int -> MxfXavcDurationMode -> ShowS
[MxfXavcDurationMode] -> ShowS
MxfXavcDurationMode -> String
(Int -> MxfXavcDurationMode -> ShowS)
-> (MxfXavcDurationMode -> String)
-> ([MxfXavcDurationMode] -> ShowS)
-> Show MxfXavcDurationMode
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [MxfXavcDurationMode] -> ShowS
$cshowList :: [MxfXavcDurationMode] -> ShowS
show :: MxfXavcDurationMode -> String
$cshow :: MxfXavcDurationMode -> String
showsPrec :: Int -> MxfXavcDurationMode -> ShowS
$cshowsPrec :: Int -> MxfXavcDurationMode -> ShowS
Prelude.Show,
      ReadPrec [MxfXavcDurationMode]
ReadPrec MxfXavcDurationMode
Int -> ReadS MxfXavcDurationMode
ReadS [MxfXavcDurationMode]
(Int -> ReadS MxfXavcDurationMode)
-> ReadS [MxfXavcDurationMode]
-> ReadPrec MxfXavcDurationMode
-> ReadPrec [MxfXavcDurationMode]
-> Read MxfXavcDurationMode
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [MxfXavcDurationMode]
$creadListPrec :: ReadPrec [MxfXavcDurationMode]
readPrec :: ReadPrec MxfXavcDurationMode
$creadPrec :: ReadPrec MxfXavcDurationMode
readList :: ReadS [MxfXavcDurationMode]
$creadList :: ReadS [MxfXavcDurationMode]
readsPrec :: Int -> ReadS MxfXavcDurationMode
$creadsPrec :: Int -> ReadS MxfXavcDurationMode
Prelude.Read,
      MxfXavcDurationMode -> MxfXavcDurationMode -> Bool
(MxfXavcDurationMode -> MxfXavcDurationMode -> Bool)
-> (MxfXavcDurationMode -> MxfXavcDurationMode -> Bool)
-> Eq MxfXavcDurationMode
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: MxfXavcDurationMode -> MxfXavcDurationMode -> Bool
$c/= :: MxfXavcDurationMode -> MxfXavcDurationMode -> Bool
== :: MxfXavcDurationMode -> MxfXavcDurationMode -> Bool
$c== :: MxfXavcDurationMode -> MxfXavcDurationMode -> Bool
Prelude.Eq,
      Eq MxfXavcDurationMode
Eq MxfXavcDurationMode
-> (MxfXavcDurationMode -> MxfXavcDurationMode -> Ordering)
-> (MxfXavcDurationMode -> MxfXavcDurationMode -> Bool)
-> (MxfXavcDurationMode -> MxfXavcDurationMode -> Bool)
-> (MxfXavcDurationMode -> MxfXavcDurationMode -> Bool)
-> (MxfXavcDurationMode -> MxfXavcDurationMode -> Bool)
-> (MxfXavcDurationMode
    -> MxfXavcDurationMode -> MxfXavcDurationMode)
-> (MxfXavcDurationMode
    -> MxfXavcDurationMode -> MxfXavcDurationMode)
-> Ord MxfXavcDurationMode
MxfXavcDurationMode -> MxfXavcDurationMode -> Bool
MxfXavcDurationMode -> MxfXavcDurationMode -> Ordering
MxfXavcDurationMode -> MxfXavcDurationMode -> MxfXavcDurationMode
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 :: MxfXavcDurationMode -> MxfXavcDurationMode -> MxfXavcDurationMode
$cmin :: MxfXavcDurationMode -> MxfXavcDurationMode -> MxfXavcDurationMode
max :: MxfXavcDurationMode -> MxfXavcDurationMode -> MxfXavcDurationMode
$cmax :: MxfXavcDurationMode -> MxfXavcDurationMode -> MxfXavcDurationMode
>= :: MxfXavcDurationMode -> MxfXavcDurationMode -> Bool
$c>= :: MxfXavcDurationMode -> MxfXavcDurationMode -> Bool
> :: MxfXavcDurationMode -> MxfXavcDurationMode -> Bool
$c> :: MxfXavcDurationMode -> MxfXavcDurationMode -> Bool
<= :: MxfXavcDurationMode -> MxfXavcDurationMode -> Bool
$c<= :: MxfXavcDurationMode -> MxfXavcDurationMode -> Bool
< :: MxfXavcDurationMode -> MxfXavcDurationMode -> Bool
$c< :: MxfXavcDurationMode -> MxfXavcDurationMode -> Bool
compare :: MxfXavcDurationMode -> MxfXavcDurationMode -> Ordering
$ccompare :: MxfXavcDurationMode -> MxfXavcDurationMode -> Ordering
$cp1Ord :: Eq MxfXavcDurationMode
Prelude.Ord,
      (forall x. MxfXavcDurationMode -> Rep MxfXavcDurationMode x)
-> (forall x. Rep MxfXavcDurationMode x -> MxfXavcDurationMode)
-> Generic MxfXavcDurationMode
forall x. Rep MxfXavcDurationMode x -> MxfXavcDurationMode
forall x. MxfXavcDurationMode -> Rep MxfXavcDurationMode x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep MxfXavcDurationMode x -> MxfXavcDurationMode
$cfrom :: forall x. MxfXavcDurationMode -> Rep MxfXavcDurationMode x
Prelude.Generic
    )
  deriving newtype
    ( Int -> MxfXavcDurationMode -> Int
MxfXavcDurationMode -> Int
(Int -> MxfXavcDurationMode -> Int)
-> (MxfXavcDurationMode -> Int) -> Hashable MxfXavcDurationMode
forall a. (Int -> a -> Int) -> (a -> Int) -> Hashable a
hash :: MxfXavcDurationMode -> Int
$chash :: MxfXavcDurationMode -> Int
hashWithSalt :: Int -> MxfXavcDurationMode -> Int
$chashWithSalt :: Int -> MxfXavcDurationMode -> Int
Prelude.Hashable,
      MxfXavcDurationMode -> ()
(MxfXavcDurationMode -> ()) -> NFData MxfXavcDurationMode
forall a. (a -> ()) -> NFData a
rnf :: MxfXavcDurationMode -> ()
$crnf :: MxfXavcDurationMode -> ()
Prelude.NFData,
      Text -> Either String MxfXavcDurationMode
(Text -> Either String MxfXavcDurationMode)
-> FromText MxfXavcDurationMode
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String MxfXavcDurationMode
$cfromText :: Text -> Either String MxfXavcDurationMode
Core.FromText,
      MxfXavcDurationMode -> Text
(MxfXavcDurationMode -> Text) -> ToText MxfXavcDurationMode
forall a. (a -> Text) -> ToText a
toText :: MxfXavcDurationMode -> Text
$ctoText :: MxfXavcDurationMode -> Text
Core.ToText,
      MxfXavcDurationMode -> ByteString
(MxfXavcDurationMode -> ByteString)
-> ToByteString MxfXavcDurationMode
forall a. (a -> ByteString) -> ToByteString a
toBS :: MxfXavcDurationMode -> ByteString
$ctoBS :: MxfXavcDurationMode -> ByteString
Core.ToByteString,
      MxfXavcDurationMode -> ByteStringBuilder
(MxfXavcDurationMode -> ByteStringBuilder)
-> ToLog MxfXavcDurationMode
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: MxfXavcDurationMode -> ByteStringBuilder
$cbuild :: MxfXavcDurationMode -> ByteStringBuilder
Core.ToLog,
      HeaderName -> MxfXavcDurationMode -> [Header]
(HeaderName -> MxfXavcDurationMode -> [Header])
-> ToHeader MxfXavcDurationMode
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> MxfXavcDurationMode -> [Header]
$ctoHeader :: HeaderName -> MxfXavcDurationMode -> [Header]
Core.ToHeader,
      MxfXavcDurationMode -> QueryString
(MxfXavcDurationMode -> QueryString) -> ToQuery MxfXavcDurationMode
forall a. (a -> QueryString) -> ToQuery a
toQuery :: MxfXavcDurationMode -> QueryString
$ctoQuery :: MxfXavcDurationMode -> QueryString
Core.ToQuery,
      Value -> Parser [MxfXavcDurationMode]
Value -> Parser MxfXavcDurationMode
(Value -> Parser MxfXavcDurationMode)
-> (Value -> Parser [MxfXavcDurationMode])
-> FromJSON MxfXavcDurationMode
forall a.
(Value -> Parser a) -> (Value -> Parser [a]) -> FromJSON a
parseJSONList :: Value -> Parser [MxfXavcDurationMode]
$cparseJSONList :: Value -> Parser [MxfXavcDurationMode]
parseJSON :: Value -> Parser MxfXavcDurationMode
$cparseJSON :: Value -> Parser MxfXavcDurationMode
Core.FromJSON,
      FromJSONKeyFunction [MxfXavcDurationMode]
FromJSONKeyFunction MxfXavcDurationMode
FromJSONKeyFunction MxfXavcDurationMode
-> FromJSONKeyFunction [MxfXavcDurationMode]
-> FromJSONKey MxfXavcDurationMode
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [MxfXavcDurationMode]
$cfromJSONKeyList :: FromJSONKeyFunction [MxfXavcDurationMode]
fromJSONKey :: FromJSONKeyFunction MxfXavcDurationMode
$cfromJSONKey :: FromJSONKeyFunction MxfXavcDurationMode
Core.FromJSONKey,
      [MxfXavcDurationMode] -> Encoding
[MxfXavcDurationMode] -> Value
MxfXavcDurationMode -> Encoding
MxfXavcDurationMode -> Value
(MxfXavcDurationMode -> Value)
-> (MxfXavcDurationMode -> Encoding)
-> ([MxfXavcDurationMode] -> Value)
-> ([MxfXavcDurationMode] -> Encoding)
-> ToJSON MxfXavcDurationMode
forall a.
(a -> Value)
-> (a -> Encoding)
-> ([a] -> Value)
-> ([a] -> Encoding)
-> ToJSON a
toEncodingList :: [MxfXavcDurationMode] -> Encoding
$ctoEncodingList :: [MxfXavcDurationMode] -> Encoding
toJSONList :: [MxfXavcDurationMode] -> Value
$ctoJSONList :: [MxfXavcDurationMode] -> Value
toEncoding :: MxfXavcDurationMode -> Encoding
$ctoEncoding :: MxfXavcDurationMode -> Encoding
toJSON :: MxfXavcDurationMode -> Value
$ctoJSON :: MxfXavcDurationMode -> Value
Core.ToJSON,
      ToJSONKeyFunction [MxfXavcDurationMode]
ToJSONKeyFunction MxfXavcDurationMode
ToJSONKeyFunction MxfXavcDurationMode
-> ToJSONKeyFunction [MxfXavcDurationMode]
-> ToJSONKey MxfXavcDurationMode
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [MxfXavcDurationMode]
$ctoJSONKeyList :: ToJSONKeyFunction [MxfXavcDurationMode]
toJSONKey :: ToJSONKeyFunction MxfXavcDurationMode
$ctoJSONKey :: ToJSONKeyFunction MxfXavcDurationMode
Core.ToJSONKey,
      [Node] -> Either String MxfXavcDurationMode
([Node] -> Either String MxfXavcDurationMode)
-> FromXML MxfXavcDurationMode
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String MxfXavcDurationMode
$cparseXML :: [Node] -> Either String MxfXavcDurationMode
Core.FromXML,
      MxfXavcDurationMode -> XML
(MxfXavcDurationMode -> XML) -> ToXML MxfXavcDurationMode
forall a. (a -> XML) -> ToXML a
toXML :: MxfXavcDurationMode -> XML
$ctoXML :: MxfXavcDurationMode -> XML
Core.ToXML
    )

pattern MxfXavcDurationMode_ALLOW_ANY_DURATION :: MxfXavcDurationMode
pattern $bMxfXavcDurationMode_ALLOW_ANY_DURATION :: MxfXavcDurationMode
$mMxfXavcDurationMode_ALLOW_ANY_DURATION :: forall r. MxfXavcDurationMode -> (Void# -> r) -> (Void# -> r) -> r
MxfXavcDurationMode_ALLOW_ANY_DURATION = MxfXavcDurationMode' "ALLOW_ANY_DURATION"

pattern MxfXavcDurationMode_DROP_FRAMES_FOR_COMPLIANCE :: MxfXavcDurationMode
pattern $bMxfXavcDurationMode_DROP_FRAMES_FOR_COMPLIANCE :: MxfXavcDurationMode
$mMxfXavcDurationMode_DROP_FRAMES_FOR_COMPLIANCE :: forall r. MxfXavcDurationMode -> (Void# -> r) -> (Void# -> r) -> r
MxfXavcDurationMode_DROP_FRAMES_FOR_COMPLIANCE = MxfXavcDurationMode' "DROP_FRAMES_FOR_COMPLIANCE"

{-# COMPLETE
  MxfXavcDurationMode_ALLOW_ANY_DURATION,
  MxfXavcDurationMode_DROP_FRAMES_FOR_COMPLIANCE,
  MxfXavcDurationMode'
  #-}